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

Null Pointer when form does not validate

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: trunk
    • Fix Version/s: 2.5.0
    • Component/s: OSP: Forms
    • Labels:
      None

      Description

      Submitting a form that has a required field without a value (does not validate) a null pointer is displayed

      WARN: Bug Report user: admin usage-session: c1b29ae7-7ae7-4797-0051-bcd109ebd567 time: Aug 2, 2007 11:12:38 user comment: null stack trace
      org.sakaiproject.tool.api.ToolException: Request processing failed; nested exception is java.lang.NullPointerException
      at org.sakaiproject.cheftool.ToolServlet.sendToHelper(ToolServlet.java:652)
      caused by: org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.NullPointerException
      at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:440)
      caused by: java.lang.NullPointerException
      at org.sakaiproject.metaobj.shared.control.XsltArtifactView.createXsltSource(XsltArtifactView.java:139)
      at org.springframework.web.servlet.view.xslt.AbstractXsltView.renderMergedOutputModel(AbstractXsltView.java:301)
      at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:243)
      at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1141)
      at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:878)
      at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:792)
      at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:475)
      at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:440)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:691)
      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:403)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
      at org.sakaiproject.spring.util.SpringTool.dispatch(SpringTool.java:231)
      at org.sakaiproject.spring.util.SpringTool.doPost(SpringTool.java:306)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:555)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:691)
      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:364)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
      at org.sakaiproject.tool.impl.ActiveToolComponent$MyActiveTool.help(ActiveToolComponent.java:529)
      at org.sakaiproject.cheftool.ToolServlet.sendToHelper(ToolServlet.java:652)
      at org.sakaiproject.cheftool.ToolServlet.doGet(ToolServlet.java:212)
      at org.sakaiproject.cheftool.VelocityPortletPaneledAction.doGet(VelocityPortletPaneledAction.java:1006)
      at org.sakaiproject.cheftool.ToolServlet.doPost(ToolServlet.java:151)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
      at org.sakaiproject.vm.ComponentServlet.service(ComponentServlet.java:56)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:555)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:691)
      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:364)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
      at org.sakaiproject.tool.impl.ActiveToolComponent$MyActiveTool.forward(ActiveToolComponent.java:459)
      at org.sakaiproject.portal.charon.CharonPortal.forwardTool(CharonPortal.java:1608)
      at org.sakaiproject.portal.charon.CharonPortal.doTool(CharonPortal.java:1543)
      at org.sakaiproject.portal.charon.CharonPortal.doPost(CharonPortal.java:1060)
      at org.theospi.portfolio.portal.web.XsltPortal.doPost(XsltPortal.java:120)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:592)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
      at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
      at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
      at java.lang.Thread.run(Thread.java:595)

      Tool Placement:
      No Placement

      Request:
      : AuthType:null
      : CharEncoding:UTF-8
      : ContentLength:133
      : ContentType:application/x-www-form-urlencoded
      : ContextPath:/osp-portal
      : LocalAddress:134.68.220.49
      : LocalName:sakai-sand.uits.iupui.edu
      : LocalPort:8084
      : Mehthod:POST
      : PathInfo:/tool/0deb0227-80a3-48d6-808d-ca2cc1a2cb29/sakai.metaobj.form.resourceCreateHelper.helper/formCreateHelper.osp
      : Protocol:HTTP/1.1
      : QueryString:null
      : RemoteAddress:128.230.102.212
      : RemoteHost:128.230.102.212
      : RemotePort:54180
      : RemoteUser:admin
      : RequestedSession:3bdf862f-3400-4da0-80f1-daa53c3aec6d.sakai-sand.uits.iupui.edu
      : Requested URL:http://nightly2.sakaiproject.org:8084/osp-portal/tool/0deb0227-80a3-48d6-808d-ca2cc1a2cb29/sakai.metaobj.form.resourceCreateHelper.helper/formCreateHelper.osp
      : Scheme:http
      : ServerName:nightly2.sakaiproject.org
      : Headers:
      : Header:host:nightly2.sakaiproject.org:8084
      : Header:user-agent:Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6
      : Header:accept:text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,/;q=0.5
      : Header:accept-language:en-us,en;q=0.5
      : Header:accept-encoding:gzip,deflate
      : Header:accept-charset:ISO-8859-1,utf-8;q=0.7,*;q=0.7
      : Header:keep-alive:300
      : Header:connection:keep-alive
      : Header:referer:http://nightly2.sakaiproject.org:8084/osp-portal/tool/0deb0227-80a3-48d6-808d-ca2cc1a2cb29/sakai.metaobj.form.resourceCreateHelper.helper/formCreateHelper.osp
      : Header:cookie:JSESSIONID=3bdf862f-3400-4da0-80f1-daa53c3aec6d.sakai-sand.uits.iupui.edu
      : Header:content-type:application/x-www-form-urlencoded
      : Header:content-length:133
      : Parameters:
      : Parameter:fileHelper:0:
      : Parameter:childFieldLabel:0:
      : Parameter:submitButton:0:Continue
      : Parameter:editButton:0:
      : Parameter:childIndex:0:
      : Parameter:removeButton:0:
      : Parameter:childPath:0:
      : Parameter:displayName:0:new form
      : Parameter:description:0:
      : Attributes:
      : Attribute:tool.url.manager:org.sakaiproject.portal.util.ToolURLManagerImpl@9d964f
      : Attribute:sakai.session:org.sakaiproject.tool.impl.SessionComponent$MySession@c3fb6fd9
      : Attribute:sakai.html.head.js:<script type="text/javascript" language="JavaScript" src="/library/js/headscripts.js"></script>

      : Attribute:sakai.html.body.onload:setMainFrameHeight('Main0deb0227x80a3x48d6x808dxca2cc1a2cb29');setFocus(focus_path);
      : Attribute:sakai.html.head.css.base:<link href="/library/skin/tool_base.css" type="text/css" rel="stylesheet" media="all" />

      : Attribute:sakai.character.encoding.done:sakai.character.encoding.done
      : Attribute:sakai.html.head:<link href="/library/skin/tool_base.css" type="text/css" rel="stylesheet" media="all" />
      <link href="/library/skin/default/tool.css" type="text/css" rel="stylesheet" media="all" />
      <script type="text/javascript" language="JavaScript" src="/library/js/headscripts.js"></script>

      : Attribute:sakai.request.native.url:sakai.request.native.url
      : Attribute:sakai.filtered:sakai.filtered
      : Attribute:sakai.html.head.css.skin:<link href="/library/skin/default/tool.css" type="text/css" rel="stylesheet" media="all" />

      : Attribute:sakai.html.head.css:<link href="/library/skin/tool_base.css" type="text/css" rel="stylesheet" media="all" />
      <link href="/library/skin/default/tool.css" type="text/css" rel="stylesheet" media="all" />

      Session:
      : Created:1186067535387
      : LastAccess:1186067558127
      : MaxInactive:1800
      : Attributes:
      (2007-08-02 11:12:38,131 http-8084-Processor25_org.sakaiproject.portal.util.ErrorReporter)
      WARN: send: javax.mail.internet.AddressException: Illegal address in string ``'' (2007-08-02 11:12:38,132 http-8084-Processor25_org.sakaiproject.email.impl.BasicEmailService)

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  • Assignee:
                    john.ellis@rsmart.com John Ellis (Inactive)
                    Reporter:
                    smkeesle Sean Keesler (Inactive)
                  • Votes:
                    0 Vote for this issue
                    Watchers:
                    0 Start watching this issue

                    Dates

                    • Created:
                      Updated:
                      Resolved:

                      Git Integration