Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-7220

Error on selecting layout when creating free form portfolio

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.3.0
    • Fix Version/s: None
    • Component/s: OSP: Portfolios
    • Labels:
      None
    • Environment:
      Windows XP
      Sakai 2.3.0 demo (hsql)

      Description

      Here is the steps I took to get to the error.

      • Create s portfolio site with all OSP tools in it.
      • Select "Portfolios" tool and create new portfolio
      • Select free form portfolio
      • Step 1: Fill out the portfolio name and hit continue
      • Step 2: Hit "Add Page" and select layout. I select one of the existing layouts (Two column or Content over text). It throws exception. below.

      If I login as administrator and go to "Resource" tool, I can find the xml and jpeg files under "Portfolio Admin Resources\system" and view the file contents. I even try to create a portfolio as admin and get the same error.

      Here is the stack trace.

      org.sakaiproject.tool.api.ToolException: javax.faces.el.EvaluationException: Error getting property 'xmlFile' from bean of type org.theospi.portfolio.presentation.tool.DecoratedPage: java.lang.NullPointerException
      at org.sakaiproject.spring.util.SpringTool.sendToHelper(SpringTool.java:280)
      caused by: org.apache.jasper.JasperException: javax.faces.el.EvaluationException: Error getting property 'xmlFile' from bean of type org.theospi.portfolio.presentation.tool.DecoratedPage: java.lang.NullPointerException
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
      caused by: javax.faces.el.EvaluationException: javax.faces.el.EvaluationException: Error getting property 'xmlFile' from bean of type org.theospi.portfolio.presentation.tool.DecoratedPage: java.lang.NullPointerException
      at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:154)
      caused by: javax.faces.el.EvaluationException: Error getting property 'xmlFile' from bean of type org.theospi.portfolio.presentation.tool.DecoratedPage: java.lang.NullPointerException
      at com.sun.faces.el.impl.ArraySuffix.evaluate(ArraySuffix.java:167)
      caused by: java.lang.NullPointerException
      at org.theospi.portfolio.presentation.tool.DecoratedPage.getXmlFile(DecoratedPage.java:165)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at com.sun.faces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:79)
      at com.sun.faces.el.impl.ArraySuffix.evaluate(ArraySuffix.java:167)
      at com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:151)
      at com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:243)
      at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:173)
      at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:154)
      at org.theospi.jsf.component.XmlDocumentComponent.getXmlFile(XmlDocumentComponent.java:78)
      at org.theospi.jsf.tag.XmlDocumentTag.findComponent(XmlDocumentTag.java:112)
      at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:429)
      at org.apache.jsp.freeForm.pageProperties_jsp._jspx_meth_ospx_xmlDocument_0(pageProperties_jsp.java:2003)
      at org.apache.jsp.freeForm.pageProperties_jsp._jspx_meth_f_subview_1(pageProperties_jsp.java:1911)
      at org.apache.jsp.freeForm.pageProperties_jsp._jspx_meth_ospx_xheaderdrawer_1(pageProperties_jsp.java:1881)
      at org.apache.jsp.freeForm.pageProperties_jsp._jspx_meth_ospx_xheader_1(pageProperties_jsp.java:1836)
      at org.apache.jsp.freeForm.pageProperties_jsp._jspx_meth_h_form_0(pageProperties_jsp.java:308)
      at org.apache.jsp.freeForm.pageProperties_jsp._jspx_meth_sakai_view_0(pageProperties_jsp.java:258)
      at org.apache.jsp.freeForm.pageProperties_jsp._jspx_meth_f_view_0(pageProperties_jsp.java:228)
      at org.apache.jsp.freeForm.pageProperties_jsp._jspService(pageProperties_jsp.java:195)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  • Assignee:
                    chmaurer@iupui.edu Chris Maurer
                    Reporter:
                    wlchan Sammy Chan (Inactive)
                  • Votes:
                    0 Vote for this issue
                    Watchers:
                    0 Start watching this issue

                    Dates

                    • Created:
                      Updated:
                      Resolved:

                      Git Integration