tXMLMap : NoClassDefFoundError on AdvancedMemoryLookup when use tRestClient

Six Stars

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

 


Accepted Solutions
Highlighted
Employee

Re: tXMLMap : NoClassDefFoundError on AdvancedMemoryLookup when use tRestClient

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 :-)

 


Warm Regards,
Nikhil Thampi
Please appreciate our members by giving Kudos for spending their time for your query. If your query is answered, please mark the topic as resolved :-)

All Replies
Moderator

Re: tXMLMap : NoClassDefFoundError on AdvancedMemoryLookup when use tRestClient

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

 

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Six Stars

Re: tXMLMap : NoClassDefFoundError on AdvancedMemoryLookup when use tRestClient

Hello,

 

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

Can you explain ?

 

Thanks in advance

 

Dimitri

Highlighted
Employee

Re: tXMLMap : NoClassDefFoundError on AdvancedMemoryLookup when use tRestClient

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 :-)

 


Warm Regards,
Nikhil Thampi
Please appreciate our members by giving Kudos for spending their time for your query. If your query is answered, please mark the topic as resolved :-)
Six Stars

Re: tXMLMap : NoClassDefFoundError on AdvancedMemoryLookup when use tRestClient

Thanks, It's ok. Perfect

Cloud Free Trial

Try Talend Cloud free for 30 days.

Tutorial

Introduction to Talend Open Studio for Data Integration.

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.