Saturday, July 6, 2013

NoClassDefFoundError: org/apache/commons/codec/binary/Base64

Some times you may face this error, but may not get the right answer so i though it is better to post with steps to over come this error.

This problem occurs at run-time not at compile time, first search commons-codec.jar file in your talend installed directory like TalendInstall\TOS_DI-Win32-r78327-V5.0.2\plugins\org.talend.designer.components.localprovider_5.0.2.r78327\components\tMDMBulkLoad

if commons-codec.jar file is not on above mention location then download if from  commons-codec.jar file and. now we have our jar file ready so follow the steps to add it to build path.

  • click on Windows menu

  • then click on Preferences

  • search "ClassPath variables" at top left search text box.

  • result will be come then click on ClassPath variables. new popup window will be appeared.

  • Click on new button give name for your ClassPath variable, and then browse for commons-codec.jar and add it. 

  • here on done click on OK button and closed all the windows.


see the below screen for more details.

[caption id="attachment_148" align="alignnone" width="300"]Talend Classpath Setting Talend Classpath Setting[/caption]

Friday, July 5, 2013

Failed to generate error in Talend Open Studio

Here is on of the solution on failed to generate error.

Just after having the error:

  1. - Open the log file ..../[Talend INSTALL Folder]/workspace/.metadata/.log in notepad.

  2. - Go to the end of the file.

  3. - You will have a stack trace like that:


!STACK 0

org.eclipse.emf.codegen.jet.JETException: InvocationTargetException
at org.eclipse.emf.codegen.jet.JETEmitter.generate(JETEmitter.java:475)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
[...]
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[...]
at org.eclipse.emf.codegen.jet.JETEmitter.generate(JETEmitter.java:467)
... 53 more
Caused by: java.lang.NullPointerException
at org.talend.designer.codegen.translators.processing.TFilterRowMainJava.generate(TFilterRowMainJava.java:134)
... 58 more

  1. - Get the last error in stack trace and find the component raising the error. In my case, the component is TFilterRowMainJava.

  2. - Deactivate all components of the family which raises the error. tFilterRow_1 in my case.

  3. - When I click on "Code" tab, Java source code is displayed.

  4. - Correct errors if exists.

  5. - If you click on run, the job is running...

Contact Us

Name

Email *

Message *