LinkageError when running the application

Sample application gives below error when running and this error happens in the line to create WorkflowExecutor

Exception

Exception in thread “main” java.lang.LinkageError: ClassCastException: attempting to castjar:file:/C:/Users/jaysm/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.1.1/javax.ws.rs-api-2.1.1.jar!/javax/ws/rs/ext/RuntimeDelegate.class to jar:file:/C:/Users/jaysm/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.1.1/javax.ws.rs-api-2.1.1.jar!/javax/ws/rs/ext/RuntimeDelegate.class


Code

public static void main(String args)
{
SpringApplication.run(OrkesConductorApplication.class, args);

     System.out.println("Hello world!");
        ApiClient apiClient = new ApiClient("https://developer.orkescloud.com/api"); 
      
        OrkesClients oc = new OrkesClients(apiClient);

        WorkflowExecutor executor = new WorkflowExecutor(
                oc.getTaskClient(),
                oc.getWorkflowClient(),
                oc.getMetadataClient(),
                10);

    //   executor.initWorkers("com.orkes_conductor"); 
    }
1 Like

Hey @jaysmaverick , thanks for posting!!

Follow-up question: You mentioned the error occurring in a sample application. Are you trying one of the sample apps at GitHub - conductor-oss/conductor-apps: Sample applications built with Conductor?