Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » BundleException
BundleException [message #178258] Mon, 12 January 2004 00:22 Go to next message
Eclipse UserFriend
Originally posted by: dcorbin.machturtle.com

I have a plugin I'm trying to package. Under 2.1.x, it seems to work OK.
Under 3.0, I get the exception and stack trace shown below. I'd really
appreciate some pointers on what I've messed up...

David

!ENTRY org.eclipse.core.runtime 4 1 Jan 11, 2004 19:11:08.436
!MESSAGE Plug-in net.sourceforge.tde.jdt.ui was unable to load class
net.sourceforge.tde.jdt.properties.JdtAutoTestPropertyPage.
!STACK 0
org.osgi.framework.BundleException: The bundle could not be resolved.
Reason: probably another version has been chosen
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:445)
at
org.eclipse.osgi.framework.internal.core.Bundle.start(Bundle .java:328)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:133)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:125)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:114)
at
org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugi n.java:160)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:84)
at
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:157)
at
org.eclipse.ui.internal.dialogs.RegistryPageContributor.crea tePage(RegistryPageContributor.java:87)
at
org.eclipse.ui.internal.dialogs.PropertyPageNode.createPage( PropertyPageNode.java:51)
at
org.eclipse.jface.preference.PreferenceDialog.showPage(Prefe renceDialog.java:1061)
at
org.eclipse.jface.preference.PreferenceDialog$9.selectionCha nged(PreferenceDialog.java:574)
at
org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredV iewer.java:431)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:813)
at org.eclipse.core.runtime.Platform.run(Platform.java:457)
at
org.eclipse.jface.viewers.StructuredViewer.firePostSelection Changed(StructuredViewer.java:429)
at
org.eclipse.jface.viewers.StructuredViewer.handlePostSelect( StructuredViewer.java:680)
at
org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected( StructuredViewer.java:698)
at
org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(O penStrategy.java:198)
at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.ja va:193)
at org.eclipse.jface.util.OpenStrategy$3.run(OpenStrategy.java: 334)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:102)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:1822)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :1628)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:586 )
at org.eclipse.jface.window.Window.open(Window.java:566)
at
org.eclipse.ui.dialogs.PropertyDialogAction.run(PropertyDial ogAction.java:164)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:842 )
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:509)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:461)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:408)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :82)

<snip>
Re: BundleException [message #178293 is a reply to message #178258] Mon, 12 January 2004 02:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jeff_mcaffer.ca.ibm.com

David,

First an apology. The diagnostic reporting is not yet up to scratch so the
messages are not particularly helpful. Looking at this one it seems that
the framework is trying to activate/start your plugin and some class could
not be loaded. Try running this under the debugger and catching
ClassNotFoundException right around the time you are executing this code.
Of, use a conditional breakpoint in BundleHost.startWorker() (conditional on
the bundle/plugin being started is yours) and see where it is failing.

Jeff

"David Corbin" <dcorbin@machturtle.com> wrote in message
news:btspag$jt3$1@eclipse.org...
> I have a plugin I'm trying to package. Under 2.1.x, it seems to work OK.
> Under 3.0, I get the exception and stack trace shown below. I'd really
> appreciate some pointers on what I've messed up...
>
> David
>
> !ENTRY org.eclipse.core.runtime 4 1 Jan 11, 2004 19:11:08.436
> !MESSAGE Plug-in net.sourceforge.tde.jdt.ui was unable to load class
> net.sourceforge.tde.jdt.properties.JdtAutoTestPropertyPage.
> !STACK 0
> org.osgi.framework.BundleException: The bundle could not be resolved.
> Reason: probably another version has been chosen
> at
>
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.j
ava:445)
> at
> org.eclipse.osgi.framework.internal.core.Bundle.start(Bundle .java:328)
> at
>
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
nsion(ConfigurationElement.java:133)
> at
>
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
nsion(ConfigurationElement.java:125)
> at
>
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
nsion(ConfigurationElement.java:114)
> at
> org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugi n.java:160)
> at
org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:84)
> at
>
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java
:157)
> at
>
org.eclipse.ui.internal.dialogs.RegistryPageContributor.crea tePage(RegistryP
ageContributor.java:87)
> at
>
org.eclipse.ui.internal.dialogs.PropertyPageNode.createPage( PropertyPageNode
..java:51)
> at
>
org.eclipse.jface.preference.PreferenceDialog.showPage(Prefe renceDialog.java
:1061)
> at
>
org.eclipse.jface.preference.PreferenceDialog$9.selectionCha nged(PreferenceD
ialog.java:574)
> at
>
org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredV iewer.java:431)
> at
>
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java
:813)
> at org.eclipse.core.runtime.Platform.run(Platform.java:457)
> at
>
org.eclipse.jface.viewers.StructuredViewer.firePostSelection Changed(Structur
edViewer.java:429)
> at
>
org.eclipse.jface.viewers.StructuredViewer.handlePostSelect( StructuredViewer
..java:680)
> at
>
org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected( StructuredViewer
..java:698)
> at
>
org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(O penStrategy.java
:198)
> at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.ja va:193)
> at org.eclipse.jface.util.OpenStrategy$3.run(OpenStrategy.java: 334)
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
> at
>
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:102)
> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:1822)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :1628)
> at org.eclipse.jface.window.Window.runEventLoop(Window.java:586 )
> at org.eclipse.jface.window.Window.open(Window.java:566)
> at
>
org.eclipse.ui.dialogs.PropertyDialogAction.run(PropertyDial ogAction.java:16
4)
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:842 )
> at
>
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(Action
ContributionItem.java:509)
> at
>
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionI
tem.java:461)
> at
>
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContribu
tionItem.java:408)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :82)
>
> <snip>
Re: BundleException [message #178756 is a reply to message #178293] Mon, 12 January 2004 20:13 Go to previous messageGo to next message
David Corbin is currently offline David CorbinFriend
Messages: 54
Registered: July 2009
Member
What is the correct way to launch the Eclipse SDK under the debugger, so
that this is tested under "natural" circumstances? (i.e., using the PDE I
know things are loaded in a specialized way, and I have no problems with
that).

David

Jeff McAffer wrote:

> David,
>
> First an apology. The diagnostic reporting is not yet up to scratch so
> the
> messages are not particularly helpful. Looking at this one it seems that
> the framework is trying to activate/start your plugin and some class could
> not be loaded. Try running this under the debugger and catching
> ClassNotFoundException right around the time you are executing this code.
> Of, use a conditional breakpoint in BundleHost.startWorker() (conditional
> on
> the bundle/plugin being started is yours) and see where it is failing.
>
> Jeff
>
> "David Corbin" <dcorbin@machturtle.com> wrote in message
> news:btspag$jt3$1@eclipse.org...
>> I have a plugin I'm trying to package. Under 2.1.x, it seems to work OK.
>> Under 3.0, I get the exception and stack trace shown below. I'd really
>> appreciate some pointers on what I've messed up...
>>
>> David
>>
>> !ENTRY org.eclipse.core.runtime 4 1 Jan 11, 2004 19:11:08.436
>> !MESSAGE Plug-in net.sourceforge.tde.jdt.ui was unable to load class
>> net.sourceforge.tde.jdt.properties.JdtAutoTestPropertyPage.
>> !STACK 0
>> org.osgi.framework.BundleException: The bundle could not be resolved.
>> Reason: probably another version has been chosen
>> at
>>
>
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.j
> ava:445)
>> at
>> org.eclipse.osgi.framework.internal.core.Bundle.start(Bundle .java:328)
>> at
>>
>
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
> nsion(ConfigurationElement.java:133)
>> at
>>
>
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
> nsion(ConfigurationElement.java:125)
>> at
>>
>
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
> nsion(ConfigurationElement.java:114)
>> at
>> org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugi n.java:160)
>> at
> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:84)
>> at
>>
>
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java
> :157)
>> at
>>
>
org.eclipse.ui.internal.dialogs.RegistryPageContributor.crea tePage(RegistryP
> ageContributor.java:87)
>> at
>>
>
org.eclipse.ui.internal.dialogs.PropertyPageNode.createPage( PropertyPageNode
> .java:51)
>> at
>>
>
org.eclipse.jface.preference.PreferenceDialog.showPage(Prefe renceDialog.java
> :1061)
>> at
>>
>
org.eclipse.jface.preference.PreferenceDialog$9.selectionCha nged(PreferenceD
> ialog.java:574)
>> at
>>
>
org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredV iewer.java:431)
>> at
>>
>
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java
> :813)
>> at org.eclipse.core.runtime.Platform.run(Platform.java:457)
>> at
>>
>
org.eclipse.jface.viewers.StructuredViewer.firePostSelection Changed(Structur
> edViewer.java:429)
>> at
>>
>
org.eclipse.jface.viewers.StructuredViewer.handlePostSelect( StructuredViewer
> .java:680)
>> at
>>
>
org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected( StructuredViewer
> .java:698)
>> at
>>
>
org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(O penStrategy.java
> :198)
>> at
>> org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.ja va:193)
>> at org.eclipse.jface.util.OpenStrategy$3.run(OpenStrategy.java: 334)
>> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5) at
>>
>
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:102)
>> at
>> org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:1822)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :1628)
>> at org.eclipse.jface.window.Window.runEventLoop(Window.java:586 ) at
>> org.eclipse.jface.window.Window.open(Window.java:566) at
>>
>
org.eclipse.ui.dialogs.PropertyDialogAction.run(PropertyDial ogAction.java:16
> 4)
>> at org.eclipse.jface.action.Action.runWithEvent(Action.java:842 )
>> at
>>
>
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(Action
> ContributionItem.java:509)
>> at
>>
>
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionI
> tem.java:461)
>> at
>>
>
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContribu
> tionItem.java:408)
>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :82)
>>
>> <snip>
Re: BundleException [message #178904 is a reply to message #178756] Tue, 13 January 2004 02:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jeff_mcaffer.ca.ibm.com

Am I to understand that if you launch a runtime workbench everything works
but if you launch from the exe you get the problem you described? This is
quite strange.

You can start Eclipse under the debugger by launching as a Java Application
rahter than a runtime workbench. Just launch your given install (say M6) by
creating a JAva app launch configuraiton and putting the M6 startup.jar on
the classpath. The main class to run is org.eclipse.core.launcher.Main (the
only class in startup.jar). Add whatever command line args you like and
voila! You have to futz around with source a bit but if you have the
relevant source in your workspace the debugger typically finds it even
though it is not the source you are actually running.

If you find that it is actually a problem in eclipse (as opposed to some
configuration issue) please open a bug report for this in the Equinox -
General area. As much detail as possible would be appreciated.

Jeff


"David Corbin" <dcorbin@ieee.org> wrote in message
news:btuvb9$6s4$1@eclipse.org...
> What is the correct way to launch the Eclipse SDK under the debugger, so
> that this is tested under "natural" circumstances? (i.e., using the PDE I
> know things are loaded in a specialized way, and I have no problems with
> that).
>
> David
>
> Jeff McAffer wrote:
>
> > David,
> >
> > First an apology. The diagnostic reporting is not yet up to scratch so
> > the
> > messages are not particularly helpful. Looking at this one it seems
that
> > the framework is trying to activate/start your plugin and some class
could
> > not be loaded. Try running this under the debugger and catching
> > ClassNotFoundException right around the time you are executing this
code.
> > Of, use a conditional breakpoint in BundleHost.startWorker()
(conditional
> > on
> > the bundle/plugin being started is yours) and see where it is failing.
> >
> > Jeff
> >
> > "David Corbin" <dcorbin@machturtle.com> wrote in message
> > news:btspag$jt3$1@eclipse.org...
> >> I have a plugin I'm trying to package. Under 2.1.x, it seems to work
OK.
> >> Under 3.0, I get the exception and stack trace shown below. I'd really
> >> appreciate some pointers on what I've messed up...
> >>
> >> David
> >>
> >> !ENTRY org.eclipse.core.runtime 4 1 Jan 11, 2004 19:11:08.436
> >> !MESSAGE Plug-in net.sourceforge.tde.jdt.ui was unable to load class
> >> net.sourceforge.tde.jdt.properties.JdtAutoTestPropertyPage.
> >> !STACK 0
> >> org.osgi.framework.BundleException: The bundle could not be resolved.
> >> Reason: probably another version has been chosen
> >> at
> >>
> >
>
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.j
> > ava:445)
> >> at
> >> org.eclipse.osgi.framework.internal.core.Bundle.start(Bundle .java:328)
> >> at
> >>
> >
>
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
> > nsion(ConfigurationElement.java:133)
> >> at
> >>
> >
>
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
> > nsion(ConfigurationElement.java:125)
> >> at
> >>
> >
>
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
> > nsion(ConfigurationElement.java:114)
> >> at
> >> org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugi n.java:160)
> >> at
> > org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:84)
> >> at
> >>
> >
>
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java
> > :157)
> >> at
> >>
> >
>
org.eclipse.ui.internal.dialogs.RegistryPageContributor.crea tePage(RegistryP
> > ageContributor.java:87)
> >> at
> >>
> >
>
org.eclipse.ui.internal.dialogs.PropertyPageNode.createPage( PropertyPageNode
> > .java:51)
> >> at
> >>
> >
>
org.eclipse.jface.preference.PreferenceDialog.showPage(Prefe renceDialog.java
> > :1061)
> >> at
> >>
> >
>
org.eclipse.jface.preference.PreferenceDialog$9.selectionCha nged(PreferenceD
> > ialog.java:574)
> >> at
> >>
> >
>
org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredV iewer.java:431)
> >> at
> >>
> >
>
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java
> > :813)
> >> at org.eclipse.core.runtime.Platform.run(Platform.java:457)
> >> at
> >>
> >
>
org.eclipse.jface.viewers.StructuredViewer.firePostSelection Changed(Structur
> > edViewer.java:429)
> >> at
> >>
> >
>
org.eclipse.jface.viewers.StructuredViewer.handlePostSelect( StructuredViewer
> > .java:680)
> >> at
> >>
> >
>
org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected( StructuredViewer
> > .java:698)
> >> at
> >>
> >
>
org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(O penStrategy.java
> > :198)
> >> at
> >> org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.ja va:193)
> >> at org.eclipse.jface.util.OpenStrategy$3.run(OpenStrategy.java: 334)
> >> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
> >>
> >
>
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:102)
> >> at
> >> org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:1822)
> >> at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :1628)
> >> at org.eclipse.jface.window.Window.runEventLoop(Window.java:586 ) at
> >> org.eclipse.jface.window.Window.open(Window.java:566) at
> >>
> >
>
org.eclipse.ui.dialogs.PropertyDialogAction.run(PropertyDial ogAction.java:16
> > 4)
> >> at org.eclipse.jface.action.Action.runWithEvent(Action.java:842 )
> >> at
> >>
> >
>
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(Action
> > ContributionItem.java:509)
> >> at
> >>
> >
>
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionI
> > tem.java:461)
> >> at
> >>
> >
>
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContribu
> > tionItem.java:408)
> >> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :82)
> >>
> >> <snip>
>
Re: BundleException [message #180210 is a reply to message #178904] Thu, 15 January 2004 02:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dcorbin.machturtle.com

Jeff McAffer wrote:

> Am I to understand that if you launch a runtime workbench everything works
> but if you launch from the exe you get the problem you described? This is
> quite strange.

Yes. That's EXACTLY the problem.

>
> You can start Eclipse under the debugger by launching as a Java
> Application rahter than a runtime workbench. Just launch your given
> install (say M6) by creating a JAva app launch configuraiton and putting
> the M6 startup.jar on
> the classpath. The main class to run is org.eclipse.core.launcher.Main
> (the
> only class in startup.jar). Add whatever command line args you like and
> voila! You have to futz around with source a bit but if you have the
> relevant source in your workspace the debugger typically finds it even
> though it is not the source you are actually running.
>

Thanks.

> If you find that it is actually a problem in eclipse (as opposed to some
> configuration issue) please open a bug report for this in the Equinox -
> General area. As much detail as possible would be appreciated.

I will.

>
> Jeff
>
>
> "David Corbin" <dcorbin@ieee.org> wrote in message
> news:btuvb9$6s4$1@eclipse.org...
>> What is the correct way to launch the Eclipse SDK under the debugger, so
>> that this is tested under "natural" circumstances? (i.e., using the PDE
>> I know things are loaded in a specialized way, and I have no problems
>> with that).
>>
>> David
>>
>> Jeff McAffer wrote:
>>
>> > David,
>> >
>> > First an apology. The diagnostic reporting is not yet up to scratch so
>> > the
>> > messages are not particularly helpful. Looking at this one it seems
> that
>> > the framework is trying to activate/start your plugin and some class
> could
>> > not be loaded. Try running this under the debugger and catching
>> > ClassNotFoundException right around the time you are executing this
> code.
>> > Of, use a conditional breakpoint in BundleHost.startWorker()
> (conditional
>> > on
>> > the bundle/plugin being started is yours) and see where it is failing.
>> >
>> > Jeff
>> >
>> > "David Corbin" <dcorbin@machturtle.com> wrote in message
>> > news:btspag$jt3$1@eclipse.org...
>> >> I have a plugin I'm trying to package. Under 2.1.x, it seems to work
> OK.
>> >> Under 3.0, I get the exception and stack trace shown below. I'd
>> >> really appreciate some pointers on what I've messed up...
>> >>
>> >> David
>> >>
>> >> !ENTRY org.eclipse.core.runtime 4 1 Jan 11, 2004 19:11:08.436
>> >> !MESSAGE Plug-in net.sourceforge.tde.jdt.ui was unable to load class
>> >> net.sourceforge.tde.jdt.properties.JdtAutoTestPropertyPage.
>> >> !STACK 0
>> >> org.osgi.framework.BundleException: The bundle could not be resolved.
>> >> Reason: probably another version has been chosen
>> >> at
>> >>
>> >
>>
>
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.j
>> > ava:445)
>> >> at
>> >> org.eclipse.osgi.framework.internal.core.Bundle.start(Bundle .java:328)
>> >> at
>> >>
>> >
>>
>
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
>> > nsion(ConfigurationElement.java:133)
>> >> at
>> >>
>> >
>>
>
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
>> > nsion(ConfigurationElement.java:125)
>> >> at
>> >>
>> >
>>
>
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
>> > nsion(ConfigurationElement.java:114)
>> >> at
>> >>
org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugi n.java:160)
>> >> at
>> > org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:84)
>> >> at
>> >>
>> >
>>
>
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java
>> > :157)
>> >> at
>> >>
>> >
>>
>
org.eclipse.ui.internal.dialogs.RegistryPageContributor.crea tePage(RegistryP
>> > ageContributor.java:87)
>> >> at
>> >>
>> >
>>
>
org.eclipse.ui.internal.dialogs.PropertyPageNode.createPage( PropertyPageNode
>> > .java:51)
>> >> at
>> >>
>> >
>>
>
org.eclipse.jface.preference.PreferenceDialog.showPage(Prefe renceDialog.java
>> > :1061)
>> >> at
>> >>
>> >
>>
>
org.eclipse.jface.preference.PreferenceDialog$9.selectionCha nged(PreferenceD
>> > ialog.java:574)
>> >> at
>> >>
>> >
>>
>
org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredV iewer.java:431)
>> >> at
>> >>
>> >
>>
>
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java
>> > :813)
>> >> at org.eclipse.core.runtime.Platform.run(Platform.java:457)
>> >> at
>> >>
>> >
>>
>
org.eclipse.jface.viewers.StructuredViewer.firePostSelection Changed(Structur
>> > edViewer.java:429)
>> >> at
>> >>
>> >
>>
>
org.eclipse.jface.viewers.StructuredViewer.handlePostSelect( StructuredViewer
>> > .java:680)
>> >> at
>> >>
>> >
>>
>
org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected( StructuredViewer
>> > .java:698)
>> >> at
>> >>
>> >
>>
>
org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(O penStrategy.java
>> > :198)
>> >> at
>> >>
org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.ja va:193)
>> >> at
>> >> org.eclipse.jface.util.OpenStrategy$3.run(OpenStrategy.java: 334)
>> >> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
> at
>> >>
>> >
>>
>
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:102)
>> >> at
>> >>
org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:1822)
>> >> at
> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :1628)
>> >> at org.eclipse.jface.window.Window.runEventLoop(Window.java:586 )
>> >> at org.eclipse.jface.window.Window.open(Window.java:566) at
>> >>
>> >
>>
>
org.eclipse.ui.dialogs.PropertyDialogAction.run(PropertyDial ogAction.java:16
>> > 4)
>> >> at org.eclipse.jface.action.Action.runWithEvent(Action.java:842 )
>> >> at
>> >>
>> >
>>
>
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(Action
>> > ContributionItem.java:509)
>> >> at
>> >>
>> >
>>
>
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionI
>> > tem.java:461)
>> >> at
>> >>
>> >
>>
>
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContribu
>> > tionItem.java:408)
>> >> at
>> >> org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :82)
>> >>
>> >> <snip>
>>
Re: BundleException [message #180218 is a reply to message #178904] Thu, 15 January 2004 02:30 Go to previous message
Eclipse UserFriend
Originally posted by: dcorbin.machturtle.com

When I attempt to launch Eclipse in this manner, it simply terminates
immediately. I tried to debug it, but I don't have the source to main, as
near as I can tell.

Jeff McAffer wrote:

> Am I to understand that if you launch a runtime workbench everything works
> but if you launch from the exe you get the problem you described? This is
> quite strange.
>
> You can start Eclipse under the debugger by launching as a Java
> Application rahter than a runtime workbench. Just launch your given
> install (say M6) by creating a JAva app launch configuraiton and putting
> the M6 startup.jar on
> the classpath. The main class to run is org.eclipse.core.launcher.Main
> (the
> only class in startup.jar). Add whatever command line args you like and
> voila! You have to futz around with source a bit but if you have the
> relevant source in your workspace the debugger typically finds it even
> though it is not the source you are actually running.
>
> If you find that it is actually a problem in eclipse (as opposed to some
> configuration issue) please open a bug report for this in the Equinox -
> General area. As much detail as possible would be appreciated.
>
> Jeff
>
>
> "David Corbin" <dcorbin@ieee.org> wrote in message
> news:btuvb9$6s4$1@eclipse.org...
>> What is the correct way to launch the Eclipse SDK under the debugger, so
>> that this is tested under "natural" circumstances? (i.e., using the PDE
>> I know things are loaded in a specialized way, and I have no problems
>> with that).
>>
>> David
>>
>> Jeff McAffer wrote:
>>
>> > David,
>> >
>> > First an apology. The diagnostic reporting is not yet up to scratch so
>> > the
>> > messages are not particularly helpful. Looking at this one it seems
> that
>> > the framework is trying to activate/start your plugin and some class
> could
>> > not be loaded. Try running this under the debugger and catching
>> > ClassNotFoundException right around the time you are executing this
> code.
>> > Of, use a conditional breakpoint in BundleHost.startWorker()
> (conditional
>> > on
>> > the bundle/plugin being started is yours) and see where it is failing.
>> >
>> > Jeff
>> >
>> > "David Corbin" <dcorbin@machturtle.com> wrote in message
>> > news:btspag$jt3$1@eclipse.org...
>> >> I have a plugin I'm trying to package. Under 2.1.x, it seems to work
> OK.
>> >> Under 3.0, I get the exception and stack trace shown below. I'd
>> >> really appreciate some pointers on what I've messed up...
>> >>
>> >> David
>> >>
>> >> !ENTRY org.eclipse.core.runtime 4 1 Jan 11, 2004 19:11:08.436
>> >> !MESSAGE Plug-in net.sourceforge.tde.jdt.ui was unable to load class
>> >> net.sourceforge.tde.jdt.properties.JdtAutoTestPropertyPage.
>> >> !STACK 0
>> >> org.osgi.framework.BundleException: The bundle could not be resolved.
>> >> Reason: probably another version has been chosen
>> >> at
>> >>
>> >
>>
>
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.j
>> > ava:445)
>> >> at
>> >> org.eclipse.osgi.framework.internal.core.Bundle.start(Bundle .java:328)
>> >> at
>> >>
>> >
>>
>
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
>> > nsion(ConfigurationElement.java:133)
>> >> at
>> >>
>> >
>>
>
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
>> > nsion(ConfigurationElement.java:125)
>> >> at
>> >>
>> >
>>
>
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
>> > nsion(ConfigurationElement.java:114)
>> >> at
>> >>
org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugi n.java:160)
>> >> at
>> > org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:84)
>> >> at
>> >>
>> >
>>
>
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java
>> > :157)
>> >> at
>> >>
>> >
>>
>
org.eclipse.ui.internal.dialogs.RegistryPageContributor.crea tePage(RegistryP
>> > ageContributor.java:87)
>> >> at
>> >>
>> >
>>
>
org.eclipse.ui.internal.dialogs.PropertyPageNode.createPage( PropertyPageNode
>> > .java:51)
>> >> at
>> >>
>> >
>>
>
org.eclipse.jface.preference.PreferenceDialog.showPage(Prefe renceDialog.java
>> > :1061)
>> >> at
>> >>
>> >
>>
>
org.eclipse.jface.preference.PreferenceDialog$9.selectionCha nged(PreferenceD
>> > ialog.java:574)
>> >> at
>> >>
>> >
>>
>
org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredV iewer.java:431)
>> >> at
>> >>
>> >
>>
>
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java
>> > :813)
>> >> at org.eclipse.core.runtime.Platform.run(Platform.java:457)
>> >> at
>> >>
>> >
>>
>
org.eclipse.jface.viewers.StructuredViewer.firePostSelection Changed(Structur
>> > edViewer.java:429)
>> >> at
>> >>
>> >
>>
>
org.eclipse.jface.viewers.StructuredViewer.handlePostSelect( StructuredViewer
>> > .java:680)
>> >> at
>> >>
>> >
>>
>
org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected( StructuredViewer
>> > .java:698)
>> >> at
>> >>
>> >
>>
>
org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(O penStrategy.java
>> > :198)
>> >> at
>> >>
org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.ja va:193)
>> >> at
>> >> org.eclipse.jface.util.OpenStrategy$3.run(OpenStrategy.java: 334)
>> >> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
> at
>> >>
>> >
>>
>
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:102)
>> >> at
>> >>
org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:1822)
>> >> at
> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :1628)
>> >> at org.eclipse.jface.window.Window.runEventLoop(Window.java:586 )
>> >> at org.eclipse.jface.window.Window.open(Window.java:566) at
>> >>
>> >
>>
>
org.eclipse.ui.dialogs.PropertyDialogAction.run(PropertyDial ogAction.java:16
>> > 4)
>> >> at org.eclipse.jface.action.Action.runWithEvent(Action.java:842 )
>> >> at
>> >>
>> >
>>
>
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(Action
>> > ContributionItem.java:509)
>> >> at
>> >>
>> >
>>
>
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionI
>> > tem.java:461)
>> >> at
>> >>
>> >
>>
>
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContribu
>> > tionItem.java:408)
>> >> at
>> >> org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :82)
>> >>
>> >> <snip>
>>
Previous Topic:Does Ant 1.6.0 work with JDK 1.4.2_03?
Next Topic:SWT-JFace problem with ITableLabelProvider
Goto Forum:
  


Current Time: Thu Aug 01 03:23:19 GMT 2024

Powered by FUDForum. Page generated in 0.08155 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top