• Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » NoClassDefFound with tRunJob

#1 2009-08-17 18:04:04

DebAtNethealth
Member
Registered: 2009-06-22
Posts: 13

NoClassDefFound with tRunJob

I'm running TOS 3.0.3 on Windows in java 1.6.  I need some help in handling an aspect of job execution:

My basic (child) job is working fine (it does data transformations with file delimited and MSSQL input to MSSQL output).  I created a parent job which waits on the existence of a file, and when it shows up, first it copies the file to another directory, then it executes the child job via a tRunJob (see attached screen shot of parent job).  My problem is that when I export scripts and run the parent via a .bat file, I get NoClassDefFound Error.  The parent job runs fine from within TOS, and the child job runs fine from an export .bat file.  I think it has to do with adding a tSendMail because I think it worked before that, but I deactivated the tSendMail components and it still doesn't work.

The message I get in the cmd window is:
Exception in thread "main" java.lang.NoClassDefFoundError: rapim_load/rapim_load
basicdata_0_1/RAPIM_LoadBasicData
        at rapim_load.rapim_waitforoutcome_0_1.RAPIM_WaitForOutcome.tRunJob_1Pro
cess(RAPIM_WaitForOutcome.java:6282)
        at rapim_load.rapim_waitforoutcome_0_1.RAPIM_WaitForOutcome.tWaitForFile

Is there something else I have to do to import libraries or anything for this scenario to work?  I checked the lib folder of both the child export (works) and the parent export (doesn't) and they are identical.  I also checked the Talend .metadata/.log and I didn't get an entry for my most recent run but I did get one earlier today (wierd):
!ENTRY org.talend.libraries 0 0 2009-08-17 10:50:19.640
!MESSAGE 2009-08-17 10:50:19,640 WARN  org.apache.axis.utils.JavaUtils  - Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.

Thanks for the help
-Deb


Uploaded Images

Offline

#2 2009-08-18 05:17:40

shong
Talend team
Registered: 2007-08-29
Posts: 10310
Website

Re: NoClassDefFound with tRunJob

Hello Deb

1)I remembered there was a related bug on TOS3.0.X, please download the latest version and try again.
2)Change the main link to iterate link out of tWaitForFile.

Best regards

          shong


Email:shong@talend.com
Choose Talend, Enjoy Talend!
New & Event: Talend Help Center
Talend-->the leader of open source data management and application integration solutions!

Online

#3 2009-08-18 06:19:51

DebAtNethealth
Member
Registered: 2009-06-22
Posts: 13

Re: NoClassDefFound with tRunJob

Thanks Shong.  I downloaded the 3.1.3 release and will upgrade tomorrow.  Are there any upgrade instructions for going from 3.0.3 to 3.1.3, or do I just install and then import my exported projects (or can I just open them in the new release)?  I only see installation instructions in the wiki, not upgrade.

Thanks again.
Regards,
-Deb

Offline

#4 2009-08-18 07:14:35

shong
Talend team
Registered: 2007-08-29
Posts: 10310
Website

Re: NoClassDefFound with tRunJob

Hello

do I just install and then import my exported projects (or can I just open them in the new release)?

You only need install the latest release and then import the exist projects.

Best regards

          shong


Email:shong@talend.com
Choose Talend, Enjoy Talend!
New & Event: Talend Help Center
Talend-->the leader of open source data management and application integration solutions!

Online

#5 2009-08-18 15:54:55

DebAtNethealth
Member
Registered: 2009-06-22
Posts: 13

Re: NoClassDefFound with tRunJob

The bad news is:  I did upgrade to 3.1.3 successfully but the problem did not go away.
The good news is:  I figured out what is wrong.  I looked at the exported project closer, and the jar that was created for the tRunJob child job had a 1K filesize in the parent export, but was much bigger in the child export (I exported it separately to test).  When I copied the child-created jar into the parent directory (overwriting the 1K file created there), then the parent job worked fine.

So, is this a bug that the parent job is not exported correctly, or am I missing a step in my procedure to create the child jar correctly within the parent export?  Am I making sense?

Thanks again for the help.
Regards,
-Deb

Offline

#6 2009-08-21 18:15:22

DebAtNethealth
Member
Registered: 2009-06-22
Posts: 13

Re: NoClassDefFound with tRunJob

Hi Shong (or anyone),

Do you know if this is a bug that the child job jar is not present in the parent jar, or is there something I'm doing wrong when I package?  It's getting annoying copying the child jar every time I package to test on the server.

Thanks for the help.
Regards,
-Deb

Offline

#7 2009-08-24 09:39:41

PaulMandalka
Member
Registered: 2008-10-22
Posts: 13

Re: NoClassDefFound with tRunJob

Maybe this bug : http://www.talendforge.org/bugs/view.php?id=7932 caused the problem.
Try to remove all "-" and spaces from you project-name.

Offline

#8 2009-08-25 14:57:34

DebAtNethealth
Member
Registered: 2009-06-22
Posts: 13

Re: NoClassDefFound with tRunJob

Hi Paul,

Thanks for the reply.  I wish that was it.  I didn't have spaces or dashes, but I had underlines and period, so I tried removing them.  But I'm still having the same problem.  It's not creating the child jars correctly.  And I'm not sure that copying the jars from the exported children is working right either because I'm having trouble getting the child to use the correct context variables.  Do you know if it is kosher to just copy the jar from the packaged child into the parent, or is there more to solving the issue by hand?

Thanks again for the help.
Regards,
-Deb

UPDATE:  My job is working now with context variables - I had to change the children to use the same context group as the parent and now it works.  Still having the problem of the child jars not being created properly though.....

Last edited by DebAtNethealth (2009-08-25 15:29:10)

Offline

#9 2009-08-25 16:18:04

Jerome A.
New member
Company: Xella
Registered: 2009-01-26
Posts: 4

Re: NoClassDefFound with tRunJob

Hello Deb,

I'm having the same trouble : was in 3.0.3 and get the "NoClassDefFoundError" error.
Today, I've upgraded in 3.1.3, added environment variables, deleted all '-' or '_' characters... but I still get the same error.

I tried to export child jobs manually and then add their .jar into my main job. Now my jobs runs fine :-)

Thank you for your solution.

But I also hope that this situation will be solved soon :-)

Offline

#10 2010-03-30 04:56:30

Bill Krueger
Guest

Re: NoClassDefFound with tRunJob

Hi,

I am experiencing this problem as well.  I have opened a BugTracker issue and a help ticket with Talend support, but I am not getting any traction on the issue.  This is a very serious flaw in Talend and affects not only generation through the Administration center, but also generation of the job when executing through distant run.  I am shocked that this old thread does not have one helpful post from a Talend Engineer.  I am using the same workaround you have described, but when you have a job with dozens of child jobs, it is quite painful to manually generate the JAR for each of the child jobs and then manually copy those JARs into the proper directory on the job server anytime a change is made and needs to be deployed.

This is simply unacceptable as a user who is paying to use the Talend Integration Suite.  Can Shong or someone from Talend verify that this is a bug that is actively being worked on?  If not, I haven't received one suggestion as to what we might be doing wrong that would cause these JARs not to be generated.  I have received suggestions to make sure to check the box for 'transmit whole context' in each of the tRunJob components, which doesn't solve the issue. 

I am using TIS 3.2.1 and it appears this problem continues to persist.  I know it's a shot in the dark, but I'm hoping that by bumping this thread someone out there may know the solution.

#11 2010-04-15 01:00:01

alevy
Member
Registered: 2009-11-20
Posts: 1488

Re: NoClassDefFound with tRunJob

Hi Bill, we are now having this problem as well with TIS 3.2.3.  Can you please provide the number of the BugTracker you submitted so we can also submit a support ticket?

Offline

  • Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » NoClassDefFound with tRunJob

Board footer

Powered by FluxBB