Quantcast
Channel: New board topics in SmartBear Community
Viewing all articles
Browse latest Browse all 20755

Got Error of ClassCastException, any special annotations for plugin`s dependencies?

$
0
0

Our listener plugin has dependency that has dependency on jersey-client.jar, When we executes the ReadyAPI test by testrunner, we got the error below.  Any idea why this will happened? Plugin and it`s dependency are in different ClassLoader?  Any idea how to avoid it? 

Thanks in advance.

 

Caused by: java.lang.LinkageError: ClassCastException: attempting to castjar:file:/F:/ReadyAPI/ReadyAPI-1.3.1-m-SNAPSHOT/lib/jersey-core-1.18.1.jar!/javax/ws/rs/ext/RuntimeDelegate.classtojar:file:/C:/Users/QA_TES~1/AppData/Local/Temp/ready5033785732690850359.jar!/javax/ws/rs/ext/RuntimeDelegate.class

        at javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:116)

        at javax.ws.rs.ext.RuntimeDelegate.getInstance(RuntimeDelegate.java:91)

        at com.sun.jersey.api.client.ClientRequest.<clinit>(ClientRequest.java:216)

        at com.sun.jersey.api.client.WebResource.get(WebResource.java:193)

 

Regards,

Grrison


Viewing all articles
Browse latest Browse all 20755

Trending Articles