Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] tJMSInput: session is close exception

Dear Talend Support Community,
We have a DI-Job with a JMS consumer by using component tJMSInput as the first step. This jobs runs all the time. We are getting every now and then an exception:

Exception in component tJMSInput_1
javax.jms.IllegalStateException: The Session is closed
at org.apache.activemq.ActiveMQSession.checkClosed(ActiveMQSession.java:731)
at org.apache.activemq.ActiveMQMessageConsumer$1.execute(ActiveMQMessageConsumer.java:551)
at org.apache.activemq.command.ActiveMQMessage.acknowledge(ActiveMQMessage.java:97)
at <package>.exportstarterjms_0_1.ExportStarterJMS.tJMSInput_1Process(ExportStarterJMS.java:2198)
at <package>.exportstarterjms_0_1.ExportStarterJMS.runJobInTOS(ExportStarterJMS.java:2876)
at <package>.exportstarterjms_0_1.ExportStarterJMS.main(ExportStarterJMS.java:2310)


The JMS Broker is active and stable. We must restart the job in TAC in order to recover it for a while until to its next crashing. What settings in "tJMSInput component configuration" we have to do to overcome this exception?
Apache Camel provides something like: autostartup = true
I am missing this here.
activemq user forum
Kind regards
Hilderich
Labels (4)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Okay, I got it: If you select the "failover" option the fields for host and port are disabled and into the failover table you just type in your host and port as you did it previously.
0683p000009M9ld.jpg

View solution in original post

4 Replies
Anonymous
Not applicable
Author

Hi,

Have you tried to use TalendHelpCenter"tMomInput component in your job design? Here is a "failover" option.
Best regards
Sabrina
Anonymous
Not applicable
Author

Hello Sabrina,
We have only one JMS Broker. What entry we should make to failover? The same JMS server again?
Kind regards,
Hilderich
Anonymous
Not applicable
Author

Okay, I got it: If you select the "failover" option the fields for host and port are disabled and into the failover table you just type in your host and port as you did it previously.
0683p000009M9ld.jpg
Anonymous
Not applicable
Author

Hi hilderich,
Thanks for sharing your screenshot with us. Could you please set this topic as resolved? In that way, other users will be informed that this thread has been resolved.

Best regards
Sabrina