I am attempting to use Blend4J to manipulate Galaxy programmatically. In particular to use the ToolsClient.uploadRequest method to add a file to the current history in Galaxy. However, at runtime this results in the exception:
com.sun.jersey.api.client.ClientHandlerException: A message body writer for Java type, class com.sun.jersey.multipart.FormDataMultiPart, and MIME media type, multipart/form-data, was not found
Even though the MultiPartWriter class is available on the CLASSPATH it still needs to be added to the ClientConfig. This PR simply applies the above fix.
I am attempting to use Blend4J to manipulate Galaxy programmatically. In particular to use the ToolsClient.uploadRequest method to add a file to the current history in Galaxy. However, at runtime this results in the exception:
I found this solution on StackOverflow that does solve the problem for me: http://stackoverflow.com/questions/15585074/jersey-client-exception-a-message-body-writer-was-not-found.
Even though the MultiPartWriter class is available on the CLASSPATH it still needs to be added to the ClientConfig. This PR simply applies the above fix.