You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by satyenm1 <sa...@yahoo.com> on 2012/06/12 13:24:39 UTC

Apache felix throwing exception after getting instrumented with EMMA

Hi,

I am getting exception, when i try to load the bundles(after instrumenting
the classes with EMMA).


[#|2012-06-06T06:38:07.950-0400|SEVERE|null|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=12;_ThreadName=Thread-1;|org.osgi.framework.BundleException:
Activator start error in bundle org.apache.felix.scr [243].
        at org.apache.felix.framework.Felix.activateBundle(Felix.java:1751)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1622)
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:915)
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:902)
        at
org.apache.felix.fileinstall.internal.DirectoryWatcher.start(DirectoryWatcher.java:1027)
        at
org.apache.felix.fileinstall.internal.DirectoryWatcher.start(DirectoryWatcher.java:1013)
        at
org.apache.felix.fileinstall.internal.DirectoryWatcher.startAllBundles(DirectoryWatcher.java:1006)
        at
org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:396)
        at
org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:206)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class
org.apache.felix.scr.impl.Activator
        at sun.reflect.GeneratedConstructorAccessor33.newInstance(Unknown
Source)
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at java.lang.Class.newInstance0(Class.java:355)
        at java.lang.Class.newInstance(Class.java:308)
        at
org.apache.felix.framework.Felix.createBundleActivator(Felix.java:3520)
        at org.apache.felix.framework.Felix.activateBundle(Felix.java:1695)
        ... 8 more
|#]

Version of Felix i have --- [ 144] [Active     ] [    1] Apache Felix Shell
Service (1.4.1)

Is there any other tool which can be used to do Java code coverage of
webservices running over OSGi

Thanks.

--
View this message in context: http://apache-felix.18485.n6.nabble.com/Apache-felix-throwing-exception-after-getting-instrumented-with-EMMA-tp4997979.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Apache felix throwing exception after getting instrumented with EMMA

Posted by satyenm1 <sa...@yahoo.com>.
Hi,

I am trying to modify the manifest file and re-jaring it..But everytime jar
command ignores the changed MANIFEST.

How can i forcefully include the customized manifest file while creating
jar.

Thanks,
Satyendra

--
View this message in context: http://apache-felix.18485.n6.nabble.com/Apache-felix-throwing-exception-after-getting-instrumented-with-EMMA-tp4997979p4998061.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Apache felix throwing exception after getting instrumented with EMMA

Posted by Felix Meschberger <fm...@adobe.com>.
Hi

This is probably due to the instrumentation with the emma classes not exposed in the framework and probably not even imported from the bundle.

I suggest you add the emma packages to the boot class path property.

Regards
Felix

Am 12.06.2012 um 07:24 schrieb satyenm1:

> Hi,
> 
> I am getting exception, when i try to load the bundles(after instrumenting
> the classes with EMMA).
> 
> 
> [#|2012-06-06T06:38:07.950-0400|SEVERE|null|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=12;_ThreadName=Thread-1;|org.osgi.framework.BundleException:
> Activator start error in bundle org.apache.felix.scr [243].
>        at org.apache.felix.framework.Felix.activateBundle(Felix.java:1751)
>        at org.apache.felix.framework.Felix.startBundle(Felix.java:1622)
>        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:915)
>        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:902)
>        at
> org.apache.felix.fileinstall.internal.DirectoryWatcher.start(DirectoryWatcher.java:1027)
>        at
> org.apache.felix.fileinstall.internal.DirectoryWatcher.start(DirectoryWatcher.java:1013)
>        at
> org.apache.felix.fileinstall.internal.DirectoryWatcher.startAllBundles(DirectoryWatcher.java:1006)
>        at
> org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:396)
>        at
> org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:206)
> Caused by: java.lang.NoClassDefFoundError: Could not initialize class
> org.apache.felix.scr.impl.Activator
>        at sun.reflect.GeneratedConstructorAccessor33.newInstance(Unknown
> Source)
>        at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>        at java.lang.Class.newInstance0(Class.java:355)
>        at java.lang.Class.newInstance(Class.java:308)
>        at
> org.apache.felix.framework.Felix.createBundleActivator(Felix.java:3520)
>        at org.apache.felix.framework.Felix.activateBundle(Felix.java:1695)
>        ... 8 more
> |#]
> 
> Version of Felix i have --- [ 144] [Active     ] [    1] Apache Felix Shell
> Service (1.4.1)
> 
> Is there any other tool which can be used to do Java code coverage of
> webservices running over OSGi
> 
> Thanks.
> 
> --
> View this message in context: http://apache-felix.18485.n6.nabble.com/Apache-felix-throwing-exception-after-getting-instrumented-with-EMMA-tp4997979.html
> Sent from the Apache Felix - Users mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org