[jdom-interest] Applet Error
Hurd, Greg (RCIS)
Greg.Hurd at RCIS-NET.COM
Fri Apr 6 13:45:44 PDT 2001
I use JDom to parse xml retrieved over HTTP via SOAP calls. I can run this
all day long in my JBuilder 3 environment and it works great. I get my data
back and it parses fine. When I try to run it in my IE 5.0 browser (with
all the security turned off of course) I get the following error in my java
console:
org.jdom.JDOMException: Error in building from stream:
org/apache/xerces/dom/DocumentImpl
at org/jdom/input/DOMBuilder.build (DOMBuilder.java:298)
at jdomcipher/bnJDomCipher.load (bnJDomCipher.java:48)
at jdom/apltJdom.loadStateList (apltJdom.java:121)
at jdom/apltJdom.btnState_actionPerformed (apltJdom.java:220)
at jdom/apltJdom$1.actionPerformed (apltJdom.java:50)
at java/awt/Button.processActionEvent (Button.java)
at java/awt/Button.processEvent (Button.java)
at java/awt/Component.dispatchEventImpl (Component.java)
at java/awt/Component.dispatchEvent (Component.java)
at java/awt/EventDispatchThread.run (EventDispatchThread.java)
Root cause: java.lang.IllegalAccessError: org/apache/xerces/dom/DocumentImpl
at java/lang/Class.forName (Class.java)
at org/apache/xerces/parsers/DOMParser.setDocumentClassName
(DOMParser.java:489)
at org/apache/xerces/parsers/DOMParser.<init> (DOMParser.java:222)
at java/lang/Class.newInstance (Class.java)
at org/jdom/adapters/XercesDOMAdapter.getDocument
(XercesDOMAdapter.java:105)
at org/jdom/input/DOMBuilder.build (DOMBuilder.java:196)
at jdomcipher/bnJDomCipher.load (bnJDomCipher.java:48)
at jdom/apltJdom.loadStateList (apltJdom.java:121)
at jdom/apltJdom.btnState_actionPerformed (apltJdom.java:220)
at jdom/apltJdom$1.actionPerformed (apltJdom.java:50)
at java/awt/Button.processActionEvent (Button.java)
at java/awt/Button.processEvent (Button.java)
at java/awt/Component.dispatchEventImpl (Component.java)
at java/awt/Component.dispatchEvent (Component.java)
at java/awt/EventDispatchThread.run (EventDispatchThread.java)
Exception occurred during event dispatching:
java.lang.NullPointerException
at jdom/apltJdom.loadStateList (apltJdom.java:123)
at jdom/apltJdom.btnState_actionPerformed (apltJdom.java:220)
at jdom/apltJdom$1.actionPerformed (apltJdom.java:50)
at java/awt/Button.processActionEvent (Button.java)
at java/awt/Button.processEvent (Button.java)
at java/awt/Component.dispatchEventImpl (Component.java)
at java/awt/Component.dispatchEvent (Component.java)
at java/awt/EventDispatchThread.run (EventDispatchThread.java)
Here is my applet tag with all my archives:
<APPLET
CODEBASE = "."
ARCHIVE = "JDomApp.jar,Xerces.jar,JDom.jar,Jaxp.jar,crimson.jar"
CODE = "jdom.apltJdom.class"
NAME = "apltJDom"
WIDTH = 400
HEIGHT = 300
HSPACE = 0
VSPACE = 0
ALIGN = middle
VIEWASTEXT>
</APPLET>
Any ideas?
More information about the jdom-interest
mailing list