Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-27620

Expanding a package in JSF > Admin > Update Center > Marketpace packages raises an exception

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 10.10-HF05
    • Fix Version/s: 10.10-HF11, 11.1
    • Component/s: Admin Center
    • Release Notes Summary:
      The list of Marketplace packages in the Update Center can be expanded.
    • Tags:
    • Backlog priority:
      900
    • Sprint:
      NOS 11.1.13 - 2019-07 2, NOS 11.1.14 - 2019-07 3
    • Story Points:
      2

      Description

      • Install JSF
      • Boot
      • Goto Admin > Update Center > Marketplace packages
      • Find "nuxeo-jsf-ui-10.10.0"
      • Expand this entry => spinning wheel and exception in log:
        freemarker.core.InvalidReferenceException: The following has evaluated to null or missing:
        ==> pkg.isSupported  [in template "file:/C:/nuxeo-server-10.10-tomcat/nxserver/web/root.war/modules/org.nuxeo.admin.center/skin/views/packageListingProvider/pkgDetails.ftl" at line 84, column 39]
        
        ----
        Tip: It's the step after the last dot that caused this error, not those before it.
        ----
        Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
        ----
        
        ----
        FTL stack trace ("~" means nesting-related):
                - Failed at: #if pkg.isSupported()  [in template "file:/C:/nuxeo-server-10.10-tomcat/nxserver/web/root.war/modules/org.nuxeo.admin.center/skin/views/packageListingProvider/pkgDetails.ftl" at line 84, column 34]
        ----
                at freemarker.core.InvalidReferenceException.getInstance(InvalidReferenceException.java:134) ~[freemarker-2.3.28.jar:2.3.28]
                at freemarker.core.UnexpectedTypeException.newDesciptionBuilder(UnexpectedTypeException.java:85) ~[freemarker-2.3.28.jar:2.3.28]
                at freemarker.core.UnexpectedTypeException.<init>(UnexpectedTypeException.java:48) ~[freemarker-2.3.28.jar:2.3.28]
                at freemarker.core.NonMethodException.<init>(NonMethodException.java:49) ~[freemarker-2.3.28.jar:2.3.28]
                at freemarker.core.MethodCall._eval(MethodCall.java:85) ~[freemarker-2.3.28.jar:2.3.28]
                at freemarker.core.Expression.eval(Expression.java:83) ~[freemarker-2.3.28.jar:2.3.28]
                at freemarker.core.Expression.evalToBoolean(Expression.java:161) ~[freemarker-2.3.28.jar:2.3.28]
                at freemarker.core.Expression.evalToBoolean(Expression.java:147) ~[freemarker-2.3.28.jar:2.3.28]
                at freemarker.core.IfBlock.accept(IfBlock.java:49) ~[freemarker-2.3.28.jar:2.3.28]
                at freemarker.core.Environment.visit(Environment.java:330) [freemarker-2.3.28.jar:2.3.28]
                at freemarker.core.Environment.visit(Environment.java:336) [freemarker-2.3.28.jar:2.3.28]
                at freemarker.core.Environment.process(Environment.java:309) [freemarker-2.3.28.jar:2.3.28]
        
        Caused by: org.nuxeo.ecm.platform.rendering.api.RenderingException: freemarker.core.InvalidReferenceException: The following has evaluated to null or missing:
        ==> pkg.isSupported  [in template "file:/C:/nuxeo-server-10.10-tomcat/nxserver/web/root.war/modules/org.nuxeo.admin.center/skin/views/packageListingProvider/pkgDetails.ftl" at line 84, column 39]
        
        ----
        Tip: It's the step after the last dot that caused this error, not those before it.
        ----
        Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
        ----
        
        ----
        FTL stack trace ("~" means nesting-related):
                - Failed at: #if pkg.isSupported()  [in template "file:/C:/nuxeo-server-10.10-tomcat/nxserver/web/root.war/modules/org.nuxeo.admin.center/skin/views/packageListingProvider/pkgDetails.ftl" at line 84, column 34]
        ----
                at org.nuxeo.ecm.platform.rendering.fm.FreemarkerEngine.render(FreemarkerEngine.java:199)
                at org.nuxeo.ecm.webengine.model.impl.AbstractWebContext.render(AbstractWebContext.java:641)
                ... 82 more
        Caused by: freemarker.core.InvalidReferenceException: The following has evaluated to null or missing:
        ==> pkg.isSupported  [in template "file:/C:/nuxeo-server-10.10-tomcat/nxserver/web/root.war/modules/org.nuxeo.admin.center/skin/views/packageListingProvider/pkgDetails.ftl" at line 84, column 39]
        
        ----
        Tip: It's the step after the last dot that caused this error, not those before it.
        ----
        Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
        ----
        
        ----
        FTL stack trace ("~" means nesting-related):
                - Failed at: #if pkg.isSupported()  [in template "file:/C:/nuxeo-server-10.10-tomcat/nxserver/web/root.war/modules/org.nuxeo.admin.center/skin/views/packageListingProvider/pkgDetails.ftl" at line 84, column 34]
        ----
                at freemarker.core.InvalidReferenceException.getInstance(InvalidReferenceException.java:134)
                at freemarker.core.UnexpectedTypeException.newDesciptionBuilder(UnexpectedTypeException.java:85)
                at freemarker.core.UnexpectedTypeException.<init>(UnexpectedTypeException.java:48)
                at freemarker.core.NonMethodException.<init>(NonMethodException.java:49)
                at freemarker.core.MethodCall._eval(MethodCall.java:85)
                at freemarker.core.Expression.eval(Expression.java:83)
                at freemarker.core.Expression.evalToBoolean(Expression.java:161)
                at freemarker.core.Expression.evalToBoolean(Expression.java:147)
                at freemarker.core.IfBlock.accept(IfBlock.java:49)
                at freemarker.core.Environment.visit(Environment.java:330)
                at freemarker.core.Environment.visit(Environment.java:336)
                at freemarker.core.Environment.process(Environment.java:309)
                at org.nuxeo.ecm.platform.rendering.fm.FreemarkerEngine.render(FreemarkerEngine.java:194)
                ... 83 more
        

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 15 minutes
                  15m

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.