dcsimg
AxisFault faultString: java.lang.NullPointerException
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Marcin_s
Posted On:   Wednesday, October 5, 2005 04:46 AM

Hi! I'm working on a web service for sending files to server and back to client. Everything works ok but each 10-20 trys i got such error on client side: - 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.attachments.AttachmentsImpl.writeContentToStream(AttachmentsImpl.java:473) at org.apache.axis.Message.writeTo(Message.java:534) at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:511) at org.apach   More>>

Hi! I'm working on a web service for sending files to server and back to client. Everything works ok but each 10-20 trys i got such error on client side:



- 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.attachments.AttachmentsImpl.writeContentToStream(AttachmentsImpl.java:473)
at org.apache.axis.Message.writeTo(Message.java:534)
at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:511)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
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 homenet.client.HomeNetSoapBindingStub.sendFileToClient(HomeNetSoapBindingStub.java:349)
at homenet.client.Main$Tester.run(Main.java:51)

I don't know how to catch that exception. I don't know where is it thrown. I don't know even what to do to don't have this exception wrote on screen. It's very strange for me. Can you help me?

regards
Styczoo

   <<Less

Re: AxisFault faultString: java.lang.NullPointerException

Posted By:   Ramanand_Ruikar  
Posted On:   Thursday, November 3, 2005 06:25 AM

Hey,

If you are using WebSphere then I suppose you need to override the Default Value
set com.ibm.websphere.webservices.http.maxConnection
to 100

Synopsis
com.ibm.websphere.webservices.http.maxConnection
This property specifies the maximum number of connections that are created in the HTTP outbound connector connection pool. You can configure the property only as a JVM custom property. It affects all of the Web services HTTP connections that are made within one JVM. When the maximum number of connections is reached, no new connection are created and the HTTP connector waits for a current connection to return to the connection pool. If the HTTP connector does not wait for a current connection because of a connection request timeout, the WebServicesFault( "Connection timed out" ) error occurs. For example, if the property is set to 5, and there are 5 connections in use, the HTTP connector waits for the specified time set in the com.ibm.websphere.webservices.http.connectionTimeout property for a connection to become available.
About | Sitemap | Contact