[jdom-interest] SOAP & JDOM

Jason Hunter jhunter at acm.org
Fri Jan 25 16:02:35 PST 2002


Could be a JDOM bug, since DOMOutputter is a tricky class to get working
with all DOM implementations.  Could be a bug in a DOM impl.  Could be a
bug in the SOAP impl.  Hard to know.

-jh-

"bdol at email.it" wrote:
> 
> Hello folks!
> 
> I'm trying to build an Envelope using a JDOM Document read from an INput
> Source. I get the XML source using (jdom)DOMBuilder, then I create the
> DOM (org.w3c.)Document using (jdom) DOMOutputter's
> output(org.w3c.Document) method.
> 
> However, when I invoke the Envelope.unmarshall, I've got the following
> exception
> 
> 2002-01-21 10:49:03,869 [ bdol.soap] run ERROR - while unmarshalling
> java.lang.NullPointerException
> at org.apache.soap.util.xml.QName.setLocalPart(QName.java:118)
> at org.apache.soap.util.xml.QName.<init>(QName.java:103)
> at
> org.apache.soap.AttributeHandler.unmarshall(AttributeHandler.java:238)
> at org.apache.soap.Envelope.unmarshall(Envelope.java:240)
> at org.apache.soap.Envelope.unmarshall(Envelope.java:228)
> at
> com.ilsole24ore.bdol.frontend.soap.SoapMessageClient.run(SoapMessageClient.java:125)
> at
> com.ilsole24ore.bdol.frontend.soap.SoapMessageClient.<init>(SoapMessageClient.java:64)
> at
> com.ilsole24ore.bdol.frontend.soap.SoapMessageClientTest.testRun(SoapMessageClientTest.java:66)
> at java.lang.reflect.Method.invoke(Native Method)
> at junit.framework.TestCase.runTest(TestCase.java:166)
> at junit.framework.TestCase.runBare(TestCase.java:140)
> at junit.framework.TestResult$1.protect(TestResult.java:106)
> at junit.framework.TestResult.runProtected(TestResult.java:124)
> at junit.framework.TestResult.run(TestResult.java:109)
> at junit.framework.TestCase.run(TestCase.java:131)
> at org.netbeans.junit.NbTestCase.run(Unknown Source)
> at junit.framework.TestSuite.runTest(TestSuite.java:173)
> at junit.framework.TestSuite.run(TestSuite.java:168)
> at junit.textui.TestRunner.doRun(TestRunner.java:74)
> at junit.textui.TestRunner.run(TestRunner.java:200)
> at
> com.ilsole24ore.bdol.frontend.soap.SoapMessageClientTest.main(SoapMessageClientTest.java:53)
> F
> 
> The original XML (got it from JDOM's XMLOutputter) is
> 
> <?xml version=3D"1.0" encoding=3D"UTF-8"?>
> <s:Envelope xmlns:s=3D"http://schemas.xmlsoap.org/soap/envelope/">
> <s:Body>
> <search xmlns=3D"urn:Product">
> <user_info>
> <name>bdol</name>
> <passwd>bdol</passwd>
> </user_info>
> <product_name>BIG</product_name>
> <operation_name>semplificata</operation_name>
> <parameters>
> <parameter>
> <name>date_from</name>
> <value>12/10/2001</value>
> </parameter>
> <parameter>
> <name>area</name>
> <value>finanza</value>
> </parameter>
> <parameter>
> <name>numero</name>
> <value>20</value>
> </parameter>
> </parameters>
> </search>
> </s:Body>
> </s:Envelope>
> 
> Does anyone get problem(s) like this?
> Do you think this is JDOM problem (bug)?
> 
> Thanks a lot!
> BDOL
> 
> --
> Prendi GRATIS l'email universale che... risparmia: http://www.email.it/f
> 
> Sponsor:
> Hai visto i nuovi prodotti del Milanstore? Cercali nell'unico negozio
> ufficiale su internet dell'AC Milan:
> Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=46&d=21-1
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com



More information about the jdom-interest mailing list