Uploaded image for project: 'Survey'
  1. Survey
  2. SURVEY-215

NPE when previewing a survey

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.6.0
    • Fix Version/s: 2.7.0
    • Component/s: None
    • Labels:
      None
    • Sprint:
      4.3 M4

      Description

      May be since CMS-10053 ?

      How to reproduce

      • Open the survey tool
      • Double-clic on a survey to preview it
      java.lang.NullPointerException
      	at org.ametys.plugins.repository.AmetysObjectResolver.resolveById(AmetysObjectResolver.java:295)
      	at org.ametys.web.repository.site.SiteManager.getSite(SiteManager.java:435)
      	at org.ametys.web.transformation.xslt.AmetysXSLTHelper.pluginResourceURL(AmetysXSLTHelper.java:330)
      	at jdk.internal.reflect.GeneratedMethodAccessor148.invoke(Unknown Source)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      	at org.apache.xalan.extensions.ExtensionHandlerJavaClass.callFunction(ExtensionHandlerJavaClass.java:367)
      	at org.apache.xalan.extensions.ExtensionHandlerJavaClass.callFunction(ExtensionHandlerJavaClass.java:440)
      	at org.apache.xalan.extensions.ExtensionsTable.extFunction(ExtensionsTable.java:222)
      	at org.apache.xalan.transformer.TransformerImpl.extFunction(TransformerImpl.java:475)
      	at org.apache.xpath.functions.FuncExtFunction.execute(FuncExtFunction.java:208)
      	at org.apache.xpath.XPath.execute(XPath.java:337)
      

      pluginResourceURL is used twice in preview.xsl :

      <link type="text/css" href="{ametys:pluginResourceURL('survey', 'css/preview.css')}" rel="stylesheet" media="print, screen" />
      <script type="text/javascript" src="{ametys:pluginResourceURL('jquery', 'js/jquery.min.js')}"></script>
      

        Attachments

          Activity

            People

            • Assignee:
              raphael Raphaƫl Franchet
              Reporter:
              laurence Laurence Aumeunier
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: