axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 18699] New: - Getting a Socket Writer Error in the client while throwing an AxisFault in a handler
Date Fri, 04 Apr 2003 09:07:01 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18699>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18699

Getting a Socket Writer Error in the client while throwing an AxisFault in a handler

           Summary: Getting a Socket Writer Error in the client while
                    throwing an AxisFault in a handler
           Product: Axis
           Version: 1.1rc2
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Basic Architecture
        AssignedTo: axis-dev@ws.apache.org
        ReportedBy: yraoul@micropole-univers.com


My test is:
- a client calls an axis service on tomcat with authentication (basic, through 
axis api)
- a handler (home made, inheriting BasicHandler) checks the user ability to 
access the service and throws an Axisfault if the user is not correct:
throw new AxisFault("Server.Unauthenticated", Messages.getMessage("cantAuth01", 
context.getUsername()), null, null);

The problem is: sometimes, my client gets the right answer : 401 Unauthorized
Sometimes I get the following stack trace.

This behavior is absolutely not determinist.


java.net.SocketException: Software caused connection abort: socket write error
	at java.net.SocketOutputStream.socketWrite0(Native Method)
	at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
	at java.net.SocketOutputStream.write(SocketOutputStream.java:126)
	at java.io.BufferedOutputStream.flushBuffer
(BufferedOutputStream.java:69)
	at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:127)
	at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1090)
	at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:635)
	at javax.mail.internet.MimeMultipart.writeTo(MimeMultipart.java:233)
	at com.sun.mail.handlers.multipart_mixed.writeTo
(multipart_mixed.java:68)
	at javax.activation.ObjectDataContentHandler.writeTo
(DataHandler.java:849)
	at javax.activation.DataHandler.writeTo(DataHandler.java:305)
	at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1089)
	at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1527)
	at org.apache.axis.attachments.MimeUtils.writeToMultiPartStream
(MimeUtils.java:238)
	at org.apache.axis.attachments.AttachmentsImpl.writeContentToStream
(AttachmentsImpl.java:500)
	at org.apache.axis.Message.writeTo(Message.java:447)
	at org.apache.axis.transport.http.HTTPSender.writeToSocket
(HTTPSender.java:466)
	at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:122)
	at org.apache.axis.strategies.InvocationStrategy.visit
(InvocationStrategy.java:71)
	at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
	at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
	at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
	at org.apache.axis.client.Call.invokeEngine(Call.java:2492)
	at org.apache.axis.client.Call.invoke(Call.java:2481)
	at org.apache.axis.client.Call.invoke(Call.java:2176)
	at org.apache.axis.client.Call.invoke(Call.java:2099)
	at org.apache.axis.client.Call.invoke(Call.java:1622)
	at 
fr.urssaf.sepia.transmitter.WebServiceFileTransmitterClient.sendFileReally
(WebServiceFileTransmitterClient.java:244)
	at fr.urssaf.sepia.transmitter.WebServiceFileTransmitterClient.sendFile
(WebServiceFileTransmitterClient.java:173)
	at fr.urssaf.sepia.transmitter.WebServiceFileTransmitterClient.main
(WebServiceFileTransmitterClient.java:107)

Mime
View raw message