Hi,
    I am attempting to add a new SubjectNode to Slide.
--------------------
NamespaceAccessToken tok = dom.accessNamespace(new SecurityToken(""), "version");
Structure struct = tok.getStructureHelper();
SlideToken token = new SlideTokenImpl(new CredentialsToken(new String("root")));
struct.create(token, new SubjectNode(), "/users/tom");
--------------------

In the database, user root has inheritable non-negative permission "/actions" on "/" 
and "/users"
but on executing the code I will get this :
--------------------
org.apache.slide.common.SlideException - DEBUG - 
org.apache.slide.structure.ObjectNotFoundException: No object found at /users/tom
        at 
slidestore.reference.JDBCDescriptorsStore.retrieveObject(JDBCDescriptorsStore.java:584)
        at org.apache.slide.store.StandardStore.retrieveObject(StandardStore.java:171)
        at org.apache.slide.structure.StructureImpl.create(StructureImpl.java:322)
        at testing.TestSlide.init(TestSlide.java:55)
        at __jspPage1_testing_jsp._jspService(__jspPage1_testing_jsp.java:69)
        at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:54)
        at 
com.evermind.server.http.HttpApplication.serviceJSP(HttpApplication.java:5458)
        at com.evermind.server.http.JSPServlet.service(JSPServlet.java:31)
        at 
com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:501)
        at 
com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:170)
        at 
com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:576)
        at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:189)
        at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:62)

org.apache.slide.common.Domain - DEBUG - Checking basic permissions on new object
org.apache.slide.common.Domain - DEBUG - Basic permissions granted for user root
WARNING - WARNING: No active transaction
WARNING - WARNING: No active transaction
--------------------

Is there something wrong with my code? Any help is appreciated.

Russ



Reply via email to