I have an application with a multithreaded client that publishes to a topic that has one durable subscriber ... I have ensured that my client uses synchronized access to the TopicSession (rather than creating seperate TopicSessions for each thread) but I am still receiving this Exception at random times ... I saw a previous post with a similar exception and someone suggested checking my code over for Thread.interrupt() ... I have done that and can't find any case where I'm interrupting a thread while it's publishing ... I'm seeing no exceptions on the machine that's running the Topic nor any exceptions for the Subscriber (running on the same machine)
My platform is:
JRockit 1.4.1 JVM
JMS Topic A
JDBC2 PersistenceManager using the Hypersonic DS for peristence
UIL2 Invocation layer
MBean running with one subscriber to Topic A
Sun JVM 1.4.2_05
MBean running 150 threads with synchronized access to a TopicSession/TopicPublisher which publishes to Topic A
This box is sometimes under _very_ heavy load (Load average greater than 10)
I can't replicate this problem in a clean-room application; only under load in my application ...
[10/1 09:47:23.004,ERROR,PublishingTools] Caught JMSException while trying to send but we're going to keep trying ...
org.jboss.mq.SpyJMSException: Cannot send a message to the JMS server; - nested throwable: (java.lang.InterruptedException)
Caused by: java.lang.InterruptedException
... 8 more