Infinite loop in JMS Server

"Ellery, David" <[email protected]> Thu, 13 Dec 2007 16:04:16 +1300
Newsgroups gmane.comp.java.openjms.user
Message-ID <48113F1FB29BB14FA94459FADFDA97D218BE17@stlaklxch01.nzsakl.bhp.com.au>
This is a multi-part message in MIME format.

--===============0751524121==
Content-class: urn:content-classes:message
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C83D34.D8F70D2B"

This is a multi-part message in MIME format.

------_=_NextPart_001_01C83D34.D8F70D2B
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
X-NAIMIME-Disclaimer: 1
X-NAIMIME-Modified: 1

Version: openjms-0.7.7-beta-1
=20
Ok so I have afew clients subscribing to a topic, and sometimes they get
killed off for various reasons, but quite often after they've received
afew messages and they die openjms goes into an infinite loop and brings
its system to its knee's, which isnt very helpful, from the debug output
it seems its just continuosly tries to reconnect to the now dead
subscriber..
=20
output:
=20
10:45:44.363 DEBUG [Scheduler-Worker-6] - schedule() [stop=3Dfalse,
active=3Dtrue, reschedule=3Dtrue, scheduled=3Dfalse]
10:45:44.363 DEBUG [Scheduler-Worker-6] - doReceive() - next
available=3DID:f2d349b0-c43f-1004-88db-5dc0d57efe3c
10:45:44.363 DEBUG [Scheduler-Worker-6] - doReceive() -
result=3DID:f2d349b0-c43f-1004-88db-5dc0d57efe3c
10:45:44.363 INFO  [Scheduler-Worker-6] - Failed to notify client
java.rmi.ConnectException: Connection refused to host: 152.153.40.17;
nested exception is:
        java.net.ConnectException: Connection refused
        at
sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)
        at
sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
        at
sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:110)
        at org.exolab.jms.net.rmi.RMIInvokerImpl_Stub.invoke(Unknown
Source)
        at
org.exolab.jms.net.rmi.RMIManagedConnection.invoke(RMIManagedConnection.
java:379)
        at
org.exolab.jms.net.rmi.RMIConnection.invoke(RMIConnection.java:88)
        at
org.exolab.jms.net.orb.UnicastDelegate.invoke(UnicastDelegate.java:153)
        at org.exolab.jms.net.proxy.Proxy.invoke(Proxy.java:102)
        at
org.exolab.jms.client.net.JmsSessionStubImpl__Proxy.onMessage(JmsSession
StubImpl__Proxy.java:245)
        at
org.exolab.jms.server.SessionConsumer.send(SessionConsumer.java:614)
        at
org.exolab.jms.server.SessionConsumer.send(SessionConsumer.java:572)
        at
org.exolab.jms.server.SessionConsumer.dispatch(SessionConsumer.java:498)
        at
org.exolab.jms.server.SessionConsumer.access$000(SessionConsumer.java:78
)
        at
org.exolab.jms.server.SessionConsumer$1.run(SessionConsumer.java:155)
        at org.exolab.jms.scheduler.SerialTask.run(SerialTask.java:164)
        at
org.exolab.jms.common.threads.ThreadPool$NotifyingRunnable.run(ThreadPoo
l.java:211)
        at
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown
Source)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.net.ConnectException: Connection refused
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
        at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
        at java.net.Socket.connect(Socket.java:519)
        at java.net.Socket.connect(Socket.java:469)
        at java.net.Socket.<init>(Socket.java:366)
        at java.net.Socket.<init>(Socket.java:179)
        at
sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSoc
ketFactory.java:22)
        at
sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSoc
ketFactory.java:128)
        at
sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
        ... 18 more
=20
it loops this message forever
=20
If someone knows how i can stop it from doing this it would be great,
=20
or even a fix would be better.


=0A=0ANOTICE - This message and any attached files may contain informatio=
n that is confidential and intended only for use by the intended recipien=
t. If you are not the intended recipient or the person responsible for de=
livering the message to the intended recipient, be advised that you have =
received this message in error and that any dissemination, copying or use=
 of this message or attachment is strictly forbidden, as is the disclosur=
e of the information therein. If you have received this message in error =
please notify the sender immediately and delete the message.

------_=_NextPart_001_01C83D34.D8F70D2B
Content-Type: text/HTML;
  charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
X-NAIMIME-Disclaimer: 1
X-NAIMIME-Modified: 1

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dus-ascii"=
>
<META content=3D"MSHTML 6.00.2900.3199" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D165045802-13122007><FONT face=3DArial size=3D2>Version=
:=20
openjms-0.7.7-beta-1</FONT></SPAN></DIV>
<DIV><SPAN class=3D165045802-13122007><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D165045802-13122007><FONT face=3DArial size=3D2>Ok so I=
 have afew=20
clients subscribing to a topic, and sometimes they get killed off for var=
ious=20
reasons, but quite often after they've received afew messages and they di=
e=20
openjms goes into an infinite loop and brings its system to its knee's, w=
hich=20
isnt very helpful, from the debug output it seems its just continuosly tr=
ies to=20
reconnect to the now dead subscriber..</FONT></SPAN></DIV>
<DIV><SPAN class=3D165045802-13122007><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D165045802-13122007><FONT face=3DArial=20
size=3D2>output:</FONT></SPAN></DIV>
<DIV><SPAN class=3D165045802-13122007><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D165045802-13122007><FONT face=3DArial size=3D2>10:45:4=
4.363 DEBUG=20
[Scheduler-Worker-6] - schedule() [stop=3Dfalse, active=3Dtrue, reschedul=
e=3Dtrue,=20
scheduled=3Dfalse]<BR>10:45:44.363 DEBUG [Scheduler-Worker-6] - doReceive=
() - next=20
available=3DID:f2d349b0-c43f-1004-88db-5dc0d57efe3c<BR>10:45:44.363 DEBUG=
=20
[Scheduler-Worker-6] - doReceive() -=20
result=3DID:f2d349b0-c43f-1004-88db-5dc0d57efe3c<BR>10:45:44.363 INFO&nbs=
p;=20
[Scheduler-Worker-6] - Failed to notify client<BR>java.rmi.ConnectExcepti=
on:=20
Connection refused to host: 152.153.40.17; nested exception=20
is:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; java.net.ConnectExcepti=
on:=20
Connection refused<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at=20
sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)<BR>&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)<BR=
>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)<BR>&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
sun.rmi.server.UnicastRef.invoke(UnicastRef.java:110)<BR>&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;=20
at org.exolab.jms.net.rmi.RMIInvokerImpl_Stub.invoke(Unknown=20
Source)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at=20
org.exolab.jms.net.rmi.RMIManagedConnection.invoke(RMIManagedConnection.j=
ava:379)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
org.exolab.jms.net.rmi.RMIConnection.invoke(RMIConnection.java:88)<BR>&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
org.exolab.jms.net.orb.UnicastDelegate.invoke(UnicastDelegate.java:153)<B=
R>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
org.exolab.jms.net.proxy.Proxy.invoke(Proxy.java:102)<BR>&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
org.exolab.jms.client.net.JmsSessionStubImpl__Proxy.onMessage(JmsSessionS=
tubImpl__Proxy.java:245)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
org.exolab.jms.server.SessionConsumer.send(SessionConsumer.java:614)<BR>&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
org.exolab.jms.server.SessionConsumer.send(SessionConsumer.java:572)<BR>&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
org.exolab.jms.server.SessionConsumer.dispatch(SessionConsumer.java:498)<=
BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
org.exolab.jms.server.SessionConsumer.access$000(SessionConsumer.java:78)=
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
org.exolab.jms.server.SessionConsumer$1.run(SessionConsumer.java:155)<BR>=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
org.exolab.jms.scheduler.SerialTask.run(SerialTask.java:164)<BR>&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
org.exolab.jms.common.threads.ThreadPool$NotifyingRunnable.run(ThreadPool=
=2Ejava:211)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown=20
Source)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at=20
java.lang.Thread.run(Thread.java:619)<BR>Caused by: java.net.ConnectExcep=
tion:=20
Connection refused<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at=20
java.net.PlainSocketImpl.socketConnect(Native=20
Method)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at=20
java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)<BR>&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)<BR>&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)<BR>&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)<BR>&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
java.net.Socket.connect(Socket.java:519)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;=20
at=20
java.net.Socket.connect(Socket.java:469)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;=20
at=20
java.net.Socket.&lt;init&gt;(Socket.java:366)<BR>&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;=20
at=20
java.net.Socket.&lt;init&gt;(Socket.java:179)<BR>&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;=20
at=20
sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSock=
etFactory.java:22)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSock=
etFactory.java:128)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
at=20
sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)<BR>&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
=2E.. 18 more</FONT></SPAN></DIV>
<DIV><SPAN class=3D165045802-13122007><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D165045802-13122007><FONT face=3DArial size=3D2>it loop=
s this=20
message forever</FONT></SPAN></DIV>
<DIV><SPAN class=3D165045802-13122007><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D165045802-13122007><FONT face=3DArial size=3D2>If some=
one knows how=20
i can stop it from doing this it would be great,</FONT></SPAN></DIV>
<DIV><SPAN class=3D165045802-13122007><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D165045802-13122007><FONT face=3DArial size=3D2>or even=
 a fix would=20
be better.</FONT></SPAN></DIV>
<DIV><P><HR>
<BR>=0A<BR>=0ANOTICE - This message and any attached files may contain in=
formation that is confidential and intended only for use by the intended =
recipient. If you are not the intended recipient or the person responsibl=
e for delivering the message to the intended recipient, be advised that y=
ou have received this message in error and that any dissemination, copyin=
g or use of this message or attachment is strictly forbidden, as is the d=
isclosure of the information therein. If you have received this message i=
n error please notify the sender immediately and delete the message.
</P></DIV>
</BODY></HTML>

------_=_NextPart_001_01C83D34.D8F70D2B--


--===============0751524121==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
--===============0751524121==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
openjms-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openjms-user

--===============0751524121==--