You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by indrit Lavoro <in...@yahoo.it> on 2009/12/16 11:47:49 UTC
[Axis 1.4] Probable classloading problem?
Environment:
Java 1.5
Axis 1.4 based client generated via WSDL2Java
Websphere Application Server 6.1
I have the following "strange" problem, some times (too often) on a server restart all calls to the web service fail with the stack trace reported in the bottom of this e-mail.
Currently, I need to restart n-times my server until the problem is resolved, for this reason I started to think that it was related with potential class loading problem but I have already checked all dependencies and everything seems right at this moment.
Apparently the problem is related to the xml parsing but I have already checked that the xml returned by the server is correctly formatted.
Any of you has a similar problem? Advices?
Thank you very much in advance.
Indrit
[12/15/09 18:07:33:389 CET] 00000030
SystemOut O WARN AttachmentsImpl - Exception:
AxisFault
faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString:
java.lang.NullPointerException
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.lang.NullPointerException
at
org.apache.axis.encoding.SerializationContext.startElement(SerializationContext.java:1150)
at
org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:121)
at
org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1504)
at
org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:980)
at
org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:680)
at
org.apache.axis.message.MessageElement.outputImpl(MessageElement.java:1247)
at
org.apache.axis.message.SOAPHeaderElement.outputImpl(SOAPHeaderElement.java:250)
at
org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
at
org.apache.axis.message.SOAPHeader.outputImpl(SOAPHeader.java:328)
at
org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:476)
at
org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
at
org.apache.axis.SOAPPart.writeTo(SOAPPart.java:315)
at
org.apache.axis.SOAPPart.writeTo(SOAPPart.java:269)
at
org.apache.axis.SOAPPart.saveChanges(SOAPPart.java:530)
at
org.apache.axis.attachments.AttachmentsImpl.getAttachmentCount(AttachmentsImpl.java:554)
at
org.apache.axis.Message.getContentType(Message.java:486)
at
org.apache.axis.transport.http.CommonsHTTPSender.addContextInfo(CommonsHTTPSender.java:502)
at
org.apache.axis.transport.http.CommonsHTTPSender.invoke(CommonsHTTPSender.java:159)
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:2784)
at
org.apache.axis.client.Call.invoke(Call.java:2767)
at
org.apache.axis.client.Call.invoke(Call.java:2443)
at
org.apache.axis.client.Call.invoke(Call.java:2366)
at
org.apache.axis.client.Call.invoke(Call.java:1812)
.....
java.lang.NullPointerException
at
org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
at
org..apache.axis.SOAPPart.writeTo(SOAPPart.java:317)
at
org.apache.axis.SOAPPart.writeTo(SOAPPart.java:269)
at
org.apache.axis.SOAPPart.saveChanges(SOAPPart.java:530)
at
org.apache.axis.attachments.AttachmentsImpl.getAttachmentCount(AttachmentsImpl.java:554)
at
org.apache.axis.Message.getContentType(Message.java:486)
at
org.apache.axis.transport.http.CommonsHTTPSender.addContextInfo(CommonsHTTPSender.java:502)
at
org.apache.axis.transport.http.CommonsHTTPSender.invoke(CommonsHTTPSender.java:159)
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)
R: [Axis 1.4] Probable classloading problem?
Posted by indrit Lavoro <in...@yahoo.it>.
Actually I discovered that the problem is due to a race-condition on axis 1..4... I will switch to axis2 asap.
As
for the last, can you tell me how to use Rampart module for handling
http digest authentication on wsdl2java generated client?
Thank you.
Indrit
--- Mer 16/12/09, indrit Lavoro <in...@yahoo.it> ha scritto:
Da: indrit Lavoro <in...@yahoo.it>
Oggetto: [Axis 1.4] Probable classloading problem?
A: axis-user@ws.apache.org
Data: Mercoledì 16 dicembre 2009, 11:47
Environment:
Java 1.5
Axis 1.4 based client generated via WSDL2Java
Websphere Application Server 6.1
I have the following "strange" problem, some times (too often) on a server restart all calls to the web service fail with the stack trace reported in the bottom of this e-mail.
Currently, I need to restart n-times my server until the problem is resolved, for this reason I started to think that it was related with potential class loading problem but I have already checked all dependencies and everything seems right at this moment.
Apparently the problem is related to the xml parsing but I have already checked that the xml returned by the server is correctly formatted.
Any of you has a similar problem? Advices?
Thank you very much in advance.
Indrit