Hi, Antonio! Try to create en explicit node lock (an instance of the org.apache.slide.lock.NodeLock class) and use the setOwnerInfo(java.lang.String ownerInfo) method to set the non-null value of its owner info parameter.
Yours sincerely, Andrey. > -----Original Message----- > From: Slide Users Mailing List [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 08, 2004 12:10 PM > To: [EMAIL PROTECTED] > Subject: Problem with lock > > Hi, > I'm a beginner Slide API side-server user. > I use the version 2.0 > I need help about the following problem > > I want lock an ObjectNode and I think to do in this way: > > ...... > Lock lock = _token.getLockHelper(); > ....... > token.begin(); > NodeLock nodelock = new > NodeLock("/files/fileDiTest","/users/root","/actions/read",new > Date(new Date().getTime()+10000000),true); > lock.lock(slideToken,nodelock); .............. > token.commit(); > > but lock.lock(slideToken,nodelock); throws this Exception: > org.apache.slide.common.ServiceAccessException: Service > TxFileStore at store/metadata working on work/metadata access > error : The data "null" is not legal for a JDOM attribute: A > null is not a legal XML value. > at > org.apache.slide.store.AbstractStore.putLock(AbstractStore.java:741) > at > org.apache.slide.store.ExtendedStore.putLock(ExtendedStore.java:571) > at org.apache.slide.lock.LockImpl.lock(LockImpl.java:128) > > the configuration file is Domain.sample. > > Thanks > Antonio > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
