tJMSOutput Error: message cannot be resolved or is not a field

Six Stars

tJMSOutput Error: message cannot be resolved or is not a field

I'm trying to insert an XML document into Apache Active MQ queue.

 

1. Using tXMLMap to create a XML document.

2. Using tConvertType to convert the XML document to string.

3. Using tJMSOutput to send the message to Active MQ.

 

But I'm getting compiler error at tJMSOutput component.

 Please find screenshots for the reference

 

Capture1.JPGCapture2.JPGCapture3.JPGCapture4.JPG

 


Accepted Solutions
Six Stars

Re: tJMSOutput Error: message cannot be resolved or is not a field

Solved, Used the tMap to map the convert type output and tJMSInput.


All Replies
Six Stars

Re: tJMSOutput Error: message cannot be resolved or is not a field

Solved, Used the tMap to map the convert type output and tJMSInput.

Two Stars

Re: tJMSOutput Error: message cannot be resolved or is not a field

Hey Middlewareguy, I've been getting the same error as you and have been trying to understand your solution. Could you let me know more specifically how you used the tMap component? 

 

I tried it in between the tXMLMap and tConvertType, and then tried between tConvertType and tMSOutput but still getting the same error. Any help is greatly appreciated!

Six Stars

Re: tJMSOutput Error: message cannot be resolved or is not a field

I used the tMap between tConvertType and tJMSOutput

I mapped the field of tConvertType directly to tJMSOutput in map editor of tMap.

tJMSOutput takes the "string" type only inout while tXMLMap throws a "document" type output.

 

So using tConvertType, convert the "document" type to "String" type then using tMap, map the "string" type field directly to the "string" type to the tJMSOutput.

 

jj.JPG

 

Also try syncing the schemas.

Two Stars

Re: tJMSOutput Error: message cannot be resolved or is not a field

Thanks Middlewareguy I appreciate your response, not expecting you to jump down the rabbit hole with me but wanted to reply

 

I still seem to be having the same error after adding the tmap, activemq appears to be running fine but still seeing the log not being resolved. Does this look right?

talendesb1.pngtalendesb2.pngtalendesb3.png

Six Stars

Re: tJMSOutput Error: message cannot be resolved or is not a field

Is there a restriction that you'll have to use tJMSOutput only?

 

Because tMOMOutput can do the same job perfectly without the error.

 

Reason of error might be that tJMSOuput take input as an "object" and you're to feed it a string.

 

So use tMOMOutput as it take "string type" input and doesn't throw and error.