[ https://issues.apache.org/jira/browse/SLING-3118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Konrad Windszus updated SLING-3118: ----------------------------------- Description: I get a NPE during calling File->New->New Sling Bundle Project. That stacktrace is as following ... Root exception: java.lang.NullPointerException at org.apache.sling.ide.eclipse.m2e.EmbeddedArchetypeInstaller.addResource(EmbeddedArchetypeInstaller.java:81) at org.apache.sling.ide.eclipse.ui.wizards.np.NewSlingBundleWizard.installArchetypes(NewSlingBundleWizard.java:48) at org.apache.sling.ide.eclipse.ui.wizards.np.ChooseArchetypeWizardPage$6.run(ChooseArchetypeWizardPage.java:192) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121) This is caused by referring to the archetype artifact with the filename "target/archetypes/sling-bundle-archetype-1.0.1-SNAPSHOT.jar" where in fact the filename (at least in my build) is "/target/archetypes/sling-bundle-archetype-1.0.1-20121112.102907-462.jar" A solution would be to strip the version from the filename after it has been downloaded by the maven-dependency-plugin (http://maven.apache.org/plugins/maven-dependency-plugin/copy-mojo.html) by leveraging the "stripVersion" flag and referring only to the artifactId as filename. was: I get a NPE during calling File->New->New Sling Bundle Project. That stacktrace is as following ... Caused by: java.lang.NullPointerException at org.apache.sling.ide.eclipse.m2e.EmbeddedArchetypeInstaller.addResource(EmbeddedArchetypeInstaller.java:81) at org.apache.sling.ide.eclipse.ui.wizards.np.NewSlingBundleWizard.installArchetypes(NewSlingBundleWizard.java:48) at org.apache.sling.ide.eclipse.ui.wizards.np.ChooseArchetypeWizardPage$6.run(ChooseArchetypeWizardPage.java:192) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121) Root exception: java.lang.NullPointerException at org.apache.sling.ide.eclipse.m2e.EmbeddedArchetypeInstaller.addResource(EmbeddedArchetypeInstaller.java:81) at org.apache.sling.ide.eclipse.ui.wizards.np.NewSlingBundleWizard.installArchetypes(NewSlingBundleWizard.java:48) at org.apache.sling.ide.eclipse.ui.wizards.np.ChooseArchetypeWizardPage$6.run(ChooseArchetypeWizardPage.java:192) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121) This is caused by referring to the archetype artifact with the filename "target/archetypes/sling-bundle-archetype-1.0.1-SNAPSHOT.jar" where in fact the filename (at least in my build) is "/target/archetypes/sling-bundle-archetype-1.0.1-20121112.102907-462.jar" A solution would be to strip the version from the filename after it has been downloaded by the maven-dependency-plugin (http://maven.apache.org/plugins/maven-dependency-plugin/copy-mojo.html) by leveraging the "stripVersion" flag and referring only to the artifactId as filename. > NPE during invocation of the SlingBundleWizard > ---------------------------------------------- > > Key: SLING-3118 > URL: https://issues.apache.org/jira/browse/SLING-3118 > Project: Sling > Issue Type: Bug > Components: IDE > Reporter: Konrad Windszus > Fix For: Sling Eclipse IDE 1.0.0 > > > I get a NPE during calling File->New->New Sling Bundle Project. That > stacktrace is as following > ... > Root exception: > java.lang.NullPointerException > at > org.apache.sling.ide.eclipse.m2e.EmbeddedArchetypeInstaller.addResource(EmbeddedArchetypeInstaller.java:81) > at > org.apache.sling.ide.eclipse.ui.wizards.np.NewSlingBundleWizard.installArchetypes(NewSlingBundleWizard.java:48) > at > org.apache.sling.ide.eclipse.ui.wizards.np.ChooseArchetypeWizardPage$6.run(ChooseArchetypeWizardPage.java:192) > at > org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121) > This is caused by referring to the archetype artifact with the filename > "target/archetypes/sling-bundle-archetype-1.0.1-SNAPSHOT.jar" where in fact > the filename (at least in my build) is > "/target/archetypes/sling-bundle-archetype-1.0.1-20121112.102907-462.jar" > A solution would be to strip the version from the filename after it has been > downloaded by the maven-dependency-plugin > (http://maven.apache.org/plugins/maven-dependency-plugin/copy-mojo.html) by > leveraging the "stripVersion" flag and referring only to the artifactId as > filename. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira