This content has been marked as final.
Show 3 replies
-
1. Re: LeasePinger error after Timer thread death + fix (happen
ron_sigal Nov 12, 2007 10:33 PM (in response to fatbatman)Hi James,
Yes, when all the TimerTasks have shut down, the Timer shuts down as well. I was bitten by this same problem a while back in the bisocket transport, and I didn't notice it existed elsewhere as well. I've created JIRA issue JBREM-851 "In LeasePinger and TimerUtil replace Timer if it has shut down" (http://jira.jboss.com/jira/browse/JBREM-851) and scheduled it for Remoting 2.4.0.
Thanks for bringing this problem to my attention.
-Ron -
2. Re: LeasePinger error after Timer thread death + fix (happen
fatbatman Mar 24, 2009 9:28 AM (in response to fatbatman)I'm not convinced the issue within LeasePinger is resolved as when using 2_5_0_SP2 I get;
java.lang.RuntimeException: Error setting up client lease upon performing connect. at org.jboss.remoting.Client.connect(Client.java:1603) at org.jboss.remoting.Client.connect(Client.java:498) at com.joyplay.client.net.jbossremoting.JadeRemotingClient.createServletClient(JadeRemotingClient.java:309) at com.joyplay.client.connection.MusConnection.login(MusConnection.java:373) at com.joyplay.client.connection.MusConnection.login(MusConnection.java:228) at com.joyplay.client.games.lobby.LobbyMessageHandler$2.run(LobbyMessageHandler.java:164) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.Exception: Error setting up client lease at org.jboss.remoting.MicroRemoteClientInvoker.establishLease(MicroRemoteClientInvoker.java:484) at org.jboss.remoting.Client.setupClientLease(Client.java:1699) at org.jboss.remoting.Client.connect(Client.java:1599) ... 6 more Caused by: java.lang.IllegalStateException: Timer already cancelled. at java.util.Timer.sched(Unknown Source) at java.util.Timer.schedule(Unknown Source) at org.jboss.remoting.LeasePinger.startPing(LeasePinger.java:99) at org.jboss.remoting.MicroRemoteClientInvoker.establishLease(MicroRemoteClientInvoker.java:478)
in the same situation as before.
I've added my try catch hack back in and all is ok again.
James -
3. Re: LeasePinger error after Timer thread death + fix (happen
ron_sigal Apr 2, 2009 3:00 AM (in response to fatbatman)Yup: "CLONE [JBREM-851] - In LeasePinger replace Timer if it has shut down" (https://jira.jboss.org/jira/browse/JBREM-1111).
What was I thinking?