Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Writing byte[] to ServletOutputStream throwing an exception  RSS feed

 
seena mathew
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to write byte[] to servlet output stream. Its throwing an IOException. I am not sure whats wrong here. Any help would be appreciated. Thanks!






Exception Stack Trace
[19/08/13 17:21:25:825 EDT] 00000026 SystemErr R com.ibm.wsspi.webcontainer.ClosedConnectionException: OutputStream encountered error during write
[19/08/13 17:21:25:825 EDT] 00000026 SystemErr R at com.ibm.ws.webcontainer.channel.WCCByteBufferOutputStream.write(WCCByteBufferOutputStream.java:106)
[19/08/13 17:21:25:825 EDT] 00000026 SystemErr R at com.ibm.ws.webcontainer.srt.SRTOutputStream.write(SRTOutputStream.java:97)
[19/08/13 17:21:25:825 EDT] 00000026 SystemErr R at com.ibm.wsspi.webcontainer.util.BufferedServletOutputStream.writeOut(BufferedServletOutputStream.java:515)
[19/08/13 17:21:25:825 EDT] 00000026 SystemErr R at com.ibm.wsspi.webcontainer.util.BufferedServletOutputStream.write(BufferedServletOutputStream.java:343)
[19/08/13 17:21:25:825 EDT] 00000026 SystemErr R at java.io.OutputStream.write(OutputStream.java:69)

[19/08/13 17:21:25:825 EDT] 00000026 SystemErr R Caused by: java.io.IOException: Async IO operation failed (1), reason: RC: 10053 An established connection was aborted by the software in your host machine.
[19/08/13 17:21:25:825 EDT] 00000026 SystemErr R
[19/08/13 17:21:25:825 EDT] 00000026 SystemErr R at com.ibm.io.async.AsyncLibrary$IOExceptionCache.<init>(AsyncLibrary.java:891)
[19/08/13 17:21:25:825 EDT] 00000026 SystemErr R at com.ibm.io.async.AsyncLibrary$IOExceptionCache.get(AsyncLibrary.java:904)
[19/08/13 17:21:25:825 EDT] 00000026 SystemErr R at com.ibm.io.async.AsyncLibrary.getIOException(AsyncLibrary.java:918)
[19/08/13 17:21:25:825 EDT] 00000026 SystemErr R at com.ibm.io.async.AbstractAsyncChannel.multiIO(AbstractAsyncChannel.java:473)
[19/08/13 17:21:25:825 EDT] 00000026 SystemErr R at com.ibm.io.async.AsyncSocketChannelHelper.read(AsyncSocketChannelHelper.java:217)

 
Ivan Jozsef Balazs
Rancher
Posts: 992
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You seem to mix soundBytes and captchaSoundBytes which we do not know about.
It is suspicious that the length is taken from one, but the other is output.
 
seena mathew
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
seena mathew wrote:I am trying to write byte[] to servlet output stream. Its throwing an IOException. I am not sure whats wrong here. Any help would be appreciated. Thanks!






Exception Stack Trace
[19/08/13 17:21:25:825 EDT] 00000026 SystemErr R com.ibm.wsspi.webcontainer.ClosedConnectionException: OutputStream encountered error during write
[19/08/13 17:21:25:825 EDT] 00000026 SystemErr R at com.ibm.ws.webcontainer.channel.WCCByteBufferOutputStream.write(WCCByteBufferOutputStream.java:106)
[19/08/13 17:21:25:825 EDT] 00000026 SystemErr R at com.ibm.ws.webcontainer.srt.SRTOutputStream.write(SRTOutputStream.java:97)
[19/08/13 17:21:25:825 EDT] 00000026 SystemErr R at com.ibm.wsspi.webcontainer.util.BufferedServletOutputStream.writeOut(BufferedServletOutputStream.java:515)
[19/08/13 17:21:25:825 EDT] 00000026 SystemErr R at com.ibm.wsspi.webcontainer.util.BufferedServletOutputStream.write(BufferedServletOutputStream.java:343)
[19/08/13 17:21:25:825 EDT] 00000026 SystemErr R at java.io.OutputStream.write(OutputStream.java:69)

[19/08/13 17:21:25:825 EDT] 00000026 SystemErr R Caused by: java.io.IOException: Async IO operation failed (1), reason: RC: 10053 An established connection was aborted by the software in your host machine.
[19/08/13 17:21:25:825 EDT] 00000026 SystemErr R
[19/08/13 17:21:25:825 EDT] 00000026 SystemErr R at com.ibm.io.async.AsyncLibrary$IOExceptionCache.<init>(AsyncLibrary.java:891)
[19/08/13 17:21:25:825 EDT] 00000026 SystemErr R at com.ibm.io.async.AsyncLibrary$IOExceptionCache.get(AsyncLibrary.java:904)
[19/08/13 17:21:25:825 EDT] 00000026 SystemErr R at com.ibm.io.async.AsyncLibrary.getIOException(AsyncLibrary.java:918)
[19/08/13 17:21:25:825 EDT] 00000026 SystemErr R at com.ibm.io.async.AbstractAsyncChannel.multiIO(AbstractAsyncChannel.java:473)
[19/08/13 17:21:25:825 EDT] 00000026 SystemErr R at com.ibm.io.async.AsyncSocketChannelHelper.read(AsyncSocketChannelHelper.java:217)




Modified to correct the typo.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!