Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-26600

Cannot remove JSF capabilities from JSF project

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 4.17.0.Final
    • 4.11.0.Final
    • jsf
    • None
    • Sprint #190 Sep 2020
    • 3
    • Hide

      1. Create new Dynamic Web project
      2. Configure project -> Add JSF Capabilities
      3. Choose to add JSF 2.3, Finish dialog
      4. ASSERT: project got new web.xml and faces-config.xml and other resources
      5. Configure project -> Remove JSF Capabilities...
      6. ASSERT: JSF resources/nature is removed
      Actual result: Nothing happens and there is an error in log: Command 'org.jboss.tools.jsf.ui.project.configure.disable' failed

      Show
      1. Create new Dynamic Web project 2. Configure project -> Add JSF Capabilities 3. Choose to add JSF 2.3, Finish dialog 4. ASSERT: project got new web.xml and faces-config.xml and other resources 5. Configure project -> Remove JSF Capabilities... 6. ASSERT: JSF resources/nature is removed Actual result: Nothing happens and there is an error in log: Command 'org.jboss.tools.jsf.ui.project.configure.disable' failed

      Removing JSF capabilities introduces Command 'org.jboss.tools.jsf.ui.project.configure.disable' failed error.

      eclipse.buildId=12.11.0.GA-v20190321-1925-B4244
      java.version=11.0.2
      java.vendor=Oracle Corporation
      BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
      Framework arguments:  -product com.jboss.devstudio.core.product
      Command-line arguments:  -data file:/home/odockal/workspace_12110Ga-Staging/ -os linux -ws gtk -arch x86_64 -product com.jboss.devstudio.core.product
      
      org.eclipse.e4.ui.workbench
      Error
      Wed Mar 27 14:32:09 CET 2019
      Command 'org.jboss.tools.jsf.ui.project.configure.disable' failed
      
      org.eclipse.core.commands.ExecutionException: Error executing 'org.jboss.tools.jsf.ui.project.configure.disable': java.lang.NullPointerException
      	at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:170)
      	at org.eclipse.core.commands.Command.executeWithChecks(Command.java:497)
      	at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:490)
      	at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:213)
      	at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.executeItem(HandledContributionItem.java:438)
      	at org.eclipse.e4.ui.workbench.renderers.swt.AbstractContributionItem.handleWidgetSelection(AbstractContributionItem.java:449)
      	at org.eclipse.e4.ui.workbench.renderers.swt.AbstractContributionItem.lambda$2(AbstractContributionItem.java:475)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5783)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1411)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:5051)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4579)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1173)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1062)
      	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
      	at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:566)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
      	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:155)
      	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:661)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:597)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1476)
      	at org.eclipse.equinox.launcher.Main.main(Main.java:1449)
      Caused by: org.eclipse.e4.core.di.InjectionException: java.lang.NullPointerException
      	at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:68)
      	at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:320)
      	at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:254)
      	at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:173)
      	at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:156)
      	... 33 more
      Caused by: java.lang.NullPointerException
      	at org.jboss.tools.jsf.model.handlers.RemoveJSFNatureContribution.execute(RemoveJSFNatureContribution.java:40)
      	at org.jboss.tools.common.model.handlers.RemoveModelNatureHandler.executeHandler(RemoveModelNatureHandler.java:99)
      	at org.jboss.tools.common.meta.action.impl.XActionImpl.executeHandler(XActionImpl.java:65)
      	at org.jboss.tools.common.model.ui.action.XModelObjectAction.actionPerformed(XModelObjectAction.java:96)
      	at org.jboss.tools.common.model.ui.action.XModelObjectActionInvoker.execute(XModelObjectActionInvoker.java:36)
      	at org.jboss.tools.common.meta.action.XActionInvoker.invoke(XActionInvoker.java:53)
      	at org.jboss.tools.common.meta.action.XActionInvoker.invoke(XActionInvoker.java:40)
      	at org.jboss.tools.common.model.ui.internal.handlers.ModelResourceHandler.doRun(ModelResourceHandler.java:94)
      	at org.jboss.tools.common.model.ui.internal.handlers.ModelResourceHandler.execute(ModelResourceHandler.java:74)
      	at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:294)
      	at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:96)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      	at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
      	... 37 more
      
      
      

              jmaury@redhat.com Jeff MAURY
              odockal@redhat.com Ondrej Dockal
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: