• RemoteException when calling purgeTrash via webservice

  • Do you want to create a native client or integrate with third party applications: webservices are the solution.
Do you want to create a native client or integrate with third party applications: webservices are the solution.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #30580  by raygrrr
 
Hi experts,

I am using web services to upload/delete files, everything works fine except that lately I also need to call 'purgeTrash' function via webservice, however I get the following errors which I don't get from other web service methods:

My code:
Code: Select all
OKMRepository oKMRepository = new OKMRepositoryProxy();

try {
	oKMRepository.purgeTrash(token);
} catch (AccessDeniedException  e) {
	System.err.println("AccessDeniedException: "+e.getMessage());
} catch (RepositoryException  e) {
	System.err.println("RepositoryException: "+e.getMessage());
} catch (DatabaseException e) {
	System.err.println("DatabaseException: "+e.getMessage());
} catch (RemoteException e) {
	System.err.println("RemoteException: "+e.getMessage());;
}
Concoles message:
Code: Select all
RemoteException: ; nested exception is: 
	java.net.ConnectException: Connection refused: connect
The point I couldn't figure out is that why I can delete folder via web service but not 'purgeTrash' method? is that because this method require different access right or something?

Many thanks for your help!

Ray
 #30612  by jllort
 
Version 5.1.X is not yet supported I suggest you upgrade to version 6.3.X
If you want to continue with this version, take a look at log file to see clearly the cause of the error. Anyway take in mind we will not do any patch on this version if there's some problem.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.