Hi,
    I am confused if userpath should be included when Slide methods are 
called. I looked through AddUserAction.java from the admin module and 
tried to create a user Ahmad.

----------------------------
SlideToken slideToken = new SlideTokenImpl(new 
CredentialsToken("/users/root"));
try {
    structure.retrieve(slideToken, 
nat.getNamespaceConfig().getUsersPath() + "/000001");
}
catch( ObjectNotFoundException onfe ) {
    structure.create(slideToken, new slideroles.basic.UserRoleImpl(), 
nat.getNamespaceConfig().getUsersPath() + "/000001")
}
----------------------------

The first retrieve method will throw the ObjectNotFoundException, but 
when it comes to the create method, a Slide exception will be thrown :

org.apache.slide.structure.ObjectNotFoundException: No object found at 
/users/users
        at 
slidestore.reference.JDBCDescriptorsStore.retrieveObject(JDBCDescriptorsStore.java:584)
        at 
org.apache.slide.store.StandardStore.retrieveObject(StandardStore.java:171)
        at 
org.apache.slide.security.SecurityImpl.getPrincipal(SecurityImpl.java:774)
        at 
org.apache.slide.security.SecurityImpl.hasRole(SecurityImpl.java:641)
        at 
org.apache.slide.structure.StructureImpl.create(StructureImpl.java:288)
        at 
kikuze.printmanager.pmfile.method.CreateUserMethod.performMethod(CreateUserMethod.java:28)
        at 
kikuze.printmanager.pmfile.method.AbstractMethod.run(AbstractMethod.java:52)
        at 
__jspPage0_testing_jsp._jspService(__jspPage0_testing_jsp.java:119)
        at com.orionserver.http.OrionHttpJspPage.service(Unknown Source)
        at com.evermind._ah._rad(Unknown Source)
        at com.evermind.server.http.JSPServlet.service(Unknown Source)
        at com.evermind._cxb._abe(Unknown Source)
        at com.evermind._cxb._uec(Unknown Source)
        at com.evermind._io._twc(Unknown Source)
        at com.evermind._io._gc(Unknown Source)
        at com.evermind._if.run(Unknown Source)

For some reason it is looking for "/users/users". Can someone let me 
know what can cause this error?

Russ


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to