cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Jones" <pjo...@progress.com>
Subject JMSConduitTest failure with ibm jdk
Date Fri, 11 Sep 2009 19:04:05 GMT

Hi there,

I'm seeing the JMSConduitTest.testJMSMessageMarshal() fail
regularly when run with the ibm jdk 5.  It seems that for
some reason the JMSConduit is finalized in the midst of the 
jmsTemplate.execute() call in that test.  This closes the
connection and the test gets an error like this:

"org.springframework.jms.IllegalStateException: The connection is already closed;"

Adding an assertNotNull(conduit) after the
jmsTemplate.execute() call prevents the JMSConduit from
being finalized before the test method completes, and so
makes the test pass every time.  But, it seems odd to me
since the conduit really should still be in scope while
jmsTemplate.execute() is called.  Just wondering if anyone
had any thoughts on that.

Anyway, I'll commit that work-around for the ibm jdk as
long as there are no moral objections.

Regards,
Peter

----------------------------------------
Peter Jones
Progress Software
570 Newfoundland Drive
St. John's, NL, Canada  A1A 5B1
Tel: +1 (709) 738-3725  ext 321

Internal wiki: http://wiki.progress.com/display/PRODENG/Home



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message