jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Guggisberg <stefan.guggisb...@gmail.com>
Subject Re: problem with removeMixin
Date Wed, 13 Apr 2011 10:02:34 GMT
On Wed, Apr 13, 2011 at 11:01 AM, Gazi Mushfiqur Rahman
<gazimushfiqurrahman@gmail.com> wrote:
> I am not sure how that is possible. This is what I have done:
>   1. Added 'mix:shareable' mixin to a node.
>   2. Created a shared node for that node
>   3. Removed the shared node (by calling: 'node.removeShare();' on the
> shared node)
>   4. Remove the 'mix:shareable' mixin from the original node (which is
> failing).

the exception thrown answers your question:

> Caused by: javax.jcr.UnsupportedRepositoryOperationException: Removing
> mix:shareable is not supported.

cheers
stefan

>
> The stack trace of the error is given below:
>
> 13.04.2011 14:51:59.019 *ERROR* [10.0.0.87 [1302684719009] POST
> /sling/content/hello.move.html HTTP/1.1]
> org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught
> SlingException org.mozilla.javascript.WrappedException: Wrapped
> javax.jcr.UnsupportedRepositoryOperationException: Removing mix:shareable is
> not supported. (/apps/versionable/document/move/POST.esp#13)
>        at
> org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1757)
>        at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:170)
>        at
> org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:243)
>        at
> org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:119)
>        at
> org.mozilla.javascript.gen.c25._c0(/apps/versionable/document/move/POST.esp:13)
>        at
> org.mozilla.javascript.gen.c25.call(/apps/versionable/document/move/POST.esp)
>        at
> org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
>        at
> org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
>        at
> org.mozilla.javascript.gen.c25.call(/apps/versionable/document/move/POST.esp)
>        at
> org.mozilla.javascript.gen.c25.exec(/apps/versionable/document/move/POST.esp)
>        at org.mozilla.javascript.Context.evaluateReader(Context.java:1227)
>        at
> org.apache.sling.scripting.javascript.internal.RhinoJavaScriptEngine.eval(RhinoJavaScriptEngine.java:114)
>        at
> org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:351)
>        at
> org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(DefaultSlingScript.java:163)
>        at
> org.apache.sling.scripting.core.impl.DefaultSlingScript.service(DefaultSlingScript.java:449)
>        at
> org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:529)
>        at
> org.apache.sling.engine.impl.SlingRequestProcessorImpl.processComponent(SlingRequestProcessorImpl.java:274)
>        at
> org.apache.sling.engine.impl.filter.RequestSlingFilterChain.render(RequestSlingFilterChain.java:49)
>        at
> org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:64)
>        at
> org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter.doFilter(RequestProgressTrackerLogFilter.java:59)
>        at
> org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
>        at
> org.apache.sling.engine.impl.SlingRequestProcessorImpl.processRequest(SlingRequestProcessorImpl.java:161)
>        at
> org.apache.sling.engine.impl.SlingMainServlet.service(SlingMainServlet.java:183)
>        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.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:722)
>        at
> org.apache.felix.http.proxy.ProxyServlet.service(ProxyServlet.java:60)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
>        at
> org.apache.sling.launchpad.base.webapp.SlingServletDelegate.service(SlingServletDelegate.java:277)
>        at
> org.apache.sling.launchpad.webapp.SlingServlet.service(SlingServlet.java:148)
>        at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
>        at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>        at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
>        at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
>        at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:163)
>        at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:108)
>        at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:556)
>        at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
>        at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:401)
>        at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:242)
>        at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:267)
>        at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:245)
>        at
> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:260)
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>        at java.lang.Thread.run(Thread.java:662)
> Caused by: javax.jcr.UnsupportedRepositoryOperationException: Removing
> mix:shareable is not supported.
>        at
> org.apache.jackrabbit.core.ItemImpl.processShareableNodes(ItemImpl.java:743)
>        at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:1116)
>        at org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:920)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at
> org.apache.sling.jcr.base.SessionProxyHandler$SessionProxyInvocationHandler.invoke(SessionProxyHandler.java:109)
>        at $Proxy74.save(Unknown Source)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
>        ... 50 more
>
>
> So, how do you think properties for 'mix:shareable' is still present in the
> node? But it seems to be something else to me from the log.
>
> Thank you,
> Gazi Mushfiqur Rhaman
>
> On Tue, Apr 12, 2011 at 8:31 PM, Alexander Klimetschek
> <aklimets@adobe.com>wrote:
>
>> On 11.04.11 23:16, "Gazi Mushfiqur Rahman" <gazimushfiqurrahman@gmail.com>
>> wrote:
>>
>> >In my case, I added 'mix:shareable' mixin to a node created earler. But
>> >later if I try to remove the mixin, I get the error message that
>> >'mix:shareable' mixin can not be removed from the node. Any idea why this
>> >is
>> >happening or how I can fix this issue?
>>
>> This could be the case because (mandatory) properties defined by the mixin
>> are still set on the node.
>>
>> Regards,
>> Alex
>>
>> --
>> Alexander Klimetschek
>> Developer // Adobe (Day) // Berlin - Basel
>>
>>
>>
>>
>>
>

Mime
View raw message