[JBoss JIRA] (FORGE-2113) command-list throws java.lang.IllegalStateException: A project is required in the current context
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-2113?page=com.atlassian.jira.plugin... ]
George Gastaldi closed FORGE-2113.
----------------------------------
Assignee: George Gastaldi (was: Vineet Reynolds)
Resolution: Done
> command-list throws java.lang.IllegalStateException: A project is required in the current context
> -------------------------------------------------------------------------------------------------
>
> Key: FORGE-2113
> URL: https://issues.jboss.org/browse/FORGE-2113
> Project: Forge
> Issue Type: Bug
> Components: UI - Shell
> Affects Versions: 2.12.1.Final
> Reporter: George Gastaldi
> Assignee: George Gastaldi
> Priority: Critical
> Fix For: 2.12.2.Final
>
>
> When {{command-list}} is executed outside the context of a project, the following exception occurs:
> {code}
> 12:11:27,478 SEVERE [org.jboss.forge.addon.shell.aesh.CommandAdapter] (AeshProcess: 5) A project is required in the current context: java.lang.IllegalStateException: A project is required in the current context
> at org.jboss.forge.addon.projects.ui.AbstractProjectCommand.getSelectedProject(AbstractProjectCommand.java:78)
> at org.jboss.forge.addon.javaee.faces.ui.AbstractFacesCommand.getPrerequisiteCommands(AbstractFacesCommand.java:33)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_11]
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_11]
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_11]
> at java.lang.reflect.Method.invoke(Method.java:483) [rt.jar:1.8.0_11]
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87) [furnace-proxy-2.12.1.Final.jar:2.12.1.Final]
> at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42) [furnace-api-2.12.1.Final.jar:2.12.1.Final]
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103) [furnace-proxy-2.12.1.Final.jar:2.12.1.Final]
> at org.jboss.forge.addon.javaee.faces.ui.FacesNewConverterCommand_$$_javassist_0cb051cf-5be2-4160-aa4b-42f021e5f897.getPrerequisiteCommands(FacesNewConverterCommand_$$_javassist_0cb051cf-5be2-4160-aa4b-42f021e5f897.java)
> at org.jboss.forge.addon.ui.impl.command.PrerequisiteCommandTransformer.transform(PrerequisiteCommandTransformer.java:42) [ui-impl-2.12.1.Final.jar:2.12.1.Final]
> at sun.reflect.GeneratedMethodAccessor86.invoke(Unknown Source) [:1.8.0_11]
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_11]
> at java.lang.reflect.Method.invoke(Method.java:483) [rt.jar:1.8.0_11]
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87) [furnace-proxy-2.12.1.Final.jar:2.12.1.Final]
> at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42) [furnace-api-2.12.1.Final.jar:2.12.1.Final]
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103) [furnace-proxy-2.12.1.Final.jar:2.12.1.Final]
> at org.jboss.forge.addon.ui.impl.command.PrerequisiteCommandTransformer_$$_javassist_bdefa2fc-c865-44b3-8d5f-3b6ab6378106.transform(PrerequisiteCommandTransformer_$$_javassist_bdefa2fc-c865-44b3-8d5f-3b6ab6378106.java) [ui-impl-2.12.1.Final.jar:2.12.1.Final]
> at org.jboss.forge.addon.ui.impl.controller.CommandControllerFactoryImpl.transform(CommandControllerFactoryImpl.java:91) [ui-impl-2.12.1.Final.jar:2.12.1.Final]
> at org.jboss.forge.addon.ui.impl.controller.CommandControllerFactoryImpl.createController(CommandControllerFactoryImpl.java:52) [ui-impl-2.12.1.Final.jar:2.12.1.Final]
> at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source) [:1.8.0_11]
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_11]
> at java.lang.reflect.Method.invoke(Method.java:483) [rt.jar:1.8.0_11]
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87) [furnace-proxy-2.12.1.Final.jar:2.12.1.Final]
> at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42) [furnace-api-2.12.1.Final.jar:2.12.1.Final]
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103) [furnace-proxy-2.12.1.Final.jar:2.12.1.Final]
> at org.jboss.forge.addon.ui.controller.CommandControllerFactory_$$_javassist_8558b844-8fda-4ec8-a94b-1c3a5498f2f6.createController(CommandControllerFactory_$$_javassist_8558b844-8fda-4ec8-a94b-1c3a5498f2f6.java) [ui-api-2.12.1.Final.jar:2.12.1.Final]
> at org.jboss.forge.addon.shell.command.CommandListCommand.getCommandController(CommandListCommand.java:101) [shell-impl-2.12.1.Final.jar:2.12.1.Final]
> at org.jboss.forge.addon.shell.command.CommandListCommand.execute(CommandListCommand.java:78) [shell-impl-2.12.1.Final.jar:2.12.1.Final]
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_11]
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_11]
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_11]
> at java.lang.reflect.Method.invoke(Method.java:483) [rt.jar:1.8.0_11]
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87) [furnace-proxy-2.12.1.Final.jar:2.12.1.Final]
> at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42) [furnace-api-2.12.1.Final.jar:2.12.1.Final]
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103) [furnace-proxy-2.12.1.Final.jar:2.12.1.Final]
> at org.jboss.forge.addon.shell.ui.AbstractShellCommand_$$_javassist_f3be7005-5838-48f8-bc1f-0fcdcf74451f.execute(AbstractShellCommand_$$_javassist_f3be7005-5838-48f8-bc1f-0fcdcf74451f.java) [shell-api-2.12.1.Final.jar:2.12.1.Final]
> at org.jboss.forge.addon.ui.impl.controller.SingleCommandControllerImpl.execute(SingleCommandControllerImpl.java:90) [ui-impl-2.12.1.Final.jar:2.12.1.Final]
> at org.jboss.forge.addon.shell.aesh.CommandAdapter.execute(CommandAdapter.java:74) [shell-impl-2.12.1.Final.jar:2.12.1.Final]
> at org.jboss.aesh.console.AeshConsoleImpl$AeshConsoleCallbackImpl.execute(AeshConsoleImpl.java:325) [aesh-0.56.1.jar:0.56.1]
> at org.jboss.aesh.console.AeshProcess.run(AeshProcess.java:40) [aesh-0.56.1.jar:0.56.1]
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_11]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_11]
> at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_11]
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 1 month
[JBoss JIRA] (FORGE-2091) Being able to create a new Java exception
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-2091?page=com.atlassian.jira.plugin... ]
George Gastaldi updated FORGE-2091:
-----------------------------------
Status: Closed (was: Pull Request Sent)
Fix Version/s: 2.12.2.Final
(was: 2.x Future)
Resolution: Done
> Being able to create a new Java exception
> -----------------------------------------
>
> Key: FORGE-2091
> URL: https://issues.jboss.org/browse/FORGE-2091
> Project: Forge
> Issue Type: Sub-task
> Components: Parsers / File Manipulation
> Affects Versions: 2.12.1.Final
> Reporter: Antonio Goncalves
> Assignee: Antonio Goncalves
> Fix For: 2.12.2.Final
>
>
> It would be good to have a command to generate a new Java exception. A simple command such as :
> {code}
> java-new-exception --named MyException
> {code}
> Would generate :
> {code}
> public class MyException extends RuntimeException {
> public MyException() {
> super();
> }
> public MyException(String message) {
> super(message);
> }
> }
> {code}
> Another attribute would allow to extends from whatever exception we want. So something like :
> {code}
> java-new-exception --named MyException --inherits MyOtherException
> {code}
> {code}
> public class MyException extends MyOtherException {
> public MyException() {
> super();
> }
> public MyException(String message) {
> super(message);
> }
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 1 month