[
https://issues.jboss.org/browse/FORGEPLUGINS-162?page=com.atlassian.jira....
]
George Gastaldi moved FORGE-1757 to FORGEPLUGINS-162:
-----------------------------------------------------
Project: Forge Plugins (was: Forge)
Key: FORGEPLUGINS-162 (was: FORGE-1757)
Affects Version/s: (was: 2.4.1.Final)
Component/s: JBoss AS Plugin
(was: Addon Development)
Fix Version/s: (was: 2.x Future)
JBoss AS Addon gets NPE
-----------------------
Key: FORGEPLUGINS-162
URL:
https://issues.jboss.org/browse/FORGEPLUGINS-162
Project: Forge Plugins
Issue Type: Bug
Components: JBoss AS Plugin
Reporter: Antonio Goncalves
Priority: Critical
I've installed the latest version of Forge (2.4.2-SNAPSHOT) and JBoss AS Addon :
{code}
[demo]$ addon-list
Currently installed addons:
...
org.jboss.forge.addon:as,2.0.0-SNAPSHOT
org.jboss.forge.addon:as-jboss-as7,2.0.0-SNAPSHOT
org.jboss.forge.addon:as-jboss-wf8,2.0.0-SNAPSHOT
org.jboss.forge.addon:as-spi,2.0.0-SNAPSHOT
{code}
Things work kind of ok, I manage to start JBoss, deploy app, but once in a while (I
don't know how to reproduce it) I get a NPE on the logs, and then, all the {{as}}
commands disappear (not TAB completion), and that's the end of the add-on. Even
restarting Forge doesn't help. I need to remove and re-install the addon.
{code}
19:24:01,527 SEVERE [org.jboss.forge.addon.ui.impl.command.CommandFactoryImpl] (Aesh
Process Loop 2020314661) Error while checking if command
org.jboss.forge.addon.as.ui.ASUndeployWizardImpl@4d75c021 isEnabled:
java.lang.NullPointerException
at
org.jboss.forge.addon.as.ui.AbstractASWizardImpl.getSelectedProvider(AbstractASWizardImpl.java:83)
at
org.jboss.forge.addon.as.ui.AbstractASWizardImpl.isEnabled(AbstractASWizardImpl.java:61)
at sun.reflect.GeneratedMethodAccessor238.invoke(Unknown Source) [:1.7.0_45]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[rt.jar:1.7.0_45]
at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_45]
at
org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:59)
[furnace-proxy-2.4.2-SNAPSHOT.jar:2.4.2-SNAPSHOT]
at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:34)
[furnace-api-2.4.2-SNAPSHOT.jar:2.4.2-SNAPSHOT]
at
org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:75)
[furnace-proxy-2.4.2-SNAPSHOT.jar:2.4.2-SNAPSHOT]
at
org.jboss.forge.addon.as.ui.ASUndeployWizardImpl_$$_javassist_edd91fc8-6604-4157-bd0e-1803e7ea98d4.isEnabled(ASUndeployWizardImpl_$$_javassist_edd91fc8-6604-4157-bd0e-1803e7ea98d4.java)
at org.jboss.forge.addon.ui.util.Commands.isEnabled(Commands.java:54)
[ui-api-2.4.2-SNAPSHOT.jar:2.4.2-SNAPSHOT]
at
org.jboss.forge.addon.ui.impl.command.CommandFactoryImpl.getEnabledCommandNames(CommandFactoryImpl.java:77)
[ui-impl-2.4.2-SNAPSHOT.jar:2.4.2-SNAPSHOT]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_45]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[rt.jar:1.7.0_45]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[rt.jar:1.7.0_45]
at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_45]
at
org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:59)
[furnace-proxy-2.4.2-SNAPSHOT.jar:2.4.2-SNAPSHOT]
at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:34)
[furnace-api-2.4.2-SNAPSHOT.jar:2.4.2-SNAPSHOT]
at
org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:75)
[furnace-proxy-2.4.2-SNAPSHOT.jar:2.4.2-SNAPSHOT]
at
org.jboss.forge.addon.ui.impl.command.CommandFactoryImpl_$$_javassist_2cbdd21c-7325-462b-9a45-1a35fe865a17.getEnabledCommandNames(CommandFactoryImpl_$$_javassist_2cbdd21c-7325-462b-9a45-1a35fe865a17.java)
[ui-impl-2.4.2-SNAPSHOT.jar:2.4.2-SNAPSHOT]
at
org.jboss.forge.addon.shell.aesh.ForgeCommandRegistry.getForgeCommandNames(ForgeCommandRegistry.java:171)
at
org.jboss.forge.addon.shell.aesh.ForgeCommandRegistry.getAllCommandNames(ForgeCommandRegistry.java:162)
at org.jboss.aesh.console.AeshConsoleImpl.completeCommandName(AeshConsoleImpl.java:180)
at org.jboss.aesh.console.AeshConsoleImpl.access$000(AeshConsoleImpl.java:48)
at
org.jboss.aesh.console.AeshConsoleImpl$AeshCompletion.complete(AeshConsoleImpl.java:227)
at
org.jboss.aesh.console.AeshCompletionHandler.complete(AeshCompletionHandler.java:125)
at org.jboss.aesh.console.AeshInputProcessor.complete(AeshInputProcessor.java:363)
at
org.jboss.aesh.console.AeshInputProcessor.parseOperation(AeshInputProcessor.java:148)
at org.jboss.aesh.console.Console.processInternalOperation(Console.java:592)
at org.jboss.aesh.console.Console.execute(Console.java:582)
at org.jboss.aesh.console.Console.access$700(Console.java:60)
at org.jboss.aesh.console.Console$6.run(Console.java:499)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[rt.jar:1.7.0_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[rt.jar:1.7.0_45]
at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]
{code}
--
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