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

In JCRValueProviderImpl, add path information to RuntimeRepositoryException

    XMLWordPrintable

Details

    • Flagged
    • Pulsar
    • Pulsar 299 - Cycle 7 Cooldown

    Description

      Request to add path information to the RuntimeRepositoryException in the following code in org.hippoecm.hst.provider.jcr.JCRValueProviderImpl:

      public JCRValueProviderImpl(Node jcrNode, boolean lazyLoading, boolean useStringPool, boolean includeProtectedProperties) {
          this.jcrNode = jcrNode;
          ...
          try {
               // populate
               ....
           } catch (RepositoryException e) {
              throw new RuntimeRepositoryException(e);
          }
      }
      

      Background
      A client on 14.7 ran into the following stack trace. The situation was solved by deleting one specific HST node, but it was hard to track down where exactly it was:

      Caused by: javax.jcr.nodetype.ConstraintViolationException: no matching property definition found for {http://www.onehippo.org/jcr/hippo/nt/2.0.4}identifier
      	at org.apache.jackrabbit.core.nodetype.EffectiveNodeType.getApplicablePropertyDef(EffectiveNodeType.java:782) ~[jackrabbit-core-2.21.6-h2.jar:2.21.6-h2]
      	at org.apache.jackrabbit.core.NodeImpl.getApplicablePropertyDefinition(NodeImpl.java:843) ~[jackrabbit-core-2.21.6-h2.jar:2.21.6-h2]
      	at org.apache.jackrabbit.core.ItemManager.getDefinition(ItemManager.java:255) ~[jackrabbit-core-2.21.6-h2.jar:2.21.6-h2]
      	at org.apache.jackrabbit.core.ItemData.getDefinition(ItemData.java:103) ~[jackrabbit-core-2.21.6-h2.jar:2.21.6-h2]
      	at org.apache.jackrabbit.core.PropertyData.getPropertyDefinition(PropertyData.java:55) ~[jackrabbit-core-2.21.6-h2.jar:2.21.6-h2]
      	at org.apache.jackrabbit.core.PropertyImpl.getDefinition(PropertyImpl.java:857) ~[jackrabbit-core-2.21.6-h2.jar:2.21.6-h2]
      	at org.hippoecm.repository.impl.PropertyDecorator.getDefinition(PropertyDecorator.java:145) ~[hippo-repository-engine-14.7.3.jar:14.7.3]
      	at org.hippoecm.hst.provider.jcr.JCRValueProviderImpl.populate(JCRValueProviderImpl.java:630) ~[hst-content-beans-14.7.3.jar:14.7.3]
      	at org.hippoecm.hst.provider.jcr.JCRValueProviderImpl.<init>(JCRValueProviderImpl.java:115) ~[hst-content-beans-14.7.3.jar:14.7.3]
      	at org.hippoecm.hst.platform.configuration.cache.HstNodeImpl.<init>(HstNodeImpl.java:86) ~[?:?]
      	at org.hippoecm.hst.platform.configuration.cache.HstNodeImpl.loadChildren(HstNodeImpl.java:111) ~[?:?]
      	at org.hippoecm.hst.platform.configuration.cache.HstNodeImpl.<init>(HstNodeImpl.java:96) ~[?:?]
      	at org.hippoecm.hst.platform.configuration.cache.HstNodeImpl.loadChildren(HstNodeImpl.java:111) ~[?:?]
      	at org.hippoecm.hst.platform.configuration.cache.HstNodeImpl.<init>(HstNodeImpl.java:96) ~[?:?]
      	at org.hippoecm.hst.platform.configuration.cache.HstNodeImpl.loadChildren(HstNodeImpl.java:111) ~[?:?]
      	at org.hippoecm.hst.platform.configuration.cache.HstNodeImpl.<init>(HstNodeImpl.java:96) ~[?:?]
      	at org.hippoecm.hst.platform.configuration.cache.HstNodeImpl.loadChildren(HstNodeImpl.java:111) ~[?:?]
      	at org.hippoecm.hst.platform.configuration.cache.HstNodeImpl.<init>(HstNodeImpl.java:96) ~[?:?]
      	at org.hippoecm.hst.platform.configuration.cache.HstNodeImpl.loadChildren(HstNodeImpl.java:111) ~[?:?]
      	at org.hippoecm.hst.platform.configuration.cache.HstNodeImpl.<init>(HstNodeImpl.java:96) ~[?:?]
      	at org.hippoecm.hst.platform.configuration.cache.HstNodeImpl.loadChildren(HstNodeImpl.java:111) ~[?:?]
      	at org.hippoecm.hst.platform.configuration.cache.HstNodeImpl.<init>(HstNodeImpl.java:96) ~[?:?]
      	at org.hippoecm.hst.platform.configuration.cache.HstNodeImpl.<init>(HstNodeImpl.java:81) ~[?:?]
      	at org.hippoecm.hst.platform.configuration.cache.HstNodeLoadingCache.getNode(HstNodeLoadingCache.java:92) ~[?:?]
      	at org.hippoecm.hst.platform.model.HstModelRegistryImpl.loadHstConfigNodes(HstModelRegistryImpl.java:189) ~[?:?]
      	at org.hippoecm.hst.platform.model.HstModelRegistryImpl.registerHstModel(HstModelRegistryImpl.java:126) ~[?:?]
      	... 59 more
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            jhoffman Jeroen Hoffman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: