• OKMFolder Rename Problem

  • 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.
 #8752  by mike_m
 
Hi there

I am currently using OpenKM 5.0 (build: 4203) and trying to implement a Web Service client on OKMFolder.
I created the client using Eclipse Helios from my
http://office.uit.gr:8888/OpenKM/OKMAuth?wsdl
http://office.uit.gr:8888/OpenKM/OKMFolder?wsdl
and managed to do some operations first utilizing OKMAuth.login(), OKMFolder.create()...

But when it comes on OKMFolder.rename() I get the following error :
Code: Select all
Feb 11, 2011 6:19:22 AM gr.uit.eprotocol.ws.OkmProtocolDispatcherImpl getInstance
INFO: Binding with http://office.uit.gr:8888/OpenKM/OKMFolder
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
 faultSubcode: 
 faultString: CallbackHandler does not support: javax.security.auth.callback.NameCallback@6e580043: CallbackHandler does not support: javax.security.auth.callback.NameCallback@6e580043
 faultActor: 
 faultNode: 
 faultDetail: 
	{http://endpoint.ws.openkm.com/}RepositoryException:<message>CallbackHandler does not support: javax.security.auth.callback.NameCallback@6e580043: CallbackHandler does not support: javax.security.auth.callback.NameCallback@6e580043</message>

CallbackHandler does not support: javax.security.auth.callback.NameCallback@6e580043: CallbackHandler does not support: javax.security.auth.callback.NameCallback@6e580043
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
I also notice, that in any error case the thrown exception does not have an error message. To trap the exception I do something like:
Code: Select all
try{
  OKMFolderProxy folderProxy = new OKMFolderProxy();
  Folder nodeFolder = folderProxy.rename( renameRequest.getOkmToken(), 
					                       renameRequest.getOldPath(), 
					                       renameRequest.getNewPath());	
logger.info("Renamed : " + nodeFolder.toString() );
}catch(Throwable e){
   logger.severe( e.getMessage() );
  ...
}
Any Ideas?

Thanks in advance

Mike
 #8763  by jllort
 
Take a look here :

http://openkm.svn.sourceforge.net/viewv ... iew=markup

Specially it
Code: Select all
BindingProvider bpAuth = (BindingProvider) okmAuth;
BindingProvider bpDocument= (BindingProvider) okmDocument;
bpAuth.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, host+"/OKMAuth");
bpDocument.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, host+"/OKMDocument"); 
 #8779  by mike_m
 
I did not understand the difference between to what I did and what you provided.
Both we set up a different port on runtime to a given Web Service Client implementation.
The only difference is that I do it using proxy stub to the web service and not a reference to a rebound web service interface like you do.

Anyway...,
The problem caused because I lost the session token somewhere... So I was able to login and do some stuff, but the session token was laterly lost. Due to the fact that the default session callback message is not helpful (it should be something more obvious like "wrong session token id" instead of the scary "CallbackHandler does not support"), I lost enough time on debugging a very trivial thing...

The solution came from that post http://forum.openkm.com/viewtopic.php?f=4&t=4170

I Wrote the procedure for developing a Java Web Service Client analytically here:
http://wiki.openkm.com/index.php/User_talk:Svaitsis.gss


Thanks for your help.

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.