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

No cms feedback when trying to create a channel that already exists - ItemExistsException in terminal

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Top
    • Resolution: Outdated
    • None
    • 2.22.00
    • None
    • None

    Description

      When I try to create a channel for a url that already exists, I get the stacktrace below. Thus suppose we already have a host and mount :

      localhost
      hst:root
      test

      then adding http://localhost:8080/test results in stack below

      Ard

      java:662)
      [INFO] [talledLocalContainer] Caused by: javax.jcr.ItemExistsException: This node already exists: /hst:hst/hst:hosts/dev-localhost/localhost/hst:root/test
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.NodeImpl.addNode(NodeImpl.java:1279)
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.session.AddNodeOperation.perform(AddNodeOperation.java:111)
      java:662)
      [INFO] [talledLocalContainer] Caused by: javax.jcr.ItemExistsException: This node already exists: /hst:hst/hst:hosts/dev-localhost/localhost/hst:root/test
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.NodeImpl.addNode(NodeImpl.java:1279)
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.session.AddNodeOperation.perform(AddNodeOperation.java:111)
      ap

      [INFO] [talledLocalContainer] createUniqueChannelIdcreateUniqueChannelIdcreateUniqueChannelIdcreateUniqueChannelId
      [INFO] [talledLocalContainer] 2011-12-09 11:41:48,093 ERROR [http-8080-41] [org.onehippo.cms7.channelmanager.channels.ChannelStore.createRecord():259] Could not save channel 'test'
      [INFO] [talledLocalContainer] org.hippoecm.hst.configuration.channel.ChannelException: Unable to save channel to the repository
      [INFO] [talledLocalContainer] at java.lang.Throwable.<init>(Throwable.java:218)
      [INFO] [talledLocalContainer] at java.lang.Exception.<init>(Exception.java:59)
      [INFO] [talledLocalContainer] at org.hippoecm.hst.configuration.channel.ChannelException.<init>(ChannelException.java:27)
      [INFO] [talledLocalContainer] at org.hippoecm.hst.configuration.channel.ChannelManagerImpl.persist(ChannelManagerImpl.java:362)
      [INFO] [talledLocalContainer] at org.onehippo.cms7.channelmanager.channels.ChannelStore$2.run(ChannelStore.java:253)
      [INFO] [talledLocalContainer] at org.onehippo.cms7.channelmanager.channels.ChannelStore$2.run(ChannelStore.java:251)
      [INFO] [talledLocalContainer] at java.security.AccessController.doPrivileged(Native Method)
      [INFO] [talledLocalContainer] at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
      [INFO] [talledLocalContainer] at org.hippoecm.hst.security.HstSubject.doAsPrivileged(HstSubject.java:117)
      [INFO] [talledLocalContainer] at org.onehippo.cms7.channelmanager.channels.ChannelStore.createRecord(ChannelStore.java:251)
      [INFO] [talledLocalContainer] at org.wicketstuff.js.ext.data.ExtJsonStore$1.onRequest(ExtJsonStore.java:56)
      [INFO] [talledLocalContainer] at org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:157)
      [INFO] [talledLocalContainer] at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.PluginRequestCycleProcessor.processEvents(PluginRequestCycleProcessor.java:95)
      [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:54)
      [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.StandardContextValve.invoke(StandardContextValve.java)
      [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:662)
      [INFO] [talledLocalContainer] Caused by: javax.jcr.ItemExistsException: This node already exists: /hst:hst/hst:hosts/dev-localhost/localhost/hst:root/test
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.NodeImpl.addNode(NodeImpl.java:1279)
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.session.AddNodeOperation.perform(AddNodeOperation.java:111)
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.session.AddNodeOperation.perform(AddNodeOperation.java:37)
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:200)
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.ItemImpl.perform(ItemImpl.java:91)
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.NodeImpl.addNodeWithUuid(NodeImpl.java:1769)
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.NodeImpl.addNode(NodeImpl.java:1729)
      [INFO] [talledLocalContainer] at org.hippoecm.repository.decorating.NodeDecorator.addNode(NodeDecorator.java:86)
      [INFO] [talledLocalContainer] at org.hippoecm.repository.decorating.checked.NodeDecorator.addNode(NodeDecorator.java:121)
      [INFO] [talledLocalContainer] at org.hippoecm.hst.configuration.channel.ChannelManagerImpl.copyNodes(ChannelManagerImpl.java:652)
      [INFO] [talledLocalContainer] at org.hippoecm.hst.configuration.channel.ChannelManagerImpl.createMountNode(ChannelManagerImpl.java:616)
      [INFO] [talledLocalContainer] at org.hippoecm.hst.configuration.channel.ChannelManagerImpl.createChannel(ChannelManagerImpl.java:583)
      [INFO] [talledLocalContainer] at org.hippoecm.hst.configuration.channel.ChannelManagerImpl.persist(ChannelManagerImpl.java:354)
      [INFO] [talledLocalContainer] ... 36 more

      Attachments

        Activity

          People

            jsheriff Junaidh Kadhar Sheriff
            aschrijvers Ard Schrijvers
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: