Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2006

Tip: Looking for answers? Try searching our database.

Debugging with Xerces API

Thread view: 
Robert Mark Bram - 10 Jan 2006 21:04 GMT
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:
Mike Schilling - 11 Jan 2006 02:22 GMT
> Hi All,
>
[quoted text clipped - 6 lines]
> 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/


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.