-
Bug
-
Resolution: Done
-
Critical
-
2.12.1.Final
-
None
-
- Navigate to a folder without a project
- run command-list
When command-list is executed outside the context of a project, the following exception occurs:
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]