Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
We have a requirement where we need to write data to Postgresql DB from tjmsinput. tjmsinput is failing with below error . We are getting xml data from the source. Anyway to resolve this issue.
Starting job tjmsinput at 18:44 04/11/2018.
[statistics] connecting to socket on port 3388
[statistics] connected
Ready to receive message
Waiting...
[FATAL]: talend_etl_project.tjmsinput_0_1.tjmsinput - tJMSInput_1 org.apache.activemq.command.ActiveMQBytesMessage cannot be cast to javax.jms.TextMessage
java.lang.ClassCastException: org.apache.activemq.command.ActiveMQBytesMessage cannot be cast to javax.jms.TextMessage
at talend_etl_project.tjmsinput_0_1.tjmsinput.tJMSInput_1Process(tjmsinput.java:910)
at talend_etl_project.tjmsinput_0_1.tjmsinput.runJobInTOS(tjmsinput.java:4758)
at talend_etl_project.tjmsinput_0_1.tjmsinput.main(tjmsinput.java:4564)
Exception in component tJMSInput_1 (tjmsinput)
java.lang.ClassCastException: org.apache.activemq.command.ActiveMQBytesMessage cannot be cast to javax.jms.TextMessage
at talend_etl_project.tjmsinput_0_1.tjmsinput.tJMSInput_1Process(tjmsinput.java:910)
at talend_etl_project.tjmsinput_0_1.tjmsinput.runJobInTOS(tjmsinput.java:4758)
at talend_etl_project.tjmsinput_0_1.tjmsinput.main(tjmsinput.java:4564)
[statistics] disconnected
Job tjmsinput ended at 18:46 04/11/2018. [exit code=1]
If I keep the message content as byte in the source, I am getting the error as in the pic.
Hello,
Could you please check your "Code" tab in your job to see if there will be your compile error highlighted in red line? If so, please post the error code screenshot on forum as well.
Best regards
Sabrina