tFileList Error "org.apache.oro cannot be resolved"
Hi All
I wanted to use tFileList and iterate over tInputFileDelimited. Every thing works ok on the designer part but as soon as I run the Job it Fails
1) First Error
Attached Screen Shot
1) Step1
2) Step2
3) Step3
Starting job loadSiteLevel at 11:33 25/09/2008.
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
org.apache.oro cannot be resolved
org.apache.oro cannot be resolved
The method fid_(Integer) is undefined for the type loadSiteLevel
org.talend.fileprocess cannot be resolved to a type
org.talend.fileprocess cannot be resolved to a type
at weekly_dashboard.loadsitelevel_0_1.loadSiteLevel.tFileList_1Process(loadSiteLevel.java:322)
at weekly_dashboard.loadsitelevel_0_1.loadSiteLevel.runJobInTOS(loadSiteLevel.java:1599)
at weekly_dashboard.loadsitelevel_0_1.loadSiteLevel.main(loadSiteLevel.java:1507)
Job loadSiteLevel ended at 11:33 25/09/2008.
I tried a work around, I provided the Jar file to application as shown in step2 image, and now the job runs but as soon as I change any thing in the designer part it looses all the changes I made in the back end.
What to do regarding this?
2)Second Error
Attached Screen Shot
1) SecondErrorStep1
What I am getting is
After fixing the first error I try to Run my modified job this time It comes up with a different error
Starting job loadSiteLevel at 11:47 25/09/2008.
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
The method fid_(Integer) is undefined for the type loadSiteLevel
org.talend.fileprocess cannot be resolved to a type
org.talend.fileprocess cannot be resolved to a type
at weekly_dashboard.loadsitelevel_0_1.loadSiteLevel.tFileList_1Process(loadSiteLevel.java:391)
at weekly_dashboard.loadsitelevel_0_1.loadSiteLevel.runJobInTOS(loadSiteLevel.java:1599)
at weekly_dashboard.loadsitelevel_0_1.loadSiteLevel.main(loadSiteLevel.java:1507)
Job loadSiteLevel ended at 11:47 25/09/2008.
Tried to find similar errors in the forum but dint find any.
My Friend is using an older version of talend, he has not faced any such problem.
Pls help.
Thanks
Surya
Hi, I looked at the generated code but can't see any problems (just missing imports). You tagged this thread with tos 2.4.0, but it seems like 3.0.0. In 2.4.0 the package "org.apache.oro.text.GlobCompiler" is not used. Because I do not have 3.0.0 installed until now I cant try to reproduce it... I think you could resolve each "class not found" error the same way. But this should not be necessary (unless it is a buf in 3.0.0). Bye Volker
Hi Volker
Yes you are right mine is a 3.0.0 version, sorry for posting that in a wrong forum.
My problem regarding the Jar files/missing imports is still persistent.
And I am still not able to get rid of this error message.
org.talend.fileprocess.FileInputDelimited fid_tFileInputDelimited_1 = new org.talend.fileprocess.FileInputDelimited(
"C:/ETL/TalendNew/TOS-All-r17341-V3.0.0M3/workspace/WEEKLY_DASHBOARD/files/finalOutput/"
+ weeklyFileName, "ISO-8859-15", ";", "\n", true,
0, 0, -1, -1, false);
Even after including the Jar file mentioned by Shong, I am still struggling looks like I wont be able to use the tFileInputDelimited component.
Pls suggest.
Thanks
Surya