3 Replies Latest reply on Nov 30, 2005 3:12 AM by anders.hedstrom

    JBooss and java.net.SocketException: Connection reset

    chengyao

      My computer is Windows XP sp2. I have a application using JBoss 4.0.3 RC1 and EJB3. The application is on one machine. The IDE is JBoss Eclipse IDE Release Candidate 1. I run JUnit tests againest the application. The tests works well before I change the server to JBoss 4.0.3 SP1. The problem is: all the tests can be passed well, but at last in the Console view (Jboss server log), it shows an exception:


      13:23:18,948 INFO [STDOUT] Hibernate: delete from WikiPage where id=?
      13:23:18,979 INFO [STDOUT] Hibernate: delete from WikiPage where id=?
      13:23:19,011 INFO [STDOUT] Hibernate: delete from WikiPage where id=?
      13:23:19,042 INFO [STDOUT] Hibernate: select wikipage0_.id as id2_, wikipage0_.name as name2_, wikipage0_.parent_ID as parent25_2_, wikipage0_.content as content2_, wikipage0_.version as version2_, wikipage0_.locale as locale2_, wikipage0_.deleted as deleted2_, wikipage0_.author_id as author26_2_, wikipage0_.lastAccessed as lastAcce8_2_, wikipage0_.latest as latest2_, wikipage0_.modified as modified2_, wikipage0_.pageType as pageType2_, wikipage0_.readPermission as readPer12_2_, wikipage0_.writePermission as writePe13_2_, wikipage0_.wikipageID as wikipageID2_, wikipage0_.description as descrip15_2_, wikipage0_.completed as completed2_, wikipage0_.actualEffort as actualE17_2_, wikipage0_.bestCaseEstimate as bestCas18_2_, wikipage0_.mostlikelyEstimate as mostlik19_2_, wikipage0_.worstCaseEstimate as worstCa20_2_, wikipage0_.endDate as endDate2_, wikipage0_.locationX as locationX2_, wikipage0_.locationY as locationY2_, wikipage0_.manager_ID as manager27_2_, wikipage0_.backlog_id as backlog28_2_, wikipage0_.defaultRelease_id as default29_2_, wikipage0_.handWritten as handWri24_2_, wikipage0_.pairProgrammer_id as pairPro30_2_, wikipage0_.responsiblePerson_id as respons31_2_, wikipage0_.TYPE as TYPE2_ from WikiPage wikipage0_ where wikipage0_.latest=1 and wikipage0_.deleted=0
      13:23:19,089 ERROR [ServerThread] failed
      java.net.SocketException: Connection reset
      at java.net.SocketInputStream.read(SocketInputStream.java:168)
      at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
      at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
      at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2200)
      at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(ObjectInputStream.java:2380)
      at java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2447)
      at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2519)
      at java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputStream.java:2668)
      at java.io.ObjectInputStream.readByte(ObjectInputStream.java:864)
      at org.jboss.remoting.transport.socket.ServerSocketWrapper.checkConnection(ServerSocketWrapper.java:54)
      at org.jboss.remoting.transport.socket.ServerThread.acknowledge(ServerThread.java:217)
      at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:298)
      at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:169)


      I do not know what to do. I see that somebody has faced the same problem as me. But I do not see the solution. So if you know, Please help me.

      Thank you very much in advance!!