Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
ravi999
Contributor III
Contributor III

tjmsinput bytes message

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. 

0683p000009M0qo.png

0683p000009M0QS.png

 

Labels (5)
1 Reply
Anonymous
Not applicable

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