Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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

Hello
1) First Error

Import the class on 'Advanced settings' tab:
//import java.util.List;
import org.apache.oro.io.*;
import org.apache.oro.text.regex.*;
2)Second Error

Can you show us the wrong generated code and how do you use method fid_(Integer) on tJava?
Best regards

shong
Anonymous
Not applicable
Author

HI Shong
Thanks for the quick reply
For the First Error
I am sorry but I dint understand/find the importing of class part.
In the advance settings I don't see any thing where I can "Import the class".
I can do that in the tJava component but I use that component for testing output from a Component. So in the production version I will not use tJava component.
Attached the image for tFileList components advance settings.
Any example would be really helpfull.

Second Error Code
// ============================================================================
//
// Copyright (c) 2005-2008, Talend Inc.
//
// This source code has been automatically generated by Talend Open Studio
// / JobDesigner (CodeGenerator version 3.0.0.M3_r17341).
// You can find more information about Talend products at www.talend.com. // You may distribute this code

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

Hello
1)For the first error:
I mean you should import the class in the advanced setting tab of tJava component, not tFileList. In tJava, you can use the class name directly after you import the class:
MyClass mc=new MyClass();
In the production version, you can use the class like this:
org.apache.oro.io.MyClass mc=new org.apache.oro.io.MyClass();
2) For the second error
/**
* start
*/
ok_Hash.put("tJava_2", false);
start_Hash.put("tJava_2", System.currentTimeMillis());
currentComponent = "tJava_2";
String foo = "bar";
System.out.println(fid_((Integer) globalMap
.get("tFileInputDelimited_1_NB_LINE")));

Here change the following code:
System.out.println(fid_((Integer) globalMap
.get("tFileInputDelimited_1_NB_LINE")));===>System.out.println(((Integer) globalMap
.get("tFileInputDelimited_1_NB_LINE")));
Best regards

shong
Anonymous
Not applicable
Author

Hi
I am unable to edit the code to make any changes
Code Of the First Error.
// ============================================================================
//
// Copyright (c) 2005-2008, Talend Inc.
//
// This source code has been automatically generated by Talend Open Studio
// / JobDesigner (CodeGenerator version 3.0.0.M3_r17341).
// You can find more information about Talend products at www.talend.com.
// You may distribute this code under the terms of the GNU LGPL license
// ( http://www.gnu.org/licenses/lgpl.html).
//
// ============================================================================
package weekly_dashboard.loadsiteleveltest_0_1;
import routines.DataOperation;
import routines.Mathematical;
import routines.Numeric; import routines.Relational; impor

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

Hi Surya,
you do not need to post your whole job 😉
Please can you switch to the code view and take a look to right side. You will find there a red sign indicating that there is a compilation error. This must not be a problem of a missing import. It could be also a subsequent error of another problem. So please only give us the marked line and some lines before and after the code.
Bye
Volker
Anonymous
Not applicable
Author

Hi
Finally I got the First Error Fixed which was regarding this "org.apache.oro".
I used the component load library to fix this part.
But for the second part I am still getting the error
Starting job loadSiteLevelTest at 18:52 25/09/2008.
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
org.talend.fileprocess cannot be resolved to a type
org.talend.fileprocess cannot be resolved to a type
at weekly_dashboard.loadsiteleveltest_0_1.loadSiteLevelTest.tFileList_1Process(loadSiteLevelTest.java:239)
at weekly_dashboard.loadsiteleveltest_0_1.loadSiteLevelTest.tLibraryLoad_1Process(loadSiteLevelTest.java:340)
at weekly_dashboard.loadsiteleveltest_0_1.loadSiteLevelTest.runJobInTOS(loadSiteLevelTest.java:455)
at weekly_dashboard.loadsiteleveltest_0_1.loadSiteLevelTest.main(loadSiteLevelTest.java:369)
Job loadSiteLevelTest ended at 18:52 25/09/2008.
I did not find any thing about this "org.talend.fileprocess" do I need any Jar file or Talend had to do this by itself.
Code Snippet
org.talend.fileprocess.FileInputDelimited fid_tFileInputFullRow_1 = new org.talend.fileprocess.FileInputDelimited(
((String) globalMap.get("tFileList_1_ERROR_MESSAGE"))
+ "\\"
+ ((String) globalMap
.get("tFileList_1_CURRENT_FILE")),
"ISO-8859-15", "", "\n", true, 0, 0, -1, -1, false);
Pls help.
Thanks
Surya
Anonymous
Not applicable
Author

Hello
I did not find any thing about this "org.talend.fileprocess" do I need any Jar file or Talend had to do this by itself.

Yes, it is a jar file provided by Talend, there should be a jar file 'talend_file_enhanced_20070724.jar' under plugins\org.talend.designer.components.localprovider_3.0.0.RC1_r17904\components\tFileInputDelimited.
Best regards

shong
Anonymous
Not applicable
Author

Hi,
you can check the existence of the jar which shong mentioned. But I still think it is a subsequent error. Ist this the only one in the code view?
Bye
Volker
Anonymous
Not applicable
Author

Hi Volker
Yes tht was the error I was getting when I used the component tFileList, I did a work around it and used tJavaFlex to write my own file iterator component, even after providing the Jar file using tLibrary load I was unable to resolve the error in tFileList.
So I gave up and choose to write my own code snippet for the job.
Pls update if I have to any thing different.
Thanks
Surya