You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Morten Christensen (JIRA)" <ji...@apache.org> on 2013/08/21 19:59:55 UTC
[jira] [Created] (FELIX-4198) ClassCastException:
org.apache.felix.bundlerepository.impl.Activator cannot be cast to
org.osgi.framework.BundleActivator
Morten Christensen created FELIX-4198:
-----------------------------------------
Summary: ClassCastException: org.apache.felix.bundlerepository.impl.Activator cannot be cast to org.osgi.framework.BundleActivator
Key: FELIX-4198
URL: https://issues.apache.org/jira/browse/FELIX-4198
Project: Felix
Issue Type: Bug
Components: Framework
Affects Versions: framework-4.2.1
Environment: Mac OS X
Reporter: Morten Christensen
I start a fresh felix-framework-4.2.1 shell and install following bundles using OBR repository service from a local maven repository with no errors or problems (optionally, I then change the start level of the new bundles but it does not make a difference):
START LEVEL 1
ID|State |Level|Name
0|Active | 0|System Bundle (4.2.1)
1|Active | 1|Apache Felix Bundle Repository (1.6.6)
2|Active | 1|Apache Felix Gogo Command (0.12.0)
3|Active | 1|Apache Felix Gogo Runtime (0.10.0)
4|Active | 1|Apache Felix Gogo Shell (0.10.0)
5|Installed | 1|Apache Felix Http Bundle (2.0.4)
7|Installed | 2|slf4j-jdk14 (1.7.5)
8|Installed | 2|Apache Log4j (1.2.17)
9|Installed | 2|osgi.cmpn (4.2.0.200908310645)
10|Installed | 2|Apache HttpClient OSGi bundle (4.2.5)
11|Installed | 2|slf4j-api (1.7.5)
12|Installed | 2|osgi.core (5.0.0.201203141902)
13|Installed | 2|Commons Logging (1.1.2)
14|Installed | 2|Apache Apache HttpCore OSGi bundle (4.2.5)
I then hit Ctrl-C, and restart and get the following result (with shell not working):
felix-framework-4.2.1: java -jar bin/felix.jar
ERROR: Bundle org.apache.felix.bundlerepository [1] Error starting file:/Users/Shared/Java/libs/felix-framework-4.2.1/bundle/org.apache.felix.bundlerepository-1.6.6.jar (org.osgi.framework.BundleException: Activator start error in bundle org.apache.felix.bundlerepository [1].)
java.lang.ClassCastException: org.apache.felix.bundlerepository.impl.Activator cannot be cast to org.osgi.framework.BundleActivator
at org.apache.felix.framework.Felix.createBundleActivator(Felix.java:4336)
at org.apache.felix.framework.Felix.activateBundle(Felix.java:2141)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2064)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1291)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
at java.lang.Thread.run(Thread.java:724)
ERROR: Bundle org.apache.felix.gogo.command [2] Error starting file:/Users/Shared/Java/libs/felix-framework-4.2.1/bundle/org.apache.felix.gogo.command-0.12.0.jar (org.osgi.framework.BundleException: Activator start error in bundle org.apache.felix.gogo.command [2].)
java.lang.ClassCastException: org.apache.felix.gogo.command.Activator cannot be cast to org.osgi.framework.BundleActivator
at org.apache.felix.framework.Felix.createBundleActivator(Felix.java:4336)
at org.apache.felix.framework.Felix.activateBundle(Felix.java:2141)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2064)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1291)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
at java.lang.Thread.run(Thread.java:724)
ERROR: Bundle org.apache.felix.gogo.runtime [3] Error starting file:/Users/Shared/Java/libs/felix-framework-4.2.1/bundle/org.apache.felix.gogo.runtime-0.10.0.jar (org.osgi.framework.BundleException: Activator start error in bundle org.apache.felix.gogo.runtime [3].)
java.lang.ClassCastException: org.apache.felix.gogo.runtime.activator.Activator cannot be cast to org.osgi.framework.BundleActivator
at org.apache.felix.framework.Felix.createBundleActivator(Felix.java:4336)
at org.apache.felix.framework.Felix.activateBundle(Felix.java:2141)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2064)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1291)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
at java.lang.Thread.run(Thread.java:724)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira