Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
sarora1
Creator
Creator

Build Failure - Bunch of "Cannot be resolved to a type" errors

Locally job runs fine. But when building job in Jenkins for first time, I'm seeing these errors

 

1. ERROR in /var/lib/jenkins/workspace/xxx/XXX/poms/jobs/process/job_load_orders_0.1/src/main/java/xxx/job_load_orders_0_1/job_Load_Orders.java (at line 2484)
	final java.util.Map<String,com.jayway.jsonpath.JsonPath> jsonPathString2compiledJsonPath = new java.util.HashMap<String,com.jayway.jsonpath.JsonPath>();
	                           ^^^^^^^^^^
com.jayway cannot be resolved to a type
net.minidev cannot be resolved to a type
----------
14. ERROR in /var/lib/jenkins/workspace/xxx/XXX/poms/jobs/process/job_load_orders_0.1/src/main/java/xxx/job_load_orders_0_1/job_Orders.java (at line 2644)
	if (result_jlet_Set_DBConnection_1_tExtractJSONFields_1 instanceof net.minidev.json.JSONArray) {
	                                                                       ^^^^^^^^^^^
net.minidev cannot be resolved to a type
com.talend cannot be resolved to a type
----------
33. ERROR in /var/lib/jenkins/workspace/xxx/XXX/poms/jobs/process/job_load_orders_0.1/src/main/java/xxx/job_load_orders_0_1/job_Orders.java (at line 16994)
	csvReaderjlet_OrderLoad_1_tFileInputDelimited_3=new com.talend.csv.CSVReader((java.io.InputStream)filename_jlet_OrderLoad_1_tFileInputDelimited_3, fieldSeparator_jlet_OrderLoad_1_tFileInputDelimited_3[0], "US-ASCII");
	                                                                    ^^^^^^^^^^
8. ERROR in /var/lib/jenkins/workspace/xxx/XXX/poms/jobs/process/job_load_orders_0.1/src/main/java/xxx/job_load_orders_0_1/job_Load_Orders.java (at line 2491)
	jsonPathString2compiledJsonPath.put(jsonPath,compiledLoopPath);
	^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
JsonPath cannot be resolved to a type

 

Appreciate if anybody can point me right direction. @xdshi  ?

Labels (2)
2 Replies
Anonymous
Not applicable

Hello,

What's JDK version are you using? openjdk 1.8? Actually, we added support for OpenJDK 8 Zulu as from the 7.1.1 version.

Best regards

Sabrina

sarora1
Creator
Creator
Author

My java version

 

openjdk version "1.8.0_222"
OpenJDK Runtime Environment (build 1.8.0_222-b10)
OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode)