Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-6176

Live workspace rebuilding fails because of a file metadata

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 3.5.5, 3.7.1, 3.8
    • 3.7
    • None
    • None

      My live workspace rebuilding fails with the following stack trace:

      2015-04-08 01:23:56,127 ERROR [org.ametys.web.live.rebuild.component] (LivePopulator;) Failed to rebuild live workspace for site 'www'
      java.lang.NullPointerException
      	at org.ametys.web.URIPrefixHandler.getAbsoluteUriPrefix(URIPrefixHandler.java:153)
      	at org.ametys.web.editor.ResourceURIResolver._resolve(ResourceURIResolver.java:172)
      	at org.ametys.web.editor.ResourceURIResolver.resolve(ResourceURIResolver.java:82)
      	at org.ametys.cms.lucene.MetadataIndexer.indexFileMetadata(MetadataIndexer.java:531)
      	at org.ametys.cms.lucene.MetadataIndexer.indexMetadata(MetadataIndexer.java:204)
      	at org.ametys.web.lucene.WebMetadataIndexer.indexMetadata(WebMetadataIndexer.java:61)
      	at org.ametys.cms.lucene.MetadataIndexer.indexMetadata(MetadataIndexer.java:177)
      	at org.ametys.cms.lucene.MetadataIndexer.indexMetadataSet(MetadataIndexer.java:149)
      	at org.ametys.cms.lucene.MetadataIndexer.indexMetadata(MetadataIndexer.java:227)
      	at org.ametys.web.lucene.WebMetadataIndexer.indexMetadata(WebMetadataIndexer.java:61)
      	at org.ametys.cms.lucene.MetadataIndexer.indexMetadata(MetadataIndexer.java:177)
      	at org.ametys.cms.lucene.MetadataIndexer.indexMetadataSet(MetadataIndexer.java:149)
      	at org.ametys.cms.contenttype.DefaultContentIndexer.indexContentMetadata(DefaultContentIndexer.java:84)
      	at org.ametys.cms.contenttype.DefaultContentIndexer.indexContent(DefaultContentIndexer.java:66)
      	at org.ametys.web.contenttype.WebContentIndexer.indexContent(WebContentIndexer.java:87)
      	at org.ametys.web.lucene.DefaultPageIndexer._indexPageContents(DefaultPageIndexer.java:251)
      	at org.ametys.web.lucene.DefaultPageIndexer.index(DefaultPageIndexer.java:167)
      	at sun.reflect.GeneratedMethodAccessor205.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at org.ametys.runtime.plugin.component.PluginsComponentManager$ComponentInvocationHandler.invoke(PluginsComponentManager.java:159)
      	at $Proxy6.index(Unknown Source)
      	at org.ametys.web.lucene.IndexerHelper.indexPage(IndexerHelper.java:138)
      	at org.ametys.web.lucene.IndexerHelper.indexPage(IndexerHelper.java:150)
      	at org.ametys.web.lucene.IndexerHelper.indexPage(IndexerHelper.java:150)
      	at org.ametys.web.lucene.DefaultSitemapIndexer.index(DefaultSitemapIndexer.java:115)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at org.ametys.runtime.plugin.component.PluginsComponentManager$ComponentInvocationHandler.invoke(PluginsComponentManager.java:159)
      	at $Proxy7.index(Unknown Source)
      	at org.ametys.web.live.RebuildLiveComponent._reindexAndClearCache(RebuildLiveComponent.java:213)
      	at org.ametys.web.live.RebuildLiveComponent.rebuildLiveWorkspace(RebuildLiveComponent.java:148)
      	at org.ametys.web.live.RebuildLiveWorkspaceTimerTask.run(RebuildLiveWorkspaceTimerTask.java:194)
      	at java.util.TimerThread.mainLoop(Timer.java:512)
      	at java.util.TimerThread.run(Timer.java:462)
      

      It seems to be because of a file metadata, inserted from the resource explorer.

            Unassigned Unassigned
            lperier Laurence Perier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: