APAR status
Closed as program error.
Error description
The WAS5.1.1 runtime fails with an exception when generating
a Web Service call.
Getting the following exception while accessing a servlet which
extracts the byte stream message and tries to turn it into a
SOAP call to call another application.
javax.xml.soap.SOAPException: java.lang.NullPointerException at
com.ibm.ws.webservices.engine.SOAPPart.setContent(SOAPPart.java:
1089) at
com.test.soapSenderServlet.doPost(soapSenderServlet.java:75) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(
StrictSe
rvletInstance.java:110) at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(
StrictLi
fecycleServlet.java:174) at
com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictL
ifecycle
Servlet.java:313) at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(S
trictLif
ecycleServlet.java:116) at
com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletI
nstance.
java:283) at
com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispa
tch(Vali
dServletReferenceState.java:42) at
com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatc
h(Servle
tInstanceReference.java:40) at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWeb
AppDispa
tch(WebAppRequestDispatcher.java:1015) at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(
WebAppRe
questDispatcher.java:589) at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(W
ebAppReq
uestDispatcher.java:209) at
com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoke
r.java:1
21) at
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(W
ebAppInv
oker.java:280) at
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handle
Invocati
on(CachedInvocation.java:71) at
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByUR
I(Servle
tRequestProcessor.java:182) at
com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.servic
e(OSELis
tener.java:334) at
com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpCo
nnection
.java:56) at
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnecti
on.java:
615) at
com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439) at
com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
Caused by: java.lang.NullPointerException at
com.ibm.ws.webservices.engine.SOAPPart.getBytes(SOAPPart.java:67
1) at
com.ibm.ws.webservices.engine.SOAPPart.getString(SOAPPart.java:7
88) at
com.ibm.ws.webservices.engine.SOAPPart.getAsString(SOAPPart.java
:582) at
com.ibm.ws.webservices.engine.SOAPPart.setContent(SOAPPart.java:
1087)
... 22 more
Environment : All OS.
Websphere Application Server 5.1, 5.1.1, 5.1.1.1, 5.1.1.2
Webservices.
Local fix Problem summary
****************************************************************
* USERS AFFECTED: WebSphere Application Server users using the *
* SOAPPart.setContent(Source) method *
****************************************************************
* PROBLEM DESCRIPTION: A NullPointerException is thrown *
****************************************************************
* RECOMMENDATION: *
****************************************************************
The logic in the SOAPPart.setContent(Source) method is
incomplete for handling all cases.
Problem conclusion
Corrected the problem in the method and the user can now set
the content of the SOAPPart using that method. A
NullPointerException will no longer be thrown.
This fix is targeted for the 5.0.2.10 and 5.1.1.4
service packs.
Please refer to the Recommended Updates page for delivery dates:
http://www-1.ibm.com/support/docview.wss?rs=180&context=SSEQTP
&uid=swg27004980
Temporary fix Comments
APAR information |
APAR number |
PQ98793 |
Reported component name |
WAS BASE 5.0 |
Reported component ID |
5630A3600 |
Reported release |
00W |
Status |
CLOSED PER |
PE |
NoPE |
HIPER |
NoHIPER |
Special Attention |
NoSpecatt |
Submitted date |
2004-12-22 |
Closed date |
2005-01-19 |
Last modified date |
2005-01-19 |
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Modules/Macros
Publications Referenced
Applicable component levels |
R003 PSY |
UP |
R00A PSY |
UP |
R00H PSY |
UP |
R00I PSY |
UP |
R00P PSY |
UP |
R00S PSY |
UP |
R00W PSY |
UP |
R103 PSY |
UP |
R10A PSY |
UP |
R10H PSY |
UP |
R10I PSY |
UP |
R10P PSY |
UP |
R10S PSY |
UP |
R10W PSY |
UP |
|