Assignment
Priority:
Assigned To:
unassigned
Ticket # 44
This ticket is open
Severity:
Normal
Category:
Blocker (prevents feature)
Entered by:
Jeff Gehlbach
5/30/2008, 11:47 AM
Last modified:
Jeff Gehlbach
5/30/2008, 11:47 AM
Description
Adding a question to a survey results in NullPointerException
5.0 Community Edition from Subversion, r25958
Steps to reproduce:
1. Clean install on Tomcat 6.0.16 and PostgreSQL 8.2.5 with Java 1.5.0_13 on Mac OS X 10.5.1, set up web app, add admin user
2. Log in as admin user, navigate Communications -> Attachments -> Surveys -> Add a Survey
3. Fill in simple values for survey name, description, introduction, and thank you text; click Next >
4. Click Add a Question
5. Fill in simple value for Question, Question Type: Open-Ended, Required: checked
6. Click Save & Add
Expected result: UI for creating an additional question
Actual result: In web app, "The included page caused a problem." In catalina.out:
** Requested action: CampaignManagerSurvey
** Fri May 30 11:42:25 EDT 2008
> Auto populating a bean: org.aspcfs.modules.communications.base.Survey
java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:468)
at java.lang.Integer.parseInt(Integer.java:497)
at org.aspcfs.modules.communications.base.SurveyQuestionList.<init>(Unknown Source)
at org.aspcfs.modules.communications.base.Survey.setRequestItems(Unknown Source)
at org.aspcfs.modules.communications.actions.CampaignManagerSurvey.executeCommandInsert(Unknown Source)
at org.aspcfs.modules.communications.actions.CampaignManagerSurvey.executeCommandInsertAndAdd(Unknown Source)
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.darkhorseventures.framework.servlets.ControllerServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:613)
ControllerServlet-> Action Took: 1 ms
> Looking up resource: SystemError
> Action not found, looking up under GlobalActions
Resource-> SystemError
GlobalItemsHook-> Calls: 0
GlobalItemsHook-> Activities: 0
GlobalItemsHook-> Tickets: 0
GlobalItemsHook-> Action Plans: 0
GlobalItemsHook-> Tickets: 0
GlobalItemsHook-> Tickets (Unassigned): 0
ControllerServlet-> Resource: /errors/error_system.jsp
Throwable exception trying to forward to /templates/template1nav.jsp MESSAGE: java.lang.NullPointerException
org.apache.jasper.JasperException: java.lang.NullPointerException
at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:416)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)
at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)
at org.apache.jsp.templates.template1nav_jsp._jspService(template1nav_jsp.java:1064)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at com.darkhorseventures.framework.servlets.ControllerServlet.forward(Unknown Source)
at com.darkhorseventures.framework.servlets.ControllerServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:613)
Caused by: java.lang.NullPointerException
at org.apache.jsp.errors.error_005fsystem_jsp._jspService(error_005fsystem_jsp.java:72)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
... 37 more
Identical behavior observed on a Debian Linux 3.1 system with Tomcat 5.5.26 and PostgreSQL 8.1.8.
Identical behavior observed with several variations of UI navigation -- using "Save" vs. "Save & Add", modifying an existing survey vs. creating a new one makes no difference.
I have seen this problem in a 5.0 community branch build from as long ago as February (which I subsequently upgraded to no effect).
Please note that my e-mail address has changed, I can now be reached as jeffg AT opennms DOT org. I don't see a way to change this in my account settings.
Solution
A solution hasn't been entered
File Attachments
There are no file attachments
Ticket Activity
Date | Event |
---|---|
Jeff Gehlbach 5/30/2008, 11:47 AM | [ Ticket Opened ] |
Jeff Gehlbach 5/30/2008, 11:47 AM | [ Ticket is unassigned ] |
Jeff Gehlbach 5/30/2008, 11:47 AM | [ Severity set to Normal ] |
Distribution List |
---|
There are no recipients |