4 Replies Latest reply on Oct 24, 2003 4:58 PM by arabin

    An exception

    arabin Novice

      I am trying to send messages in a loop. Here what I get on a certain iteration (after several hundreds of successes):

      org.jboss.mq.SpyJMSException: Cannot send a message to the JMS server; - nested
      throwable: (java.io.EOFException)
      at org.jboss.mq.Connection.sendToServer(Connection.java:1251)
      at org.jboss.mq.SpySession.sendMessage(SpySession.java:720)
      at org.jboss.mq.SpyQueueSender.internalSend(SpyQueueSender.java:118)
      at org.jboss.mq.SpyQueueSender.send(SpyQueueSender.java:76)
      at com.wrn.teamworks.cms.cms.MessageServiceObjectSender.finallySendLocal
      lyAndWaitAsynch(MessageServiceObjectSender.java:476)
      at com.wrn.teamworks.cms.cms.MessageServiceObjectHighSender.sendAndWaitR
      esponseAsynch(MessageServiceObjectHighSender.java:458)
      at com.wrn.teamworks.cms.cms.MessageServiceObject.sendAndReceiveAsynch(M
      essageServiceObject.java:685)
      at com.wrn.teamworks.cms.client.ExampleMultipleLocalSenderAndAsynchWaite
      r.main(ExampleMultipleLocalSenderAndAsynchWaiter.java:76)
      Caused by: java.io.EOFException
      at java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputSt
      ream.java:2603)
      at java.io.ObjectInputStream.readByte(ObjectInputStream.java:845)
      at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:27
      8)
      at java.lang.Thread.run(Thread.java:534)

      What does it mean?

        • 1. Re: An exception
          Stephane Nicoll Master

          There's no need to open a new thread. You have already one.

          • 2. Re: An exception
            Raja Master

            Whats ur setup for Jboss? Is it all on a linux/windows box?
            I suspect all your exceptions to be IO Related(or thats what the messages say).

            • 3. Re: An exception
              arabin Novice

              Here it is without new thread. 9xx sendings were OK this time. After that I have a problem.

              org.jboss.mq.SpyJMSException: Cannot send a message to the JMS server; - nested
              throwable: (java.io.UTFDataFormatException)
              at org.jboss.mq.Connection.sendToServer(Connection.java:1251)
              at org.jboss.mq.SpySession.sendMessage(SpySession.java:720)
              at org.jboss.mq.SpyQueueSender.internalSend(SpyQueueSender.java:118)
              at org.jboss.mq.SpyQueueSender.send(SpyQueueSender.java:76)
              at com.wrn.teamworks.cms.cms.MessageServiceObjectSender.finallySendLocal
              lyAndWaitAsynch(MessageServiceObjectSender.java:476)
              at com.wrn.teamworks.cms.cms.MessageServiceObjectHighSender.sendAndWaitR
              esponseAsynch(MessageServiceObjectHighSender.java:458)
              at com.wrn.teamworks.cms.cms.MessageServiceObject.sendAndReceiveAsynch(M
              essageServiceObject.java:685)
              at com.wrn.teamworks.cms.client.ExampleMultipleLocalSenderAndAsynchWaite
              r.main(ExampleMultipleLocalSenderAndAsynchWaiter.java:76)
              Caused by: java.io.UTFDataFormatException
              at java.io.ObjectInputStream$BlockDataInputStream.readUTFSpan(ObjectInpu
              tStream.java:2963)
              at java.io.ObjectInputStream$BlockDataInputStream.readUTFBody(ObjectInpu
              tStream.java:2888)
              at java.io.ObjectInputStream$BlockDataInputStream.readUTF(ObjectInputStr
              eam.java:2701)
              at java.io.ObjectInputStream.readUTF(ObjectInputStream.java:999)
              at org.jboss.mq.SpyMessage.readString(SpyMessage.java:779)
              at org.jboss.mq.SpyMessage.readExternal(SpyMessage.java:787)
              at org.jboss.mq.SpyObjectMessage.readExternal(SpyObjectMessage.java:147)

              at org.jboss.mq.SpyMessage.readMessage(SpyMessage.java:696)
              at org.jboss.mq.ReceiveRequest.readExternal(ReceiveRequest.java:35)
              at org.jboss.mq.il.uil2.msgs.ReceiveRequestMsg.read(ReceiveRequestMsg.ja
              va:55)
              at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:28
              9)
              at java.lang.Thread.run(Thread.java:534)

              I have windows xp machine. Another windows xp machine works fine with loop up to 10000 messages (did not test more than that).

              • 4. Re: An exception
                arabin Novice

                That was McAfee. The problem is solved.