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

Error on anonymous stats when there is no skin

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 4.8.16, 4.9.3, 4.10.0
    • 4.9.1
    • None
    • None
    • 4.10 M1

      In an Ametys multi-site, I have a site that uses a skin that is not on the server and the anonymous stats return an error:

      java.lang.IllegalArgumentException: java.lang.NullPointerException: Cannot invoke "org.ametys.web.skin.Skin.getTemplate(String)" because "skin" is null
      at org.ametys.web.tags.inputdata.FilteredContentsInputData#isCacheable:124
      at org.ametys.web.cache.PageHelper#isCacheable:134
      at org.ametys.web.statistics.WebStatisticsProvider#_countPages:302
      at org.ametys.web.statistics.WebStatisticsProvider#_countPages:327
      at org.ametys.web.statistics.WebStatisticsProvider#_countPages:327
      at org.ametys.web.statistics.WebStatisticsProvider#_countPages:327
      at org.ametys.web.statistics.WebStatisticsProvider#_countPages:284
      at org.ametys.web.statistics.WebStatisticsProvider#_countPages:271
      at org.ametys.web.statistics.WebStatisticsProvider#getStatistics:94
      at org.ametys.runtime.plugins.admin.statistics.StatisticsProviderExtensionPoint#computeStatistics:74
      at org.ametys.runtime.plugins.admin.statistics.StatisticsSchedulable#execute:72
      at org.ametys.core.schedule.AmetysJob#execute:157
      at org.quartz.core.JobRunShell#run:202
      at org.quartz.simpl.SimpleThreadPool$WorkerThread#run:573
      Caused by: java.lang.NullPointerException: Cannot invoke "org.ametys.web.skin.Skin.getTemplate(String)" because "skin" is null
      at org.ametys.web.repository.page.virtual.AbstractConfigurableVirtualPage#getTemplate:91
      at org.ametys.web.tags.inputdata.FilteredContentsInputData#_getTemplate:177
      at org.ametys.web.tags.inputdata.FilteredContentsInputData#configureFilters:164
      at org.ametys.web.tags.inputdata.FilteredContentsInputData#isCacheable:116
      ... 13 more
      

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

              Created:
              Updated: