Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-36

Proximity Migration App Fails with NPE

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.0-beta
    • Fix Version/s: 1.0-beta
    • Component/s: None
    • Labels:
      None
    • Environment:
      Windows XP

      Description

      When migratin a current Proximity repository using the Migration app bundled with beta-2 i get a NPE.

      D:\apps\nexus-webapp-1.0.0-beta-2\runtime\apps\nexus\tools>java -jar nexus-migration-app-1.0.0-beta-1-cli.jar -p D:\apps\Tomcat5.5-Prox\webapps\proximity\WEB-INF\web.xml -sproximity
      [INFO] ----------------------------------------
      [INFO] Migration of proximity configuration requested.
      [INFO] Migration of proximity configuration started.
      [INFO] Step 1/5 : Extracted Spring contexts from web.xml.
      [INFO] Step 2/5 : Proximity properties found and loaded.
      [INFO] Step 3/5 : Merged Spring contexts.
      [INFO] Step 4/5 : Beans extracted from Spring contexts.
      [INFO] ----------------------------------------
      [INFO] MIGRATION FAILED
      [INFO] ----------------------------------------
      [ERROR] Migration of proximity configuration unsuccesful.
      [INFO] ----------------------------------------
      Migration failed.
      java.lang.NullPointerException
      at org.sonatype.nexus.tools.migration.proximity.NexusConfigurationBuilder.getPropertyValue(NexusConfigurationBuilder.java:206)
      at org.sonatype.nexus.tools.migration.proximity.NexusConfigurationBuilder.getPropertyValue(NexusConfigurationBuilder.java:201)
      at org.sonatype.nexus.tools.migration.proximity.NexusConfigurationBuilder.buildConfiguration(NexusConfigurationBuilder.java:102)
      at org.sonatype.nexus.tools.migration.proximity.ProximityMigrationSource.migrateConfiguration(ProximityMigrationSource.java:176)
      at org.sonatype.nexus.tools.migration.DefaultMigrationTool.migrate(DefaultMigrationTool.java:66)
      at org.sonatype.nexus.tools.migration.cli.NexusMigrationToolCli.migrate(NexusMigrationToolCli.java:94)
      at org.sonatype.nexus.tools.migration.cli.NexusMigrationToolCli.invokePlexusComponent(NexusMigrationToolCli.java:67)
      at org.codehaus.plexus.tools.cli.AbstractCli.execute(AbstractCli.java:161)
      at org.codehaus.plexus.tools.cli.AbstractCli.execute(AbstractCli.java:67)
      at org.sonatype.nexus.tools.migration.cli.NexusMigrationToolCli.main(NexusMigrationToolCli.java:38)

      D:\apps\nexus-webapp-1.0.0-beta-2\runtime\apps\nexus\tools>

        Attachments

        1. applicationContext.xml
          3 kB
        2. proximity.properties
          2 kB
        3. proximityHelpers.xml
          5 kB
        4. proximityRepositories.xml
          22 kB
        5. web.xml
          3 kB

          Activity

            People

            Assignee:
            cstamas Tamás Cservenák
            Reporter:
            deleted_user Deleted User
            Last Updated By:
            Peter Lynch Peter Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title