Hi Melanie,

I think the "http://lnv-89012.dfki.uni-sb.de:9002/server/default/test";
is the dereferencable URL of your resources. However, CMS Adapter
processes the actual paths of content repository items within the
repository. So, could you please just configuring the path just with the
"/test" value?

Best,
Suat

On 10/2/2012 12:22 PM, Melanie Reiplinger wrote:
> Hi Suat,
>
> it seems the path that I specified is wrong.
> I'm presently using
> "http://lnv-89012.dfki.uni-sb.de:9002/server/default/test";, because
> that's where my test nodes are located within the repo. But the logs
> say its an invalid path.
>
> 02.10.2012 12:13:33.153 *INFO* [CM Event Dispatcher (Fire
> ConfigurationEvent:
> pid=org.apache.stanbol.cmsadapter.core.mapping.DefaultRDFBridgeImpl.92bdd0c3-49ad-482d-a6fd-11e7ed3d5048)]
> org.apache.stanbol.cmsadapter.core Service
> [org.apache.stanbol.cmsadapter.core.mapping.DefaultRDFBridgeImpl,176]
> ServiceEvent UNREGISTERING
> 02.10.2012 12:13:33.175 *INFO* [CM Event Dispatcher (Fire
> ConfigurationEvent:
> pid=org.apache.stanbol.cmsadapter.core.mapping.DefaultRDFBridgeImpl.92bdd0c3-49ad-482d-a6fd-11e7ed3d5048)]
> org.apache.stanbol.cmsadapter.core Service
> [org.apache.stanbol.cmsadapter.core.mapping.DefaultRDFBridgeImpl.92bdd0c3-49ad-482d-a6fd-11e7ed3d5048,235]
> ServiceEvent REGISTERED
> 02.10.2012 12:14:00.126 *WARN* [11888397@qtp-25389802-160]
> org.apache.stanbol.cmsadapter.jcr.mapping.JCRRDFMapper Failed to
> retrieve node having path:
> http://lnv-89012.dfki.uni-sb.de:9002/server/default/test or its children
> 02.10.2012 12:14:00.127 *WARN* [11888397@qtp-25389802-160]
> org.apache.stanbol.cmsadapter.web.resources.RDFMapperResource Error
> while generating RDF from repository
> org.apache.stanbol.cmsadapter.servicesapi.mapping.RDFBridgeException:
> Failed to node having path:
> http://lnv-89012.dfki.uni-sb.de:9002/server/default/test or its children
>     at
> org.apache.stanbol.cmsadapter.jcr.mapping.JCRRDFMapper.generateRDFFromRepository(JCRRDFMapper.java:337)
>     at
> org.apache.stanbol.cmsadapter.core.mapping.RDFBridgeManager.generateRDFFromRepository(RDFBridgeManager.java:199)
>     at
> org.apache.stanbol.cmsadapter.core.mapping.RDFBridgeManager.generateRDFFromRepository(RDFBridgeManager.java:167)
>     at
> org.apache.stanbol.cmsadapter.web.resources.RDFMapperResource.mapRepositoryToRDF(RDFMapperResource.java:276)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:616)
>     at
> com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
>     at
> com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)
>     at
> com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
>     at
> com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)
>     at
> com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
>     at
> com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
>     at
> com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
>     at
> com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
>     at
> com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1483)
>     at
> com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1414)
>     at
> com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1363)
>     at
> com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1353)
>     at
> com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:414)
>     at
> com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537)
>     at
> com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:708)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
>     at
> org.apache.felix.http.base.internal.handler.ServletHandler.doHandle(ServletHandler.java:96)
>     at
> org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:79)
>     at
> org.apache.felix.http.base.internal.dispatch.ServletPipeline.handle(ServletPipeline.java:42)
>     at
> org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:49)
>     at
> org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)
>     at
> org.apache.stanbol.commons.security.auth.AuthenticatingFilter$1.run(AuthenticatingFilter.java:157)
>     at java.security.AccessController.doPrivileged(Native Method)
>     at javax.security.auth.Subject.doAsPrivileged(Subject.java:537)
>     at
> org.apache.stanbol.commons.security.auth.AuthenticatingFilter.doFilter(AuthenticatingFilter.java:153)
>     at
> org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)
>     at
> org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)
>     at
> org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:47)
>     at
> org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)
>     at
> org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:78)
>     at
> org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:47)
>     at
> org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)
>     at
> org.apache.stanbol.commons.httpqueryheaders.impl.QueryHeadersFilter.doFilter(QueryHeadersFilter.java:75)
>     at
> org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)
>     at
> org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)
>     at
> org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:47)
>     at
> org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)
>     at
> org.apache.felix.http.base.internal.dispatch.FilterPipeline.dispatch(FilterPipeline.java:48)
>     at
> org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:39)
>     at
> org.apache.felix.http.base.internal.DispatcherServlet.service(DispatcherServlet.java:67)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
>     at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
>     at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
>     at
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
>     at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
>     at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
>     at org.mortbay.jetty.Server.handle(Server.java:326)
>     at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
>     at
> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:943)
>     at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
>     at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
>     at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
>     at
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
>     at
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
> Caused by: javax.jcr.RepositoryException: Invalid
> path:http://lnv-89012.dfki.uni-sb.de:9002/server/default/test
>     at
> org.apache.jackrabbit.rmi.server.ServerObject.getRepositoryException(ServerObject.java:145)
>     at
> org.apache.jackrabbit.rmi.server.ServerSession.getNode(ServerSession.java:216)
>     at sun.reflect.GeneratedMethodAccessor221.invoke(Unknown Source)
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:616)
>     at
> sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)
>     at sun.rmi.transport.Transport$1.run(Transport.java:177)
>     at java.security.AccessController.doPrivileged(Native Method)
>     at sun.rmi.transport.Transport.serviceCall(Transport.java:173)
>     at
> sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553)
>     at
> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808)
>     at
> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667)
>     at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>     at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>     at java.lang.Thread.run(Thread.java:679)
>     at
> sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:273)
>     at
> sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:251)
>     at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:160)
>     at
> org.apache.jackrabbit.rmi.server.ServerXASession_Stub.getNode(Unknown
> Source)
>     at
> org.apache.jackrabbit.rmi.client.ClientSession.getNode(ClientSession.java:209)
>     at
> org.apache.stanbol.cmsadapter.jcr.mapping.JCRRDFMapper.generateRDFFromRepository(JCRRDFMapper.java:334)
>     ... 61 more
>
>
> Am 02.10.2012 10:47, schrieb Suat Gönül:
>> Hi Melanie,
>>
>> Currently that service works for me. Are you configuring a path from the
>> Felix Configuration console i.e {stanbol_host}/system/console/configMgr
>> through the "Apache Stanbol CMS Adapter Default RDF Bridge
>> Configurations"
>> item? You should specify a valid "Content Repository Path" there. If you
>> already do so, could you send the error log?
>>
>> Best,
>> Suat
>>
>>
>> On Mon, Oct 1, 2012 at 12:59 PM, Melanie Reiplinger <
>> melanie.reiplin...@dfki.de> wrote:
>>
>>> Hi Suat,
>>>
>>> thank you. After a rebuild, I got it working, I can now delete items
>>> via
>>> CORS and the cmsadapter/contenthubfeed. :-)
>>>
>>> Now there is one more thing on the cmsadapter that does not work for
>>> me,
>>> the mapping from a repository unto RDF. I keep getting a 500 Internal
>>> Server Error.
>>> You already told me that I should be able to specify any URI as
>>> baseURI,
>>> but whatever I pass, it's the 500.
>>> Does it work for you when you test it?
>>>
>>> Best,
>>> Melanie
>>>
>>>
>>> Am 25.09.2012 16:48, schrieb Suat Gonul:
>>>
>>>> Hi Melanie,
>>>>
>>>> It seems I had overlooked the DELETE value for the
>>>> Access-Control-Allow-Methods header. Now, you should be able to
>>>> execute
>>>> CORS request for the DELETE method.
>>>>
>>>> Best,
>>>> Suat
>>>>
>>>
>
>

Reply via email to