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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] org.apache.commons.httpclient cannot be resolved to a type

Hello everyone,
When trying to run a finished job on a target machine using the generated shellscript ("bis_project_run.sh"), I'm stuck with a Java error:
Exception in thread "main" java.lang.Error: java.lang.Error: Unresolved compilation problems: 
org.apache.commons.httpclient cannot be resolved to a type
org.apache.commons.httpclient cannot be resolved to a type
org.apache.commons.httpclient cannot be resolved to a type
org.apache.commons.httpclient cannot be resolved to a type
org.apache.commons.httpclient cannot be resolved to a type
org.apache.commons.httpclient cannot be resolved to a type
org.apache.commons.httpclient cannot be resolved to a type
org.apache.commons.httpclient.HttpStatus cannot be resolved
at bis.bis_project_0_1.bis_project.tMysqlConnection_1Process(bis_project.java:3603)
at bis.bis_project_0_1.bis_project.runJobInTOS(bis_project.java:3898)
at bis.bis_project_0_1.bis_project.main(bis_project.java:3648)
Caused by: java.lang.Error: Unresolved compilation problems:
org.apache.commons.httpclient cannot be resolved to a type
org.apache.commons.httpclient cannot be resolved to a type
org.apache.commons.httpclient cannot be resolved to a type
org.apache.commons.httpclient cannot be resolved to a type
org.apache.commons.httpclient cannot be resolved to a type
org.apache.commons.httpclient cannot be resolved to a type
org.apache.commons.httpclient cannot be resolved to a type
org.apache.commons.httpclient.HttpStatus cannot be resolved
at bis.bis_project_0_1.bis_project.tFileFetch_1Process(bis_project.java:582)
at bis.bis_project_0_1.bis_project.tMysqlConnection_1Process(bis_project.java:3595)
... 2 more

I thought this would mean that commons-httpclient-3.0.1.jar is not where it's supposed to be. However this file is in ../lib/ as classpath.jar describes it should be.
The error occurs on the machine I'm deploying to (Debian, Sun Java 6 JRE) as well as on my own desktop machine (Ubuntu, also Sun Java 6JRE). Somehow I must be missing something quite obvious here, anybody have a clue where to look?
Labels (3)
13 Replies
Anonymous
Not applicable
Author

Hi, thank you again for responding,
I see the errors in both designer and code. Here is an example - you can see the talend version in the image. Yes it happens each time I restart.
0683p000009MBj3.jpg
Anonymous
Not applicable
Author

Hi,
I have made a simple testing on talend open studio for Big data, everything is OK. See my screenshot.
First of all, make sure your component setting is totally correct. If the job has compile error, you are always required to fix the error before executing the job.(check if there is wrong configuration in your component setting and correct it).
If your component setting is fine, do you have another talend product/or re-install a new one in your machine to take a testing to see if this issue repro(with same configuration of component setting).
Best regards
Sabrina
0683p000009M9RG.png 0683p000009MBzv.png
Anonymous
Not applicable
Author

Thank you. Reinstalling Talend 5.4 and re-importing my project fixed the problem.
Anonymous
Not applicable
Author

Hi,
Thanks for your feedback. Don't hesitate to post your issue on forum.
Best regards
Sabrina