Hi Daniel,

We see the same issue occurring in Magnolia 5.3.6 (and versions before that as 
well). But only sometimes and it seems only on Windows machines (not on Macs 
and not on Linux). I suspect it is some sort of order issue but not sure what. 
Indeed from the code the null pointer occurs in the Resource class on line 111 
indicating that the URI2RepositoryManager is null. Which indeed is very strange 
as it should be injected..

It only occurs the first time the Magnolia repository is created. If you stop 
and start Magnolia the problem disappears.

Very recently we have added the multisite module and now the null pointer 
exception is wrapped by the MultiSiteURI2RepositoryManager class into a 
RuntimeException (catching NullpointerExceptions.. brrr..) making it somewhat 
harder to track down the issue:
[code]2015-01-13 10:34:05,725 ERROR 
o.magnolia.module.templatingkit.resources.Resource: Could not determind the 
Modified or creation date for 
/magnoliaAuthor/resources/templating-kit/themes/researchant/js/vendor-vis.js
java.lang.RuntimeException: Mapping is not set properly for site: 
researchant-sample
        at 
info.magnolia.multisite.MultiSiteURI2RepositoryManager.getMapping(MultiSiteURI2RepositoryManager.java:63)
        at 
info.magnolia.multisite.MultiSiteURI2RepositoryManager$$EnhancerByCGLIB$$e4c0c86.getMapping(<generated>)
        at 
info.magnolia.module.templatingkit.resources.Resource.getFarFutureCachingTimeStamp(Resource.java:111)
        at 
info.magnolia.module.templatingkit.resources.Resource.getLink(Resource.java:97)
        at sun.reflect.GeneratedMethodAccessor335.invoke(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[/code]

cheers

Edgar

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=054c2fa4-451b-41d4-b7d1-17f55a280a58


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <user-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------

Reply via email to