[jboss-user] [Messaging, JMS & JBossMQ] - java.net.SocketException: socket closed

yoggi06 do-not-reply at jboss.com
Fri Aug 11 05:56:39 EDT 2006


Hello together,

i'm having following problem.

I use: JBOSS jboss-4.0.4.GA and EJB3.

see the ERROR-CODE:

  | java.io.IOException: Client is not connected
  | 	at org.jboss.mq.il.uil2.SocketManager.internalSendMessage(SocketManager.java:265)
  | 	at org.jboss.mq.il.uil2.SocketManager.sendReply(SocketManager.java:239)
  | 	at org.jboss.mq.il.uil2.ServerSocketManagerHandler.handleMsg(ServerSocketManagerHandler.java:128)
  | 	at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java:396)
  | 	at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:392)
  | 	at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:748)
  | 	at java.lang.Thread.run(Thread.java:595)
  | 2006-08-11 11:19:17,265 DEBUG [org.jboss.mq.il.uil2.SocketManager] Failed to send error reply
  | java.io.IOException: Client is not connected
  | 	at org.jboss.mq.il.uil2.SocketManager.internalSendMessage(SocketManager.java:265)
  | 	at org.jboss.mq.il.uil2.SocketManager.access$800(SocketManager.java:52)
  | 	at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java:409)
  | 	at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:392)
  | 	at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:748)
  | 	at java.lang.Thread.run(Thread.java:595)
  | 2006-08-11 11:19:17,265 DEBUG [org.jboss.mq.il.uil2.SocketManager] End WriteTask.run
  | 2006-08-11 11:19:17,265 DEBUG [org.jboss.mq.il.uil2.ServerSocketManagerHandler] Exiting on IOE
  | java.net.SocketException: socket closed
  | 	at java.net.SocketInputStream.socketRead0(Native Method)
  | 	at java.net.SocketInputStream.read(SocketInputStream.java:129)
  | 	at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
  | 	at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
  | 	at org.jboss.util.stream.NotifyingBufferedInputStream.read(NotifyingBufferedInputStream.java:79)
  | 	at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2205)
  | 	at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(ObjectInputStream.java:2385)
  | 	at java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2452)
  | 	at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2524)
  | 	at java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputStream.java:2673)
  | 	at java.io.ObjectInputStream.readByte(ObjectInputStream.java:874)
  | 	at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:317)
  | 	at java.lang.Thread.run(Thread.java:595)
  | 

I have a Client (normally Java Class) to send the messages and a MessageDrivenBean to receive the messages (with onMessage()).

The problem is when session.close() and connection.close()  !!!

What do I make wrong?

greetings
yog


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964571#3964571

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964571



More information about the jboss-user mailing list