History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: NEXUS-36
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Tamás Cservenák
Reporter: Jon SlinnHawkins
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Nexus

Proximity Migration App Fails with NPE

Created: 04/29/08 10:34 AM   Updated: 09/11/08 05:36 PM
Component/s: None
Affects Version/s: 1.0.0-beta-2
Fix Version/s: 1.0.0-beta-3

Time Tracking:
Not Specified

File Attachments: 1. XML File applicationContext.xml (3 kb)
2. File proximity.properties (2 kb)
3. XML File proximityHelpers.xml (5 kb)
4. XML File proximityRepositories.xml (22 kb)
5. XML File web.xml (3 kb)

Environment: Windows XP

Rank:
Issue is not rankable.     


 Description  « Hide
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>



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Tamás Cservenák - 04/29/08 01:49 PM
Hi Jon,

i have identified the problem, the fix will be in next release of the "migration tool" but you can workaround it too:

Change the "class" of the extNonFreeFSStorage to the "org.abstracthorizon.proximity.storage.local.WritableFileSystemStorage"

The tool was (up to now) scanning only for this class, but as i see, you have used "org.abstracthorizon.proximity.storage.local.ReadOnlyFileSystemStorage" for this storage, hence the tool was not finding it


Tamás Cservenák - 05/12/08 09:06 PM
Fixed in beta-3

Kristine O'Connor - 09/11/08 05:36 PM
This is no longer occurring, and was fixed with Beta 3. Closing.