Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » problem with export of bundles when resuming an osgi application
problem with export of bundles when resuming an osgi application [message #77350] Thu, 16 November 2006 16:03 Go to next message
Werner Putschögl is currently offline Werner PutschöglFriend
Messages: 4
Registered: July 2009
Junior Member
hi all!

We are developing a server application using eclipse equinox 3.2. when =

resuming a framework state we recently had a problem starting one of the=
=

already installed bundles that used to work fine. the following exceptio=
n =

occurred:


org.osgi.framework.BundleException: The activator =

at.scch.pmp.datatypeRepository.DatatypeRepositoryPlugin for bundle =

at.scch.pmp.datatypeRepository is invalid
at =

org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActiva=
tor(AbstractBundle.java:141)
at =

org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleC=
ontextImpl.java:966)
at =

org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHo=
st.java:317)
at =

org.eclipse.osgi.framework.internal.core.AbstractBundle.resu me(AbstractB=
undle.java:329)
at =

org.eclipse.osgi.framework.internal.core.Framework.resumeBun dle(Framewor=
k.java:1037)
at =

org.eclipse.osgi.framework.internal.core.StartLevelManager.r esumeBundles=
(StartLevelManager.java:573)
at =

org.eclipse.osgi.framework.internal.core.StartLevelManager.i ncFWSL(Start=
LevelManager.java:495)
at =

org.eclipse.osgi.framework.internal.core.StartLevelManager.d oSetStartLev=
el(StartLevelManager.java:275)
at =

org.eclipse.osgi.framework.internal.core.StartLevelManager.d ispatchEvent=
(StartLevelManager.java:455)
at =

org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventMana=
ger.java:189)
at =

org.eclipse.osgi.framework.eventmgr.EventManager$EventThread .run(EventMa=
nager.java:291)
Caused by: java.lang.NullPointerException
at =

org.eclipse.osgi.framework.internal.core.BundleLoader.getLoa derProxy(Bun=
dleLoader.java:238)
at =

org.eclipse.osgi.framework.internal.core.BundleLoader.create ExportPackag=
eSource(BundleLoader.java:210)

(full stack trace and log output see below)


Obviously exporter.getExporter() returns null.

>> final PackageSource createExportPackageSource(ExportPackageDescriptio=
n =

>> export) {
>> BundleLoaderProxy exportProxy =3DgetLoaderProxy(export.getExporter(=
));


My only cure was to launch the framework clean and thus delete all store=
d =

data, which is conceivably undesired.

My question is: does anybody of you know under which circumstances this =
=

error might occur and how i might prevent it?


Thanks,

Werner










org.osgi.framework.BundleException: The activator =

at.scch.pmp.datatypeRepository.DatatypeRepositoryPlugin for bundle =

at.scch.pmp.datatypeRepository is invalid
at =

org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActiva=
tor(AbstractBundle.java:141)
at =

org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleC=
ontextImpl.java:966)
at =

org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHo=
st.java:317)
at =

org.eclipse.osgi.framework.internal.core.AbstractBundle.resu me(AbstractB=
undle.java:329)
at =

org.eclipse.osgi.framework.internal.core.Framework.resumeBun dle(Framewor=
k.java:1037)
at =

org.eclipse.osgi.framework.internal.core.StartLevelManager.r esumeBundles=
(StartLevelManager.java:573)
at =

org.eclipse.osgi.framework.internal.core.StartLevelManager.i ncFWSL(Start=
LevelManager.java:495)
at =

org.eclipse.osgi.framework.internal.core.StartLevelManager.d oSetStartLev=
el(StartLevelManager.java:275)
at =

org.eclipse.osgi.framework.internal.core.StartLevelManager.d ispatchEvent=
(StartLevelManager.java:455)
at =

org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventMana=
ger.java:189)
at =

org.eclipse.osgi.framework.eventmgr.EventManager$EventThread .run(EventMa=
nager.java:291)
Caused by: java.lang.NullPointerException
at =

org.eclipse.osgi.framework.internal.core.BundleLoader.getLoa derProxy(Bun=
dleLoader.java:238)
at =

org.eclipse.osgi.framework.internal.core.BundleLoader.create ExportPackag=
eSource(BundleLoader.java:210)
at =

org.eclipse.osgi.framework.internal.core.BundleLoader.addImp ortedPackage=
s(BundleLoader.java:201)
at =

org.eclipse.osgi.framework.internal.core.BundleLoader.findIm portedSource=
(BundleLoader.java:873)
at =

org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLo=
ader.java:376)
at =

org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLo=
ader.java:352)
at =

org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(Defau=
ltClassLoader.java:83)
at java.lang.ClassLoader.loadClass(ClassLoader.java:246)
at =

org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLo=
ader.java:276)
at =

org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost=
..java:227)
at =

org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActiva=
tor(AbstractBundle.java:134)
... 10 more
Root exception:
java.lang.NullPointerException
at =

org.eclipse.osgi.framework.internal.core.BundleLoader.getLoa derProxy(Bun=
dleLoader.java:238)
at =

org.eclipse.osgi.framework.internal.core.BundleLoader.create ExportPackag=
eSource(BundleLoader.java:210)
at =

org.eclipse.osgi.framework.internal.core.BundleLoader.addImp ortedPackage=
s(BundleLoader.java:201)
at =

org.eclipse.osgi.framework.internal.core.BundleLoader.findIm portedSource=
(BundleLoader.java:873)
at =

org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLo=
ader.java:376)
at =

org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLo=
ader.java:352)
at =

org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(Defau=
ltClassLoader.java:83)
at java.lang.ClassLoader.loadClass(ClassLoader.java:246)
at =

org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLo=
ader.java:276)
at =

org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost=
..java:227)
at =

org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActiva=
tor(AbstractBundle.java:134)
at =

org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleC=
ontextImpl.java:966)
at =

org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHo=
st.java:317)
at =

org.eclipse.osgi.framework.internal.core.AbstractBundle.resu me(AbstractB=
undle.java:329)
at =

org.eclipse.osgi.framework.internal.core.Framework.resumeBun dle(Framewor=
k.java:1037)
at =

org.eclipse.osgi.framework.internal.core.StartLevelManager.r esumeBundles=
(StartLevelManager.java:573)
at =

org.eclipse.osgi.framework.internal.core.StartLevelManager.i ncFWSL(Start=
LevelManager.java:495)
at =

org.eclipse.osgi.framework.internal.core.StartLevelManager.d oSetStartLev=
el(StartLevelManager.java:275)
at =

org.eclipse.osgi.framework.internal.core.StartLevelManager.d ispatchEvent=
(StartLevelManager.java:455)
at =

org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventMana=
ger.java:189)
at =

org.eclipse.osgi.framework.eventmgr.EventManager$EventThread .run(EventMa=
nager.java:291)

!ENTRY org.eclipse.osgi 4 0 2006-11-14 10:10:29.277
!MESSAGE Bundle =

initial@reference:file:plugins/at.scch.pmp.datatypeRepository_1.0.0.jar/=
=

[23] is not active.
Re: problem with export of bundles when resuming an osgi application [message #77545 is a reply to message #77350] Fri, 17 November 2006 22:42 Go to previous messageGo to next message
Thomas Watson is currently offline Thomas WatsonFriend
Messages: 503
Registered: July 2009
Senior Member
This looks very similar to the bug
https://bugs.eclipse.org/bugs/show_bug.cgi?id=121148

But that bug should be fixed in 3.2. What build of Eclipse 3.2 are you
using? Try adding osgi.noLazyStateLoading=true to your config.ini.


Tom
Re: problem with export of bundles when resuming an osgi application [message #79066 is a reply to message #77545] Thu, 14 December 2006 14:22 Go to previous message
Werner Putschögl is currently offline Werner PutschöglFriend
Messages: 4
Registered: July 2009
Junior Member
Thanks Tom for your reply. As we were not able to reproduce the bug we d=
id =

not inquire that matter more deeply.
As it happens we were confronted with this issue today again.

We are using the release build of eclipse 3.2. the propsed fix is in the=
=

source code (we are building the osgi bundles ourself) but despite that =
it =

still seems to happen.

Is there a testsetup that i can use to reproduce this bug? this might he=
lp =

a lot in narrowing the scope of our search and help me choos a starting =
=

point.


thanks,

werner


On Fri, 17 Nov 2006 23:42:25 +0100, Tom Watson <tjwatson@us.ibm.com> wro=
te:

> This looks very similar to the bug =

> https://bugs.eclipse.org/bugs/show_bug.cgi?id=3D121148
>
> But that bug should be fixed in 3.2. What build of Eclipse 3.2 are yo=
u =

> using? Try adding osgi.noLazyStateLoading=3Dtrue to your config.ini.
>
>
> Tom



-- =

Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Previous Topic:How to open the Equinox sample web page
Next Topic:How to use Equiniox's LogService ?
Goto Forum:
  


Current Time: Thu Apr 25 16:16:53 GMT 2024

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

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

Back to the top