Announcement Announcement Module
Collapse
No announcement yet.
java.io.IOException: Client is not connected Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • java.io.IOException: Client is not connected

    I am using Sprring 2.0 with Jboss 4.0.5. Today when I turned on the log to debug level, I saw that it is continuously trying to open and close the socket even when there are no messages in the queue, and is throwing Exception in the process. I guess the opening and closing of socket is due to the way Listeners are implemented. Everything is working as expected except the Exceptions.

    I am using DefaultMessageListenerContainer and haven't defined any transaction.

    <bean id="testContainer" class="org.springframework.jms.listener.DefaultMes sageListenerContainer">
    <property name="connectionFactory" ref="testFactory" />
    <property name="destination" ref="queueTest" />
    <property name="messageListener" ref="testListener"/>
    </bean>

    <bean id="testFactory" class="org.springframework.jndi.JndiObjectFactoryB ean">
    <property name="jndiName" value="UIL2ConnectionFactory"/>
    </bean>


    I have pasted the error below:

    2008-01-28 20:31:37,928 DEBUG [org.jboss.mq.il.uil2.SocketManager] Failed to handle: org.jboss.mq.il.uil2.msgs.CloseMsg5530300[msgType: m_connectionClosing, msgID: -2147476184, error: null]
    java.io.IOException: Client is not connected
    at org.jboss.mq.il.uil2.SocketManager.internalSendMes sage(SocketManager.java:264)
    at org.jboss.mq.il.uil2.SocketManager.sendReply(Socke tManager.java:238)
    at org.jboss.mq.il.uil2.ServerSocketManagerHandler.ha ndleMsg(ServerSocketManagerHandler.java:134)
    at org.jboss.mq.il.uil2.SocketManager$ReadTask.handle Msg(SocketManager.java:395)
    at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java :398)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Wo rker.run(PooledExecutor.java:748)
    at java.lang.Thread.run(Thread.java:595)
    2008-01-28 20:31:37,928 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.internalSendMes sage(SocketManager.java:264)
    at org.jboss.mq.il.uil2.SocketManager.access$800(Sock etManager.java:53)
    at org.jboss.mq.il.uil2.SocketManager$ReadTask.handle Msg(SocketManager.java:408)
    at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java :398)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Wo rker.run(PooledExecutor.java:748)
    at java.lang.Thread.run(Thread.java:595)
    2008-01-28 20:31:37,928 DEBUG [org.jboss.mq.il.uil2.SocketManager] End ReadTask.run
    2008-01-28 20:31:37,928 DEBUG [org.jboss.mq.il.uil2.UILClientILService] Stopping
    2008-01-28 20:31:37,928 DEBUG [org.jboss.mq.il.uil2.SocketManager] End WriteTask.run
    2008-01-28 20:31:37,928 DEBUG [org.jboss.mq.il.uil2.ServerSocketManagerHandler] Exiting on IOE
    java.net.SocketException: Socket closed
    at java.net.SocketInputStream.read(SocketInputStream. java:162)
    at java.io.BufferedInputStream.fill(BufferedInputStre am.java:218)
    at java.io.BufferedInputStream.read(BufferedInputStre am.java:235)
    at org.jboss.util.stream.NotifyingBufferedInputStream .read(NotifyingBufferedInputStream.java:79)
    at java.io.ObjectInputStream$PeekInputStream.peek(Obj ectInputStream.java:2196)
    at java.io.ObjectInputStream$BlockDataInputStream.rea dBlockHeader(ObjectInputStream.java:2376)
    at java.io.ObjectInputStream$BlockDataInputStream.ref ill(ObjectInputStream.java:2443)
    at java.io.ObjectInputStream$BlockDataInputStream.rea d(ObjectInputStream.java:2515)
    at java.io.ObjectInputStream$BlockDataInputStream.rea dByte(ObjectInputStream.java:2664)
Working...
X