Hi,

this error occurs as soon as both bundles

- org.apache.tuscany.sca.extensibility.osgi_1.4.0
- org.apache.tuscany.sca.osgi.runtime_1.4.0

Are started. The one that is started last will produce the error.

Bye,
Daniel


> -----Ursprüngliche Nachricht-----
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Gesendet: Freitag, 5. September 2008 13:33
> An: [email protected]
> Betreff: AW: Problems with bundle
> org.apache.tuscany.sca.osgi.runtime_1.4.0
> 
> Hi,
> 
> rebuilding removed the IncompatibleClassChangeError. However, now I get
> the following:
> 
> org.osgi.framework.BundleException: Exception in
> org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.start() of
> bundle org.apache.tuscany.sca.osgi.runtime.
>       at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivat
> or(BundleContextImpl.java:1018)
>       at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(Bundle
> ContextImpl.java:974)
>       at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleH
> ost.java:346)
>       at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractB
> undle.java:260)
>       at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractB
> undle.java:252)
>       at
> org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._star
> t(FrameworkCommandProvider.java:260)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
> va:39)
>       at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
> rImpl.java:25)
>       at java.lang.reflect.Method.invoke(Method.java:585)
>       at
> org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.ex
> ecute(FrameworkCommandInterpreter.java:145)
>       at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(Fra
> meworkConsole.java:291)
>       at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(Frame
> workConsole.java:276)
>       at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(Framework
> Console.java:218)
>       at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.IllegalStateException: The ServiceDiscoverer
> cannot be reset
>       at
> org.apache.tuscany.sca.extensibility.ServiceDiscovery.setServiceDiscove
> rer(ServiceDiscovery.java:76)
>       at
> org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.initializeTusca
> nyClassLoaders(OSGiBundleActivator.java:82)
>       at
> org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.start(OSGiBundl
> eActivator.java:55)
>       at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(Bundle
> ContextImpl.java:999)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivat
> or(BundleContextImpl.java:993)
>       ... 14 more
> Nested Exception:
> java.lang.IllegalStateException: The ServiceDiscoverer cannot be reset
>       at
> org.apache.tuscany.sca.extensibility.ServiceDiscovery.setServiceDiscove
> rer(ServiceDiscovery.java:76)
>       at
> org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.initializeTusca
> nyClassLoaders(OSGiBundleActivator.java:82)
>       at
> org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.start(OSGiBundl
> eActivator.java:55)
>       at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(Bundle
> ContextImpl.java:999)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivat
> or(BundleContextImpl.java:993)
>       at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(Bundle
> ContextImpl.java:974)
>       at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleH
> ost.java:346)
>       at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractB
> undle.java:260)
>       at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractB
> undle.java:252)
>       at
> org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._star
> t(FrameworkCommandProvider.java:260)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
> va:39)
>       at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
> rImpl.java:25)
>       at java.lang.reflect.Method.invoke(Method.java:585)
>       at
> org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.ex
> ecute(FrameworkCommandInterpreter.java:145)
>       at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(Fra
> meworkConsole.java:291)
>       at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(Frame
> workConsole.java:276)
>       at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(Framework
> Console.java:218)
>       at java.lang.Thread.run(Thread.java:595)
> Nested Exception:
> java.lang.IllegalStateException: The ServiceDiscoverer cannot be reset
>       at
> org.apache.tuscany.sca.extensibility.ServiceDiscovery.setServiceDiscove
> rer(ServiceDiscovery.java:76)
>       at
> org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.initializeTusca
> nyClassLoaders(OSGiBundleActivator.java:82)
>       at
> org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.start(OSGiBundl
> eActivator.java:55)
>       at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(Bundle
> ContextImpl.java:999)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivat
> or(BundleContextImpl.java:993)
>       at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(Bundle
> ContextImpl.java:974)
>       at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleH
> ost.java:346)
>       at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractB
> undle.java:260)
>       at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractB
> undle.java:252)
>       at
> org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._star
> t(FrameworkCommandProvider.java:260)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
> va:39)
>       at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
> rImpl.java:25)
>       at java.lang.reflect.Method.invoke(Method.java:585)
>       at
> org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.ex
> ecute(FrameworkCommandInterpreter.java:145)
>       at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(Fra
> meworkConsole.java:291)
>       at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(Frame
> workConsole.java:276)
>       at
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(Framework
> Console.java:218)
>       at java.lang.Thread.run(Thread.java:595)
> 
> 
> Bye,
> Daniel
> 
> 
> > -----Ursprüngliche Nachricht-----
> > Von: Graham Charters [mailto:[EMAIL PROTECTED]
> > Gesendet: Donnerstag, 4. September 2008 17:32
> > An: [email protected]
> > Betreff: Re: Problems with bundle
> > org.apache.tuscany.sca.osgi.runtime_1.4.0
> >
> > Hi Daniel,
> >
> > I recently got an IncompatibleClassChangeError during activation and
> > for me it was resolved by rebuilding extensibility, extensibility-
> osgi
> > and osgi-runtime.  Maybe this will work for you?
> >
> > Regards, Graham.
> >
> > 2008/9/4  <[EMAIL PROTECTED]>:
> > > Hi all,
> > >
> > > I'm still (or again) trying to integrate Tuscany in SMILA. After
> svn
> > > update I built all osgi-bundles successfully.
> > >
> > > I do not use all Tuscany bundles in my project but only selected
> ones
> > > (the ones I require for the functionality I need and of course the
> > ones
> > > required by those). As far as I can tell all dependencies are
> > fulfilled
> > > as all bundles start successfully except the one below. I use
> eclipse
> > > 3.3 with equinox.
> > >
> > > If I start bundle org.apache.tuscany.sca.osgi.runtime_1.4.0 I get
> the
> > > following error:
> > >
> > > org.osgi.framework.BundleException: Exception in
> > > org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.start() of
> > > bundle org.apache.tuscany.sca.osgi.runtime.
> > >        at
> > >
> >
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivat
> > o
> > > r(BundleContextImpl.java:1018)
> > >        at
> > >
> >
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(Bundle
> > C
> > > ontextImpl.java:974)
> > >        at
> > >
> >
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleH
> > o
> > > st.java:346)
> > >        at
> > >
> >
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractB
> > u
> > > ndle.java:260)
> > >        at
> > >
> >
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractB
> > u
> > > ndle.java:252)
> > >        at
> > >
> >
> org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._star
> > t
> > > (FrameworkCommandProvider.java:260)
> > >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> > >        at
> > >
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
> > v
> > > a:39)
> > >        at
> > >
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
> > r
> > > Impl.java:25)
> > >        at java.lang.reflect.Method.invoke(Method.java:585)
> > >        at
> > >
> >
> org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.ex
> > e
> > > cute(FrameworkCommandInterpreter.java:145)
> > >        at
> > >
> >
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(Fra
> > m
> > > eworkConsole.java:291)
> > >        at
> > >
> >
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(Frame
> > w
> > > orkConsole.java:276)
> > >        at
> > >
> >
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(Framework
> > C
> > > onsole.java:218)
> > >        at java.lang.Thread.run(Thread.java:595)
> > > Caused by: java.lang.IncompatibleClassChangeError
> > >        at
> > >
> >
> org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.initializeTusca
> > n
> > > yClassLoaders(OSGiBundleActivator.java:82)
> > >        at
> > >
> >
> org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.start(OSGiBundl
> > e
> > > Activator.java:55)
> > >        at
> > >
> >
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(Bundle
> > C
> > > ontextImpl.java:999)
> > >        at java.security.AccessController.doPrivileged(Native
> Method)
> > >        at
> > >
> >
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivat
> > o
> > > r(BundleContextImpl.java:993)
> > >        ... 14 more
> > > Nested Exception:
> > > java.lang.IncompatibleClassChangeError
> > >        at
> > >
> >
> org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.initializeTusca
> > n
> > > yClassLoaders(OSGiBundleActivator.java:82)
> > >        at
> > >
> >
> org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.start(OSGiBundl
> > e
> > > Activator.java:55)
> > >        at
> > >
> >
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(Bundle
> > C
> > > ontextImpl.java:999)
> > >        at java.security.AccessController.doPrivileged(Native
> Method)
> > >        at
> > >
> >
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivat
> > o
> > > r(BundleContextImpl.java:993)
> > >        at
> > >
> >
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(Bundle
> > C
> > > ontextImpl.java:974)
> > >        at
> > >
> >
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleH
> > o
> > > st.java:346)
> > >        at
> > >
> >
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractB
> > u
> > > ndle.java:260)
> > >        at
> > >
> >
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractB
> > u
> > > ndle.java:252)
> > >        at
> > >
> >
> org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._star
> > t
> > > (FrameworkCommandProvider.java:260)
> > >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> > >        at
> > >
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
> > v
> > > a:39)
> > >        at
> > >
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
> > r
> > > Impl.java:25)
> > >        at java.lang.reflect.Method.invoke(Method.java:585)
> > >        at
> > >
> >
> org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.ex
> > e
> > > cute(FrameworkCommandInterpreter.java:145)
> > >        at
> > >
> >
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(Fra
> > m
> > > eworkConsole.java:291)
> > >        at
> > >
> >
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(Frame
> > w
> > > orkConsole.java:276)
> > >        at
> > >
> >
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(Framework
> > C
> > > onsole.java:218)
> > >        at java.lang.Thread.run(Thread.java:595)
> > > Nested Exception:
> > > java.lang.IncompatibleClassChangeError
> > >        at
> > >
> >
> org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.initializeTusca
> > n
> > > yClassLoaders(OSGiBundleActivator.java:82)
> > >        at
> > >
> >
> org.apache.tuscany.sca.osgi.runtime.OSGiBundleActivator.start(OSGiBundl
> > e
> > > Activator.java:55)
> > >        at
> > >
> >
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(Bundle
> > C
> > > ontextImpl.java:999)
> > >        at java.security.AccessController.doPrivileged(Native
> Method)
> > >        at
> > >
> >
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivat
> > o
> > > r(BundleContextImpl.java:993)
> > >        at
> > >
> >
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(Bundle
> > C
> > > ontextImpl.java:974)
> > >        at
> > >
> >
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleH
> > o
> > > st.java:346)
> > >        at
> > >
> >
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractB
> > u
> > > ndle.java:260)
> > >        at
> > >
> >
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractB
> > u
> > > ndle.java:252)
> > >        at
> > >
> >
> org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._star
> > t
> > > (FrameworkCommandProvider.java:260)
> > >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> > >        at
> > >
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
> > v
> > > a:39)
> > >        at
> > >
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
> > r
> > > Impl.java:25)
> > >        at java.lang.reflect.Method.invoke(Method.java:585)
> > >        at
> > >
> >
> org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.ex
> > e
> > > cute(FrameworkCommandInterpreter.java:145)
> > >        at
> > >
> >
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(Fra
> > m
> > > eworkConsole.java:291)
> > >        at
> > >
> >
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(Frame
> > w
> > > orkConsole.java:276)
> > >        at
> > >
> >
> org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(Framework
> > C
> > > onsole.java:218)
> > >        at java.lang.Thread.run(Thread.java:595)
> > >
> > >
> > > I also noticed that in the manifest of this bundle package
> > > "org.apache.tuscany.sca.osgi.runtime" is exported  as well as
> > imported.
> > > The latter seems to be unnecessary.
> > >
> > > Bye,
> > > Daniel
> > >

Reply via email to