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

java.lang.IllegalArgumentException: No enum constant java.lang.annotation.ElementType.Object;@2abe448b while opening AnnotationView on JAX-RS supported project

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 4.21.2.AM1
    • 4.25.x
    • webservices
    • None
    • Hide

      1. Create Server runtime (wildfly)
      2. checkout https://github.com/jbosstools/jbosstools-integration-tests
      3. Import project -> Import -> General -> Import existing project into workspace
      4. Import project that is here: jbosstools-integration-tests/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/restAdvanced
      5. Set proper serve runtime for the project
      6. Open java file that is in the project package org.rest.test/RestService
      7. go to First annotation `Path` on the class
      8. Open View "Annotation Properties"
      9. Assert: view is opened and java file annotations are loaded
      Actual results: mentioned error are shown and no annotations are present.

      Show
      1. Create Server runtime (wildfly) 2. checkout https://github.com/jbosstools/jbosstools-integration-tests 3. Import project -> Import -> General -> Import existing project into workspace 4. Import project that is here: jbosstools-integration-tests/tests/org.jboss.tools.ws.ui.bot.test/resources/projects/restAdvanced 5. Set proper serve runtime for the project 6. Open java file that is in the project package org.rest.test/RestService 7. go to First annotation `Path` on the class 8. Open View "Annotation Properties" 9. Assert: view is opened and java file annotations are loaded Actual results: mentioned error are shown and no annotations are present.

    Description

      I am getting mentioned error while opening Annotation View on java file with annotations in JAX-RS supported project.

      eclipse.buildId=12.21.1.AM1-v20211129-0848-B416
      java.version=11.0.13
      java.vendor=Red Hat, Inc.
      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_12211AM1-B416-J17/ -os linux -ws gtk -arch x86_64 -product com.jboss.devstudio.core.product
      
      org.eclipse.ui.workbench
      Error
      Fri Dec 03 18:36:57 CET 2021
      Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
      
      java.lang.IllegalArgumentException: No enum constant java.lang.annotation.ElementType.Object;@6beec076
      	at java.base/java.lang.Enum.valueOf(Enum.java:240)
      	at java.base/java.lang.annotation.ElementType.valueOf(ElementType.java:73)
      	at org.eclipse.jst.ws.annotations.core.AnnotationDefinition.getAnnotationTypeTargets(AnnotationDefinition.java:260)
      	at org.eclipse.jst.ws.annotations.core.AnnotationsManager.getAnnotationsForElementType(AnnotationsManager.java:418)
      	at org.eclipse.jst.ws.annotations.core.AnnotationsManager.getAllAnnotationsForElement(AnnotationsManager.java:381)
      	at org.eclipse.jst.ws.annotations.core.AnnotationsManager.getAnnotationTypes(AnnotationsManager.java:120)
      	at org.eclipse.jst.ws.internal.jaxws.ui.views.AnnotationsViewContentProvider.getElements(AnnotationsViewContentProvider.java:54)
      	at org.eclipse.jface.viewers.StructuredViewer.getRawChildren(StructuredViewer.java:947)
      	at org.eclipse.jface.viewers.ColumnViewer.getRawChildren(ColumnViewer.java:704)
      	at org.eclipse.jface.viewers.AbstractTreeViewer.getRawChildren(AbstractTreeViewer.java:1409)
      	at org.eclipse.jface.viewers.TreeViewer.getRawChildren(TreeViewer.java:350)
      	at org.eclipse.jface.viewers.StructuredViewer.getFilteredChildren(StructuredViewer.java:850)
      	at org.eclipse.jface.viewers.AbstractTreeViewer.getSortedChildren(AbstractTreeViewer.java:624)
      	at org.eclipse.jface.viewers.AbstractTreeViewer.updateChildren(AbstractTreeViewer.java:2671)
      	at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefreshStruct(AbstractTreeViewer.java:1958)
      	at org.eclipse.jface.viewers.TreeViewer.internalRefreshStruct(TreeViewer.java:684)
      	at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeViewer.java:1934)
      	at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeViewer.java:1891)
      	at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeViewer.java:1877)
      	at org.eclipse.jface.viewers.StructuredViewer.lambda$2(StructuredViewer.java:1459)
      	at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1398)
      	at org.eclipse.jface.viewers.TreeViewer.preservingSelection(TreeViewer.java:365)
      	at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1359)
      	at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1459)
      	at org.eclipse.jface.viewers.ColumnViewer.refresh(ColumnViewer.java:526)
      	at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1418)
      	at org.eclipse.jst.ws.internal.jaxws.ui.views.AnnotationsView.updateView(AnnotationsView.java:266)
      	at org.eclipse.jst.ws.internal.jaxws.ui.views.AnnotationsView.javaEditorActivated(AnnotationsView.java:389)
      	at org.eclipse.jst.ws.internal.jaxws.ui.views.AnnotationsView.annotationsViewActivated(AnnotationsView.java:403)
      	at org.eclipse.jst.ws.internal.jaxws.ui.views.AnnotationsView.partActivated(AnnotationsView.java:317)
      	at org.eclipse.ui.internal.PartService$6.run(PartService.java:145)
      	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
      	at org.eclipse.ui.internal.PartService.partActivated(PartService.java:142)
      	at org.eclipse.ui.internal.WorkbenchPage$4.run(WorkbenchPage.java:4914)
      	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
      	at org.eclipse.ui.internal.WorkbenchPage.firePartActivated(WorkbenchPage.java:4911)
      	at org.eclipse.ui.internal.WorkbenchPage$E4PartListener.partActivated(WorkbenchPage.java:220)
      	at org.eclipse.e4.ui.internal.workbench.PartServiceImpl$2.run(PartServiceImpl.java:250)
      	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
      	at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.firePartActivated(PartServiceImpl.java:247)
      	at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:771)
      	at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:680)
      	at org.eclipse.e4.ui.internal.workbench.swt.AbstractPartRenderer.activate(AbstractPartRenderer.java:97)
      	at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.lambda$4(StackRenderer.java:979)
      	at org.eclipse.swt.events.SelectionListener$1.widgetSelected(SelectionListener.java:84)
      	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:252)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5895)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1515)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1541)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1524)
      	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1303)
      	at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3248)
      	at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1882)
      	at org.eclipse.swt.custom.CTabFolder.lambda$0(CTabFolder.java:331)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5895)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1515)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:5126)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4581)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1154)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1045)
      	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:551)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:156)
      	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
      	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
      	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:659)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
      	at org.eclipse.equinox.launcher.Main.main(Main.java:1440)
      
      
      

      Attachments

        Issue Links

          Activity

            People

              stephane.bouchet Stephane Bouchet
              odockal@redhat.com Ondrej Dockal
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: