You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Dan Platon (JIRA)" <ji...@apache.org> on 2013/06/07 17:06:21 UTC

[jira] [Created] (SLING-2916) NPE when updating sling:vanityPath property

Dan Platon created SLING-2916:
---------------------------------

             Summary: NPE when updating sling:vanityPath property
                 Key: SLING-2916
                 URL: https://issues.apache.org/jira/browse/SLING-2916
             Project: Sling
          Issue Type: Bug
          Components: ResourceResolver
            Reporter: Dan Platon


(resource resolver version used: 1.0.7-SNAPSHOT)

When updating the sling:vanityPath property on a node two things happen:

- the resolver map is not updated
- the following error shows up in error.log 

07.06.2013 17:41:25.184 *WARN* [MapEntries Update] org.apache.sling.resourceresolver.impl.mapping.MapEntries doInit: Unexpected problem during initialization java.lang.NullPointerException
	at org.apache.sling.resourceresolver.impl.tree.ResourceProviderFactoryHandler.getResourceProvider(ResourceProviderFactoryHandler.java:80)
	at org.apache.sling.resourceresolver.impl.helper.SortedProviderList.getProviderHandler(SortedProviderList.java:199)
	at org.apache.sling.resourceresolver.impl.tree.RootResourceProviderEntry$2.seek(RootResourceProviderEntry.java:149)
	at org.apache.sling.resourceresolver.impl.tree.RootResourceProviderEntry$2.<init>(RootResourceProviderEntry.java:134)
	at org.apache.sling.resourceresolver.impl.tree.RootResourceProviderEntry.findResources(RootResourceProviderEntry.java:132)
	at org.apache.sling.resourceresolver.impl.ResourceResolverImpl.findResources(ResourceResolverImpl.java:645)
	at org.apache.sling.resourceresolver.impl.mapping.MapEntries.loadVanityPaths(MapEntries.java:545)
	at org.apache.sling.resourceresolver.impl.mapping.MapEntries.doInit(MapEntries.java:206)
	at org.apache.sling.resourceresolver.impl.mapping.MapEntries.init(MapEntries.java:175)
	at org.apache.sling.resourceresolver.impl.mapping.MapEntries.access$000(MapEntries.java:63)
	at org.apache.sling.resourceresolver.impl.mapping.MapEntries$1.run(MapEntries.java:149)
	at java.lang.Thread.run(Thread.java:722)



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira