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.
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?
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.
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.
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
Join us at the Community Lounge.
Talend named a Leader.
Kickstart your first data integration and ETL projects.
Watch the recorded webinar!
Pick up some tips and tricks with Context Variables
Learn how media organizations have achieved success with Data Integration
View this on-demand webinar about APIs....