jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guo Zhenhua <jen...@gmail.com>
Subject Exception thrown during nodetype registration via jcr2spi plus spi2dav (Jackrabbit 2.0-beta3)
Date Mon, 14 Dec 2009 08:09:18 GMT
I am using jcr2spi plus spi2dav at client side to access remote jcr repository.
However, when I tried to register new node types, I got following exception:

SEVERE: java.lang.UnsupportedOperationException: JCR-2003.
Implementation missing
java.lang.UnsupportedOperationException: JCR-2003. Implementation missing
    at org.apache.jackrabbit.spi2dav.RepositoryServiceImpl.registerNodeTypes(RepositoryServiceImpl.java:2165)
    at org.apache.jackrabbit.jcr2spi.WorkspaceManager$1.registerNodeTypes(WorkspaceManager.java:487)
    at org.apache.jackrabbit.jcr2spi.nodetype.NodeTypeCache.registerNodeTypes(NodeTypeCache.java:150)
    at org.apache.jackrabbit.jcr2spi.nodetype.NodeTypeCache$1.registerNodeTypes(NodeTypeCache.java:178)
    at org.apache.jackrabbit.jcr2spi.nodetype.NodeTypeRegistryImpl.registerNodeTypes(NodeTypeRegistryImpl.java:180)
    at org.apache.jackrabbit.jcr2spi.nodetype.NodeTypeManagerImpl.registerNodeTypes(NodeTypeManagerImpl.java:388)
    at org.apache.jackrabbit.spi.commons.nodetype.AbstractNodeTypeManager.registerNodeType(AbstractNodeTypeManager.java:117)
   at cgl.shindig.gadget.repo.JR20ClientHelper.regGRNodeType(GadgetJR20Repository.java:425)
    at cgl.shindig.gadget.repo.JR20ClientHelper.regGRNodeTypeIfNonExist(GadgetJR20Repository.java:381)
    at cgl.shindig.gadget.repo.JR20ClientHelper.initGadgetRepo(GadgetJR20Repository.java:341)
    at cgl.shindig.gadget.repo.JR20ClientHelper.initGadgetRepo(GadgetJR20Repository.java:335)
    at cgl.shindig.gadget.repo.GadgetJR20Repository.<clinit>(GadgetJR20Repository.java:152)
    at cgl.shindig.gadget.repo.GadgetJR20Repository$$FastClassByGuice$$5d760682.newInstance(<generated>)
    at com.google.inject.internal.cglib.reflect.FastConstructor.newInstance(FastConstructor.java:40)
    at com.google.inject.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:60)
    at com.google.inject.ConstructorInjector.construct(ConstructorInjector.java:85)
    at com.google.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:111)
    at com.google.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:45)
    at com.google.inject.InjectorImpl.callInContext(InjectorImpl.java:811)
    at com.google.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:42)
    at com.google.inject.Scopes$1$1.get(Scopes.java:54)
    at com.google.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:48)
    at com.google.inject.SingleFieldInjector.inject(SingleFieldInjector.java:56)
    at com.google.inject.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:99)
    at com.google.inject.MembersInjectorImpl$1.call(MembersInjectorImpl.java:76)
    at com.google.inject.MembersInjectorImpl$1.call(MembersInjectorImpl.java:75)
    at com.google.inject.InjectorImpl.callInContext(InjectorImpl.java:804)
    at com.google.inject.MembersInjectorImpl.injectAndNotify(MembersInjectorImpl.java:74)
    at com.google.inject.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:61)
    at com.google.inject.InjectorImpl.injectMembers(InjectorImpl.java:726)
    at cgl.shindig.gadget.servlet.InjectedServlet.init(InjectedServlet.java:46)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1172)
    at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:808)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    at java.lang.Thread.run(Thread.java:595)

The reason may be
1) spi2dav does not cover node type registration request
   If so, I must use RMI to access remote repository?
2) at service side, node registration is not supported (it's not
optional in JCR 2.0 spec)

I think the cause of the problem is the first reason I mentioned.
Any suggestions?


Gerald

Mime
View raw message