[jbosstools-issues] [JBoss JIRA] (JBIDE-20802) jax-rs refresh triggers error in server.launchbar on kitchensink example with launchbar wtp installed

Rob Stryker (JIRA) issues at jboss.org
Wed Nov 4 01:26:00 EST 2015


    [ https://issues.jboss.org/browse/JBIDE-20802?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13125162#comment-13125162 ] 

Rob Stryker commented on JBIDE-20802:
-------------------------------------

After some investigation, it seems WTP doesn't use launch configs for these legacy module artifacts that only implement the interface and don't extend the ModuleArtifactDelegate superclass.  I've now moved to exclude these types of artifacts from the launchbar. 

> jax-rs refresh triggers error in server.launchbar on kitchensink example with launchbar wtp installed
> -----------------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-20802
>                 URL: https://issues.jboss.org/browse/JBIDE-20802
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: server
>            Reporter: Max Rydahl Andersen
>            Assignee: Rob Stryker
>            Priority: Critical
>             Fix For: 4.3.1.Final, 4.4.0.Alpha1
>
>
> Have jboss launchbar tooling installed and then : 
> use the kitchensink example (JAvaEE project).
> project shows up with blank/empty JAX-RS Web services node
> Right click and refresh the resources
> I then browse the tree and in logs I get:
> {code}
> java.lang.ClassCastException: org.jboss.tools.ws.jaxrs.ui.internal.launcher.JaxrsEndpointModuleArtifact cannot be cast to org.eclipse.wst.server.core.model.ModuleArtifactDelegate
> 	at org.jboss.tools.wtp.server.launchbar.objects.ModuleArtifactWrapper.getName(ModuleArtifactWrapper.java:36)
> 	at org.jboss.tools.wtp.server.launchbar.descriptors.ModuleArtifactLaunchDescriptor.getName(ModuleArtifactLaunchDescriptor.java:45)
> 	at org.eclipse.launchbar.core.internal.LaunchBarManager.getDescriptorId(LaunchBarManager.java:293)
> 	at org.eclipse.launchbar.core.internal.LaunchBarManager.addDescriptor(LaunchBarManager.java:301)
> 	at org.eclipse.launchbar.core.internal.LaunchBarManager.launchObjectAdded(LaunchBarManager.java:342)
> 	at org.jboss.tools.wtp.server.launchbar.ModuleObjectProvider.selectionChanged(ModuleObjectProvider.java:331)
> 	at org.eclipse.ui.internal.e4.compatibility.SelectionService.notifyListeners(SelectionService.java:237)
> 	at org.eclipse.ui.internal.e4.compatibility.SelectionService.handlePostSelectionChanged(SelectionService.java:122)
> 	at org.eclipse.ui.internal.e4.compatibility.SelectionService.access$1(SelectionService.java:112)
> 	at org.eclipse.ui.internal.e4.compatibility.SelectionService$3.selectionChanged(SelectionService.java:80)
> 	at org.eclipse.e4.ui.internal.workbench.SelectionAggregator$4.run(SelectionAggregator.java:167)
> 	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> 	at org.eclipse.e4.ui.internal.workbench.SelectionAggregator.notifyPostListeners(SelectionAggregator.java:164)
> 	at org.eclipse.e4.ui.internal.workbench.SelectionAggregator.access$8(SelectionAggregator.java:161)
> 	at org.eclipse.e4.ui.internal.workbench.SelectionAggregator$8$1.run(SelectionAggregator.java:273)
> 	at org.eclipse.e4.core.contexts.RunAndTrack.runExternalCode(RunAndTrack.java:56)
> 	at org.eclipse.e4.ui.internal.workbench.SelectionAggregator$8.changed(SelectionAggregator.java:270)
> 	at org.eclipse.e4.core.internal.contexts.TrackableComputationExt.update(TrackableComputationExt.java:114)
> 	at org.eclipse.e4.core.internal.contexts.EclipseContext.processScheduled(EclipseContext.java:341)
> 	at org.eclipse.e4.core.internal.contexts.EclipseContext.set(EclipseContext.java:356)
> 	at org.eclipse.e4.ui.internal.workbench.SelectionServiceImpl.setPostSelection(SelectionServiceImpl.java:36)
> 	at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart$3.selectionChanged(CompatibilityPart.java:132)
> 	at org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredViewer.java:877)
> 	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> 	at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:50)
> 	at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:173)
> 	at org.eclipse.jface.viewers.StructuredViewer.firePostSelectionChanged(StructuredViewer.java:874)
> 	at org.eclipse.jface.viewers.StructuredViewer.handlePostSelect(StructuredViewer.java:1243)
> 	at org.eclipse.ui.navigator.CommonViewer.handlePostSelect(CommonViewer.java:455)
> 	at org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected(StructuredViewer.java:1269)
> 	at org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(OpenStrategy.java:265)
> 	at org.eclipse.jface.util.OpenStrategy.access$5(OpenStrategy.java:259)
> 	at org.eclipse.jface.util.OpenStrategy$1$2.run(OpenStrategy.java:440)
> 	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
> 	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
> 	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4024)
> 	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3700)
> 	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1127)
> 	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
> 	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1018)
> 	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
> 	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:654)
> 	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
> 	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:598)
> 	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
> 	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:139)
> 	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
> 	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
> 	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
> 	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
> 	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
> 	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.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)
> 	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
> 	at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
> {code}
> then when I start clicking around and try working I get error dialogs popping up.
> Looks like it tries to convert things it should not try converting.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jbosstools-issues mailing list