One Star

Java Classes Not Found

Hello Talend Team,
For the second time the following has happened to our production and development Talend environments: All jobs fail to run due to Class not found errors.
Our Talend Servers are Windows servers and the appearance is as if the run time environment has been initialized or the class path points to a location that does not contain any Java objects. Regenerate and Deploy fixes the problem but we need to know what the root cause for this issue is. We have checked with our Intel Admin who control the servers and they claim no security patches went in prior to this issue happening. Could it be a memory leak on the servers (since they don't get rebooted frequently) that ultimately writes over some part of the memory? Any other ideas or experiences with this issue?
Here are samples of errors we see:
java.lang.NoClassDefFoundError: org/talend/salesforce/SforceManagement
Caused by: java.lang.ClassNotFoundException: org.talend.salesforce.SforceManagement
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)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: devprojects.lendersnapshotdataimport_1_1.LenderSnapshotDataImport. Program will exit.
Exception in thread "main"
////////
java.lang.NoClassDefFoundError: devprojects/bussinessplandataimport_1_0/BussinessPlanDataImport
Caused by: java.lang.ClassNotFoundException: devprojects.bussinessplandataimport_1_0.BussinessPlanDataImport
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)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: devprojects.bussinessplandataimport_1_0.BussinessPlanDataImport. Program will exit.
Exception in thread "main"
///////
java.lang.NoClassDefFoundError: javax/mail/Message
Caused by: java.lang.ClassNotFoundException: javax.mail.Message
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)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: devprojects.sfdc_daily_updatelenders_1_0.SFDC_Daily_UpdateLenders. Program will exit.
Exception in thread "main"

Thank you,
Praveen
13 REPLIES
One Star

Re: Java Classes Not Found

Hi Praveen
Please recheck whether there is space in your talend installation path.
I will keep track of this topic.
Best regards!
Pedro
One Star

Re: Java Classes Not Found

I check the talend Configaration. Please check the print screen.
I would like to make sure your asking Disk space ?
Thank you,
Praveen
One Star

Re: Java Classes Not Found

We have 25 GB free space on Talend Installation path.
One Star

Re: Java Classes Not Found

Hi Pedro,
Could you please get back on our Java issue?
Thank you,
Praveen
One Star

Re: Java Classes Not Found

Hi Praveen
Sorry for my late response.
I mean whether there is a space in your Talend installation path which may lead to ClassNotFound error.
For example, "C:\Program Files\..."
If so, you need to change your installation path.
Best regards!
Pedro

Re: Java Classes Not Found

just something that may be unrelated
avoid spaces in the name of folders in your paths
(windows) have your path on a local disk - not a network drive.
One Star

Re: Java Classes Not Found

We are installed Talend administrator 4.1.2 which is in production and Development. I check the all the paths there is no space on all the paths. for your reference can you please find screen shot ( Configuration ) in this thread.
Thank you,
Praveen
One Star

Re: Java Classes Not Found

Hi
Which version of Talend Integration Suite do you use? Not only TAC version.
Have you checked the installation path of TIS?
It's werid.
Best regards!
Pedro
One Star

Re: Java Classes Not Found

We are using Talend Integration Suite 4.1.2.
We are checking installation path in "C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\Talend.war"
Talend Folder structure in this location "D:\Talend"
Archivejobs
Commandline
Executionlogs
Jobsdeploy
Jobserver
Logs
Recoveryjobs
Soamanager
Usercomponents
Thank you,
Praveen
One Star

Re: Java Classes Not Found

Hi
Even in the installation path of tomcat, you have to avoid spaces.
Change it into C:\Tomcat7\webapps\Talend.war
It's the bug of JDK.
Sometimes it will cause unknown errors.
Best regards!
Pedro
One Star

Re: Java Classes Not Found

Thank you - Pedro.
I remove the space on Tomcat in C: drive and Registry. After removing the space on both places and run the tomcat service it will give the error like unexpected error. Can you please give the suggestions on Tomcat removing and edit the space?
Thank you,
Praveen
One Star

Re: Java Classes Not Found

Hi
How do you remove the space? You'd better reinstall tomcat, instead of renaming the dericotry.
I suggest that you should reset your development environment(JDK,Tomcat,TIS) after you encounted so many errors.
Set the installation path at Installation Wizzard.
Best regards!
Pedro
One Star

Re: Java Classes Not Found

Thank you - Pedro.
Praveen