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

Metaobj NullPointerExceptions after selecting 'Save' multiple times

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5.3, 2.6.0
    • Fix Version/s: 2.5.6, 2.6.0, 2.7.0
    • Component/s: Metaobj
    • Labels:
      None

      Description

      The Metaobj (Forms tool and implementation) has been logging several NullPointerExceptions tool crashes – these need to be caught, gracefully handled and logged. The tracebacks are listed below:

      (1) StructuredArtifactDefinition – this can be reproduced by selecting 'Save' multiple times on the Add/Edit form page

      caused by: java.lang.NullPointerException
      at org.sakaiproject.metaobj.shared.mgt.home.StructuredArtifactDefinition.<init>(StructuredArtifactDefinition.java:101)
      at org.sakaiproject.metaobj.shared.mgt.factories.DbXmlHomeFactoryImpl.createHome(DbXmlHomeFactoryImpl.java:82)
      at org.sakaiproject.metaobj.shared.mgt.factories.DbXmlHomeFactoryImpl.getHome(DbXmlHomeFactoryImpl.java:58)
      at org.sakaiproject.metaobj.shared.mgt.factories.DbXmlHomeFactoryImpl.handlesType(DbXmlHomeFactoryImpl.java:46)
      at org.sakaiproject.metaobj.shared.mgt.HomeFactoryImpl.getHome(HomeFactoryImpl.java:64)
      at org.sakaiproject.metaobj.shared.control.XmlControllerBase.getSchema(XmlControllerBase.java:219)
      at org.sakaiproject.metaobj.shared.control.AddXmlElementController.formBackingObject(AddXmlElementController.java:62)
      at org.sakaiproject.metaobj.utils.mvc.impl.servlet.FormControllerImpl.formBackingObject(FormControllerImpl.java:144)

      (2) EditXmlElementController – tthis can be reproduced by selecting 'Save' multiple times on the Add/Edit form page

      caused by: java.lang.NullPointerException
      at org.sakaiproject.metaobj.shared.control.EditXmlElementController.fillBackingObject(EditXmlElementController.java:114)
      at org.sakaiproject.metaobj.utils.mvc.impl.servlet.FormControllerImpl.formBackingObject(FormControllerImpl.java:159)

      (3) ElementBean – this can be reproduced by selecting 'Save' multiple times on the Add/Edit form page

      caused by: java.lang.NullPointerException
      at org.sakaiproject.metaobj.shared.model.ElementBean.getType(ElementBean.java:354)
      at org.sakaiproject.metaobj.utils.mvc.impl.MapWrapper.setPropertyValue(MapWrapper.java:116)
      at org.sakaiproject.metaobj.utils.mvc.impl.MapWrapper.setPropertyValue(MapWrapper.java:136)

      (4) XsltArtifactView – this is due to problems accessing stylesheet location; generate a pass-through transformation and log error

      caused by: java.lang.NullPointerException
      at java.util.Hashtable.put(Hashtable.java:396)
      at org.sakaiproject.metaobj.shared.control.XsltArtifactView.getParameters(XsltArtifactView.java:231)

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  • Assignee:
                    bkirschn Beth Kirschner
                    Reporter:
                    bkirschn Beth Kirschner
                  • Votes:
                    0 Vote for this issue
                    Watchers:
                    2 Start watching this issue

                    Dates

                    • Created:
                      Updated:
                      Resolved:

                      Git Integration