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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

"Syntax error, insert '}', to complete de ClassBody"

Hi all, 

 

I installed today Talend Integration Studio (version 7.2.1.20190325, win_64) and trying to create a small job: read from a CSV file, using tFileInputDelimited and tLogRow, when I Run the job I receive this error message "Detail Message: Syntax error, insert "}" to complete ClassBody", changing to the "Code" view of the job, I noticed that my job class is missing a '}' at the end, which closes the class. Unfortunately the class cannot be edited, so I can't add the '}'.

How can I repair it? 

Is the same even for the demoJob, created automatically after the installation.

Labels (3)
5 Replies
Anonymous
Not applicable
Author

This is going to be tricky, but a good method of learning how to debug in Talend. What you need to do is to take a look at each of the sections of code where there is a red block next to it. Check out the error and see if there is anywhere you can fix by simply adjusting something in your job. Basically I suspect that in one of your components you have done something like not close a bracket, or not close a double quote around a parameter. This is usually the cause of issues like this.

Anonymous
Not applicable
Author

Hi rhall_2_0,

So, the code is automatically created by Talend, I can't edit it, so I can't add a } in the code. The class is not closed at the end. This is the reason of error. But how can I add a } when the code is not editable?

Anonymous
Not applicable
Author

You can't edit the code. That is right. But by modifying the component configurations, you are indirectly modifying the code. My suspicion is that one of your components is badly configured. The way to solve this is to check each of the errors in your code (the code you can't change) starting at the first one. It should point you towards you a badly configured parameter. Alternatively, post a screenshot of your job and the configuration of each of the components and we can try and do it together.

Anonymous
Not applicable
Author

I don't see anything in component that could add the }.

Maybe you can see something.

The screenshot of the components is attached


Job_component.PNG
Anonymous
Not applicable
Author

That looks OK. But something that caught my eye was the readFile.java file that shows a red cross. Why is that there? You should not be seeing that. The code that is built by Talend should only be visible via the Code tab (in the bottom left of the screen). Are you trying to run the job that you are showing me, or are you trying to run the readFile.java file?