Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 1.1.0.BETA2
    • Fix Version/s: 1.1.0.CR1
    • Component/s: Core
    • Labels:
      None

      Description

      This did not exist in 1.1.0 beta 1 or previous versions. It appears to be related to the new per-view configuration file instead of monolithic pages.xml.

      We have our own custom, restful, view handler on top Seam/JSF.


      java.lang.NullPointerException
      at org.jboss.seam.core.Pages.createPage(Pages.java:212)
      at org.jboss.seam.core.Pages.getPage(Pages.java:201)
      at org.jboss.seam.core.Pages.getConvertedParameters(Pages.java:363)


      Presumably this NPE can occur any time replaceExtension returns null.

      So a simple fix might be:


      InputStream stream = null;
      String replaced = replaceExtension(viewId, ".page.xml");
      if (replaced != null)
      stream = Resources.getResourceAsStream( replaced.substring(1) );

      if (stream == null){

      [...... etc .... ]


        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                gavin.king Gavin King
                Reporter:
                rdewell ryan dewell
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: