Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-6548

Compare plugin throws exception

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • High
    • Resolution: Cannot Reproduce
    • 2.22.08
    • None
    • addon-cms-prototype
    • Archetype

    Description

      The compare plugin is throwing an "invalid model" exception:

      [INFO] [talledLocalContainer] 15.10.2012 15:13:02 ERROR [org.hippoecm.frontend.editor.viewer.ComparePlugin.createTemplate():108] Unable to open template
      [INFO] [talledLocalContainer] org.hippoecm.frontend.editor.TemplateEngineException: Invalid model
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.editor.impl.TemplateEngine.getType(TemplateEngine.java:98)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.editor.viewer.ComparePlugin.createTemplate(ComparePlugin.java:84)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.editor.viewer.ComparePlugin.onModelChanged(ComparePlugin.java:76)
      [INFO] [talledLocalContainer] at org.apache.wicket.Component.modelChanged(Component.java:2255)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.service.render.AbstractRenderService.onEvent(AbstractRenderService.java:301)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.model.event.ObservableRegistry$ObservationContext.notifyObservers(ObservableRegistry.java:77)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.model.event.JcrEventListener.onEvent(JcrEventListener.java:65)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.observation.JcrListener.process(JcrListener.java:565)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.observation.JcrObservationManager.processEvents(JcrObservationManager.java:282)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.PluginPage.processEvents(PluginPage.java:153)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.PluginRequestCycleProcessor.processEvents(PluginRequestCycleProcessor.java:101)
      [INFO] [talledLocalContainer] at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1252)
      [INFO] [talledLocalContainer] at org.apache.wicket.RequestCycle.step(RequestCycle.java:1331)
      [INFO] [talledLocalContainer] at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1438)
      [INFO] [talledLocalContainer] at org.apache.wicket.RequestCycle.request(RequestCycle.java:546)
      [INFO] [talledLocalContainer] at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:486)
      [INFO] [talledLocalContainer] at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:319)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.ResourceRewriteFilter.doFilter(ResourceRewriteFilter.java:129)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.login.ConcurrentLoginFilter.doFilter(ConcurrentLoginFilter.java:56)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      [INFO] [talledLocalContainer] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      [INFO] [talledLocalContainer] at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      [INFO] [talledLocalContainer] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
      [INFO] [talledLocalContainer] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
      [INFO] [talledLocalContainer] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
      [INFO] [talledLocalContainer] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
      [INFO] [talledLocalContainer] at java.lang.Thread.run(Thread.java:619)
      [INFO] [talledLocalContainer] Caused by: javax.jcr.InvalidItemStateException: Item does not exist anymore: 4aaecd06-1ce3-4b98-9ff9-d77e8d0d559a
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.ItemImpl.itemSanityCheck(ItemImpl.java:116)
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.ItemImpl.perform(ItemImpl.java:90)
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.ItemImpl.getPath(ItemImpl.java:376)
      [INFO] [talledLocalContainer] at org.hippoecm.repository.decorating.ItemDecorator.getPath(ItemDecorator.java:91)
      [INFO] [talledLocalContainer] at org.hippoecm.repository.decorating.checked.ItemDecorator.getPath(ItemDecorator.java:92)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.editor.impl.TemplateEngine.getType(TemplateEngine.java:79)
      [INFO] [talledLocalContainer] ... 35 more

      Reproduction path:

      1. Create a document with a rich-text editor field
      2. Add an image to the rich-text field
      3. Save, close and publish the document
      4. Edit the document, add an internal link to the image
      5. Save and close

      Attachments

        Activity

          People

            nout Niels Out
            wborgbarthet William Borg Barthet
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: