Hi,
I'm using Tibco EMS 5.1.0, Spring 3.0.5.RELEASE and spring integration 2.0.3.RELEASE
When using the JmsOutoundGateway, after some time we received a javax.jms.IllegalStateException:
javax.jms.IllegalStateException: JMS Session does not implement specific domain: Cached JMS Session: com.tibco.tibjms.TibjmsxSessionImp@35983902
exceptionFullStack.txt
When the exception starts happening, we could'nt use anymore the jms queue and have to reset the connection to clear the sessions in the cache.
The exception happens "randomly" after some time, could be one hour or one day after we start the server. I have no clue on what trigger it.
Seems the Session proxified by the cachingFactory is not proxyfied anymore.
Here is my configuration for the connectionFactory:
and to bind the channels to the queues:Code:<bean id="connectionFactory" class="org.springframework.jms.connection.CachingConnectionFactory"> <property name="targetConnectionFactory" ref="uncachedConnectionFactory" /> <property name="sessionCacheSize" value="10" /> <property name="cacheProducers" value="false" /> <!--cacheConsumers=true induce leaks on consumers in reply/request mode (gateway) --> <property name="cacheConsumers" value="false" /> </bean> <bean id="uncachedConnectionFactory" class="com.tibco.tibjms.TibjmsQueueConnectionFactory"> <property name="serverUrl" value="${jms.server.url}" /> <property name="userName" value="${jms.user.name}" /> <property name="userPassword" value="${jms.user.password}" /> <property name="SSLVendor" value="${jms.ssl.vendor}" /> <property name="SSLEnableVerifyHost" value="${jms.ssl.enable.verify.host}" /> <property name="SSLEnableVerifyHostName" value="${jms.ssl.enable.verify.hostname}" /> <property name="SSLExpectedHostName" value="${jms.ssl.expected.hostname}" /> <property name="SSLTrace" value="${jms.ssl.trace}" /> <property name="SSLCipherSuites" value="${jms.ssl.cipher.suites}" /> </bean>
I've found a similar thread on this forum but in their case the error concern the connection and in mine it's the session. Also, there is no conclusion on this thread. No idea if their problem has been fixed or not.Code:<channel id="reportPreviewerRequestChannel" /> <channel id="reportPreviewerReplyChannel" /> <jms:outbound-gateway request-channel="reportPreviewerRequestChannel" request-destination="reportPreviewerRequestQueue" reply-channel="reportPreviewerReplyChannel" reply-destination="reportPreviewerReplyQueue" receive-timeout="${report.preview.timeout}" reply-timeout="${report.preview.timeout}" /> <gateway id="reportPreviewer" service-interface="com.project.web.server.ReportPreviewer" default-request-channel="reportPreviewerRequestChannel" default-reply-channel="reportPreviewerReplyChannel" default-reply-timeout="${report.preview.timeout}" />
Please tell me if you need more information and if it's a problem with my config or if I should open a bug issue.
Thanks in advance.


Reply With Quote