Debugging with Xerces API

R

Robert Mark Bram

Hi All,

I am accessing a web service whose Java stubs I have generated with
WSAD 5.1. I am getting the error listed below.

It seems to indicate that there was some missing xml.

I want to see the xml request and response messages. Does anyone know
of a tool or config setting I can use to view this? Specifically, can
the xerces API help by providing extra debugging?

Any help would be most appreciated!

Rob
:)


java.lang.Exception: WSWS3379E: Error: Prefix
http://schemas.xmlsoap.org/soap/envelope/ is undefined.
at
com.ibm.ws.webservices.engine.InternalException.(InternalException.java:124)
at
com.ibm.ws.webservices.engine.encoding.ser.QNameDeserializer.makeValue(QNameDeserializer.java:119)
at
com.ibm.ws.webservices.engine.encoding.ser.SimpleDeserializer.onEndElement(SimpleDeserializer.java:209)
at
com.ibm.ws.webservices.engine.encoding.Deserializer.endElement(Deserializer.java:590)
at
com.ibm.ws.webservices.engine.events.DEventProcessor.onSimpleChild(DEventProcessor.java:243)
at
com.ibm.ws.webservices.engine.events.P2DConverter.flush(P2DConverter.java:728)
at
com.ibm.ws.webservices.engine.events.P2DConverter.endElement(P2DConverter.java:395)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at
com.ibm.ws.webservices.engine.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:251)
at
com.ibm.ws.webservices.engine.SOAPPart.getSOAPEnvelope(SOAPPart.java:882)
at com.ibm.ws.webservices.engine.SOAPPart.getFault(SOAPPart.java:1262)
at com.ibm.ws.webservices.engine.Message.getFault(Message.java:757)
at
com.ibm.ws.webservices.engine.Message.ifFaultThrowSelf(Message.java:737)
at
com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:252)
at
com.ibm.ws.webservices.engine.WebServicesEngine.invoke(WebServicesEngine.java:255)
at
com.ibm.ws.webservices.engine.client.Connection.invokeEngine(Connection.java:688)
at
com.ibm.ws.webservices.engine.client.Connection.invoke(Connection.java:614)
at
com.ibm.ws.webservices.engine.client.Connection.invoke(Connection.java:444)
at
com.ibm.ws.webservices.engine.client.Stub$Invoke.invoke(Stub.java:662)
at
com.cml.hr.portal.eai.webservices.sap.MS_ALPHA_EJOB_PRJHTTP_SOAP_Binding_GetPositionStub.EJobGetPosition(MS_ALPHA_EJOB_PRJHTTP_SOAP_Binding_GetPositionStub.java:104)
at
com.cml.hr.portal.eai.webservices.sap.GetPositionTestCase.testGetPosition(GetPositionTestCase.java:86)
at java.lang.reflect.Method.invoke(Native Method)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
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:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:329)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:218)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:151)
2006-01-05 11:10:20,793 ERROR
com.ibm.ws.webservices.engine.PivotHandlerWrapper - WSWS3400I: Info:
unexpected exception.
java.lang.NullPointerException
at java.io.FilterInputStream.read(FilterInputStream.java:128)
at com.ibm.ws.webservices.engine.SOAPPart.getBytes(SOAPPart.java:671)
at com.ibm.ws.webservices.engine.SOAPPart.getString(SOAPPart.java:788)
at
com.ibm.ws.webservices.engine.SOAPPart.getAsString(SOAPPart.java:582)
at
com.ibm.ws.webservices.engine.SOAPPart.getSOAPEnvelope(SOAPPart.java:888)
at com.ibm.ws.webservices.engine.SOAPPart.getFault(SOAPPart.java:1262)
at com.ibm.ws.webservices.engine.Message.getFault(Message.java:757)
at
com.ibm.ws.webservices.engine.Message.ifFaultThrowSelf(Message.java:737)
at
com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:252)
at
com.ibm.ws.webservices.engine.WebServicesEngine.invoke(WebServicesEngine.java:255)
at
com.ibm.ws.webservices.engine.client.Connection.invokeEngine(Connection.java:688)
at
com.ibm.ws.webservices.engine.client.Connection.invoke(Connection.java:614)
at
com.ibm.ws.webservices.engine.client.Connection.invoke(Connection.java:444)
at
com.ibm.ws.webservices.engine.client.Stub$Invoke.invoke(Stub.java:662)
at
com.cml.hr.portal.eai.webservices.sap.MS_ALPHA_EJOB_PRJHTTP_SOAP_Binding_GetPositionStub.EJobGetPosition(MS_ALPHA_EJOB_PRJHTTP_SOAP_Binding_GetPositionStub.java:104)
at
com.cml.hr.portal.eai.webservices.sap.GetPositionTestCase.testGetPosition(GetPositionTestCase.java:86)
at java.lang.reflect.Method.invoke(Native Method)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
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:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:329)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:218)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:151)
2006-01-05 11:10:20,809 INFO com.ibm.ws.webservices.engine.enterprise -
WSWS3243I: Info: Mapping Exception to WebServicesFault.
WebServicesFault
faultCode: Server.generalException
faultString: WSWS3400I: Info: unexpected exception.
faultActor: null
faultDetail:
 
M

Mike Schilling

Robert Mark Bram said:
Hi All,

I am accessing a web service whose Java stubs I have generated with
WSAD 5.1. I am getting the error listed below.

It seems to indicate that there was some missing xml.

I want to see the xml request and response messages. Does anyone know
of a tool or config setting I can use to view this? Specifically, can
the xerces API help by providing extra debugging?

Assuming you're using HTTP (or some protocol over TCP) to communicate
between client and server, you can use something like TCPmon to watch the
traffic going back and forth.

https://tcpmon.dev.java.net/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,962
Messages
2,570,134
Members
46,690
Latest member
MacGyver

Latest Threads

Top