Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-2197

Last executed contextual command throws exceptions if NetBeans current selection is now empty

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • None
    • UI - NetBeans
    • None

      Steps to reproduce:
      1) Create a new project.
      2) Run jpa-new-entity to completion
      3) Click in the netbeans console to de-select the current project
      4) Re-run the recent command.

      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.jpa.ui.NewEntityCommand.getPrerequisiteCommands(NewEntityCommand.java:180)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:483)
      	at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)
      	at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
      	at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)
      	at org.jboss.forge.addon.javaee.jpa.ui.NewEntityCommand_$$_javassist_73d82bc3-9364-472f-ae42-a4f721539d5a.getPrerequisiteCommands(NewEntityCommand_$$_javassist_73d82bc3-9364-472f-ae42-a4f721539d5a.java)
      	at org.jboss.forge.addon.ui.impl.command.PrerequisiteCommandTransformer.transform(PrerequisiteCommandTransformer.java:42)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:483)
      	at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)
      	at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
      	at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)
      	at org.jboss.forge.addon.ui.impl.command.PrerequisiteCommandTransformer_$$_javassist_4994e213-2fab-45ce-9075-494ac1106ed0.transform(PrerequisiteCommandTransformer_$$_javassist_4994e213-2fab-45ce-9075-494ac1106ed0.java)
      	at org.jboss.forge.addon.ui.impl.controller.CommandControllerFactoryImpl.transform(CommandControllerFactoryImpl.java:91)
      	at org.jboss.forge.addon.ui.impl.controller.CommandControllerFactoryImpl.createController(CommandControllerFactoryImpl.java:52)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:483)
      	at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)
      	at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
      	at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)
      	at org.jboss.forge.addon.ui.controller.CommandControllerFactory_$$_javassist_d560e567-a1c9-488d-befd-87b4781da840.createController(CommandControllerFactory_$$_javassist_d560e567-a1c9-488d-befd-87b4781da840.java)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:483)
      	at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback$2.call(ClassLoaderAdapterCallback.java:123)
      	at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
      	at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback.invoke(ClassLoaderAdapterCallback.java:96)
      	at org.jboss.forge.addon.ui.controller.CommandControllerFactory_$$_javassist_adf21b56-367c-4db0-88ee-0aed0f662cd5.createController(CommandControllerFactory_$$_javassist_adf21b56-367c-4db0-88ee-0aed0f662cd5.java)
      [catch] at org.jboss.forge.netbeans.ui.wizard.RunForgeWizardRunnable.run(RunForgeWizardRunnable.java:43)
      	at org.netbeans.modules.quicksearch.QuickSearchPopup.invoke(QuickSearchPopup.java:133)
      	at org.netbeans.modules.quicksearch.AbstractQuickSearchComboBar$6.run(AbstractQuickSearchComboBar.java:234)
      	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
      	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:744)
      	at java.awt.EventQueue.access$400(EventQueue.java:97)
      	at java.awt.EventQueue$3.run(EventQueue.java:697)
      	at java.awt.EventQueue$3.run(EventQueue.java:691)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
      	at java.awt.EventQueue.dispatchEvent(EventQueue.java:714)
      	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
      	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
      	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
      	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
      	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
      	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
      

              rhn-support-ggastald George Gastaldi
              lincolnthree Lincoln Baxter III (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: