Error when running jobs via TAC, successful run in Studio
Hi,
I have been facing an issue with running jobs via TAC with the error message as below:
Exception in thread "main" java.lang.NoClassDefFoundError: sandbox_j/<<NameofJob>>
Caused by: java.lang.ClassNotFoundException: sandbox_j.bvexpressfeed_0_1.BVExpressFeed
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: sandbox_j.bvexpressfeed_0_1.BVExpressFeed. Program will exit.
The job runs successfully via Studio.
Also, any job that is running successfully now, if regenerated->deployed->run, gives the same error message.
I had triggered a job which ran for close to 4 hours after which I force killed it. Since then I have been having this issue.
On checking the <<jobname>>_run.sh, I have noticed that certain .jar files are missing as compared to the jobs that were running successfully earlier.
Please find the below:
Erroring job's run.sh file:
cd `dirname $0`
ROOT_PATH=`pwd`
java -Xms256M -Xmx1024M -cp
$ROOT_PATH/../lib/commons-io-2.4-test-sources.jar:
$ROOT_PATH/../lib/commons-io-2.4-tests.jar:
$ROOT_PATH/../lib/commons-io-2.4-javadoc.jar:
$ROOT_PATH/../lib/commons-io-2.4.jar:
$ROOT_PATH/../lib/commons-io-2.4-sources.jar:
$ROOT_PATH:$ROOT_PATH/../lib/systemRoutines.jar::$ROOT_PATH/../lib/userRoutines.jar::.:$ROOT_PATH/testjob2_0_1.jar: sandbox_j.testjob2_0_1.testjob2 --context=Default "$@"
Successful job's run.sh file:
cd `dirname $0`
ROOT_PATH=`pwd`
java -Xms256M -Xmx2048M -cp $ROOT_PATH/../lib/TalendSAX.jar:$ROOT_PATH/../lib/advancedPersistentLookupLib-1.0.jar:
$ROOT_PATH/../lib/commons-collections-3.2.jar:
$ROOT_PATH/../lib/xdb.jar:$ROOT_PATH/../lib/thashfile.jar:
$ROOT_PATH/../lib/jaxen-1.1.1.jar:
$ROOT_PATH/../lib/log4j-1.2.15.jar:
$ROOT_PATH/../lib/ojdbc6-11g.jar:
$ROOT_PATH/../lib/dom4j-1.6.1.jar:
$ROOT_PATH/../lib/jboss-serialization.jar:
$ROOT_PATH/../lib/ini4j-0.5.1.jar:
$ROOT_PATH/../lib/jakarta-oro-2.0.8.jar:
$ROOT_PATH/../lib/talend_file_enhanced_20070724.jar:
$ROOT_PATH/../lib/trove.jar:
$ROOT_PATH/../lib/xmlparserv2.jar:
$ROOT_PATH:$ROOT_PATH/../lib/systemRoutines.jar::$ROOT_PATH/../lib/userRoutines.jar::.:$ROOT_PATH/load_etl_book_paper_0_1.jar: sandbox_j.load_etl_book_paper_0_1.load_ETL_book_paper --context=Default "$@"
Any inputs in this regard would be of great help.
Regards.
Hi, What 's the talend product build version are you using? Is there any error log for your issue? Studio error log is located in <Talend Studio installation path>/workspace/.metadata/.log TAC error log is located in :<Servers installtion path>apache-tomcat-6.0.35\logs (take tomcat as example). Best regards Sabrina
Hi, It looks like a bug. You'd better open a ticket on talend support portal, our colleagues from support team will schedule a webex with you so that we can repro your issue step by step. Thanks for your time. Best regards Sabrina