3 Replies Latest reply on Aug 27, 2001 9:17 PM by Hiram Chirino

    EOFException kills the example "HelloSubscriber" after

    Martin Newbie

      I've just downloaded the zip JBoss 2.4.0 with tomcat 3.2.3. Started, and it worked.
      I use java 1.3.1 for linux (RedHat 7.1).
      Then I've tried the jms examples from the website.
      Compiled HelloSubscriber and HelloPublisher, started them with
      java -classpath $CLASSPATH:./jms.jar:./jbossmq.jar:./jnpserver.jar:./oswego-concurrent.jar:./jboss-j2ee.jar test.HelloPublisher

      (on the same machine as the server)

      Believe it or not. This worked too - I got excited!
      But when the HelloSubscriber has nothing to do for a minute or so, he stops with the following exception:

      java.io.EOFException
      at java.io.ObjectInputStream.readByte(ObjectInputStream.java:1908)
      at org.jbossmq.distributed.server.ConnectionReceiverOIL.run(ConnectionRe
      ceiverOIL.java:111)
      at java.lang.Thread.run(Thread.java:484)
      java.io.EOFException
      at java.io.ObjectInputStream.readByte(ObjectInputStream.java:1908)
      at org.jbossmq.distributed.server.ConnectionReceiverOIL.run(ConnectionRe
      ceiverOIL.java:111)
      at java.lang.Thread.run(Thread.java:484)
      java.io.EOFException
      at java.io.ObjectInputStream.readByte(ObjectInputStream.java:1908)
      at org.jbossmq.distributed.server.ConnectionReceiverOIL.run(ConnectionRe
      ceiverOIL.java:111)
      at java.lang.Thread.run(Thread.java:484)



      Is this a normal behaviour for the examples?
      Can somebody explain this to me?
      I'm just starting with JMS, so this might be a newby question.

      Greetings,
      Martin