• Post Reply Bookmark Topic Watch Topic
  • New Topic

faultCode: Server.generalException

 
lirin oza
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

When I am passing empty array or null from webservice client, My webservice working fine but when I am trying to add some value into array from client side and submit to the server side, I am getting following exception.


WebServicesFault
faultCode: Server.generalException
faultString: java.lang.NullPointerException
faultActor: null
faultDetail:

java.lang.NullPointerException
at com.ibm.ws.webservices.engine.xmlsoap.builders.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:228)
at com.ibm.ws.webservices.engine.xmlsoap.builders.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:156)
at com.ibm.ws.webservices.engine.events.P2DConverter.endElement(P2DConverter.java:409)
at sax.SAX2DocumentEntityParserBase.endElementAction(Unknown Source)
at util.DocumentEntityParserBase.endElementEvent(Unknown Source)
at com.ibm.xml.b2b.scan.latin.LatinWFCDocumentScanner.scanEndElement(Unknown Source)
at com.ibm.xml.b2b.scan.latin.LatinWFCDocumentScanner.scanContent(Unknown Source)
at com.ibm.xml.b2b.scan.latin.LatinWFCDocumentScanner.scanDocument(Unknown Source)
at sax.latin.LatinWFCSAX2DocumentEntityParser.scanDocument(Unknown Source)
at util.DocumentEntityParserBase.parse(Unknown Source)
at sax.SAX2DocumentEntityParserBase.parseEntity(Unknown Source)
at sax.SAX2DocumentEntityParserBase.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:864)
at com.ibm.ws.webservices.engine.SOAPPart.getFault(SOAPPart.java:1225)
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:685)
at com.ibm.ws.webservices.engine.client.Connection.invoke(Connection.java:611)
at com.ibm.ws.webservices.engine.client.Connection.invoke(Connection.java:441)
at com.ibm.ws.webservices.engine.client.Stub$Invoke.invoke(Stub.java:662)
at com.cce.insight.framework.connector.InsightConnectorSoapBindingStub.postHeader(InsightConnectorSoapBindingStub.java:152)
at com.cce.insight.framework.connector.InsightConnectorProxy.postHeader(InsightConnectorProxy.java:64)
at com.cce.insight.TestHarness.main(TestHarness.java:251)


Not able to understand, what is going wrong?

lirin.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If this was my problem I would use TCPMON to capture the exact text of the request being sent and examine it carefylly. It sounds like something in the values you are passing is throwing off XML parsing.

If you have AXIS, TCPMON was probably part of the download, otherwise look at the Apache site. TCPMON now has its own project.

Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!