[JBoss JIRA] (FORGEPLUGINS-162) JBoss AS Addon gets NPE
by Jérémie Lagarde (JIRA)
[ https://issues.jboss.org/browse/FORGEPLUGINS-162?page=com.atlassian.jira.... ]
Jérémie Lagarde commented on FORGEPLUGINS-162:
----------------------------------------------
We can reproduce this if we execute the command and there is no project.
> JBoss AS Addon gets NPE
> -----------------------
>
> Key: FORGEPLUGINS-162
> URL: https://issues.jboss.org/browse/FORGEPLUGINS-162
> Project: Forge Plugins/Addons
> Issue Type: Bug
> Components: JBoss AS Plugin
> Reporter: Antonio Goncalves
> Assignee: Jérémie Lagarde
> 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 was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 4 months
[JBoss JIRA] (FORGEPLUGINS-162) JBoss AS Addon gets NPE
by Jérémie Lagarde (JIRA)
[ https://issues.jboss.org/browse/FORGEPLUGINS-162?page=com.atlassian.jira.... ]
Jérémie Lagarde reassigned FORGEPLUGINS-162:
--------------------------------------------
Assignee: Jérémie Lagarde
> JBoss AS Addon gets NPE
> -----------------------
>
> Key: FORGEPLUGINS-162
> URL: https://issues.jboss.org/browse/FORGEPLUGINS-162
> Project: Forge Plugins/Addons
> Issue Type: Bug
> Components: JBoss AS Plugin
> Reporter: Antonio Goncalves
> Assignee: Jérémie Lagarde
> 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 was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 4 months
[JBoss JIRA] (FORGE-2220) IntelliJ IDEA plugin: UX issues
by Adam Wyłuda (JIRA)
[ https://issues.jboss.org/browse/FORGE-2220?page=com.atlassian.jira.plugin... ]
Adam Wyłuda reassigned FORGE-2220:
----------------------------------
Assignee: Adam Wyłuda
> IntelliJ IDEA plugin: UX issues
> -------------------------------
>
> Key: FORGE-2220
> URL: https://issues.jboss.org/browse/FORGE-2220
> Project: Forge
> Issue Type: Bug
> Components: UI - IntelliJ IDEA
> Reporter: Vaclav Tunka
> Assignee: Adam Wyłuda
>
> When you use latest forge in latest IDEA, there are bad focuses on forms. For example, when I create Enum using Forge, the focus is not on Enum's name, but on some other field. Also if I hit enter to create the Enum, the default action is to cancel the form. So I need to shift the focus to Create button manualy using tab or mouse and then hit Space, as Enter is always bound to Cancel button. Could you please have a look at other dialogs as well and fix the default focus?
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 4 months
[JBoss JIRA] (FORGE-2223) Unable to create xhtml file
by Michael Schwartz (JIRA)
[ https://issues.jboss.org/browse/FORGE-2223?page=com.atlassian.jira.plugin... ]
Michael Schwartz updated FORGE-2223:
------------------------------------
Description:
When creating a file with extension ".xhtml" with the following code the returned XMLResource is null. However creating the same file with extension "xml" works.
XMLResource config = resourceFactory.create(XMLResource.class, new File(project.toString() + "/src/main/resources/" + filename));
imho the create() method should produce an exception containing the cause of the error instead of returning null, it would simplify bugfixing.
Furthermore the code getParent().mkdirs(); (2 occurences) in org.jboss.forge.addon.resource.AbstractFileResource may (and do) produce NullPointerExceptions.
Is there any suggestion to get the base resource directory via code instead of hardcoding it to "project.toString() + "/src/main/resources"?
thanks and regards from austria, Mike
was:
When creating a file with extension ".xhtml" with the following code the returned XMLResource is null. However creating the same file with extension "xml" works.
XMLResource config = resourceFactory.create(XMLResource.class, new File(project.toString() + "/src/main/resources/" + filename));
imho the create() method should produce an exception containing the cause of the error instead of doing nothing, it would simplify bugfixing.
Furthermore the code getParent().mkdirs(); (2 occurences) in org.jboss.forge.addon.resource.AbstractFileResource may (and do) produce NullPointerExceptions.
Is there any suggestion to get the base resource directory via code instead of hardcoding it to "project.toString() + "/src/main/resources"?
thanks and regards from austria, Mike
> Unable to create xhtml file
> ---------------------------
>
> Key: FORGE-2223
> URL: https://issues.jboss.org/browse/FORGE-2223
> Project: Forge
> Issue Type: Bug
> Components: Addon Development
> Affects Versions: 2.13.0.Final
> Reporter: Michael Schwartz
>
> When creating a file with extension ".xhtml" with the following code the returned XMLResource is null. However creating the same file with extension "xml" works.
> XMLResource config = resourceFactory.create(XMLResource.class, new File(project.toString() + "/src/main/resources/" + filename));
> imho the create() method should produce an exception containing the cause of the error instead of returning null, it would simplify bugfixing.
> Furthermore the code getParent().mkdirs(); (2 occurences) in org.jboss.forge.addon.resource.AbstractFileResource may (and do) produce NullPointerExceptions.
> Is there any suggestion to get the base resource directory via code instead of hardcoding it to "project.toString() + "/src/main/resources"?
> thanks and regards from austria, Mike
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 4 months
[JBoss JIRA] (FORGE-2223) Unable to create xhtml file
by Michael Schwartz (JIRA)
Michael Schwartz created FORGE-2223:
---------------------------------------
Summary: Unable to create xhtml file
Key: FORGE-2223
URL: https://issues.jboss.org/browse/FORGE-2223
Project: Forge
Issue Type: Bug
Components: Addon Development
Affects Versions: 2.13.0.Final
Reporter: Michael Schwartz
When creating a file with extension ".xhtml" with the following code the returned XMLResource is null. However creating the same file with extension "xml" works.
XMLResource config = resourceFactory.create(XMLResource.class, new File(project.toString() + "/src/main/resources/" + filename));
imho the create() method should produce an exception containing the cause of the error instead of doing nothing, it would simplify bugfixing.
Furthermore the code getParent().mkdirs(); (2 occurences) in org.jboss.forge.addon.resource.AbstractFileResource may (and do) produce NullPointerExceptions.
Is there any suggestion to get the base resource directory via code instead of hardcoding it to "project.toString() + "/src/main/resources"?
thanks and regards from austria, Mike
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 4 months
[JBoss JIRA] (FORGE-2221) No indication Forge is loading in console
by Vaclav Tunka (JIRA)
[ https://issues.jboss.org/browse/FORGE-2221?page=com.atlassian.jira.plugin... ]
Vaclav Tunka updated FORGE-2221:
--------------------------------
Description: When I use latest forge version, there is no indication, that Forge is loading in the CLI. There could be some semi-graphics, that would indicate Forge is loading. Like rotating /, etc. (was: When I use latest forge version, there is no indication, that Forge is loading in the CLI. There could be some semi-graphics, that would indicate Forge is loading.)
> No indication Forge is loading in console
> -----------------------------------------
>
> Key: FORGE-2221
> URL: https://issues.jboss.org/browse/FORGE-2221
> Project: Forge
> Issue Type: Bug
> Reporter: Vaclav Tunka
>
> When I use latest forge version, there is no indication, that Forge is loading in the CLI. There could be some semi-graphics, that would indicate Forge is loading. Like rotating /, etc.
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 4 months
[JBoss JIRA] (FORGE-2221) No indication Forge is loading in console
by Vaclav Tunka (JIRA)
Vaclav Tunka created FORGE-2221:
-----------------------------------
Summary: No indication Forge is loading in console
Key: FORGE-2221
URL: https://issues.jboss.org/browse/FORGE-2221
Project: Forge
Issue Type: Bug
Reporter: Vaclav Tunka
When I use latest forge version, there is no indication, that Forge is loading in the CLI. There could be some semi-graphics, that would indicate Forge is loading.
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 4 months
[JBoss JIRA] (FORGE-2220) IntelliJ IDEA plugin: UX issues
by Vaclav Tunka (JIRA)
[ https://issues.jboss.org/browse/FORGE-2220?page=com.atlassian.jira.plugin... ]
Vaclav Tunka commented on FORGE-2220:
-------------------------------------
This bug was reported on a Forge lab with Koen Aers, who indicated it's a bug.
> IntelliJ IDEA plugin: UX issues
> -------------------------------
>
> Key: FORGE-2220
> URL: https://issues.jboss.org/browse/FORGE-2220
> Project: Forge
> Issue Type: Bug
> Components: UI - IntelliJ IDEA
> Reporter: Vaclav Tunka
>
> When you use latest forge in latest IDEA, there are bad focuses on forms. For example, when I create Enum using Forge, the focus is not on Enum's name, but on some other field. Also if I hit enter to create the Enum, the default action is to cancel the form. So I need to shift the focus to Create button manualy using tab or mouse and then hit Space, as Enter is always bound to Cancel button. Could you please have a look at other dialogs as well and fix the default focus?
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 4 months
[JBoss JIRA] (FORGE-2220) IntelliJ IDEA plugin: UX issues
by Vaclav Tunka (JIRA)
[ https://issues.jboss.org/browse/FORGE-2220?page=com.atlassian.jira.plugin... ]
Vaclav Tunka updated FORGE-2220:
--------------------------------
Summary: IntelliJ IDEA plugin: UX issues (was: IntelliJIdea plugin: UX issues)
> IntelliJ IDEA plugin: UX issues
> -------------------------------
>
> Key: FORGE-2220
> URL: https://issues.jboss.org/browse/FORGE-2220
> Project: Forge
> Issue Type: Bug
> Components: UI - IntelliJ IDEA
> Reporter: Vaclav Tunka
>
> When you use latest forge in latest IDEA, there are bad focuses on forms. For example, when I create Enum using Forge, the focus is not on Enum's name, but on some other field. Also if I hit enter to create the Enum, the default action is to cancel the form. So I need to shift the focus to Create button manualy using tab or mouse and then hit Space, as Enter is always bound to Cancel button. Could you please have a look at other dialogs as well and fix the default focus?
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 4 months