tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 47717] New: createJavacError throws NPE
Date Thu, 20 Aug 2009 21:21:47 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=47717

           Summary: createJavacError throws NPE
           Product: Tomcat 6
           Version: 6.0.20
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Jasper
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: Eric.J.Schwarzenbach.C88@alumni.upenn.edu


--- Comment #0 from Eric J Schwarzenbach <Eric.J.Schwarzenbach.C88@alumni.upenn.edu>
2009-08-20 14:21:43 PDT ---
org.apache.jasper.compiler.ErrorDispatcher.createJavacError sometimes throws a
NPE when the page argument is null.

I don't really know what exactly the circumstance is that leads to this
situation (except that my code is resulting in a JspException) but the result
is the jsp error is not reported and the failure swallowed.

FWIW here is the call stack from my debugger, after trapping the NPE:

org.apache.jasper.compiler.ErrorDispatcher.createJavacError(java.lang.String,
org.apache.jasper.compiler.Node$Nodes, java.lang.StringBuffer, int,
org.apache.jasper.JspCompilationContext) line: 527    
org.apache.jasper.servlet.JspServletWrapper.handleJspException(java.lang.Exception)
line: 490    
org.apache.jasper.servlet.JspServletWrapper.service(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse, boolean) line: 398    
org.apache.jasper.servlet.JspServlet.serviceJspFile(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.Throwable,
boolean) line: 342    
org.apache.jasper.servlet.JspServlet.service(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse) line: 267    
org.apache.jasper.servlet.JspServlet(javax.servlet.http.HttpServlet).service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) line: 831    
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) line: 290    
org.apache.catalina.core.ApplicationFilterChain.doFilter(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) line: 206    
org.apache.catalina.core.ApplicationDispatcher.invoke(javax.servlet.ServletRequest,
javax.servlet.ServletResponse,
org.apache.catalina.core.ApplicationDispatcher$State) line: 646    
org.apache.catalina.core.ApplicationDispatcher.processRequest(javax.servlet.ServletRequest,
javax.servlet.ServletResponse,
org.apache.catalina.core.ApplicationDispatcher$State) line: 436    
org.apache.catalina.core.ApplicationDispatcher.doForward(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) line: 374    
org.apache.catalina.core.ApplicationDispatcher.forward(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) line: 302    
org.springframework.web.servlet.view.JstlView(org.springframework.web.servlet.view.InternalResourceView).renderMergedOutputModel(java.util.Map,
javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
line: 236    
org.springframework.web.servlet.view.JstlView(org.springframework.web.servlet.view.AbstractView).render(java.util.Map,
javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
line: 257    
org.springframework.web.servlet.DispatcherServlet.render(org.springframework.web.servlet.ModelAndView,
javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
line: 1183    
org.springframework.web.servlet.DispatcherServlet.doDispatch(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse) line: 902    
org.springframework.web.servlet.DispatcherServlet.doService(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse) line: 807    
org.springframework.web.servlet.DispatcherServlet(org.springframework.web.servlet.FrameworkServlet).processRequest(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse) line: 571    
org.springframework.web.servlet.DispatcherServlet(org.springframework.web.servlet.FrameworkServlet).doPost(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse) line: 511    
org.springframework.web.servlet.DispatcherServlet(javax.servlet.http.HttpServlet).service(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse) line: 738    
org.springframework.web.servlet.DispatcherServlet(javax.servlet.http.HttpServlet).service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) line: 831    
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) line: 290    
org.apache.catalina.core.ApplicationFilterChain.doFilter(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) line: 206    
com.wrycan.xms.web.servlet.filter.TransactionManagerFilter.doFilterInternal(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse, javax.servlet.FilterChain) line: 48    
com.wrycan.xms.web.servlet.filter.TransactionManagerFilter(org.springframework.web.filter.OncePerRequestFilter).doFilter(javax.servlet.ServletRequest,
javax.servlet.ServletResponse, javax.servlet.FilterChain) line: 76    
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(javax.servlet.Filter,
javax.servlet.ServletRequest, javax.servlet.ServletResponse,
javax.servlet.FilterChain) line: 236    
org.springframework.web.filter.DelegatingFilterProxy.doFilter(javax.servlet.ServletRequest,
javax.servlet.ServletResponse, javax.servlet.FilterChain) line: 167    
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) line: 235    
org.apache.catalina.core.ApplicationFilterChain.doFilter(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) line: 206    
com.wrycan.xms.web.servlet.filter.RequestLoggingFilter(org.springframework.web.filter.AbstractRequestLoggingFilter).doFilterInternal(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse, javax.servlet.FilterChain) line: 156    
com.wrycan.xms.web.servlet.filter.RequestLoggingFilter(org.springframework.web.filter.OncePerRequestFilter).doFilter(javax.servlet.ServletRequest,
javax.servlet.ServletResponse, javax.servlet.FilterChain) line: 76    
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) line: 235    
org.apache.catalina.core.ApplicationFilterChain.doFilter(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) line: 206    
com.atlassian.seraph.filter.SecurityFilter.doFilter(javax.servlet.ServletRequest,
javax.servlet.ServletResponse, javax.servlet.FilterChain) line: 182    
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) line: 235    
org.apache.catalina.core.ApplicationFilterChain.doFilter(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) line: 206    
com.atlassian.seraph.filter.LoginFilter.doFilter(javax.servlet.ServletRequest,
javax.servlet.ServletResponse, javax.servlet.FilterChain) line: 177    
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) line: 235    
org.apache.catalina.core.ApplicationFilterChain.doFilter(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) line: 206    
com.wrycan.xms.web.servlet.filter.SettingsConfigFilter.doFilterInternal(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse, javax.servlet.FilterChain) line: 42    
com.wrycan.xms.web.servlet.filter.SettingsConfigFilter(org.springframework.web.filter.OncePerRequestFilter).doFilter(javax.servlet.ServletRequest,
javax.servlet.ServletResponse, javax.servlet.FilterChain) line: 76    
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(javax.servlet.Filter,
javax.servlet.ServletRequest, javax.servlet.ServletResponse,
javax.servlet.FilterChain) line: 236    
org.springframework.web.filter.DelegatingFilterProxy.doFilter(javax.servlet.ServletRequest,
javax.servlet.ServletResponse, javax.servlet.FilterChain) line: 167    
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) line: 235    
org.apache.catalina.core.ApplicationFilterChain.doFilter(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) line: 206    
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse, javax.servlet.FilterChain) line: 96    
org.springframework.web.filter.CharacterEncodingFilter(org.springframework.web.filter.OncePerRequestFilter).doFilter(javax.servlet.ServletRequest,
javax.servlet.ServletResponse, javax.servlet.FilterChain) line: 76    
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) line: 235    
org.apache.catalina.core.ApplicationFilterChain.doFilter(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) line: 206    
org.apache.catalina.core.StandardWrapperValve.invoke(org.apache.catalina.connector.Request,
org.apache.catalina.connector.Response) line: 233    
org.apache.catalina.core.StandardContextValve.invoke(org.apache.catalina.connector.Request,
org.apache.catalina.connector.Response) line: 191    
org.apache.catalina.core.StandardHostValve.invoke(org.apache.catalina.connector.Request,
org.apache.catalina.connector.Response) line: 128    
org.apache.catalina.valves.ErrorReportValve.invoke(org.apache.catalina.connector.Request,
org.apache.catalina.connector.Response) line: 102    
org.apache.catalina.core.StandardEngineValve.invoke(org.apache.catalina.connector.Request,
org.apache.catalina.connector.Response) line: 109    
org.apache.catalina.connector.CoyoteAdapter.service(org.apache.coyote.Request,
org.apache.coyote.Response) line: 293    
org.apache.coyote.http11.Http11Processor.process(java.net.Socket) line: 849    
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(java.net.Socket)
line: 583    
org.apache.tomcat.util.net.JIoEndpoint$Worker.run() line: 454    
java.lang.Thread.run() line: 619

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message