Description
When you try to delete a document in the CMS with a internal link to a checked-in document to following error is thrown and the document stays in the attic. The proper solution would be to create a visitor that doesn't visit virtual nodes.
Expert technical details:
javax.jcr.version.VersionException: node /content/attic/2009/8/31/bart[2]/bart/pvda:internallink/Campagne 2de kamerverkiezingen: cannot set property of a checked-in node
javax.jcr.version.VersionException: node /content/attic/2009/8/31/bart[2]/bart/pvda:internallink/Campagne 2de kamerverkiezingen: cannot set property of a checked-in node
at org.apache.jackrabbit.core.NodeImpl.checkSetProperty(NodeImpl.java:1292)
at org.apache.jackrabbit.core.NodeImpl.setProperty(NodeImpl.java:2302)
at org.hippoecm.repository.decorating.NodeDecorator.setProperty(NodeDecorator.java:159)
at org.hippoecm.repository.impl.WorkspaceDecorator$2.leaving(WorkspaceDecorator.java:210)
at javax.jcr.util.TraversingItemVisitor.visit(TraversingItemVisitor.java:183)
at org.hippoecm.repository.decorating.ItemVisitorDecorator.visit(ItemVisitorDecorator.java:48)
at org.apache.jackrabbit.core.NodeImpl.accept(NodeImpl.java:2067)
at org.hippoecm.repository.decorating.ItemDecorator.accept(ItemDecorator.java:138)
at javax.jcr.util.TraversingItemVisitor.visit(TraversingItemVisitor.java:179)
at org.hippoecm.repository.decorating.ItemVisitorDecorator.visit(ItemVisitorDecorator.java:48)
at org.apache.jackrabbit.core.NodeImpl.accept(NodeImpl.java:2067)
at org.hippoecm.repository.decorating.ItemDecorator.accept(ItemDecorator.java:138)
at javax.jcr.util.TraversingItemVisitor.visit(TraversingItemVisitor.java:179)
at org.hippoecm.repository.decorating.ItemVisitorDecorator.visit(ItemVisitorDecorator.java:48)
at org.apache.jackrabbit.core.NodeImpl.accept(NodeImpl.java:2067)
at org.hippoecm.repository.decorating.ItemDecorator.accept(ItemDecorator.java:138)
at javax.jcr.util.TraversingItemVisitor.visit(TraversingItemVisitor.java:179)
at org.hippoecm.repository.decorating.ItemVisitorDecorator.visit(ItemVisitorDecorator.java:48)
at org.apache.jackrabbit.core.NodeImpl.accept(NodeImpl.java:2067)
at org.hippoecm.repository.decorating.ItemDecorator.accept(ItemDecorator.java:138)
at org.hippoecm.repository.impl.WorkspaceDecorator.touch(WorkspaceDecorator.java:201)
at org.hippoecm.repository.impl.WorkspaceDecorator.move(WorkspaceDecorator.java:239)
at org.hippoecm.repository.standardworkflow.FolderWorkflowImpl.doArchive(FolderWorkflowImpl.java:224)
at org.hippoecm.repository.standardworkflow.FolderWorkflowImpl.archive(FolderWorkflowImpl.java:287)
at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.hippoecm.repository.impl.WorkflowManagerImpl$WorkflowInvocationHandler.invoke(WorkflowManagerImpl.java:480)
at $Proxy2.archive(Unknown Source)
at org.hippoecm.repository.standardworkflow.DefaultWorkflowImpl.archive(DefaultWorkflowImpl.java:115)
at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.hippoecm.repository.impl.WorkflowManagerImpl$WorkflowInvocationImpl.invoke(WorkflowManagerImpl.java:793)
at org.hippoecm.repository.impl.WorkflowManagerImpl$WorkflowInvocationHandler.invoke(WorkflowManagerImpl.java:498)
at $Proxy4.delete(Unknown Source)
at org.hippoecm.frontend.plugins.reviewedactions.FullReviewedActionsWorkflowPlugin$7.execute(FullReviewedActionsWorkflowPlugin.java:165)
at org.hippoecm.frontend.plugin.workflow.AbstractWorkflowPlugin$1$1.execute(AbstractWorkflowPlugin.java:104)
at org.hippoecm.frontend.dialog.AbstractWorkflowDialog.onOk(AbstractWorkflowDialog.java:124)
at org.hippoecm.frontend.dialog.AbstractDialog$2.onSubmit(AbstractDialog.java:253)
at org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1351)
at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:810)
at org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:120)
at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:163)
at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:297)
at org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:100)
at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91)
at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1175)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1252)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355)
at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:200)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.hippoecm.frontend.plugins.login.ConcurrentLoginFilter.doFilter(ConcurrentLoginFilter.java:54)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
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:619)