1

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.build Commented Dec 9, 2009 at 12:31
  • 1
    There are three XML parsers already on Android: DOM, SAX, and XmlPullParser. Why do you need a fourth? Commented Dec 9, 2009 at 14:35

1 Answer 1

2

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.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.