[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ecf-dev] BundleException with RSA while startup, but only in product build not with product launch

Just for everyone's background...

In order to deal with the RSA-specific issue described for ECF in bug [1] a new bundle has been added to the build for ECF remote services. There's discussion about the need for this on [1] and (mostly) on the related discussion on osgi-dev, but the summary is that we need to have a 'dummy' bundle that is used to register the proxy ServiceFactory, in order to pass the framework compatibility checks, and have ServiceTracker.open() provide the expected notifications upon ServiceFactory registration.

This means that to start the org.eclipse.ecf.osgi.services.remoteserviceadmin bundle, the new org.eclipse.ecf.osgi.services.remoteserviceadmin.proxy bundle has to be present.

The new proxy bundle is essentially empty...i.e. no classes, and a manifest.mf only...but this is necessary anyway (see the osgi-dev discussion pointed to in [1] for all the gory details).

Martin...I suspect that this may be causing your bundle start problem on bug 338062...as if remoteserviceadmin can't start (i.e. it can't find the proxy bundle), then not much else can happen.

Scott


[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=337673

On 2/24/2011 3:16 AM, Martin Petzold wrote:
Hi Scott/Markus,

I get a BundleException with RSA while startup, but only in product build not with product launch. What could be the difference here? I have already tested different start levels for the bundles, but no success.

Thanks,

Martin

----------

osgi> !SESSION 2011-02-24 12:00:31.457 -----------------------------------------
------
eclipse.buildId=unknown
java.version=1.6.0_20
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=de_DE
Command-line arguments: -os win32 -ws win32 -arch x86_64 -clean -console -conso
leLog


!ENTRY org.eclipse.ecf.osgi.services.distribution 4 0 2011-02-24 12:00:32.491
!MESSAGE
!STACK 0
org.osgi.framework.BundleException: Exception in org.eclipse.ecf.internal.osgi.s
ervices.distribution.Activator.start() of bundle org.eclipse.ecf.osgi.services.d
istribution.
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActiv
ator(BundleContextImpl.java:806)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(Bund
leContextImpl.java:755)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(Bundl
eHost.java:370)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(Abstra
ctBundle.java:374)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Frame
work.java:1067)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBund
les(StartLevelManager.java:561)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBund
les(StartLevelManager.java:546)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(St
artLevelManager.java:459)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStart
Level(StartLevelManager.java:243)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEv
ent(StartLevelManager.java:440)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventM
anager.java:227)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(Even
tManager.java:337)
Caused by: java.lang.NoClassDefFoundError: org/eclipse/ecf/osgi/services/remotes
erviceadmin/AbstractTopologyManager
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(
DefaultClassLoader.java:188)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(Clas
spathManager.java:580)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(Cl
asspathManager.java:550)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassIm
pl(ClasspathManager.java:481)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_L
ockClassLoader(ClasspathManager.java:469)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(C
lasspathManager.java:449)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalCla
ss(DefaultClassLoader.java:216)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLo
ader.java:393)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(Bundl
eLoader.java:469)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.
java:422)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.
java:410)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(De
faultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.ecf.internal.osgi.services.distribution.Activator.start(A
ctivator.java:99)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(Bund
leContextImpl.java:783)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActiv
ator(BundleContextImpl.java:774)
... 11 more
Caused by: java.lang.ClassNotFoundException: org.eclipse.ecf.osgi.services.remot
eserviceadmin.AbstractTopologyManager
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(Bundl
eLoader.java:506)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.
java:422)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.
java:410)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(De
faultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 31 more
Root exception:
java.lang.NoClassDefFoundError: org/eclipse/ecf/osgi/services/remoteserviceadmin
/AbstractTopologyManager
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(
DefaultClassLoader.java:188)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(Clas
spathManager.java:580)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(Cl
asspathManager.java:550)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassIm
pl(ClasspathManager.java:481)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_L
ockClassLoader(ClasspathManager.java:469)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(C
lasspathManager.java:449)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalCla
ss(DefaultClassLoader.java:216)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLo
ader.java:393)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(Bundl
eLoader.java:469)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.
java:422)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.
java:410)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(De
faultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.ecf.internal.osgi.services.distribution.Activator.start(A
ctivator.java:99)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(Bund
leContextImpl.java:783)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActiv
ator(BundleContextImpl.java:774)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(Bund
leContextImpl.java:755)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(Bundl
eHost.java:370)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(Abstra
ctBundle.java:374)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Frame
work.java:1067)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBund
les(StartLevelManager.java:561)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBund
les(StartLevelManager.java:546)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(St
artLevelManager.java:459)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStart
Level(StartLevelManager.java:243)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEv
ent(StartLevelManager.java:440)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventM
anager.java:227)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(Even
tManager.java:337)
Caused by: java.lang.ClassNotFoundException: org.eclipse.ecf.osgi.services.remot
eserviceadmin.AbstractTopologyManager
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(Bundl
eLoader.java:506)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.
java:422)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.
java:410)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(De
faultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 31 more
ZooDiscovery> Discovery Service Activated. 24.02.2011 12:00:32.


!ENTRY org.eclipse.ecf.osgi.services.remoteserviceadmin 4 0 2011-02-24 12:00:32.
557
!MESSAGE
!STACK 0
org.osgi.framework.BundleException: The activator org.eclipse.ecf.internal.osgi.
services.remoteserviceadmin.Activator for bundle org.eclipse.ecf.osgi.services.r
emoteserviceadmin is invalid
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleAct
ivator(AbstractBundle.java:156)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(Bund
leContextImpl.java:751)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(Bundl
eHost.java:370)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(Abstra
ctBundle.java:374)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Frame
work.java:1067)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBund
les(StartLevelManager.java:561)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBund
les(StartLevelManager.java:546)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(St
artLevelManager.java:459)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStart
Level(StartLevelManager.java:243)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEv
ent(StartLevelManager.java:440)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventM
anager.java:227)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(Even
tManager.java:337)
Caused by: java.lang.ClassNotFoundException: org.eclipse.ecf.internal.osgi.servi
ces.remoteserviceadmin.Activator
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(Bundl
eLoader.java:506)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.
java:422)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.
java:410)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(De
faultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.
java:338)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleH
ost.java:232)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleAct
ivator(AbstractBundle.java:149)
... 11 more
Root exception:
java.lang.ClassNotFoundException: org.eclipse.ecf.internal.osgi.services.remotes
erviceadmin.Activator
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(Bundl
eLoader.java:506)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.
java:422)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.
java:410)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(De
faultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.
java:338)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleH
ost.java:232)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleAct
ivator(AbstractBundle.java:149)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(Bund
leContextImpl.java:751)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(Bundl
eHost.java:370)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(Abstra
ctBundle.java:374)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Frame
work.java:1067)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBund
les(StartLevelManager.java:561)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBund
les(StartLevelManager.java:546)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(St
artLevelManager.java:459)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStart
Level(StartLevelManager.java:243)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEv
ent(StartLevelManager.java:440)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventM
anager.java:227)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(Even
tManager.java:337)


!ENTRY org.eclipse.osgi 4 0 2011-02-24 12:00:32.867
!MESSAGE Bundle org.eclipse.ecf.osgi.services.distribution_2.0.0.201102241200 [1
9] is not active.


!ENTRY org.eclipse.osgi 4 0 2011-02-24 12:00:32.879
!MESSAGE Bundle org.eclipse.ecf.osgi.services.remoteserviceadmin_1.0.0.201102241
200 [20] is not active.


_______________________________________________
ecf-dev mailing list
ecf-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ecf-dev