camunda-community-hub / camunda-8-examples

44 stars 39 forks source link

Unable to use tasklistClient / react-tasklist app fails to start #437

Closed rashidRizvi98 closed 12 hours ago

rashidRizvi98 commented 3 months ago

I was. trying to integrate tasklist client in one of my projects as per in react-tasklist example and it throws following error on startup

react-tasklist app example also throws this error

An attempt was made to call a method that does not exist. The attempt was made from the following location:

    io.camunda.tasklist.CamundaTaskListClient.authenticate(CamundaTaskListClient.java:535)

The following method did not exist:

    'java.util.Map$Entry io.camunda.common.auth.Authentication.getTokenHeader(io.camunda.common.auth.Product)'

The calling method's class, io.camunda.tasklist.CamundaTaskListClient, was loaded from the following location:

    jar:file:/Users/xxxx/.m2/repository/io/camunda/camunda-tasklist-client-java/8.5.3.4/camunda-tasklist-client-java-8.5.3.4.jar!/io/camunda/tasklist/CamundaTaskListClient.class

The called method's class, io.camunda.common.auth.Authentication, is available from the following locations:

    jar:file:/Users/xxxx/.m2/repository/io/camunda/spring/java-common/8.5.7/java-common-8.5.7.jar!/io/camunda/common/auth/Authentication.class

The called method's class hierarchy was loaded from the following locations:

    io.camunda.common.auth.Authentication: file:/Users/xxxx/.m2/repository/io/camunda/spring/java-common/8.5.7/java-common-8.5.7.jar

Action:

Correct the classpath of your application so that it contains compatible versions of the classes io.camunda.tasklist.CamundaTaskListClient and io.camunda.common.auth.Authentication
swseniordev commented 2 months ago

same issue here. How to resolve it?

jonathanlukas commented 12 hours ago

Use the java version outlined in the pom.xml