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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tWebService component is throwing java syntax errors

Hi
I am running Talend Open Studio 5.3.1 on Windows 7 Home edition (64 bit).
I created a job to get football defender names by recreating the scenario from Talend documentation Scenario: Extracting a name list using a Web service.
When I run the job I am getting the following java syntax errors in a popup. Any idea?
nb_line_tLogRow_1 cannot be resolved to a variable
Syntax error, insert "Finally" to complete TryStatement
Syntax error on token "catch", Identifier expected
Syntax error on token "catch", Identifier expected
Syntax error on token(s), misplaced construct(s)
Syntax error on tokens, delete these tokens
Syntax error on token "}", delete this token
Thank You
Labels (3)
6 Replies
Anonymous
Not applicable
Author

Hi,
nb_line_tLogRow_1 cannot be resolved to a variable
Syntax error, insert "Finally" to complete TryStatement
Syntax error on token "catch", Identifier expected
Syntax error on token "catch", Identifier expected
Syntax error on token(s), misplaced construct(s)
Syntax error on tokens, delete these tokens
Syntax error on token "}", delete this token

Next to the Designer tab there is a Code tab that lets you view the source code for the entire Job. Please switch Designer" tab to Code to check the java code and fix the error. TalendHelpCenter0683p000009MACJ.pngesign workspace
Best regards
Sabrina
Anonymous
Not applicable
Author

Hi Sabrina
I tried to fix the errors in code, but is read only and not allowing me to edit the code. Is there a setting that allows me to edit the code?
Thank You
Anonymous
Not applicable
Author

Hi,
I tried to fix the errors in code, but is read only and not allowing me to edit the code. Is there a setting that allows me to edit the code?

You cannot edit code in talend studio. You have to modify your component setting according to the code error message.
Upload your trouble screenshots in forum will give us a chance to help you.
nb_line_tLogRow_1 cannot be resolved to a variable

I didn't see this part in document scenario, how did you set it? and the other error is syntax. Did you input something?
Best regards
Sabrina
Anonymous
Not applicable
Author

Sabrina, here are the screenshots.
Thank You.
0683p000009MAwv.gif 0683p000009MAx0.gif 0683p000009MAsM.gif 0683p000009MAx5.gif 0683p000009MAvU.gif 0683p000009MAvo.gif
Anonymous
Not applicable
Author

Sabrina
I got this working so please ignore my previous post with screenshots. 🙂
Just clicking on sync columns button in t_logrow_1 component doesn't cut it. You have to edit the schema and then add a column named Name of type string (which is from output mapping tab of t_webservice_1 component) to t_webservice_1(input main) and then copy that column to output schema i.e., to t_logrow_1(output) on the right.
Thank You.
Anonymous
Not applicable
Author

Hi talendois,
Great job, thanks for your feedback.
Best regards
Sabrina