Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
JayQueue
Creator
Creator

Routine: No errors when when using import but get java.lang.NoClassDefFoundError: org/apache/http/HttpEntity when calling the routine

Hello,

I created a custom routine with a few org.apache.* imports

The editor doesn't show me any errors and autocomplete worked.

No errors showing here:

0695b00000hrc6jAAA.png

But when I call the routine I'm getting

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/http/HttpEntity

at talend_shared.restcallvlaanderen_0_1.RESTCallVlaanderen.tJava_1Process(RESTCallVlaanderen.java:436)

at talend_shared.restcallvlaanderen_0_1.RESTCallVlaanderen.runJobInTOS(RESTCallVlaanderen.java:799)

at talend_shared.restcallvlaanderen_0_1.RESTCallVlaanderen.main(RESTCallVlaanderen.java:564)

Caused by: java.lang.ClassNotFoundException: org.apache.http.HttpEntity

at java.net.URLClassLoader.findClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

... 3 more

Any idea why?

Labels (3)
1 Solution

Accepted Solutions
JayQueue
Creator
Creator
Author

Fixed: Edit routing libraries and add the correct package

View solution in original post

2 Replies
JayQueue
Creator
Creator
Author

Fixed: Edit routing libraries and add the correct package

Anonymous
Not applicable

Hello,

Thanks for letting us know you've resolved this issue by yourself and sharing the solution here.

Best regards

Sabrina