在android上运行osgi错误
在Android上运行osgi。
出现如下错误:
Welcome to Felix.
=================
Jun 17, 2009 8:09:45 AM java.io.BufferedReader <init>
INFO: Default buffer size used in BufferedReader constructor. It would be better
to be explicit if a 8k-char buffer is required.
Jun 17, 2009 8:09:45 AM java.io.BufferedWriter <init>
INFO: Default buffer size used in BufferedWriter constructor. It would be better
to be explicit if a 8k-char buffer is required.
Jun 17, 2009 8:09:45 AM java.io.BufferedWriter <init>
INFO: Default buffer size used in BufferedWriter constructor. It would be better
to be explicit if a 8k-char buffer is required.
Jun 17, 2009 8:09:45 AM java.io.BufferedWriter <init>
INFO: Default buffer size used in BufferedWriter constructor. It would be better
to be explicit if a 8k-char buffer is required.
java.lang.reflect.InvocationTargetException
at java.net.URLStreamHandler.toExternalForm(URLStreamHandler.java:312)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at org.apache.felix.framework.URLHandlersStreamHandlerProxy.toExternalFo
rm(URLHandlersStreamHandlerProxy.java:387)
at org.apache.felix.framework.URLHandlersStreamHandlerProxy.toExternalFo
rm(URLHandlersStreamHandlerProxy.java:371)
at java.net.URL.toExternalForm(URL.java:742)
at org.apache.felix.framework.URLHandlersStreamHandlerProxy.parseURL(URL
HandlersStreamHandlerProxy.java:314)
at java.net.URL.<init>(URL.java:328)
at java.net.URL.<init>(URL.java:155)
at org.apache.felix.framework.cache.JarRevision.initialize(JarRevision.j
ava:149)
at org.apache.felix.framework.cache.JarRevision.<init>(JarRevision.java:
78)
at org.apache.felix.framework.cache.JarRevision.<init>(JarRevision.java:
56)
at org.apache.felix.framework.cache.BundleArchive.createRevisionFromLoca
tion(BundleArchive.java:986)
at org.apache.felix.framework.cache.BundleArchive.revise(BundleArchive.j
ava:614)
at org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.j
ava:140)
at org.apache.felix.framework.cache.BundleCache.create(BundleCache.java:
158)
at org.apache.felix.framework.Felix.installBundle(Felix.java:2066)
at org.apache.felix.framework.Felix.installBundle(Felix.java:2026)
at org.apache.felix.framework.BundleContextImpl.installBundle(BundleCont
extImpl.java:130)
at org.apache.felix.main.AutoActivator.processAutoProperties(AutoActivat
or.java:121)
at org.apache.felix.main.AutoActivator.start(AutoActivator.java:55)
at org.apache.felix.framework.util.SecureAction.startActivator(SecureAct
ion.java:589)
at org.apache.felix.framework.Felix$SystemBundleActivator.start(Felix.ja
va:3905)
at org.apache.felix.framework.util.SecureAction.startActivator(SecureAct
ion.java:589)
at org.apache.felix.framework.Felix.init(Felix.java:638)
at org.apache.felix.framework.Felix.start(Felix.java:672)
at org.apache.felix.main.Main.main(Main.java:213)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
... 28 more
在android的源代码中
java.net.URLStreamHandler.toExternalForm的代码如下:
protected String toExternalForm(URL url) {
StringBuffer answer = new StringBuffer(url.getProtocol().length() -------------------line:312
+ url.getFile().length() + 16);
answer.append(url.getProtocol());
answer.append(':');
String authority = url.getAuthority();
if (authority != null && authority.length() > 0) {
answer.append("//"); //$NON-NLS-1$
answer.append(url.getAuthority());
}
String file = url.getFile();
String ref = url.getRef();
// file is never null
answer.append(file);
if (ref != null) {
answer.append('#');
answer.append(ref);
}
return answer.toString();
}
谁知道是什么错误吗?
[解决办法]
友情帮顶!
[解决办法]
关注。