Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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.
Labels (6)
3 Replies
Anonymous
Not applicable
Author

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
Anonymous
Not applicable
Author

Hi,
I am using the product 'Talend Enterprise MDM Cluster Edition 5.1'.
The studio log at path <<C:\Talend\5.1.1\studio\Talend-Studio-r84309-V5.1.1\workspace\.metadata>> is as below:
!SESSION 2013-08-14 11:19:57.666 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_38
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86_64
!ENTRY org.talend.platform.logging 1 0 2013-08-14 11:20:17.086
!MESSAGE 2013-08-14 11:20:17,080 INFO org.talend.repository.ui.login.LoginComposite - validate updatesite...

!ENTRY org.talend.platform.logging 2 0 2013-08-14 11:20:17.142
!MESSAGE 2013-08-14 11:20:17,141 WARN org.talend.commons.exception.CommonExceptionHandler - softwareupdate.error.cannotconnect
!STACK 0 org.talend.commons.exception.PersistenceExcept

To see the whole post, download it here
OriginalPost.pdf
Anonymous
Not applicable
Author

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