[prev in list] [next in list] [prev in thread] [next in thread] 

List:       axis-user
Subject:    FW: Weblogic8.1 and Axis 1.2 (Final) :: NullPointerException
From:       "Kiran Kumar" <kkumar () objectwave ! com>
Date:       2005-05-31 12:33:01
Message-ID: D95A57841C642B41AF71A0930AB1833705D5FF () mxhost ! mxhost ! objectwave ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Friends, I also tried to force weblogic to use xerces with the following VM argument, \
but I am still getting the same error. Please let me know if you have any thoughts.  
-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
  
 
Thanks ~Kiran

________________________________

From: Kiran Kumar [mailto:kkumar@objectwave.com]
Sent: Mon 5/30/2005 7:16 PM
To: axis-user@ws.apache.org
Subject: Weblogic8.1 and Axis 1.2 (Final) :: NullPointerException


Hello, I wanted to use document style webservices so I moved to Axis 1.2 (Final). I \
built a simple webservice (RPC style) to see how Axis 1.2 works.. It did go well with \
Tomcat 4.1. I deployed the same war file in weblogic8.1 SP4. It was deployed \
successfully but when I try to call from the client it was giving the following \
error.   
org.apache.axis.utils.XMLUtils - Failed to set EntityResolver to null on \
DocumentBuilder java.lang.NullPointerException
 at weblogic.xml.jaxp.ChainingEntityResolver.popEntityResolver(ChainingEntityResolver.java:61)
  at weblogic.xml.jaxp.RegistryDocumentBuilder.setEntityResolver(RegistryDocumentBuilder.java:168)
  
 
I attached the detailed stack trace in the attached txt file. I did following thing \
to resolve this but could not get through this..  
1. I kept the jar files saaj.jar, xercesImpl.jar, xml-apis.jar, jax-rpc.jar in the \
weblogic classpath before webservices.jar   
Based on stack trace, apache.utils.XMLUtils is probably sending some XML which is not \
being able to get through the weblogic document builder.   
If you guys have any idea please throw some light on this..
 
Thanks for your time
Kiran
-------------------------------------------------
Ph: 312 742 9630
Email: kkumar@objectwave.com <mailto:kkumar@objectwave.com> 
------------------------------------------------

This e-mail, and any attachments thereto, is confidential and is intended only for \
the individual(s) named.  If you are not the intended recipient, please let us know \
by e-mail reply and delete it from your system; do not copy/save this e-mail or \
disclose its contents to anyone.  E-mail transmissions cannot be guaranteed to be \
secure or error-free as the transmission could be interrupted, corrupted, lost, \
destroyed, altered, arrive late or contain viruses.  ObjectWave does not accept \
liability for any errors or omissions in the contents of this e-mail which arise as a \
result of e-mail transmission.  The views expressed in this e-mail do not necessarily \
reflect those of ObjectWave or its affiliates.

------------------------------------------------


[Attachment #5 (text/html)]

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML \
DIR=ltr><HEAD></HEAD><BODY> <DIV id=idOWAReplyText35596 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Friends, I also tried to 
force weblogic to use xerces with the following VM argument, but I am still 
getting the same error. Please let me know if you have any 
thoughts.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial 
size=2><STRONG>-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl</STRONG></FONT></DIV>
 <DIV dir=ltr><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial>Thanks ~Kiran</FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Kiran Kumar 
[mailto:kkumar@objectwave.com]<BR><B>Sent:</B> Mon 5/30/2005 7:16 
PM<BR><B>To:</B> axis-user@ws.apache.org<BR><B>Subject:</B> Weblogic8.1 and Axis 
1.2 (Final) :: NullPointerException<BR></FONT><BR></DIV>
<DIV dir=ltr>
<DIV id=idOWAReplyText48630 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Hello, I wanted to use 
document style webservices so I moved to Axis 1.2 (Final). I built a simple 
webservice (RPC style) to see how Axis 1.2 works.. It did go well with Tomcat 
4.1. I deployed the same war file in weblogic8.1 SP4. It was deployed 
successfully but when I try to call from the client it was giving the following 
error. </FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial color=#ff0000 
size=1>org.apache.axis.utils.XMLUtils - Failed to set EntityResolver to null on 
DocumentBuilder<BR>java.lang.NullPointerException<BR>&nbsp;at 
weblogic.xml.jaxp.ChainingEntityResolver.popEntityResolver(ChainingEntityResolver.java:61)<BR>&nbsp;at \
 weblogic.xml.jaxp.RegistryDocumentBuilder.setEntityResolver(RegistryDocumentBuilder.java:168)</FONT></DIV>
 <DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>I attached the detailed stack trace in the 
attached txt file. I did following thing to resolve this but could not get 
through this..</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>1. I kept the jar files saaj.jar, 
xercesImpl.jar, xml-apis.jar, jax-rpc.jar in the weblogic classpath before 
webservices.jar </FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>Based on stack trace, apache.utils.XMLUtils 
is probably sending some XML which is not being able to get through the weblogic 
document builder. </FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>If you guys have any idea please throw some 
light on this..</FONT></DIV>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2></FONT>&nbsp;</DIV></DIV>
<DIV id=idSignature7538 dir=ltr>
<DIV><FONT face=Arial color=#000000 size=2>Thanks for your time</FONT></DIV>
<DIV><FONT face=Arial size=2>Kiran</FONT></DIV>
<DIV><FONT face=Arial 
size=2>-------------------------------------------------</FONT></DIV>
<DIV><FONT face=Arial><FONT size=1><FONT color=#0000ff>Ph:</FONT> <FONT 
color=#008000>312 742 9630</FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=1><FONT color=#0000ff>Email:</FONT> </FONT><A 
href="mailto:kkumar@objectwave.com"><FONT color=#800080 
size=1>kkumar@objectwave.com</FONT></A></FONT></DIV></DIV></DIV></BODY><FONT \
face=Tahoma size=2><FONT color=#0000ff> <P class=MsoNormal><FONT face=Arial \
size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: \
Arial">------------------------------------------------</SPAN></FONT></P> <P \
class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: \
Arial">This e-mail, and any attachments thereto, is confidential and is intended only \
for the individual(s) named.&nbsp; If you are not the intended recipient, please let \
us know by e-mail reply and delete it from your system; do not copy/save this e-mail \
or disclose its contents to anyone.&nbsp; E-mail transmissions cannot be guaranteed \
to be secure or error-free as the transmission could be interrupted, corrupted, lost, \
destroyed, altered, arrive late or contain viruses.&nbsp; ObjectWave does not accept \
liability for any errors or omissions in the contents of this e-mail which arise as a \
result of e-mail transmission.&nbsp; The views expressed in this e-mail do not \
necessarily reflect those of ObjectWave or its affiliates.</SPAN></FONT></P> <P \
class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: \
Arial">------------------------------------------------</SPAN></FONT></P></FONT></FONT><!--[object_id=#objectwave.com#]--><FONT \
face=Tahoma size=2><FONT color=#0000ff> <P class=MsoNormal><FONT face=Arial \
size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: \
Arial">------------------------------------------------</SPAN></FONT></P> <P \
class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: \
Arial">This e-mail, and any attachments thereto, is confidential and is intended only \
for the individual(s) named.&nbsp; If you are not the intended recipient, please let \
us know by e-mail reply and delete it from your system; do not copy/save this e-mail \
or disclose its contents to anyone.&nbsp; E-mail transmissions cannot be guaranteed \
to be secure or error-free as the transmission could be interrupted, corrupted, lost, \
destroyed, altered, arrive late or contain viruses.&nbsp; ObjectWave does not accept \
liability for any errors or omissions in the contents of this e-mail which arise as a \
result of e-mail transmission.&nbsp; The views expressed in this e-mail do not \
necessarily reflect those of ObjectWave or its affiliates.</SPAN></FONT></P> <P \
class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: \
Arial">------------------------------------------------</SPAN></FONT></P></FONT></FONT></HTML>



["weblogic8.1SP4_axis_1.2.txt" (text/plain)]

<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope \
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" \
xmlns:xsd="http://www.w3.org/2001/XMLSchema" \
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><individual \
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><in0 \
xsi:type="xsd:string">50 w washington st</in0><in1 href="#id0"/><in2 \
href="#id1"/></individual><multiRef id="id0" soapenc:root="0" \
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:int" \
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">1</multiRef><multiRef \
id="id1" soapenc:root="0" \
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" \
xsi:type="xsd:boolean" \
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">true</multiRef></soapenv:Body></soapenv:Envelope>
 2005-05-30 18:43:44,328 [DEBUG] org.apache.axis.transport.http.HTTPSender - HTTP/1.1 \
500 Internal Server Error 2005-05-30 18:43:44,343 [DEBUG] \
org.apache.axis.transport.http.HTTPSender - Date Mon, 30 May 2005 23:43:43 GMT \
2005-05-30 18:43:44,343 [DEBUG] org.apache.axis.transport.http.HTTPSender - \
Content-Type text/xml; charset=utf-8 2005-05-30 18:43:44,343 [DEBUG] \
org.apache.axis.transport.http.HTTPSender - Connection Close

============================ ********* HERE IS THE ERROR ***** \
=========================== 2005-05-30 18:43:44,343 [DEBUG] \
org.apache.axis.utils.XMLUtils - Failed to set EntityResolver to null on \
DocumentBuilder java.lang.NullPointerException
	at weblogic.xml.jaxp.ChainingEntityResolver.popEntityResolver(ChainingEntityResolver.java:61)
  at weblogic.xml.jaxp.RegistryDocumentBuilder.setEntityResolver(RegistryDocumentBuilder.java:168)
  at org.apache.axis.utils.XMLUtils.releaseDocumentBuilder(XMLUtils.java:252)
	at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:342)
	at org.apache.axis.message.SOAPDocumentImpl.<init>(SOAPDocumentImpl.java:70)
	at org.apache.axis.SOAPPart.<init>(SOAPPart.java:1013)
	at org.apache.axis.Message.setup(Message.java:366)
	at org.apache.axis.Message.<init>(Message.java:232)
	at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:767)
	at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)
	at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
	at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
	at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
	at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
	at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
	at org.apache.axis.client.Call.invoke(Call.java:2748)
	at org.apache.axis.client.Call.invoke(Call.java:2424)
	at org.apache.axis.client.Call.invoke(Call.java:2347)
	at org.apache.axis.client.Call.invoke(Call.java:1804)
	at GetCoordinateServiceTest.testDynamicWay(GetCoordinateServiceTest.java:47)
	at GetCoordinateServiceTest.main(GetCoordinateServiceTest.java:60)



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic