java.net.SocketException: Connection reset
grobert Apr 23, 2004 12:57 AMHello,
When running MDB following error occurs:
06:33:17,937 WARN [OILServerILService] Connection failure (1).
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:168)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2133)
at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(ObjectInputStream.java:2313)
at java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2380)
at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2452)
at java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputStream.java:2601)
at java.io.ObjectInputStream.readByte(ObjectInputStream.java:845)
at org.jboss.mq.il.oil.OILServerILService$Client.run(OILServerILService.java:206)
at java.lang.Thread.run(Thread.java:534)
-----------------------------------------------------------------------------
Bean code is:
/**
* @author Administrator
*
* @ejb.bean name = "MdExample"
* destination-type = "javax.jms.Topic"
*
* @jboss.destination-jndi-name name = "topic/TestTopic"
*
*/
public class MdExampleBean implements MessageDrivenBean, MessageListener {
protected MessageDrivenContext ctx;
/**
*
* @return
* @throws javax.ejb.CreateException
*
* @ejb.create-method
*/
public void ejbCreate() {
System.out.println("C> ejbCreate()");
}//F:end
public void ejbRemove() throws EJBException {
System.out.println("E> ejbRemove()");
}//F:end
public void setMessageDrivenContext(MessageDrivenContext ctx)
throws EJBException {
System.out.println("E> setMessageDrivenContext(MessageDrivenContext ctx)");
this.ctx = ctx;
}//F:end
public void onMessage(Message msg) {
System.out.println("E> onMessage(Message msg)");
if (msg instanceof TextMessage ) {
TextMessage tm = (TextMessage) msg;
try {
String text = tm.getText();
System.out.println("A> " + text);
} catch (JMSException e) {}
}
}//F:end
}
---------------------------------------------------------------------
I searched the web but found nothing about this error.
JBoss version is 3.2.3 (build: CVSTag=JBoss_3_2_3 date=200311301445). Jboss is running on MySQL server.
Regards
Robert