This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes JDOM Exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "JDOM Exception" Watch "JDOM Exception" New topic
Author

JDOM Exception

dimpsonu arora
Ranch Hand

Joined: Aug 13, 2003
Posts: 51
Thanx in advance. I have made a program in java using xml. It is giving me following error at runtime. Can somebody help.???

C:\projects\cca\examples\simple>java ExamplePIFApp http://jarora:8080/rpcrouter
TestUser TestUser
Creating a new contact...org.jdom.JDOMException: Exception outputting Element sy
nc:username: Reflection failed while creating new JAXP document: javax.xml.trans
form.Transformer
at org.jdom.output.DOMOutputter.output(DOMOutputter.java:192)
at sync.pif.client.SOAPClient.buildHeader(SOAPClient.java:370)
at sync.pif.client.SOAPClient.executeCall(SOAPClient.java:570)
at sync.pif.client.ContactClient.create(ContactClient.java:87)
at ExamplePIFApp.run(ExamplePIFApp.java:96)
at ExamplePIFApp.main(ExamplePIFApp.java:70)
Caused by: org.jdom.JDOMException: Reflection failed while creating new JAXP doc
ument: javax.xml.transform.Transformer
at org.jdom.adapters.JAXPDOMAdapter.createDocument(JAXPDOMAdapter.java:1
95)
at org.jdom.adapters.AbstractDOMAdapter.createDocument(AbstractDOMAdapte
r.java:134)
at org.jdom.output.DOMOutputter.createDOMDocument(DOMOutputter.java:229)

at org.jdom.output.DOMOutputter.createDOMDocument(DOMOutputter.java:199)

at org.jdom.output.DOMOutputter.output(DOMOutputter.java:188)
at sync.pif.client.SOAPClient.buildHeader(SOAPClient.java:370)
at sync.pif.client.SOAPClient.executeCall(SOAPClient.java:570)
at sync.pif.client.ContactClient.create(ContactClient.java:87)
at ExamplePIFApp.run(ExamplePIFApp.java:96)
at ExamplePIFApp.main(ExamplePIFApp.java:70)
Caused by: java.lang.ClassNotFoundException: javax.xml.transform.Transformer
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.jdom.adapters.JAXPDOMAdapter.createDocument(JAXPDOMAdapter.java:1
71)
at org.jdom.adapters.AbstractDOMAdapter.createDocument(AbstractDOMAdapte
r.java:134)
at org.jdom.output.DOMOutputter.createDOMDocument(DOMOutputter.java:229)

at org.jdom.output.DOMOutputter.createDOMDocument(DOMOutputter.java:199)

at org.jdom.output.DOMOutputter.output(DOMOutputter.java:188)
at sync.pif.client.SOAPClient.buildHeader(SOAPClient.java:370)
at sync.pif.client.SOAPClient.executeCall(SOAPClient.java:570)
at sync.pif.client.ContactClient.create(ContactClient.java:87)
at ExamplePIFApp.run(ExamplePIFApp.java:96)
at ExamplePIFApp.main(ExamplePIFApp.java:70)
Exception in thread "main" java.lang.RuntimeException: Unsupported response cont
ent type "text/html", must be: "text/xml". Response was:
<html><head><title>Apache Tomcat/4.1.29 - Error report</title><STYLE><!--H1{font
-family : sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;} H3{
font-family : sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;}
BODY{font-family : sans-serif,Arial,Tahoma;color : black;background-color : whi
te;} B{color : white;background-color : #0086b2;} HR{color : #0086b2;} --></STYL
E> </head><body><h1>HTTP Status 401 - </h1><HR size="1" noshade><p><b>type</b> S
tatus report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>This reque
st requires HTTP authentication ().</u></p><HR size="1" noshade><h3>Apache Tomca
t/4.1.29</h3></body></html>

at sync.pif.client.SOAPClient.throwDeserializedException(SOAPClient.java
:642)
at sync.pif.client.SOAPClient.executeCall(SOAPClient.java:586)
at sync.pif.client.ContactClient.create(ContactClient.java:87)
at ExamplePIFApp.run(ExamplePIFApp.java:96)
at ExamplePIFApp.main(ExamplePIFApp.java:70)

C:\projects\cca\examples\simple>
 
Don't get me started about those stupid light bulbs.
 
subject: JDOM Exception