[
https://issues.jboss.org/browse/FORGE-591?page=com.atlassian.jira.plugin....
]
George Gastaldi updated FORGE-591:
----------------------------------
Description:
I tried to use Forge 1.0.5, but get the following stacktrac:
{code:java}
[no project] eclipse-workspace-swe $ version
JBoss Forge, version [ 1.0.5.Final ] - JBoss, by Red Hat, Inc. [
http://jboss.org/forge ]
[no project] eclipse-workspace-swe $ new-project --named demo --topLevelPackage de.demo
? Use [C:\/Software/eclipse-workspace-swe/demo] as project directory? [Y/n]
***SUCCESS*** Created project [demo] in new working directory
[C:\/Software/eclipse-workspace-swe/demo]
Wrote C:\/Software/eclipse-workspace-swe/demo
Wrote C:\/Software/eclipse-workspace-swe/demo/pom.xml
Wrote C:\/Software/eclipse-workspace-swe/demo/src/main/java
Wrote C:\/Software/eclipse-workspace-swe/demo/src/test/java
Wrote C:\/Software/eclipse-workspace-swe/demo/src/main/resources
Wrote C:\/Software/eclipse-workspace-swe/demo/src/test/resources
Wrote C:\/Software/eclipse-workspace-swe/demo/src/main/java/de/demo
Wrote C:\/Software/eclipse-workspace-swe/demo/src/main/resources/META-INF/forge.xml
[demo] demo $ scaffold setup
? No scaffold type was selected, use default [JavaServer Faces]? [Y/n]
? Scaffold provider [faces] is not installed. Install it? [Y/n]
? Facet [forge.maven.WebResourceFacet] requires packaging type(s) [war], but is currently
[jar]. Update packaging? (Note: this could deactivate other plugins in your project.)
[Y/n]
***SUCCESS*** Installed [forge.maven.WebResourceFacet] successfully.
Wrote C:\/Software/eclipse-workspace-swe/demo/src/main/webapp
Wrote C:\/Software/eclipse-workspace-swe/demo/pom.xml
Wrote C:\/Software/eclipse-workspace-swe/demo/src/main/resources/META-INF/persistence.xml
***ERROR*** [scaffold setup] java.lang.NullPointerException
org.jboss.forge.shell.exceptions.CommandExecutionException:
java.lang.NullPointerException
at org.jboss.forge.shell.command.Execution.perform(Execution.java:154)
at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:125)
at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:63)
at org.jboss.forge.shell.ShellImpl$ExecutorThread.run(ShellImpl.java:829)
at org.jboss.forge.shell.ShellImpl.execute(ShellImpl.java:852)
at org.jboss.forge.shell.ShellImpl.doShell(ShellImpl.java:642)
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.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:48)
at
org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:125)
at
org.jboss.forge.shell.ShellImpl$Proxy$_$$_WeldClientProxy.doShell(ShellImpl$Proxy$_$$_WeldClientProxy.java)
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.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)
at
org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
at
org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)
at
org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)
at
org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:188)
at
org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:59)
at
org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:198)
at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:282)
at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:265)
at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:234)
at
org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:635)
at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:622)
at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:616)
at org.jboss.forge.shell.Bootstrap$1.run(Bootstrap.java:151)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.reflect.InvocationTargetException
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.jboss.forge.shell.command.Execution.perform(Execution.java:150)
... 31 more
Caused by: org.jboss.forge.project.ProjectModelException: java.lang.NullPointerException
at
org.jboss.forge.maven.facets.MavenCoreFacetImpl.getFullProjectBuildingResult(MavenCoreFacetImpl.java:149)
at
org.jboss.forge.maven.facets.MavenDependencyFacet.getEffectiveDependencies(MavenDependencyFacet.java:202)
at
org.jboss.forge.maven.facets.MavenDependencyFacet.getEffectiveDependency(MavenDependencyFacet.java:188)
at
org.jboss.forge.shell.project.DependencyInstallerImpl.install(DependencyInstallerImpl.java:62)
at org.jboss.forge.spec.javaee.BaseJavaEEFacet.install(BaseJavaEEFacet.java:68)
at
org.jboss.forge.spec.javaee.jpa.PersistenceFacetImpl.install(PersistenceFacetImpl.java:92)
at org.jboss.forge.project.BaseProject.performInstallation(BaseProject.java:254)
at org.jboss.forge.project.BaseProject.installFacet(BaseProject.java:180)
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.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:48)
at
org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:125)
at
org.jboss.weld.proxies.Project$-1946286523$Proxy$_$$_WeldClientProxy.installFacet(Project$-1946286523$Proxy$_$$_WeldClientProxy.java)
at
org.jboss.forge.shell.project.FacetInstallationHandler.performInstallation(FacetInstallationHandler.java:121)
at
org.jboss.forge.shell.project.FacetInstallationHandler.installDependencies(FacetInstallationHandler.java:175)
at
org.jboss.forge.shell.project.FacetInstallationHandler.performInstallation(FacetInstallationHandler.java:116)
at
org.jboss.forge.shell.project.FacetInstallationHandler.install(FacetInstallationHandler.java:97)
at
org.jboss.forge.shell.project.FacetInstallationHandler.installRequest(FacetInstallationHandler.java:75)
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.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)
at
org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
at
org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)
at
org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)
at
org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:188)
at
org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:59)
at
org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:198)
at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:282)
at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:265)
at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:234)
at
org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:635)
at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:628)
at org.jboss.weld.event.EventImpl.fire(EventImpl.java:75)
at
org.jboss.forge.scaffold.plugins.ScaffoldPlugin.getScaffoldType(ScaffoldPlugin.java:335)
at org.jboss.forge.scaffold.plugins.ScaffoldPlugin.setup(ScaffoldPlugin.java:111)
... 36 more
Caused by: java.lang.NullPointerException
at java.lang.String.contains(String.java:2124)
at
org.apache.maven.model.building.DefaultModelBuilder.containsCoordinates(DefaultModelBuilder.java:1047)
at
org.apache.maven.model.building.DefaultModelBuilder.importDependencyManagement(DefaultModelBuilder.java:948)
at
org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:403)
at
org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:374)
at
org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:365)
at
org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:232)
at
org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:141)
at
org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:102)
at
org.jboss.forge.maven.facets.MavenCoreFacetImpl.getFullProjectBuildingResult(MavenCoreFacetImpl.java:144)
... 74 more
{code}
was:
I tried to use Forge 1.0.5, but get the following stacktrac:
[no project] eclipse-workspace-swe $ version
JBoss Forge, version [ 1.0.5.Final ] - JBoss, by Red Hat, Inc. [
http://jboss.org/forge ]
[no project] eclipse-workspace-swe $ new-project --named demo --topLevelPackage de.demo
? Use [C:\/Software/eclipse-workspace-swe/demo] as project directory? [Y/n]
***SUCCESS*** Created project [demo] in new working directory
[C:\/Software/eclipse-workspace-swe/demo]
Wrote C:\/Software/eclipse-workspace-swe/demo
Wrote C:\/Software/eclipse-workspace-swe/demo/pom.xml
Wrote C:\/Software/eclipse-workspace-swe/demo/src/main/java
Wrote C:\/Software/eclipse-workspace-swe/demo/src/test/java
Wrote C:\/Software/eclipse-workspace-swe/demo/src/main/resources
Wrote C:\/Software/eclipse-workspace-swe/demo/src/test/resources
Wrote C:\/Software/eclipse-workspace-swe/demo/src/main/java/de/demo
Wrote C:\/Software/eclipse-workspace-swe/demo/src/main/resources/META-INF/forge.xml
[demo] demo $ scaffold setup
? No scaffold type was selected, use default [JavaServer Faces]? [Y/n]
? Scaffold provider [faces] is not installed. Install it? [Y/n]
? Facet [forge.maven.WebResourceFacet] requires packaging type(s) [war], but is currently
[jar]. Update packaging? (Note: this could deactivate other plugins in your project.)
[Y/n]
***SUCCESS*** Installed [forge.maven.WebResourceFacet] successfully.
Wrote C:\/Software/eclipse-workspace-swe/demo/src/main/webapp
Wrote C:\/Software/eclipse-workspace-swe/demo/pom.xml
Wrote C:\/Software/eclipse-workspace-swe/demo/src/main/resources/META-INF/persistence.xml
***ERROR*** [scaffold setup] java.lang.NullPointerException
org.jboss.forge.shell.exceptions.CommandExecutionException:
java.lang.NullPointerException
at org.jboss.forge.shell.command.Execution.perform(Execution.java:154)
at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:125)
at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:63)
at org.jboss.forge.shell.ShellImpl$ExecutorThread.run(ShellImpl.java:829)
at org.jboss.forge.shell.ShellImpl.execute(ShellImpl.java:852)
at org.jboss.forge.shell.ShellImpl.doShell(ShellImpl.java:642)
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.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:48)
at
org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:125)
at
org.jboss.forge.shell.ShellImpl$Proxy$_$$_WeldClientProxy.doShell(ShellImpl$Proxy$_$$_WeldClientProxy.java)
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.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)
at
org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
at
org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)
at
org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)
at
org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:188)
at
org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:59)
at
org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:198)
at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:282)
at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:265)
at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:234)
at
org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:635)
at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:622)
at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:616)
at org.jboss.forge.shell.Bootstrap$1.run(Bootstrap.java:151)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.reflect.InvocationTargetException
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.jboss.forge.shell.command.Execution.perform(Execution.java:150)
... 31 more
Caused by: org.jboss.forge.project.ProjectModelException: java.lang.NullPointerException
at
org.jboss.forge.maven.facets.MavenCoreFacetImpl.getFullProjectBuildingResult(MavenCoreFacetImpl.java:149)
at
org.jboss.forge.maven.facets.MavenDependencyFacet.getEffectiveDependencies(MavenDependencyFacet.java:202)
at
org.jboss.forge.maven.facets.MavenDependencyFacet.getEffectiveDependency(MavenDependencyFacet.java:188)
at
org.jboss.forge.shell.project.DependencyInstallerImpl.install(DependencyInstallerImpl.java:62)
at org.jboss.forge.spec.javaee.BaseJavaEEFacet.install(BaseJavaEEFacet.java:68)
at
org.jboss.forge.spec.javaee.jpa.PersistenceFacetImpl.install(PersistenceFacetImpl.java:92)
at org.jboss.forge.project.BaseProject.performInstallation(BaseProject.java:254)
at org.jboss.forge.project.BaseProject.installFacet(BaseProject.java:180)
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.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:48)
at
org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:125)
at
org.jboss.weld.proxies.Project$-1946286523$Proxy$_$$_WeldClientProxy.installFacet(Project$-1946286523$Proxy$_$$_WeldClientProxy.java)
at
org.jboss.forge.shell.project.FacetInstallationHandler.performInstallation(FacetInstallationHandler.java:121)
at
org.jboss.forge.shell.project.FacetInstallationHandler.installDependencies(FacetInstallationHandler.java:175)
at
org.jboss.forge.shell.project.FacetInstallationHandler.performInstallation(FacetInstallationHandler.java:116)
at
org.jboss.forge.shell.project.FacetInstallationHandler.install(FacetInstallationHandler.java:97)
at
org.jboss.forge.shell.project.FacetInstallationHandler.installRequest(FacetInstallationHandler.java:75)
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.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)
at
org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
at
org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)
at
org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)
at
org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:188)
at
org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:59)
at
org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:198)
at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:282)
at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:265)
at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:234)
at
org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:635)
at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:628)
at org.jboss.weld.event.EventImpl.fire(EventImpl.java:75)
at
org.jboss.forge.scaffold.plugins.ScaffoldPlugin.getScaffoldType(ScaffoldPlugin.java:335)
at org.jboss.forge.scaffold.plugins.ScaffoldPlugin.setup(ScaffoldPlugin.java:111)
... 36 more
Caused by: java.lang.NullPointerException
at java.lang.String.contains(String.java:2124)
at
org.apache.maven.model.building.DefaultModelBuilder.containsCoordinates(DefaultModelBuilder.java:1047)
at
org.apache.maven.model.building.DefaultModelBuilder.importDependencyManagement(DefaultModelBuilder.java:948)
at
org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:403)
at
org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:374)
at
org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:365)
at
org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:232)
at
org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:141)
at
org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:102)
at
org.jboss.forge.maven.facets.MavenCoreFacetImpl.getFullProjectBuildingResult(MavenCoreFacetImpl.java:144)
... 74 more
NPE during "scaffold setup"
---------------------------
Key: FORGE-591
URL:
https://issues.jboss.org/browse/FORGE-591
Project: Forge
Issue Type: Bug
Components: Scaffold
Affects Versions: 1.0.5.Final
Reporter: Juergen Zimmermann
I tried to use Forge 1.0.5, but get the following stacktrac:
{code:java}
[no project] eclipse-workspace-swe $ version
JBoss Forge, version [ 1.0.5.Final ] - JBoss, by Red Hat, Inc. [
http://jboss.org/forge
]
[no project] eclipse-workspace-swe $ new-project --named demo --topLevelPackage de.demo
? Use [C:\/Software/eclipse-workspace-swe/demo] as project directory? [Y/n]
***SUCCESS*** Created project [demo] in new working directory
[C:\/Software/eclipse-workspace-swe/demo]
Wrote C:\/Software/eclipse-workspace-swe/demo
Wrote C:\/Software/eclipse-workspace-swe/demo/pom.xml
Wrote C:\/Software/eclipse-workspace-swe/demo/src/main/java
Wrote C:\/Software/eclipse-workspace-swe/demo/src/test/java
Wrote C:\/Software/eclipse-workspace-swe/demo/src/main/resources
Wrote C:\/Software/eclipse-workspace-swe/demo/src/test/resources
Wrote C:\/Software/eclipse-workspace-swe/demo/src/main/java/de/demo
Wrote C:\/Software/eclipse-workspace-swe/demo/src/main/resources/META-INF/forge.xml
[demo] demo $ scaffold setup
? No scaffold type was selected, use default [JavaServer Faces]? [Y/n]
? Scaffold provider [faces] is not installed. Install it? [Y/n]
? Facet [forge.maven.WebResourceFacet] requires packaging type(s) [war], but is
currently [jar]. Update packaging? (Note: this could deactivate other plugins in your
project.) [Y/n]
***SUCCESS*** Installed [forge.maven.WebResourceFacet] successfully.
Wrote C:\/Software/eclipse-workspace-swe/demo/src/main/webapp
Wrote C:\/Software/eclipse-workspace-swe/demo/pom.xml
Wrote
C:\/Software/eclipse-workspace-swe/demo/src/main/resources/META-INF/persistence.xml
***ERROR*** [scaffold setup] java.lang.NullPointerException
org.jboss.forge.shell.exceptions.CommandExecutionException:
java.lang.NullPointerException
at org.jboss.forge.shell.command.Execution.perform(Execution.java:154)
at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:125)
at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:63)
at org.jboss.forge.shell.ShellImpl$ExecutorThread.run(ShellImpl.java:829)
at org.jboss.forge.shell.ShellImpl.execute(ShellImpl.java:852)
at org.jboss.forge.shell.ShellImpl.doShell(ShellImpl.java:642)
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.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:48)
at
org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:125)
at
org.jboss.forge.shell.ShellImpl$Proxy$_$$_WeldClientProxy.doShell(ShellImpl$Proxy$_$$_WeldClientProxy.java)
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.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)
at
org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
at
org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)
at
org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)
at
org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:188)
at
org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:59)
at
org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:198)
at
org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:282)
at
org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:265)
at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:234)
at
org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:635)
at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:622)
at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:616)
at org.jboss.forge.shell.Bootstrap$1.run(Bootstrap.java:151)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.reflect.InvocationTargetException
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.jboss.forge.shell.command.Execution.perform(Execution.java:150)
... 31 more
Caused by: org.jboss.forge.project.ProjectModelException: java.lang.NullPointerException
at
org.jboss.forge.maven.facets.MavenCoreFacetImpl.getFullProjectBuildingResult(MavenCoreFacetImpl.java:149)
at
org.jboss.forge.maven.facets.MavenDependencyFacet.getEffectiveDependencies(MavenDependencyFacet.java:202)
at
org.jboss.forge.maven.facets.MavenDependencyFacet.getEffectiveDependency(MavenDependencyFacet.java:188)
at
org.jboss.forge.shell.project.DependencyInstallerImpl.install(DependencyInstallerImpl.java:62)
at org.jboss.forge.spec.javaee.BaseJavaEEFacet.install(BaseJavaEEFacet.java:68)
at
org.jboss.forge.spec.javaee.jpa.PersistenceFacetImpl.install(PersistenceFacetImpl.java:92)
at org.jboss.forge.project.BaseProject.performInstallation(BaseProject.java:254)
at org.jboss.forge.project.BaseProject.installFacet(BaseProject.java:180)
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.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:48)
at
org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:125)
at
org.jboss.weld.proxies.Project$-1946286523$Proxy$_$$_WeldClientProxy.installFacet(Project$-1946286523$Proxy$_$$_WeldClientProxy.java)
at
org.jboss.forge.shell.project.FacetInstallationHandler.performInstallation(FacetInstallationHandler.java:121)
at
org.jboss.forge.shell.project.FacetInstallationHandler.installDependencies(FacetInstallationHandler.java:175)
at
org.jboss.forge.shell.project.FacetInstallationHandler.performInstallation(FacetInstallationHandler.java:116)
at
org.jboss.forge.shell.project.FacetInstallationHandler.install(FacetInstallationHandler.java:97)
at
org.jboss.forge.shell.project.FacetInstallationHandler.installRequest(FacetInstallationHandler.java:75)
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.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)
at
org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
at
org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)
at
org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)
at
org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:188)
at
org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:59)
at
org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:198)
at
org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:282)
at
org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:265)
at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:234)
at
org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:635)
at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:628)
at org.jboss.weld.event.EventImpl.fire(EventImpl.java:75)
at
org.jboss.forge.scaffold.plugins.ScaffoldPlugin.getScaffoldType(ScaffoldPlugin.java:335)
at
org.jboss.forge.scaffold.plugins.ScaffoldPlugin.setup(ScaffoldPlugin.java:111)
... 36 more
Caused by: java.lang.NullPointerException
at java.lang.String.contains(String.java:2124)
at
org.apache.maven.model.building.DefaultModelBuilder.containsCoordinates(DefaultModelBuilder.java:1047)
at
org.apache.maven.model.building.DefaultModelBuilder.importDependencyManagement(DefaultModelBuilder.java:948)
at
org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:403)
at
org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:374)
at
org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:365)
at
org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:232)
at
org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:141)
at
org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:102)
at
org.jboss.forge.maven.facets.MavenCoreFacetImpl.getFullProjectBuildingResult(MavenCoreFacetImpl.java:144)
... 74 more
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira