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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tXMLMap : NoClassDefFoundError on AdvancedMemoryLookup when use tRestClient

Hello,

 

I have a strange problem. I create the following job :

tRestClient -> tXMLMap -> tLogRow.

The job run perfectly.

If I add a lookup in tXMLMap based on a tRestClient also. I can compile the job but when I execute, I receive the following :

Exception in thread "main" java.lang.NoClassDefFoundError: org/talend/designer/components/lookup/memory/AdvancedMemoryLookup
at mo_ods.t_rest_0_1.T_Rest.tRESTClient_1Process(T_Rest.java:1779)
at mo_ods.t_rest_0_1.T_Rest.runJobInTOS(T_Rest.java:3346)
at mo_ods.t_rest_0_1.T_Rest.main(T_Rest.java:3159)
Caused by: java.lang.ClassNotFoundException: org.talend.designer.components.lookup.memory.AdvancedMemoryLookup
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

 

I use the following version : 

Talend Data Integration (6.4.1.20170623_1246)

 

Do you have a solution ?

 

Thanks in advance.

 

Dimitri

 

Labels (5)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi,

 

    Another option is to do in below way.

 

tRestClient -> tHashOutput

OnSubJobOK

tHashInput-> tXMLMap (with lookup) -> tLogrow

 

Please opt the right data type for storing rest output data in Hash and also please make sure that Hash is cleared by opting the clear cache option in tHashInput flow.

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

 

View solution in original post

4 Replies
Anonymous
Not applicable
Author

Hello,

If you try to use tESBConsumer / tResctClient as a lookup into tXMLMap, it causes a ClassNotFoundException.

Exception in thread "main" java.lang.NoClassDefFoundError: org/talend/designer/components/lookup/memory/AdvancedMemoryLookup

Are you able to work around the problem by placing a tJavaRow in the lookup path between tRestClient and tXmlMap (just used as a passthrough)? Let us know if it is OK with you.


Best regards

Sabrina

 

Anonymous
Not applicable
Author

Hello,

 

I try but I don't know the config in tJavaRow...

Can you explain ?

 

Thanks in advance

 

Dimitri

Anonymous
Not applicable
Author

Hi,

 

    Another option is to do in below way.

 

tRestClient -> tHashOutput

OnSubJobOK

tHashInput-> tXMLMap (with lookup) -> tLogrow

 

Please opt the right data type for storing rest output data in Hash and also please make sure that Hash is cleared by opting the clear cache option in tHashInput flow.

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

 

Anonymous
Not applicable
Author

Thanks, It's ok. Perfect