I am using JDOM to create XML and during parsing i am getting this exception "Could not find class 'java.rmi.RemoteException', referenced from method org.jdom.JDOMException.getNestedException " which cause a crash in program .This exception occurs very frequently but not always Any body has faced same problem . Any help would be appreciated Thanks in advance.
2
-
SAXBuilder builder = new SAXBuilder(); Document doc = null; try { doc = builder.build(new StringReader(xmlData)); }catch(Exception e) { e.printStackTrace(); } getting exception at build.buildSam97305421562– Sam973054215622009-12-09 12:31:02 +00:00Commented Dec 9, 2009 at 12:31
-
1There are three XML parsers already on Android: DOM, SAX, and XmlPullParser. Why do you need a fourth?CommonsWare– CommonsWare2009-12-09 14:35:28 +00:00Commented Dec 9, 2009 at 14:35
Add a comment
|
1 Answer
Well there is no RMI implementation in android platform, so it pretty obviously the reason of the exception. Don't know why JDOM needs java.rmi.RemoteException through
Edit:
There is a code inside of JDOMException which checks instanceof expression against java.rmi.RemoteException so this is the root of problem.