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

Improve error message when facelet theme file not found

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.5
    • Fix Version/s: 5.6-RC2, 5.6
    • Component/s: Themes (deprecated)

      Description

      When there's an error in a theme file, you may get the uninformative stack trace that just mentions java.io.IOException:

      stackTrace : java.io.IOException: Error while rendering [THEME cloud, PAGE default, ENGINE default, TEMPLATE jsf-facelets, PERSPECTIVE default, MODE *]
      	at org.nuxeo.theme.protocol.nxtheme.Connection.getInputStream(Connection.java:94)
      	at java.net.URL.openStream(URL.java:1029)
      	at com.sun.facelets.compiler.SAXCompiler.doCompile(SAXCompiler.java:227)
      	at com.sun.facelets.compiler.Compiler.compile(Compiler.java:105)
      	at org.nuxeo.theme.jsf.facelets.vendor.DefaultFaceletFactory.createFacelet(DefaultFaceletFactory.java:227)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fguillaume Florent Guillaume
                Reporter:
                fguillaume Florent Guillaume
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: