Hi, I am developing a java application and when i checkin a new version i get an Exception.
The upload is working but when reading the Version the Exception is thrown.
JDK 11.0.8
OpenKM 6.3.9
java code (from the example + checkout):
The upload is working but when reading the Version the Exception is thrown.
JDK 11.0.8
OpenKM 6.3.9
java code (from the example + checkout):
Code: Select all
maven dependencies:
package com.openkm;
import java.io.FileInputStream;
import java.io.InputStream;
import org.apache.commons.io.IOUtils;
import com.openkm.sdk4j.OKMWebservices;
import com.openkm.sdk4j.OKMWebservicesFactory;
public class Test {
public static void main(String[] args) {
String host = "http://10.23.16.115:8080/OpenKM";
String username = "okmAdmin";
String password = "admin";
OKMWebservices ws = OKMWebservicesFactory.newInstance(host, username, password);
try {
InputStream is = new FileInputStream("c:\\tmp\\test.txt");
ws.checkout("/okm:root/test.txt");
ws.checkin("/okm:root/test.txt", is, "optional some comment");
IOUtils.closeQuietly(is);
} catch (Exception e) {
e.printStackTrace();
}
}
}
Code: Select all
Exception:
<dependencies>
<dependency>
<groupId>com.openkm</groupId>
<artifactId>sdk4j</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.8.0</version>
</dependency>
</dependencies>
Code: Select all
com.sun.jersey.api.client.ClientHandlerException: A message body reader for Java class com.openkm.sdk4j.bean.Version, and Java type class com.openkm.sdk4j.bean.Version, and MIME media type application/xml was not found