Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE with custom source feature id #126

Open
berndv opened this issue Sep 26, 2014 · 0 comments
Open

NPE with custom source feature id #126

berndv opened this issue Sep 26, 2014 · 0 comments
Assignees
Labels
Milestone

Comments

@berndv
Copy link
Member

berndv commented Sep 26, 2014

public, sdk
de.innovations.mp
${b2.assemblies.public.featureId}
${b2.assemblies.public.featureId}.sources

->

[INFO] Executing bootstrapper org.sourcepit.b2:b2-maven-plugin...
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] Bootstrapping Model Authoring Platform Plugins for Visual Rules 6.1 2.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] ignoreXmlConfiguration == true
[INFO] Using site jar:file:C:/Projekte/.m2/repository/de/visualrules/modeler/modeler-eclipse-java/6.1.1/modeler-eclipse-java-6.1.1-site-sdk.zip!/
[INFO] Using site jar:file:C:/Projekte/.m2/repository/de/visualrules/modeler/modeler-base-common/6.1.1/modeler-base-common-6.1.1-site-sdk.zip!/
[INFO] Using site jar:file:C:/Projekte/.m2/repository/de/visualrules/modeler/modeler-base-common/6.1.1/modeler-base-common-6.1.1-site-test.zip!/
[INFO] Using site jar:file:C:/Projekte/.m2/repository/de/visualrules/modeler/modeler-base-core/6.1.1/modeler-base-core-6.1.1-site-sdk.zip!/
[INFO] Using site jar:file:C:/Projekte/.m2/repository/de/visualrules/modeler/modeler-base-core/6.1.1/modeler-base-core-6.1.1-site-test.zip!/
[INFO] Using site jar:file:C:/Projekte/.m2/repository/de/visualrules/modeler/modeler-eclipse-core/6.1.1/modeler-eclipse-core-6.1.1-site-sdk.zip!/
[INFO] Using site jar:file:C:/Projekte/.m2/repository/de/visualrules/modeler/modeler-eclipse-core/6.1.1/modeler-eclipse-core-6.1.1-site-test.zip!/
[INFO] Using site jar:file:C:/Projekte/.m2/repository/de/visualrules/modeler/modeler-base-runtime/6.1.1/modeler-base-runtime-6.1.1-site-sdk.zip!/
[INFO] Using site jar:file:C:/Projekte/.m2/repository/de/visualrules/modeler/modeler-base-runtime/6.1.1/modeler-base-runtime-6.1.1-site-test.zip!/
[INFO] Using site jar:file:C:/Projekte/.m2/repository/de/visualrules/modeler/modeler-base-java/6.1.1/modeler-base-java-6.1.1-site-sdk.zip!/
[INFO] Using site jar:file:C:/Projekte/.m2/repository/de/visualrules/modeler/modeler-base-java/6.1.1/modeler-base-java-6.1.1-site-test.zip!/
[INFO] Using site jar:file:C:/Projekte/.m2/repository/de/visualrules/modeler/modeler-base-validation/6.1.1/modeler-base-validation-6.1.1-site-sdk.zip!/
[INFO] Using site jar:file:C:/Projekte/.m2/repository/de/visualrules/modeler/modeler-base-validation/6.1.1/modeler-base-validation-6.1.1-site-test.zip!/
[INFO] Building model for directory map-plugins
[INFO] Deleted 16 files
[INFO] Validating de.innovations.map.plugins.
[INFO] Quick fixes are disabled. You can enable it by setting the propety b2.validation.quickFixes.enabled=true.
[WARNING] de.innovations.mp.build.ui: Bundle will be unpacked on installation but contains '.' on the bundles classpath declaration. This may lead to naked class files after unpacking. It is recomended to build these classes in its own JAR via the bundles build.properties.
[WARNING] de.innovations.mp.properties.ui: Missing manifest entry: 'Eclipse-BundleShape: dir'. (quick fix available)
[WARNING] de.innovations.mp.properties.ui: Bundle will be unpacked on installation but contains '.' on the bundles classpath declaration. This may lead to naked class files after unpacking. It is recomended to build these classes in its own JAR via the bundles build.properties.
[ERROR] Internal error: org.sourcepit.common.utils.lang.PipedException: See initial cause for actual problem: NullPointerException -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: org.sourcepit.common.utils.lang.PipedException: See initial cause for actual problem:
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.sourcepit.common.utils.lang.PipedException: See initial cause for actual problem:
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
    at org.sourcepit.common.utils.lang.Exceptions.newInstance(Exceptions.java:105)
    at org.sourcepit.common.utils.lang.Exceptions.toPipedThrowable(Exceptions.java:98)
    at org.sourcepit.common.utils.lang.CopyOnWriteThrowablePipe.toPipedThrowable(CopyOnWriteThrowablePipe.java:89)
    at org.sourcepit.common.utils.lang.CopyOnWriteThrowablePipe.throwPipe(CopyOnWriteThrowablePipe.java:94)
    at org.sourcepit.common.utils.lang.Exceptions.throwPipe(Exceptions.java:175)
    at org.sourcepit.b2.execution.LifecyclePhase.post(LifecyclePhase.java:86)
    at org.sourcepit.b2.execution.B2LifecycleRunner$LifecyclePhases.post(B2LifecycleRunner.java:69)
    at org.sourcepit.b2.execution.B2LifecycleRunner$LifecyclePhases.post(B2LifecycleRunner.java:1)
    at org.sourcepit.b2.execution.LifecyclePhase.execute(LifecyclePhase.java:65)
    at org.sourcepit.b2.execution.B2LifecycleRunner.prepareNext(B2LifecycleRunner.java:120)
    at org.sourcepit.b2.internal.maven.B2BootstrapParticipant.beforeBuild(B2BootstrapParticipant.java:63)
    at org.sourcepit.maven.bootstrap.core.AbstractBootstrapper.performBootProject(AbstractBootstrapper.java:251)
    at org.sourcepit.maven.bootstrap.core.AbstractBootstrapper.performBootSession(AbstractBootstrapper.java:233)
    at org.sourcepit.maven.bootstrap.core.AbstractBootstrapper.executionStarted(AbstractBootstrapper.java:176)
    at org.sourcepit.maven.exec.internal.intercept.MavenExecutionInterceptor.fireExecutionStarted(MavenExecutionInterceptor.java:72)
    at org.sourcepit.maven.exec.internal.intercept.MavenExecutionInterceptor.onAfterSessionStart(MavenExecutionInterceptor.java:34)
    at org.sourcepit.maven.exec.internal.intercept.MavenLifecycleParticipant.afterSessionStart(MavenLifecycleParticipant.java:31)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:217)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    ... 11 more
Caused by: java.lang.NullPointerException
    at org.sourcepit.b2.model.builder.util.DefaultUnpackStrategy.hasDirBundleShape(DefaultUnpackStrategy.java:32)
    at org.sourcepit.b2.model.builder.util.DefaultUnpackStrategy.isUnpack(DefaultUnpackStrategy.java:27)
    at org.sourcepit.b2.internal.generator.PomGenerator.generatePluginProject(PomGenerator.java:530)
    at org.sourcepit.b2.internal.generator.PomGenerator$1.casePluginProject(PomGenerator.java:155)
    at org.sourcepit.b2.internal.generator.PomGenerator$1.casePluginProject(PomGenerator.java:1)
    at org.sourcepit.b2.model.module.util.ModuleModelSwitch.doSwitch(ModuleModelSwitch.java:222)
    at org.eclipse.emf.ecore.util.Switch.doSwitch(Switch.java:53)
    at org.eclipse.emf.ecore.util.Switch.doSwitch(Switch.java:69)
    at org.sourcepit.b2.internal.generator.PomGenerator.doGenerate(PomGenerator.java:187)
    at org.sourcepit.b2.internal.generator.PomGenerator.generate(PomGenerator.java:101)
    at org.sourcepit.b2.internal.generator.AbstractPomGenerator.generate(AbstractPomGenerator.java:35)
    at org.sourcepit.b2.internal.generator.B2Generator$2.doVisit(B2Generator.java:94)
    at org.sourcepit.b2.model.builder.util.ModuleWalker.visit(ModuleWalker.java:29)
    at org.sourcepit.b2.model.module.internal.util.EWalkerImpl.walk(EWalkerImpl.java:56)
    at org.sourcepit.b2.model.module.internal.util.EWalkerImpl.walk(EWalkerImpl.java:82)
    at org.sourcepit.b2.model.module.internal.util.EWalkerImpl.walk(EWalkerImpl.java:64)
    at org.sourcepit.b2.model.module.internal.util.EWalkerImpl.walk(EWalkerImpl.java:82)
    at org.sourcepit.b2.model.module.internal.util.EWalkerImpl.walk(EWalkerImpl.java:64)
    at org.sourcepit.b2.internal.generator.B2Generator.doGenerate(B2Generator.java:99)
    at org.sourcepit.b2.internal.generator.B2Generator.access$0(B2Generator.java:75)
    at org.sourcepit.b2.internal.generator.B2Generator$1.doExecute(B2Generator.java:62)
    at org.sourcepit.b2.internal.generator.B2Generator$1.doExecute(B2Generator.java:1)
    at org.sourcepit.b2.execution.LifecyclePhase.execute(LifecyclePhase.java:58)
    at org.sourcepit.b2.internal.generator.B2Generator.generate(B2Generator.java:46)
    at org.sourcepit.b2.execution.B2.generate(B2.java:69)
    at org.sourcepit.b2.execution.B2LifecycleRunner$3.doExecute(B2LifecycleRunner.java:188)
    at org.sourcepit.b2.execution.B2LifecycleRunner$3.doExecute(B2LifecycleRunner.java:1)
    at org.sourcepit.b2.execution.LifecyclePhase.execute(LifecyclePhase.java:58)
    at org.sourcepit.b2.execution.B2LifecycleRunner$1.doExecutePhases(B2LifecycleRunner.java:111)
    at org.sourcepit.b2.execution.B2LifecycleRunner$1.doExecutePhases(B2LifecycleRunner.java:1)
    at org.sourcepit.b2.execution.B2LifecycleRunner$LifecyclePhases.doExecute(B2LifecycleRunner.java:59)
    at org.sourcepit.b2.execution.B2LifecycleRunner$LifecyclePhases.doExecute(B2LifecycleRunner.java:1)
    at org.sourcepit.b2.execution.LifecyclePhase.execute(LifecyclePhase.java:58)
    ... 21 more
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/InternalErrorException
@berndv berndv self-assigned this Sep 26, 2014
@berndv berndv added this to the 0.18.0 milestone Sep 26, 2014
@berndv berndv added the Bug label Sep 26, 2014
@berndv berndv modified the milestone: 0.18.0 Sep 26, 2014
@berndv berndv modified the milestones: 0.18.0, 0.19.0 Dec 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant