Uploaded image for project: 'Archiva'
  1. Archiva
  2. MRM-568

Error in 'update-db-project' consumer during database scanning when a repo that has been removed was re-added again

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.0-beta-3
    • None
    • None
    • None

    Description

      This was the error from the console
      jvm 1 | 2007-10-24 10:44:46,186 [pool-1-thread-1] INFO org.apache.maven.archiva.consumers.DatabaseUnprocessedArtifactConsumer:update-db-project - Adding project model to database - org.jruby.plugins:jruby-rake-plugin:1.0RC1-20070506.090132-4
      jvm 1 | 2007-10-24 10:44:46,187 [pool-1-thread-1] ERROR org.apache.maven.archiva.consumers.DatabaseUnprocessedArtifactConsumer:update-db-project - Unable to process model /home/deng/TestFiles/sample-local-repo/org/jruby/plugins/jruby-rake-plugin/1.0RC1-SNAPSHOT/jruby-rake-plugin-1.0RC1-20070506.090132-4.pom due to : javax.jdo.JDOUserException : Field org.apache.maven.archiva.model.ArchivaProjectModel.origin is null, but is mandatory as its described in the jdo metadata
      jvm 1 | javax.jdo.JDOUserException: Field org.apache.maven.archiva.model.ArchivaProjectModel.origin is null, but is mandatory as its described in the jdo metadata
      jvm 1 | at org.jpox.store.rdbms.fieldmanager.ParameterSetter.storeStringField(ParameterSetter.java:120)
      jvm 1 | at org.jpox.state.StateManagerImpl.providedStringField(StateManagerImpl.java:2757)
      jvm 1 | at org.apache.maven.archiva.model.ArchivaProjectModel.jdoProvideField(ArchivaProjectModel.java)
      ...

      Steps to reproduce:
      1. Added a new m2 repository 'sample-local-repo' (which already exists in my local file system and has artifacts in it)
      2. Scanned the repository
      3. Updated the database
      4. Removed the repository
      5. Added it back again, with the same name, identifier and location.
      6. Scanned the repository
      7. Updated the database (this is where the error occurred)

      Attachments

        Issue Links

          Activity

            People

              brett Brett Porter
              oching Maria Odea B. Ching
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: