You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Stefan Egli (JIRA)" <ji...@apache.org> on 2015/11/12 12:29:14 UTC

[jira] [Closed] (SLING-3118) NPE during invocation of the SlingBundleWizard

     [ https://issues.apache.org/jira/browse/SLING-3118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stefan Egli closed SLING-3118.
------------------------------

> 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
>            Assignee: Robert Munteanu
>             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 was sent by Atlassian JIRA
(v6.3.4#6332)