Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Can't see errors in generated java code

Hello, I have a problem in a single Talend job. When I try to visualize the code for a particular job, I can see the generated code, but unlikely other jobs I can't see job errors. I can even build the job and execute it, and I don't get errors until it reaches the point with the error.

 

I faced this particular issue when I used 2 string variable without declare them (as you can see in the screenshot, where I commented the declaration). As you can see, no error is listed in the generated java code. Now I discovered my error and fixed it, but it took me hours, and I'm afraid there can be other errors I'm missing.

Is there something I can do to fix this?

 

I'm using Talend Open Studio for Data Integration, version 6.2.1, with JDK 1.8.

 

0683p000009M37c.png

 

0683p000009M37m.png

Thank you

Labels (3)
8 Replies
Anonymous
Not applicable
Author

With Java you have runtime errors and compile time errors. A Java IDE will catch compile time errors and warn you of them before you try to compile. This is where you would see red blocks next to your code in the Talend code window. If your job is running and then failing, that means you have a runtime error. This is completely different and harder to solve without an error message. I suspect that it will likely be a NullPointerException. This is caused by the job trying to do something with an object that is nothing, that has no value. 

 

Can you post your error from the run window for us?

Anonymous
Not applicable
Author

It's not a runtime error... I already found the error (and fixed it), I was trying to use 2 variables without declaring them. But I didn't get any error while compiling. Usually, making mistake like these, lead you to get error while compiling (or building). But whatever I do, whatever I change in the job design, I never get any error (only when running it).

In the screenshot you can see the error I got.

 

 

 

0683p000009M37r.png


talend_issue_3.png
Anonymous
Not applicable
Author

Sorry, I misunderstood your issue. This can happen sometimes when you have not restarted the Studio for a while. I believe this is a known issue for Eclipse (the Studio is built on Eclipse). Hopefully it will start catching these compile time errors when you restart. If not, I have seen it so that you need to move the components to a new version of the job to fix this. That is rare, but keep it in mind if restarting doesn't work.

Anonymous
Not applicable
Author

I tried with restarting and creating a new job, then copy&past all components, but it didn't work... any other idea I can try? Even re-importing the project as a new project didn't work

Anonymous
Not applicable
Author

Hello,

I got the same issue. All of sudden, I do not see the "online" yellow and red boxes in the code window.

I am running Talend 6.5

 

 


Capture_TLND_Java.png
Anonymous
Not applicable
Author

Usually closing the job and reopening will fix that. Alternatively shut down the Studio and restart.

Anonymous
Not applicable
Author

Hello,

Closing the jobs, restarting the studio, switching perspectives, rebooting the PC: none of these actions helped. It is really frustrating to wait runtime to find out avoidable errors.

And I can't figure out what caused this behaviour in the first place.

Anonymous
Not applicable
Author

So it was working and then just stopped? That is interesting. I have never seen that, This *could* be something to do with your Studio being damaged somehow. The only other (slight annoying....sorry) solution is to install a new version of the Studio, export your job from the old Studio and import it into the new Studio. As I said, I have not experienced this, but this is the solution I would try. Please keep me informed as to your progress.