Question

NullPointerException while deserializing SOAP request in WebSphere

Asked by: vaibhavmishra

Hi,

I have a J2EE (1.3) application having stateless session beans (EJB 2.0) exposed as bottom-up web service (SOAP 1.1, doc/literal wrapped) using RAD 7.5. Application server is WebSphere 7.0. Webservice client is a .NET based client.

One of the webservice is working fine, while in other, I am facing an issue that as soon as SOAP request hits the server, there is NullPointerException while deserializing its contents. I monitored the request through tcp/ip monitor and it seems to be fine. I tried sending the request through SOAP UI tool also, but I am getting the same exception. Also, tried custom package to namespace mappings.

Any help on this is appreciated.

Attachments:
1. SOAP request
2. Stack trace - occurs when request is sent first time
3. Stack trace - occurs during same successive requests

I am not able to attach the WSDL as of now, because I need to mask too much of the info in it, but if required I can put efforts and post it.

Thanks,
Vaibhav

////////////////////////////////////////////////////////////////
//1
////////////////////////////////////////////////////////////////
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
	<soap:Body>
		<fetchUserDetails xmlns="http://localhost:9081/MyAppHttpRouter/services">
			<userMaintainanceDetails>
				<userData xmlns="http://data.common.administration.myapp.foo.com">
					<actionWindow xsi:nil="true"
						xmlns="http://data.common.myapp.foo.com" />
					<password xsi:nil="true" xmlns="http://data.common.myapp.foo.com" />
					<securityAccess xsi:nil="true"
						xmlns="http://data.common.myapp.foo.com" />
					<token xmlns="http://data.common.myapp.foo.com" />
					<userID xmlns="http://data.common.myapp.foo.com">TESTUSER</userID>
					<version xsi:nil="true" xmlns="http://data.common.myapp.foo.com" />
					<versionCheckInd xsi:nil="true"
						xmlns="http://data.common.myapp.foo.com" />
					<actionMode xsi:nil="true" xmlns="http://data.common.myapp.foo.com" />
					<userState xsi:nil="true" xmlns="http://data.common.myapp.foo.com" />
				</userData>
				<applicationError xsi:nil="true"
					xmlns="http://data.common.administration.myapp.foo.com" />
				<error xmlns="http://data.common.administration.myapp.foo.com">false</error>
				<userMaintainance xmlns="http://data.common.administration.myapp.foo.com">
					<userMaintainanceDetails xsi:nil="true" />
					<rowStatus xsi:nil="true" />
					<typeOfOperation>A</typeOfOperation>
					<userCheckFlag xsi:nil="true" />
					<regionIndicator xsi:nil="true" />
					<regionAddIndicator xsi:nil="true" />
				</userMaintainance>
				<userSaveFlagIndicator xsi:nil="true"
					xmlns="http://data.common.administration.myapp.foo.com" />
			</userMaintainanceDetails>
		</fetchUserDetails>
	</soap:Body>
</soap:Envelope>
 
 
////////////////////////////////////////////////////////////////
//2
////////////////////////////////////////////////////////////////
[6/22/09 14:44:06:203 IST] 00000067 FfdcProvider  I com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on C:\Program Files\IBM\SDP\runtimes\base_v7\profiles\was70profile1\logs\ffdc\server1_747a747a_09.06.22_14.44.06.0503532.txt com.ibm.ws.webservices.engine.encoding.DeserializationContextImpl.parse 269
[6/22/09 14:44:06:244 IST] 00000067 FfdcProvider  I com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on C:\Program Files\IBM\SDP\runtimes\base_v7\profiles\was70profile1\logs\ffdc\server1_747a747a_09.06.22_14.44.06.2083533.txt com.ibm.ws.webservices.engine.SOAPPart.getSOAPEnvelope 964
[6/22/09 14:44:06:288 IST] 00000067 FfdcProvider  I com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on C:\Program Files\IBM\SDP\runtimes\base_v7\profiles\was70profile1\logs\ffdc\server1_747a747a_09.06.22_14.44.06.2573534.txt com.ibm.ws.webservices.engine.SOAPPart.getEnvelope 1122
[6/22/09 14:44:06:314 IST] 00000067 FfdcProvider  I com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on C:\Program Files\IBM\SDP\runtimes\base_v7\profiles\was70profile1\logs\ffdc\server1_747a747a_09.06.22_14.44.06.3003535.txt com.ibm.ws.webservices.engine.handlers.soap.SOAPHandlerChain.handleRequest 140
[6/22/09 14:44:06:320 IST] 00000067 WebServicesSe E com.ibm.ws.webservices.engine.transport.http.WebServicesServlet doPost WSWS3227E:  Error: Exception:
                                 WebServicesFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
 faultString: java.lang.NullPointerException Message being parsed: 
 faultActor: null
 faultDetail: 
 
java.lang.NullPointerException Message being parsed: 
	at com.ibm.ws.webservices.engine.WebServicesFault.makeFault(WebServicesFault.java:298)
	at com.ibm.ws.webservices.engine.SOAPPart._getSOAPEnvelope(SOAPPart.java:1090)
	at com.ibm.ws.webservices.engine.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:628)
	at com.ibm.ws.webservices.engine.SOAPPart.getEnvelope(SOAPPart.java:656)
	at com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXRPCHandlerChain.handleRequest(JAXRPCHandlerChain.java:301)
	at com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXRPCHandler.invokeServerRequestHandler(JAXRPCHandler.java:506)
	at com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXRPCHandler$1.invoke(JAXRPCHandler.java:380)
	at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:209)
	at com.ibm.ws.webservices.engine.WebServicesEngine.invoke(WebServicesEngine.java:336)
	at com.ibm.ws.webservices.engine.transport.http.WebServicesServlet.doPost(WebServicesServlet.java:908)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
	at com.ibm.ws.webservices.engine.transport.http.WebServicesServletBase.service(WebServicesServletBase.java:344)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
	at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1449)
	at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:790)
	at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:443)
	at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:175)
	at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3610)
	at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:274)
	at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:926)
	at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1557)
	at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:173)
	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:455)
	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:384)
	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:288)
	at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
	at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
	at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
	at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
	at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
	at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
	at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:202)
	at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:766)
	at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:896)
	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1527)
Caused by: java.lang.NullPointerException
	at com.ibm.ws.webservices.engine.encoding.utils.BeanDesc.setJavaType(BeanDesc.java:277)
	at com.ibm.ws.webservices.engine.encoding.utils.BeanDesc.getPropertyDescriptorMap(BeanDesc.java:260)
	at com.ibm.ws.webservices.engine.encoding.utils.BeanDesc.getPropertyDescriptors(BeanDesc.java:219)
	at com.ibm.ws.webservices.engine.encoding.utils.BeanDesc.getPropertyDescriptorMap(BeanDesc.java:248)
	at com.ibm.ws.webservices.engine.encoding.utils.BeanDesc._prime(BeanDesc.java:407)
	at com.ibm.ws.webservices.engine.encoding.utils.BeanDesc.getBeanDescForClass(BeanDesc.java:169)
	at com.ibm.ws.webservices.engine.encoding.ser.BeanDeserializerFactory.lazyInitialization(BeanDeserializerFactory.java:133)
	at com.ibm.ws.webservices.engine.encoding.ser.BaseDeserializerFactory.getDeserializerAs(BaseDeserializerFactory.java:168)
	at com.ibm.ws.webservices.engine.encoding.DeserializationContextImpl.getDeserializer(DeserializationContextImpl.java:438)
	at com.ibm.ws.webservices.engine.xmlsoap.builders.RequestResponseProcessor.onStartChild(RequestResponseProcessor.java:356)
	at com.ibm.ws.webservices.engine.events.P2DConverter.startElement(P2DConverter.java:432)
	at com.ibm.ws.webservices.engine.events.P2DConverter.startElement(P2DConverter.java:373)
	at com.ibm.xml.xlxp2.api.sax.impl.SAX2ParserBase.startElementAction(SAX2ParserBase.java:220)
	at com.ibm.xml.xlxp2.api.was.WSXMLReader.startElementAction(WSXMLReader.java:124)
	at com.ibm.xml.xlxp2.api.sax.impl.SAX2ParserBase.startElementEvent(SAX2ParserBase.java:206)
	at com.ibm.xml.xlxp2.api.sax.impl.SAX2DocumentScanner.produceStartElementEvent(SAX2DocumentScanner.java:45)
	at com.ibm.xml.xlxp2.scan.DocumentScanner.scanStartElement(DocumentScanner.java:2260)
	at com.ibm.xml.xlxp2.scan.DocumentScanner.nextEvent(DocumentScanner.java:1294)
	at com.ibm.xml.xlxp2.scan.DocumentScanner.parseDocumentEntity(DocumentScanner.java:1168)
	at com.ibm.xml.xlxp2.api.was.WSXMLReader.parseEvents(WSXMLReader.java:112)
	at com.ibm.xml.xlxp2.api.sax.impl.SAX2ParserBase.parseEntity(SAX2ParserBase.java:1308)
	at com.ibm.xml.xlxp2.api.sax.impl.SAX2ParserBase.parse(SAX2ParserBase.java:1359)
	at javax.xml.parsers.SAXParser.parse(Unknown Source)
	at com.ibm.ws.webservices.engine.utils.WebServicesParser.parse(WebServicesParser.java:374)
	at com.ibm.ws.webservices.engine.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:295)
	at com.ibm.ws.webservices.engine.SOAPPart._getSOAPEnvelope(SOAPPart.java:1064)
	... 33 more
 
////////////////////////////////////////////////////////////////
//3
////////////////////////////////////////////////////////////////
[6/23/09 11:24:49:687 IST] 00000069 WebServicesSe E com.ibm.ws.webservices.engine.transport.http.WebServicesServlet doPost WSWS3227E:  Error: Exception:
                                 WebServicesFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
 faultString: java.lang.NullPointerException Message being parsed: 
 faultActor: null
 faultDetail: 
 
java.lang.NullPointerException Message being parsed: 
	at com.ibm.ws.webservices.engine.WebServicesFault.makeFault(WebServicesFault.java:298)
	at com.ibm.ws.webservices.engine.SOAPPart._getSOAPEnvelope(SOAPPart.java:1090)
	at com.ibm.ws.webservices.engine.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:628)
	at com.ibm.ws.webservices.engine.SOAPPart.getEnvelope(SOAPPart.java:656)
	at com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXRPCHandlerChain.handleRequest(JAXRPCHandlerChain.java:301)
	at com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXRPCHandler.invokeServerRequestHandler(JAXRPCHandler.java:506)
	at com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXRPCHandler$1.invoke(JAXRPCHandler.java:380)
	at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:209)
	at com.ibm.ws.webservices.engine.WebServicesEngine.invoke(WebServicesEngine.java:336)
	at com.ibm.ws.webservices.engine.transport.http.WebServicesServlet.doPost(WebServicesServlet.java:908)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
	at com.ibm.ws.webservices.engine.transport.http.WebServicesServletBase.service(WebServicesServletBase.java:344)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
	at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1449)
	at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:790)
	at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:443)
	at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:175)
	at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:91)
	at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:859)
	at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1557)
	at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:173)
	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:455)
	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:384)
	at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83)
	at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
	at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
	at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
	at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
	at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:202)
	at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:766)
	at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:896)
	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1527)
Caused by: java.lang.NullPointerException
	at com.ibm.ws.webservices.engine.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:347)
	at com.ibm.ws.webservices.engine.events.P2DConverter.flush(P2DConverter.java:914)
	at com.ibm.ws.webservices.engine.events.P2DConverter.startPrefixMapping(P2DConverter.java:253)
	at com.ibm.xml.xlxp2.api.sax.impl.SAX2ParserBase.startPrefixMappings(SAX2ParserBase.java:175)
	at com.ibm.xml.xlxp2.api.sax.impl.SAX2ParserBase.startElementAction(SAX2ParserBase.java:216)
	at com.ibm.xml.xlxp2.api.was.WSXMLReader.startElementAction(WSXMLReader.java:124)
	at com.ibm.xml.xlxp2.api.sax.impl.SAX2ParserBase.startElementEvent(SAX2ParserBase.java:206)
	at com.ibm.xml.xlxp2.api.sax.impl.SAX2DocumentScanner.produceLeafElementEvent(SAX2DocumentScanner.java:52)
	at com.ibm.xml.xlxp2.scan.DocumentScanner.scanStartElement(DocumentScanner.java:2268)
	at com.ibm.xml.xlxp2.scan.DocumentScanner.nextEvent(DocumentScanner.java:1294)
	at com.ibm.xml.xlxp2.scan.DocumentScanner.parseDocumentEntity(DocumentScanner.java:1168)
	at com.ibm.xml.xlxp2.api.was.WSXMLReader.parseEvents(WSXMLReader.java:112)
	at com.ibm.xml.xlxp2.api.sax.impl.SAX2ParserBase.parseEntity(SAX2ParserBase.java:1308)
	at com.ibm.xml.xlxp2.api.sax.impl.SAX2ParserBase.parse(SAX2ParserBase.java:1359)
	at javax.xml.parsers.SAXParser.parse(Unknown Source)
	at com.ibm.ws.webservices.engine.utils.WebServicesParser.parse(WebServicesParser.java:374)
	at com.ibm.ws.webservices.engine.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:295)
	at com.ibm.ws.webservices.engine.SOAPPart._getSOAPEnvelope(SOAPPart.java:1064)
	... 30 more
 
[6/23/09 11:24:49:560 IST] 00000069 SystemErr     R java.lang.NullPointerException
[6/23/09 11:24:49:618 IST] 00000069 SystemErr     R 	at com.ibm.ws.webservices.engine.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:347)
[6/23/09 11:24:49:618 IST] 00000069 SystemErr     R 	at com.ibm.ws.webservices.engine.events.P2DConverter.flush(P2DConverter.java:914)
[6/23/09 11:24:49:618 IST] 00000069 SystemErr     R 	at com.ibm.ws.webservices.engine.events.P2DConverter.startPrefixMapping(P2DConverter.java:253)
[6/23/09 11:24:49:618 IST] 00000069 SystemErr     R 	at com.ibm.xml.xlxp2.api.sax.impl.SAX2ParserBase.startPrefixMappings(SAX2ParserBase.java:175)
[6/23/09 11:24:49:619 IST] 00000069 SystemErr     R 	at com.ibm.xml.xlxp2.api.sax.impl.SAX2ParserBase.startElementAction(SAX2ParserBase.java:216)
[6/23/09 11:24:49:619 IST] 00000069 SystemErr     R 	at com.ibm.xml.xlxp2.api.was.WSXMLReader.startElementAction(WSXMLReader.java:124)
[6/23/09 11:24:49:619 IST] 00000069 SystemErr     R 	at com.ibm.xml.xlxp2.api.sax.impl.SAX2ParserBase.startElementEvent(SAX2ParserBase.java:206)
[6/23/09 11:24:49:619 IST] 00000069 SystemErr     R 	at com.ibm.xml.xlxp2.api.sax.impl.SAX2DocumentScanner.produceLeafElementEvent(SAX2DocumentScanner.java:52)
[6/23/09 11:24:49:619 IST] 00000069 SystemErr     R 	at com.ibm.xml.xlxp2.scan.DocumentScanner.scanStartElement(DocumentScanner.java:2268)
[6/23/09 11:24:49:620 IST] 00000069 SystemErr     R 	at com.ibm.xml.xlxp2.scan.DocumentScanner.nextEvent(DocumentScanner.java:1294)
[6/23/09 11:24:49:620 IST] 00000069 SystemErr     R 	at com.ibm.xml.xlxp2.scan.DocumentScanner.parseDocumentEntity(DocumentScanner.java:1168)
[6/23/09 11:24:49:620 IST] 00000069 SystemErr     R 	at com.ibm.xml.xlxp2.api.was.WSXMLReader.parseEvents(WSXMLReader.java:112)
[6/23/09 11:24:49:620 IST] 00000069 SystemErr     R 	at com.ibm.xml.xlxp2.api.sax.impl.SAX2ParserBase.parseEntity(SAX2ParserBase.java:1308)
[6/23/09 11:24:49:620 IST] 00000069 SystemErr     R 	at com.ibm.xml.xlxp2.api.sax.impl.SAX2ParserBase.parse(SAX2ParserBase.java:1359)
[6/23/09 11:24:49:621 IST] 00000069 SystemErr     R 	at javax.xml.parsers.SAXParser.parse(Unknown Source)
[6/23/09 11:24:49:621 IST] 00000069 SystemErr     R 	at com.ibm.ws.webservices.engine.utils.WebServicesParser.parse(WebServicesParser.java:374)
[6/23/09 11:24:49:621 IST] 00000069 SystemErr     R 	at com.ibm.ws.webservices.engine.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:295)
[6/23/09 11:24:49:621 IST] 00000069 SystemErr     R 	at com.ibm.ws.webservices.engine.SOAPPart._getSOAPEnvelope(SOAPPart.java:1064)
[6/23/09 11:24:49:631 IST] 00000069 SystemErr     R 	at com.ibm.ws.webservices.engine.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:628)
[6/23/09 11:24:49:633 IST] 00000069 SystemErr     R 	at com.ibm.ws.webservices.engine.SOAPPart.getEnvelope(SOAPPart.java:656)
[6/23/09 11:24:49:633 IST] 00000069 SystemErr     R 	at com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXRPCHandlerChain.handleRequest(JAXRPCHandlerChain.java:301)
[6/23/09 11:24:49:633 IST] 00000069 SystemErr     R 	at com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXRPCHandler.invokeServerRequestHandler(JAXRPCHandler.java:506)
[6/23/09 11:24:49:633 IST] 00000069 SystemErr     R 	at com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXRPCHandler$1.invoke(JAXRPCHandler.java:380)
[6/23/09 11:24:49:633 IST] 00000069 SystemErr     R 	at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:209)
[6/23/09 11:24:49:635 IST] 00000069 SystemErr     R 	at com.ibm.ws.webservices.engine.WebServicesEngine.invoke(WebServicesEngine.java:336)
[6/23/09 11:24:49:635 IST] 00000069 SystemErr     R 	at com.ibm.ws.webservices.engine.transport.http.WebServicesServlet.doPost(WebServicesServlet.java:908)
[6/23/09 11:24:49:635 IST] 00000069 SystemErr     R 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
[6/23/09 11:24:49:635 IST] 00000069 SystemErr     R 	at com.ibm.ws.webservices.engine.transport.http.WebServicesServletBase.service(WebServicesServletBase.java:344)
[6/23/09 11:24:49:643 IST] 00000069 SystemErr     R 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
[6/23/09 11:24:49:657 IST] 00000069 SystemErr     R 	at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1449)
[6/23/09 11:24:49:658 IST] 00000069 SystemErr     R 	at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:790)
[6/23/09 11:24:49:670 IST] 00000069 SystemErr     R 	at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:443)
[6/23/09 11:24:49:670 IST] 00000069 SystemErr     R 	at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:175)
[6/23/09 11:24:49:670 IST] 00000069 SystemErr     R 	at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:91)
[6/23/09 11:24:49:671 IST] 00000069 SystemErr     R 	at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:859)
[6/23/09 11:24:49:671 IST] 00000069 SystemErr     R 	at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1557)
[6/23/09 11:24:49:671 IST] 00000069 SystemErr     R 	at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:173)
[6/23/09 11:24:49:671 IST] 00000069 SystemErr     R 	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:455)
[6/23/09 11:24:49:671 IST] 00000069 SystemErr     R 	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:384)
[6/23/09 11:24:49:672 IST] 00000069 SystemErr     R 	at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83)
[6/23/09 11:24:49:672 IST] 00000069 SystemErr     R 	at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
[6/23/09 11:24:49:672 IST] 00000069 SystemErr     R 	at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
[6/23/09 11:24:49:672 IST] 00000069 SystemErr     R 	at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
[6/23/09 11:24:49:672 IST] 00000069 SystemErr     R 	at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
[6/23/09 11:24:49:677 IST] 00000069 SystemErr     R 	at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:202)
[6/23/09 11:24:49:677 IST] 00000069 SystemErr     R 	at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:766)
[6/23/09 11:24:49:677 IST] 00000069 SystemErr     R 	at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:896)
[6/23/09 11:24:49:677 IST] 00000069 SystemErr     R 	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1527)

                                  
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:

Select allOpen in new window

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-06-25 at 07:50:39ID24521961
Tags

NullPointerException

,

BeanDeserializer.onStartChild

,

WebSphere

,

webservice

,

SOAP

Topics

IBM Websphere Application Server

,

Web Services and WCF

,

Web Services Description Language

Participating Experts
1
Points
0
Comments
4

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. An EJB example using Websphere 5.1 and Oracle
    Can someone point me to a tutorial which uses websphere 5.1 to deploy an simply EJB example and also it uses Oracle database? Thanks you very much! RD
  2. WebSphere Libraries Problem
    Hello everyone, I have compiled my WebSphere application (using java, libraries - jars, not using EJBs) successfully and running fine locally on my PC accessing an Oracle9i database. However, when the .ear is exported to the actual server, it is not using my .jar libraries, ...
  3. Soap call from vb.NET to Java application residing on Web…
    Hi, I was wondering if it is possible to do a soap call from vb.net application to java application that exists on remote Websphere server 5 Thanks, Lily
  4. Can't login to LDAP enabled Websphere as wasadmin
    Hi, I am unable to login to Websphere any more using wasadmin. Each time I provide try to login as wasadmin I get the error "Login failed. Check the user ID and password and try again." One of two things may have triggered this problem. First, the problem started ...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: VenabiliPosted on 2009-06-29 at 09:48:53ID: 24737838

It sounds like a badly formatted request... or one not matching the WSDL. Posting it might help - because without it, I doubt that anyone can help :(

 

by: VenabiliPosted on 2009-06-29 at 09:51:03ID: 24737868

And even though this is not exactly the same issue, I suspect that the reasons might be similar: http://forums.oracle.com/forums/thread.jspa?threadID=508568

 

by: vaibhavmishraPosted on 2009-07-02 at 02:18:50ID: 24761536

The problem is resolved in a strange manner. It was not an issue with soap request or wsdl.

Consider the 2 code snippets attached (earlier and now). Earlier, there was Vector which is now  replaced by String[]. Reason being interoperability issues with webservice's .NET client. Earlier, the J2EE app was deployed in weblogic 8.1, and now it has to be in websphere 7.0.

Now, the problem occured due to the method getXyz(int i). Somehow the websphere runtime got confused because method name "getXyz" indicates that it is getter for property "xyz". But, since "xyz" is not of array type, the parameter (int i) caused confusion. There was no compile time issue, but there was NullPointerException at runtime during SOAP request deserialization. After commenting this method, the exception stopped occuring.

//earlier
public class MyBean implements Serializable {
    private Vector xyzCollection;
    private String xyz;
    public String getXyz() {...}
    public void setXyz(String xyz) {...}
    public Vector getXyzCollection() {...}
    public void setXyzCollection(Vector xyzCollection) {...}
    public String getXyz(int i) { return xyzCollection.get(i); }
}
 
//now
public class MyBean implements Serializable {
    private String[] xyzCollection;
    private String xyz;
    public String getXyz() {...}
    public void setXyz(String xyz) {...}
    public String[] getXyzCollection() {...}
    public void setXyzCollection(String[] xyzCollection) {...}
    public String getXyz(int i) { return xyzCollection[i]; }
}
                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:

Select allOpen in new window

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...