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

Announcements
Streamlining user types in Qlik Cloud capacity-based subscriptions: Read the Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

compilation build Java syntax error from input XML file

Hello

I am developing new Talend DI job (version 6.4.1, Java 1.8)

It generates the following code which is a java syntax error, the is a comma after the open ( bracket:

 

org.dom4j.XPath xTmp29_tFileInputXML_1 = org.dom4j.DocumentHelper.createXPath(nsTool_tFileInputXML_1.addDefaultNSPrefix(,"/root/row/body/root/hits/hits"));

 

This is not a run-time error but a compile error.

What am I likely to be doing wrong?

thanks!

 

Labels (4)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi,

Thanks for your suggestion. Can we consider this topic as resolved?

Best regards

Sabrina

View solution in original post

4 Replies
Anonymous
Not applicable
Author

Hello,

When you get some compile errors, have you already checked your "Code" tab in your job?

There will be your compile error highlighted in red line.

Screenshots of job setting will be helpful for us to address your issue.

Many thanks.

Best regards

Sabrina

Anonymous
Not applicable
Author

yes, by looking at Code tab I saw the Java syntax error reported which is what I posted on my question as you can see.

Unfortunately I changed a few settings and the error disappeared so I dont exactly know what caused it.
I suspect it was due to incorrect XML path passed to the component but Talend DI does not really tell you much. It simply generates bad code and then Java compiler complains.
This is quite typical with any code generator solutions I have seen to date, this is not specific to Talend.
I live and learn.
Thanks
Anonymous
Not applicable
Author

Hi,

Thanks for your suggestion. Can we consider this topic as resolved?

Best regards

Sabrina

Anonymous
Not applicable
Author

yes, we should close it as "not reproducible"
Thank you.