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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

java.lang.NoClassDefFoundError

Hello ,
Im working with talend for more than a month . i dont know why the following java error occurs suddenly while running a job .
before this i didn't changed anything in talend or in job . executed the job as daily but suddenly i got this error .
can any one help me for this issue .
java.lang.NoClassDefFoundError: infobuilder/report_and_mail_0_1/Report_And_Mail
Caused by: java.lang.ClassNotFoundException: infobuilder.report_and_mail_0_1.Report_And_Mail
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: infobuilder.report_and_mail_0_1.Report_And_Mail. Program will exit.
Exception in thread "main"
Thanks in Advance
Nilesh

Labels (2)
38 Replies
Anonymous
Not applicable
Author

Hi Praveen Kumar Konda,
@fatemeh.behfa, thanks for sharing your experience with us. It is very helpful. Make sure there is no extra space and special characters(Illegal character) in your installation path and set the java environment correctly.
If someone still have the same problem even though you have re-installed product into a short path without special characters, please provide the details, such as product version? Your system? JDK version?
Best regards
Sabrina
Anonymous
Not applicable
Author

I am facing something similar.
What i am trying to do here is invoke a service in one of the job. My executions stops at that particular job and i get this
Exception in thread "Thread-2" java.lang.Error: java.lang.Error: java.lang.NoClassDefFoundError: com/stigma/pollen/wsclient/patientclient.
Can any one help me.
Thanks
_AnonymousUser
Specialist III
Specialist III

I am able to run a job successfully from the studio directly.
When I export the same item and create a new job design, to create a test version of the working job, It throws the below error
java.lang.NoClassDefFoundError
can anyone please help?
Anonymous
Not applicable
Author

Hi GeethaSukumar,
When I export the same item and create a new job design, to create a test version of the working job, It throws the below error
java.lang.NoClassDefFoundError

How do you create a test version? Import the exported one?or drag the same component by manual?
Best regards
Sabrina
Anonymous
Not applicable
Author

I was getting this type of error when the order of columns in the original query was different than in the schema after.
Also, I was able to solve this error by copy hole project into another folder and then re-importing a project again.
Anonymous
Not applicable
Author

I have created a Talend job using 5.5.1 version and it is working fine in Talend studio, but when running it as a jar in server, the below exception occurs. Can you please help me in resolving this. I have used toracleconnection,toracleinput, tmap,tjasperoutput for this job.
11 Sep 2015 08:52:17 CDT at com.chartis.clp.talend.TalendJobWrapper.executeJob(TalendJobWrapper.java:97)
11 Sep 2015 08:52:17 CDT at com.chartis.clp.talend.TalendJobWrapper.executeJob(TalendJobWrapper.java:79)
11 Sep 2015 08:52:17 CDT at com.chartis.clp.dm.om.report.controller.TransactionReconcilationOMControllerImpl.generateReport(TransactionReconcilationOMControllerImpl.java:190)
11 Sep 2015 08:52:17 CDT at com.chartis.clp.dm.om.report.bpo.ReportsOMBPO.generateTransactionReconcilation(ReportsOMBPO.java:151)
11 Sep 2015 08:52:17 CDT at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
11 Sep 2015 08:52:17 CDT at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
11 Sep 2015 08:52:17 CDT at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
11 Sep 2015 08:52:17 CDT at java.lang.reflect.Method.invoke(Method.java:597)
11 Sep 2015 08:52:17 CDT at com.chartis.clp.core.base.Base.invokeDla(Base.java:95)
11 Sep 2015 08:52:17 CDT at com.chartis.clp.core.base.Base.executeDla(Base.java:61)
11 Sep 2015 08:52:17 CDT at sun.reflect.GeneratedMethodAccessor78.invoke(Unknown Source)
11 Sep 2015 08:52:17 CDT at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
11 Sep 2015 08:52:17 CDT at java.lang.reflect.Method.invoke(Method.java:597)
11 Sep 2015 08:52:17 CDT at aiu.core.component.ApplicationHome.processRequest(ApplicationHome.java:489)
11 Sep 2015 08:52:17 CDT at com.chartis.clp.core.bpo.ApplicationHomeHelper.processRequest(ApplicationHomeHelper.java:390)
11 Sep 2015 08:52:17 CDT at com.chartis.clp.core.bpo.ApplicationHomeHelper.processRequestEx(ApplicationHomeHelper.java:258)
11 Sep 2015 08:52:17 CDT at com.chartis.clp.batch.job.TransactionReconcilationReportJob.invoke(TransactionReconcilationReportJob.java:263)
11 Sep 2015 08:52:17 CDT at com.chartis.is.util.ibm.WorkCreator.run(WorkCreator.java:50)
11 Sep 2015 08:52:17 CDT at com.ibm.ws.asynchbeans.J2EEContext$RunProxy.run(J2EEContext.java:269)
11 Sep 2015 08:52:17 CDT at java.security.AccessController.doPrivileged(Native Method)
11 Sep 2015 08:52:17 CDT at com.ibm.ws.asynchbeans.J2EEContext.run(J2EEContext.java:769)
11 Sep 2015 08:52:17 CDT at com.ibm.ws.asynchbeans.WorkWithExecutionContextImpl.go(WorkWithExecutionContextImpl.java:222)
11 Sep 2015 08:52:17 CDT at com.ibm.ws.asynchbeans.ABWorkItemImpl.run(ABWorkItemImpl.java:159)
11 Sep 2015 08:52:17 CDT at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1662)
11 Sep 2015 08:52:17 CDT Caused by: java.lang.reflect.InvocationTargetException
11 Sep 2015 08:52:17 CDT at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
11 Sep 2015 08:52:17 CDT at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
11 Sep 2015 08:52:17 CDT at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
11 Sep 2015 08:52:17 CDT at java.lang.reflect.Method.invoke(Method.java:597)
11 Sep 2015 08:52:17 CDT at com.chartis.clp.talend.TalendJobWrapper.executeJob(TalendJobWrapper.java:90)
11 Sep 2015 08:52:17 CDT ... 23 more
11 Sep 2015 08:52:17 CDT Caused by: java.lang.NoClassDefFoundError: com/talend/csv/CSVWriter
11 Sep 2015 08:52:17 CDT at uitrd_om_report.uitrd_0_1.UITRD.tOracleInput_1Process(UITRD.java:7343)
11 Sep 2015 08:52:17 CDT at uitrd_om_report.uitrd_0_1.UITRD.tJava_7Process(UITRD.java:5804)
11 Sep 2015 08:52:17 CDT at uitrd_om_report.uitrd_0_1.UITRD.CentralLoggerJoblet_1_tFixedFlowInput_7Process(UITRD.java:5539)
11 Sep 2015 08:52:17 CDT at uitrd_om_report.uitrd_0_1.UITRD.CentralLoggerJoblet_1_tJava_6Process(UITRD.java:4791)
11 Sep 2015 08:52:17 CDT at uitrd_om_report.uitrd_0_1.UITRD.CentralLoggerJoblet_1_tOracleInput_1Process(UITRD.java:4646)
11 Sep 2015 08:52:17 CDT at uitrd_om_report.uitrd_0_1.UITRD.CentralLoggerJoblet_1_tOracleConnection_1Process(UITRD.java:4227)
11 Sep 2015 08:52:17 CDT at uitrd_om_report.uitrd_0_1.UITRD.CentralLoggerJoblet_1_tJava_7Process(UITRD.java:4074)
11 Sep 2015 08:52:17 CDT at uitrd_om_report.uitrd_0_1.UITRD.tJava_1Process(UITRD.java:3973)
11 Sep 2015 08:52:17 CDT at uitrd_om_report.uitrd_0_1.UITRD.runJobInTOS(UITRD.java:18124)
Anonymous
Not applicable
Author

Hi prkasire,
Caused by: java.lang.NoClassDefFoundError: com/talend/csv/CSVWriter

The problem is that some of jars are missing. Do you use Talend ESB product and deploy your job (jar file, OSGI Bundle) on Talend Runtime?
Best regards
Sabrina
Anonymous
Not applicable
Author

Hi I am getting this below error while running the job. My intension is , I have to load log file of talend job to kafka. by using the kafkaAppender. but i am getting below error.
Please find the below kafka appender :
<APPENDER name="KAFKA" class="kafka.producer.KafkaLog4jAppender">
<OBJECT><PARAM name="Kafka" value="log" />
        <PARAM name="BrokerList" value="localhost:9092" />
<LAYOUT class="org.apache.log4j.PatternLayout">
<PARAM name="ConversionPattern" />
</LAYOUT>
</OBJECT></APPENDER>
log4j:ERROR Could not create an Appender. Reported error follows.
java.lang.ClassNotF oundException: kafka.producer.KafkaLog4jAppender       at java.net.URLClassLoader$1.run(Unknown Source)
Anonymous
Not applicable
Author

When I run sample tJava component in Talend BigData Open Studio, I got this error can any one tell me the solution


java.lang.NoClassDefFoundError: Integer

at java.lang.Class.getDeclaredMethods0(Native Method)

at java.lang.Class.privateGetDeclaredMethods(Unknown Source)

at java.lang.Class.privateGetMethodRecursive(Unknown Source)

at java.lang.Class.getMethod0(Unknown Source)

at java.lang.Class.getMethod(Unknown Source)

at sun.launcher.LauncherHelper.validateMainClass(Unknown Source)

at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)

Caused by: java.lang.ClassNotFoundException: Integer

at java.net.URLClassLoader.findClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

... 7 more

Error: A JNI error has occurred, please check your installation and try again

Exception in thread "main"
Anonymous
Not applicable
Author

Hi masthansk524,
 Have you ever successfully execute a job in your Talend BigData Open Studio? What's your JDK version? Are you using JDK 1.8?
Best regards
Sabrina