0
有没有人试图在Android 4.1或4.2上运行Apache Felix? 对我来说,它看起来好像在android classloader上发生了一些变化,现在它不再有效。Android 4.1/4.2(JellyBean)上的Apache Felix
我启动Apache菲利克斯程序如下:
config.put("felix.bootdelegation.implicit", "false"); config.put("felix.service.urlhandlers","false"); ... felix.start();
我的包也是 “dexed”!
我得到这个错误:
03-04 23:38:51.360: W/System.err(1431): org.osgi.framework.BundleException: Activator start error in bundle org.apache.felix.shell.remote [25].
...
03-04 23:38:51.360: W/System.err(1431): at dalvik.system.NativeStart.main(Native Method)
03-04 23:38:51.360: W/System.err(1431): Caused by: java.lang.UnsupportedOperationException: can't load this type of class file
03-04 23:38:51.360: W/System.err(1431): at java.lang.VMClassLoader.defineClass(Native Method)
03-04 23:38:51.360: W/System.err(1431): at java.lang.ClassLoader.defineClass(ClassLoader.java:292)
03-04 23:38:51.360: W/System.err(1431): at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.findClass(BundleWiringImpl.java:2128)
03-04 23:38:51.360: W/System.err(1431): at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1432)
03-04 23:38:51.360: W/System.err(1431): at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:72)
03-04 23:38:51.360: W/System.err(1431): at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1843)
03-04 23:38:51.360: W/System.err(1431): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
03-04 23:38:51.360: W/System.err(1431): at org.apache.felix.framework.BundleWiringImpl.getClassByDelegation(BundleWiringImpl.java:1317)
03-04 23:38:51.360: W/System.err(1431): at org.apache.felix.framework.Felix.createBundleActivator(Felix.java:4170)
03-04 23:38:51.360: W/System.err(1431): at org.apache.felix.framework.Felix.activateBundle(Felix.java:1972)
03-04 23:38:51.360: W/System.err(1431): ... 15 more
有人可以证实? 他们的解决方案是? 也许他们是一个属性,必须在apache felix中进行更改?!?!
刚刚发现这一点:https://issues.apache.org/jira/browse/FELIX-3854 – 2013-03-05 07:49:45
是'org.apache。 felix.shell.remote'包也被dexified? – 2013-03-05 07:51:08
是的,所有的包都是脱毒的!你有看到Bug报告吗,尼尔?你怎么看待这件事 ? – 2013-03-05 11:58:14