[jboss-dev] Unhelpful exception from HornetQ

Tim Fox tim.fox at jboss.com
Tue Mar 30 09:06:31 EDT 2010


Moving to the forums:

http://community.jboss.org/thread/150071

On 30/03/10 13:48, Tim Fox wrote:
> The exception is actually very helpful.
>
> HornetQ will automatically track session creation, and tell you the
> allocation stack trace if it gets GC'd without being closed.
>
> In this case it's saying something in the RA has not closed it's session
> cleanly, which would imply a bug in the RA.
>
> On 25/03/10 18:52, Carlo de Wolf wrote:
>    
>> When my MDB test is done I get:
>>
>> 2010-03-25 19:29:29,378 WARN
>> [org.hornetq.core.client.impl.DelegatingSession] (Finalizer) I'm closing
>> a core ClientSession you left open. Please make sure you close all
>> ClientSessions explicitly before letting them go out of scope! 1073232360
>> 2010-03-25 19:29:29,378 WARN
>> [org.hornetq.core.client.impl.DelegatingSession] (Finalizer) The
>> ClientSession you didn't close was created here:: java.lang.Exception
>>        at
>> org.hornetq.core.client.impl.DelegatingSession.<init>(DelegatingSession.java:93)
>>        at
>> org.hornetq.core.client.impl.FailoverManagerImpl.createSession(FailoverManagerImpl.java:439)
>>        at
>> org.hornetq.core.client.impl.ClientSessionFactoryImpl.createSessionInternal(ClientSessionFactoryImpl.java:1063)
>>        at
>> org.hornetq.core.client.impl.ClientSessionFactoryImpl.createSession(ClientSessionFactoryImpl.java:790)
>>        at
>> org.hornetq.ra.HornetQResourceAdapter.createSession(HornetQResourceAdapter.java:1306)
>>        at
>> org.hornetq.ra.inflow.HornetQActivation.setupSession(HornetQActivation.java:336)
>>        at
>> org.hornetq.ra.inflow.HornetQActivation.setup(HornetQActivation.java:283)
>>        at
>> org.hornetq.ra.inflow.HornetQActivation$SetupActivation.run(HornetQActivation.java:496)
>>        at org.jboss.resource.work.WorkWrapper.run(WorkWrapper.java:172)
>>        at
>> org.jboss.threads.SimpleDirectExecutor.execute(SimpleDirectExecutor.java:33)
>>        at org.jboss.threads.QueueExecutor.runTask(QueueExecutor.java:780)
>>        at org.jboss.threads.QueueExecutor.access$100(QueueExecutor.java:45)
>>        at org.jboss.threads.QueueExecutor$Worker.run(QueueExecutor.java:800)
>>        at java.lang.Thread.run(Thread.java:619)
>>        at org.jboss.threads.JBossThread.run(JBossThread.java:122)
>>
>> This exception isn't telling me what I am(/might be) doing wrong.
>>
>> Carlo
>> _______________________________________________
>> jboss-development mailing list
>> jboss-development at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/jboss-development
>>
>>      
>
>    


-- 
Sent from my BBC Micro Model B

Tim Fox
JBoss

HornetQ - putting the buzz in messaging http://hornetq.org
http://hornetq.blogspot.com/
http://twitter.com/hornetq
irc://irc.freenode.net:6667#hornetq	
fox at redhat.com




More information about the jboss-development mailing list