Hi,
I encountered another problem while working with TOS. For my JavaFlex-Code I need to import four *jars and a bunch of dependencies. I thought that it may be solved by putting all *.jar into <TOS installation path>/lib/java and putting a tLibraryLoad component with import-statements in the job.
This did not work, so I checked the path for external libs in perferences. Everything is fine it points to <TOS installation path>/lib/java.
So I tried to load every *jar with tLibraryLoad this only works for one component, after the second and third one is added nothing works anymore. And only the last added *.jar is recognized.
Something like this:
---onSuccess OK ----> ---onSuccess OK ----> --- onSuccess OK ----> ...
I beginning to get crazy. Maybe I should program it all by-hand as my dearest consultant ;-).
I'm also interested by the answer... I've got the same issue (I'd like to use the JODA package, but... don't know how to put the package, and how to invocate it). Arnaud
Hello, there is two way to use a jar. 1) use a tLibrairyLoad, and set advanced setting by writing java import it s work only for current job. 2) create a Talend routine, - import the jar - write routine class, and methode like samples provide at code/routine/system to use your own package. your custom functions are available for all project ( with tMap, tRowGenerator ... )
Thank you for your answer, but... it doesn't work with the JODA package...
JODA should let me manipulate dates more easily thant today (dates differences, dates + 2 days, etc...). But I tried your suggestion, TOS told me that I can only import a type, not a package...
Hi, How to add multiple jar files at a time in Talend? I have added new routine and imported jar files one by one. But still I am getting error- FilepathNotFound. How can I resolve this issue?
I am getting below NullPointerException while running Talend job-
1585 DEBUG org.apache.activemq.util.ThreadPoolUtils - Forcing shutdown of ExecutorService: java.util.concurrent.ThreadPoolExecutor@46c837cd
Exception in component tJavaRow_1
java.lang.NullPointerException
at com.bluecap.core.broker.MessageBroker.parseMessage(MessageBroker.java:57)
at listohis.hl7toxml_0_1.HL7ToXML.tMomInput_1_LoopProcess(HL7ToXML.java:4095)
at listohis.hl7toxml_0_1.HL7ToXML.tLibraryLoad_3Process(HL7ToXML.java:930)
at listohis.hl7toxml_0_1.HL7ToXML.tLibraryLoad_4Process(HL7ToXML.java:851)
at listohis.hl7toxml_0_1.HL7ToXML.tLibraryLoad_5Process(HL7ToXML.java:772)
at listohis.hl7toxml_0_1.HL7ToXML.tLibraryLoad_6Process(HL7ToXML.java:693)
at listohis.hl7toxml_0_1.HL7ToXML.tLibraryLoad_7Process(HL7ToXML.java:614)
at listohis.hl7toxml_0_1.HL7ToXML.runJobInTOS(HL7ToXML.java:6813)
at listohis.hl7toxml_0_1.HL7ToXML.main(HL7ToXML.java:6679)
disconnected
Help needed to resolve above issue..
Hi,
How I can point the jar in tlibraryload component if the talend server is on linux machine? see the details below:
We have installed talend server on a linux machine but we do development on our windows machine. I am using tLibraryLoad component to load user defined jar files.
In development environment for tLibraryLoad component ( on windows machine ) we can browse through the file location and select the custom jars. This works fine in Microsoft windows environment.
But when we deploy the same code on server ( linux machine ) then how we can give the path for the custom jar file in tLibraryLoad component?
I have placed the jar files in a folder on linux machine but need help to point the custom jar files in tLibraryLoad component.
Regards,
Shivanandan