cancel
Showing results for 
Search instead for 
Did you mean: 

Error with createHistoricTaskInstanceQuery

holysoul
Champ in-the-making
Champ in-the-making
Hi all.
I have met an error with 5.16.3
Here is my code

        List<HistoricTaskInstance> historicTaskInstances =
                historyService.createHistoricTaskInstanceQuery()
                .processInstanceId(processInstanceID).list();

And got that:

java.lang.NoSuchMethodError: org.activiti.engine.history.HistoricTaskInstanceQuery.processInstanceId

I came back with 5.16.1 and there is no problem. I found that you have some changes with HistoricTaskIntanceQuery, may be it is bug?
2 REPLIES 2

trademak
Star Contributor
Star Contributor
Where are you getting this error? When executing a unit test? The HistoricTaskInstanceQuery interface now extends the TaskInfoQuery interface which does have a processInstanceId method. We also have a lot of unit tests that use the processInstanceId method. So I'm really curious how you are getting this exception.

Best regards,

holysoul
Champ in-the-making
Champ in-the-making
Hi trademak. I don't meet that error again, after drop all tables and create them again. The reason might be the confusion of using 2 Activiti Engine with differences of versions but point to same database address.