Issue Details (XML | Word | Printable)

Key: CONTINUUM-2144
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Maria Catherine Tan
Reporter: Jose Morales Martinez
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Continuum

NullPointerException when edit a project group with empty or only whitespaces values in Project Group Name

Created: 21/Mar/09 11:50 AM   Updated: 23/Mar/09 07:34 AM   Resolved: 23/Mar/09 07:34 AM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: 1.3.3

Time Tracking:
Not Specified

File Attachments: 1. Text File CONTINUUM-2144.patch (9 kB)


Complexity: Intermediate


 Description  « Hide

If you edit a project group with empty Project Group Name you get this error:

2009-03-21 17:39:58.270::WARN:  /saveProjectGroup.action: java.io.IOException: Stream closed
2009-03-21 17:39:58.270::WARN:  EXCEPTION 
org.apache.jasper.JasperException: java.lang.NullPointerException
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:402)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:470)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:364)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
	at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:285)
	at org.mortbay.jetty.servlet.Dispatcher.error(Dispatcher.java:135)
	at org.mortbay.jetty.servlet.ErrorPageErrorHandler.handle(ErrorPageErrorHandler.java:121)
	at org.mortbay.jetty.Response.sendError(Response.java:274)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:433)
	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
	at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
	at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
	at org.mortbay.jetty.Server.handle(Server.java:324)
	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
	at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
Caused by: java.lang.NullPointerException
	at org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:50)
	at org.apache.jsp.WEB_002dINF.jsp.error.httpError_jsp._jspx_meth_s_i18n_0(org.apache.jsp.WEB_002dINF.jsp.error.httpError_jsp:103)
	at org.apache.jsp.WEB_002dINF.jsp.error.httpError_jsp._jspService(org.apache.jsp.WEB_002dINF.jsp.error.httpError_jsp:80)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:93)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
	... 29 more

Note: I am working in this bug.



Emmanuel Venisse made changes - 21/Mar/09 11:59 AM
Field Original Value New Value
Fix Version/s 1.3.3 [ 15105 ]
Jose Morales Martinez added a comment - 22/Mar/09 06:20 PM

In this patch when a validation error occurs initializing the list of repositories and projects, so as to avoid the NullPointerException.


Jose Morales Martinez made changes - 22/Mar/09 06:20 PM
Attachment CONTINUUM-2144.patch [ 40860 ]
Maria Catherine Tan made changes - 23/Mar/09 07:32 AM
Assignee Maria Catherine Tan [ ctan ]
Maria Catherine Tan added a comment - 23/Mar/09 07:34 AM

Fixed in revision 757384. Thanks!


Maria Catherine Tan made changes - 23/Mar/09 07:34 AM
Resolution Fixed [ 1 ]
Status Open [ 1 ] Closed [ 6 ]