One Star

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
6 REPLIES
Moderator

Re: tWebService component is throwing java syntax errors

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. TalendHelpCenterSmiley Very Happyesign workspace
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: tWebService component is throwing java syntax errors

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
Moderator

Re: tWebService component is throwing java syntax errors

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
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: tWebService component is throwing java syntax errors

Sabrina, here are the screenshots.
Thank You.
One Star

Re: tWebService component is throwing java syntax errors

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.
Moderator

Re: tWebService component is throwing java syntax errors

Hi talendois,
Great job, thanks for your feedback.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.