java.lang.NoSuchMethodError: org.osgi.framework.Bundle.getSy
vdichev Jul 12, 2004 5:22 AMHi there,
JBoss IDE Version: 1.2.430
Eclipse SDK Version: 3.0M7
JBoss Version: 3.2.5
OS: Debian GNU/Linux testing
JDK Version: Sun 1.4.2_04-b05
Steps to reproduce the problem: In the Packaging configurations window, when I try to add a file to an archive ("Add File" in context menu) and press on the "Project File..." button, the following message appears "An error has occurred. See error log for more details". The log file contains the exception attached at the end of the message.
The text field for File: is not editable, so I can't work around the problem here. It works if I either edit the packaging-build.xml by hand or use the "External File..." option though. The option "Add Folder" for the archive works too.
OK, this must be a compatibility issue between the JBoss IDE and Eclipse because org.jboss.ide.eclipse.ui.UIPlugin calls getDefault().getBundle().getSymbolicName() and none of the classes/interfaces which UIPlugin extends/implements contains this method. So if I upgrade Eclipse or downgrade JBoss IDE to the proper version, it should work.
The main question then should be: how do I know which version of JBoss IDE works with which Eclipse version? Is there any version dependency (I couldn't find any)? Could we have some version dependency file somewhere (even if it's not used by the installer but is just used as metadata for the user), or at least an automatically generated file showing for which Eclipse platform the JBoss IDE has been built? It would be hard to tell whether future versions of Eclipse would work with the current JBoss IDE, I know, so it would be hard to restrict the Eclipse version dependency from above.
Exception stack trace:
--------------------------------
java.lang.NoSuchMethodError: org.osgi.framework.Bundle.getSymbolicName()Ljava/lang/String;
at org.jboss.ide.eclipse.ui.UIPlugin.getUniqueIdentifier(UIPlugin.java:59)
at org.jboss.ide.eclipse.ui.dialogs.FileSelectionDialog$FileResourceValidator.validate(FileSelectionDialog.java:78)
at org.eclipse.ui.dialogs.ElementTreeSelectionDialog.updateOKStatus(ElementTreeSelectionDialog.java:157)
at org.eclipse.ui.dialogs.ElementTreeSelectionDialog$2.selectionChanged(ElementTreeSelectionDialog.java:264)
at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:159)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:819)
at org.eclipse.core.runtime.Platform.run(Platform.java:493)
at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:157)
at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:1310)
at org.eclipse.jface.viewers.StructuredViewer.setSelection(StructuredViewer.java:1033)
at org.eclipse.ui.dialogs.ElementTreeSelectionDialog$1.run(ElementTreeSelectionDialog.java:215)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:84)
at org.eclipse.ui.dialogs.ElementTreeSelectionDialog.create(ElementTreeSelectionDialog.java:212)
at org.eclipse.jface.window.Window.open(Window.java:616)
at org.eclipse.ui.dialogs.ElementTreeSelectionDialog.open(ElementTreeSelectionDialog.java:185)
at org.jboss.ide.eclipse.packaging.ui.dialogs.FileEditDialog.addSelectLocal(FileEditDialog.java:237)
at org.jboss.ide.eclipse.packaging.ui.dialogs.FileEditDialog.access$0(FileEditDialog.java:223)
at org.jboss.ide.eclipse.packaging.ui.dialogs.FileEditDialog$1.widgetSelected(FileEditDialog.java:88)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:956)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1871)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1649)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:647)
at org.eclipse.jface.window.Window.open(Window.java:627)
at org.jboss.ide.eclipse.packaging.ui.ConfigurationViewer.doAddFile(ConfigurationViewer.java:279)
at org.jboss.ide.eclipse.packaging.ui.ConfigurationViewer.access$2(ConfigurationViewer.java:274)
at org.jboss.ide.eclipse.packaging.ui.ConfigurationViewer$4.run(ConfigurationViewer.java:206)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:881)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:536)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:420)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:956)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1871)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1649)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:647)
at org.eclipse.jface.window.Window.open(Window.java:627)
at org.eclipse.ui.dialogs.PropertyDialogAction.run(PropertyDialogAction.java:164)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:881)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:536)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:420)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:956)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1871)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1649)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1550)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1526)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:265)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:139)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:47)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:257)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:104)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:279)
at org.eclipse.core.launcher.Main.run(Main.java:742)
at org.eclipse.core.launcher.Main.main(Main.java:581)
--------------------------------
I couldn't find anything related to "NoSuchMethodError" in the FAQ nor in the forum.
Regards,
Vassil