2 Replies Latest reply on Apr 27, 2015 12:11 AM by Soumya Bose

    Jbpm 6.1.0.Final rest remote api giving Invalid use of BasicClientConnManager exception.

    Soumya Bose Newbie

      Using jbpm rest remote api, if I try to access multiple rest calls at the same time it is giving me following exception -


      org.kie.services.client.api.command.exception.RemoteCommunicationException: Unable to post request: Invalid use of BasicClientConnManager: connection still allocated


      I have seen from code, 'org.kie.services.client.api.command.AbstractRemoteCommandObject.executeRestCommand(Command<T>)' this method does not contain any finally block to close the existing connection after this line -


      response = restRequest.post(Object.class);


      I think, we need to close the connection object after successful response of the rest request.


      I am using jbpm 6.1.0.Final. If anyone can confirm this is the issue with 6.1.0.Final release ? If it is a known issue, do we have any work around for this ? As this will be a blocking issue if we have multiple rest requests at the same time.


      Any help will be really appreciated.