Caused by: org.xml.sax.SAXException: Can't create default XMLReader; is system property org.xml.sax.driver set?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Caused by: org.xml.sax.SAXException: Can't create default XMLReader; is system property org.xml.sax.driver set?

river
For android:

12-09 20:00:37.753: E/AndroidRuntime(28686): FATAL EXCEPTION: main
12-09 20:00:37.753: E/AndroidRuntime(28686): java.lang.RuntimeException: Unable to create service com.example.clingservice.dlan.service.DlnaUpnpInitService: java.lang.RuntimeException: org.xml.sax.SAXException: Can't create default XMLReader; is system property org.xml.sax.driver set?
12-09 20:00:37.753: E/AndroidRuntime(28686): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2539)
12-09 20:00:37.753: E/AndroidRuntime(28686): at android.app.ActivityThread.access$1600(ActivityThread.java:141)
12-09 20:00:37.753: E/AndroidRuntime(28686): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1316)
12-09 20:00:37.753: E/AndroidRuntime(28686): at android.os.Handler.dispatchMessage(Handler.java:99)
12-09 20:00:37.753: E/AndroidRuntime(28686): at android.os.Looper.loop(Looper.java:137)
12-09 20:00:37.753: E/AndroidRuntime(28686): at android.app.ActivityThread.main(ActivityThread.java:5041)
12-09 20:00:37.753: E/AndroidRuntime(28686): at java.lang.reflect.Method.invokeNative(Native Method)
12-09 20:00:37.753: E/AndroidRuntime(28686): at java.lang.reflect.Method.invoke(Method.java:511)
12-09 20:00:37.753: E/AndroidRuntime(28686): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
12-09 20:00:37.753: E/AndroidRuntime(28686): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
12-09 20:00:37.753: E/AndroidRuntime(28686): at dalvik.system.NativeStart.main(Native Method)
12-09 20:00:37.753: E/AndroidRuntime(28686): Caused by: java.lang.RuntimeException: org.xml.sax.SAXException: Can't create default XMLReader; is system property org.xml.sax.driver set?
12-09 20:00:37.753: E/AndroidRuntime(28686): at org.seamless.xml.SAXParser.create(SAXParser.java:79)
12-09 20:00:37.753: E/AndroidRuntime(28686): at org.seamless.xml.SAXParser.<init>(SAXParser.java:57)
12-09 20:00:37.753: E/AndroidRuntime(28686): at org.seamless.xml.SAXParser.<init>(SAXParser.java:53)
12-09 20:00:37.753: E/AndroidRuntime(28686): at org.fourthline.cling.support.lastchange.LastChangeParser.<init>(LastChangeParser.java:58)
12-09 20:00:37.753: E/AndroidRuntime(28686): at org.fourthline.cling.support.avtransport.lastchange.AVTransportLastChangeParser.<init>(AVTransportLastChangeParser.java:29)
12-09 20:00:37.753: E/AndroidRuntime(28686): at com.example.clingservice.dlan.service.DlnaUpnpInitService.createDevice(DlnaUpnpInitService.java:131)
12-09 20:00:37.753: E/AndroidRuntime(28686): at com.example.clingservice.dlan.service.DlnaUpnpInitService.onCreate(DlnaUpnpInitService.java:63)
12-09 20:00:37.753: E/AndroidRuntime(28686): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2529)
12-09 20:00:37.753: E/AndroidRuntime(28686): ... 10 more
12-09 20:00:37.753: E/AndroidRuntime(28686): Caused by: org.xml.sax.SAXException: Can't create default XMLReader; is system property org.xml.sax.driver set?
12-09 20:00:37.753: E/AndroidRuntime(28686): at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:156)
12-09 20:00:37.753: E/AndroidRuntime(28686): at org.seamless.xml.SAXParser.create(SAXParser.java:77)
12-09 20:00:37.753: E/AndroidRuntime(28686): ... 17 more
Reply | Threaded
Open this post in threaded view
|

Re: Caused by: org.xml.sax.SAXException: Can't create default XMLReader; is system property org.xml.sax.driver set?

Draško
Have you got any other Exceptions in your app logs before this one?
Reply | Threaded
Open this post in threaded view
|

Re: Caused by: org.xml.sax.SAXException: Can't create default XMLReader; is system property org.xml.sax.driver set?

river
No, running is an error;
Reply | Threaded
Open this post in threaded view
|

Re: Caused by: org.xml.sax.SAXException: Can't create default XMLReader; is system property org.xml.sax.driver set?

sebroth
In reply to this post by river
Try putting this:
System.setProperty("org.xml.sax.driver", "org.xmlpull.v1.sax2.Driver");
Into your App entry point (.. extends Application).