1 Reply Latest reply on Feb 21, 2007 5:54 PM by Elias Ross

    unable to receive message from queue in a MDB

    Sudhir Srinivas Newbie

      env:

      jboss 4.0.5
      mysql
      jbossmq

      Scenario:
      1. i have a task that dispatches messages onto a queue (null user, which gets authenticated)
      2. i have a mdb deployed to listen to messages from that queue.
      3. i have mysql-jdbc2-service.xml

      when sending ObjectMessages, i DO NOT get any error. however, i dont see the mdb receive any object message either. i also do not see the message being stored in jms_messages table in mysql

      i get the following error in server.log

      2007-02-21 10:31:17,096 DEBUG [org.jboss.mq.il.uil2.UILClientILService] Starting
      2007-02-21 10:31:17,096 DEBUG [org.jboss.mq.il.uil2.ServerSocketManagerHandler] Setting up the UILClientIL Connection
      2007-02-21 10:31:17,096 DEBUG [org.jboss.mq.il.uil2.ServerSocketManagerHandler] The UILClientIL Connection is set up
      2007-02-21 10:31:17,096 DEBUG [org.jboss.mq.referenceable.SpyDestinationObjectFactory] SpyDestinationObjectFactory->getObjectInstance()

      2007-02-21 10:31:17,111 INFO [STDOUT] Sending message :

      157
      record20007.mov


      1
      sbatni
      10.35.74.101
      FS1







      31
      clip.dir
      /FS1/clip.dir














      2007-02-21 10:31:17,111 DEBUG [org.jboss.mq.il.uil2.SocketManager] Failed to handle: org.jboss.mq.il.uil2.msgs.CloseMsg20409238[msgType: m_connectionClosing, msgID: -2147483403, error: null]
      java.io.IOException: Client is not connected
      at org.jboss.mq.il.uil2.SocketManager.internalSendMessage(SocketManager.java:264)
      at org.jboss.mq.il.uil2.SocketManager.sendReply(SocketManager.java:238)
      at org.jboss.mq.il.uil2.ServerSocketManagerHandler.handleMsg(ServerSocketManagerHandler.java:131)
      at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java:395)
      at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:398)
      at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:748)
      at java.lang.Thread.run(Thread.java:595)

      2007-02-21 10:31:17,111 DEBUG [org.jboss.mq.il.uil2.SocketManager] End WriteTask.run

      2007-02-21 10:31:17,111 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:264)

      at org.jboss.mq.il.uil2.SocketManager.access$800(SocketManager.java:53)

      at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java:408)

      at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:398)

      at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:748)

      at java.lang.Thread.run(Thread.java:595)

      2007-02-21 10:31:17,111 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:2196)

      at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(ObjectInputStream.java:2376)

      at java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2443)

      at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2515)

      at java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputStream.java:2664)

      at java.io.ObjectInputStream.readByte(ObjectInputStream.java:875)

      at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:316)

      at java.lang.Thread.run(Thread.java:595)

      2007-02-21 10:31:17,111 DEBUG [org.jboss.mq.il.uil2.SocketManager] End ReadTask.run

      2007-02-21 10:31:17,111 DEBUG [org.jboss.mq.il.uil2.SocketManager] End ReadTask.run

      2007-02-21 10:31:17,111 DEBUG [org.jboss.mq.il.uil2.SocketManager] End WriteTask.run

      2007-02-21 10:31:17,111 DEBUG [org.jboss.mq.il.uil2.UILClientILService] Stopping



      any help to get started in using jbossmq to send/receive messages with mysql is appreciated

      thanks
      Sudhir