[JBoss JIRA] (FORGEPLUGINS-162) JBoss AS Addon gets NPE
by George Gastaldi (JIRA)
[ 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
10 years, 9 months
[JBoss JIRA] (FORGE-1757) JBoss AS Addon gets NPE
by Antonio Goncalves (JIRA)
Antonio Goncalves created FORGE-1757:
----------------------------------------
Summary: JBoss AS Addon gets NPE
Key: FORGE-1757
URL: https://issues.jboss.org/browse/FORGE-1757
Project: Forge
Issue Type: Bug
Components: Addon Development
Affects Versions: 2.4.1.Final
Reporter: Antonio Goncalves
Priority: Critical
Fix For: 2.x Future
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
10 years, 9 months
[JBoss JIRA] (FORGE-1450) Cannot create an enum attribute on an Entity
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-1450?page=com.atlassian.jira.plugin... ]
George Gastaldi updated FORGE-1450:
-----------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request: https://github.com/forge/core/pull/435
> Cannot create an enum attribute on an Entity
> --------------------------------------------
>
> Key: FORGE-1450
> URL: https://issues.jboss.org/browse/FORGE-1450
> Project: Forge
> Issue Type: Sub-task
> Components: UI - Shell
> Affects Versions: 2.0.0.CR2
> Reporter: Antonio Goncalves
> Priority: Critical
> Fix For: 2.x Future
>
>
> I've created a {{Language}} enum (with {{java-new-enum}}) and then I want my entity {{Book}} to have an attribute of type {{Language}}. In Forge 1.x I would do :
> {code}
> field custom --named language --type org.javaone.javaee7.model.Language.java ;
> {code}
> There is no such {{custom}} attribute in Forge 2.x and the following doesn't work :
> {code}
> jpa-new-field --named language --typeName org.javaone.javaee7.model.Language.java ;
> {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
10 years, 9 months
[JBoss JIRA] (FORGE-1450) Cannot create an enum attribute on an Entity
by Robert Balent (JIRA)
[ https://issues.jboss.org/browse/FORGE-1450?page=com.atlassian.jira.plugin... ]
Robert Balent commented on FORGE-1450:
--------------------------------------
I've created pull request for this issue. I'll be glad for any feedback.
https://github.com/forge/core/pull/435
> Cannot create an enum attribute on an Entity
> --------------------------------------------
>
> Key: FORGE-1450
> URL: https://issues.jboss.org/browse/FORGE-1450
> Project: Forge
> Issue Type: Sub-task
> Components: UI - Shell
> Affects Versions: 2.0.0.CR2
> Reporter: Antonio Goncalves
> Priority: Critical
> Fix For: 2.x Future
>
>
> I've created a {{Language}} enum (with {{java-new-enum}}) and then I want my entity {{Book}} to have an attribute of type {{Language}}. In Forge 1.x I would do :
> {code}
> field custom --named language --type org.javaone.javaee7.model.Language.java ;
> {code}
> There is no such {{custom}} attribute in Forge 2.x and the following doesn't work :
> {code}
> jpa-new-field --named language --typeName org.javaone.javaee7.model.Language.java ;
> {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
10 years, 9 months