[opencms-dev] weird null pointer exception
Roedel, Mark
MarkRoedel at letu.edu
Sun Mar 13 19:18:26 CET 2011
If I'm reading the stack trace correctly, it looks like the exception
itself is occurring in your companyhead.jsp, on line 212 of the expanded
version. You'll find expanded jsps in your opencms webapp folder under
/WEB-INF/jsp(/Offline/system/modules/etc/etc/etc), which should help you
correlate that line number to the actual line of code in your template.
On 3/11/11 9:18 AM, "Christoph P. Kukulies" <kuku at physik.rwth-aachen.de>
wrote:
>I'm experiencing a null pointer exception and I have no idea why.
>Any ideas?
>
>vax.servlet.ServletException: javax.servlet.jsp.JspException:
>java.lang.NullPointerException
> at
>org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContex
>tImpl.java:858)
> at
>org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextI
>mpl.java:791)
> at
>org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.org_mycompany_fronte
>nd.templates.companymain_jsp._jspService(companymain_jsp.java:203)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at
>org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java
>:377)
> at
>org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati
>onFilterChain.java:290)
> at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter
>Chain.java:206)
> at
>org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatche
>r.java:646)
> at
>org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispat
>cher.java:551)
> at
>org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatch
>er.java:488)
> at
>org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDi
>spatcher.java:194)
> at
>org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher
>.java:169)
> at org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:555)
> at
>org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFlex
>RequestDispatcher.java:423)
> at
>org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher
>.java:173)
> at org.opencms.loader.CmsJspLoader.dispatchJsp(CmsJspLoader.java:829)
> at org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:512)
> at
>org.opencms.loader.A_CmsXmlDocumentLoader.load(A_CmsXmlDocumentLoader.java
>:232)
> at org.opencms.loader.CmsXmlPageLoader.load(CmsXmlPageLoader.java:53)
> at
>org.opencms.loader.CmsResourceManager.loadResource(CmsResourceManager.java
>:964)
> at org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1524)
> at org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:152)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati
>onFilterChain.java:290)
> at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter
>Chain.java:206)
> at
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.
>java:233)
> at
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.
>java:191)
> at
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:1
>27)
> at
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:1
>02)
> at
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.ja
>va:109)
> at
>org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298
>)
> at
>org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.jav
>a:859)
> at
>org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process
>(Http11AprProtocol.java:579)
> at
>org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1555)
> at java.lang.Thread.run(Thread.java:595)
>Caused by: java.lang.NullPointerException
> at
>org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.org_mycompany_fronte
>nd.elements.companyhead_jsp._jspService(companyhead_jsp.java:212)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at
>org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java
>:377)
> at
>org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati
>onFilterChain.java:290)
> at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter
>Chain.java:206)
> at
>org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatche
>r.java:646)
> at
>org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispat
>cher.java:551)
> at
>org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatch
>er.java:488)
> at
>org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDi
>spatcher.java:194)
> at
>org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher
>.java:169)
> at org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:555)
> at
>org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFlex
>RequestDispatcher.java:423)
> at
>org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher
>.java:173)
> at
>org.opencms.jsp.CmsJspTagInclude.includeActionWithCache(CmsJspTagInclude.j
>ava:364)
> at
>org.opencms.jsp.CmsJspTagInclude.includeTagAction(CmsJspTagInclude.java:24
>1)
> at
>org.opencms.jsp.CmsJspTagInclude.doEndTag(CmsJspTagInclude.java:472)
> at
>org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.org_mycompany_fronte
>nd.templates.companymain_jsp._jspx_meth_cms_005finclude_005f0(companymain_
>jsp.java:259)
> at
>org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.org_mycompany_fronte
>nd.templates.companymain_jsp._jspx_meth_cms_005ftemplate_005f0(companymain
>_jsp.java:228)
> at
>org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.org_mycompany_fronte
>nd.templates.companymain_jsp._jspService(companymain_jsp.java:75)
> ... 37 more
>
>
>OpenCMS 7.5.0
>
>Thanks.
>
>--
>Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
>
>_______________________________________________
>This mail is sent to you from the opencms-dev mailing list
>To change your list options, or to unsubscribe from the list, please visit
>http://lists.opencms.org/mailman/listinfo/opencms-dev
>
>
>--
>BEGIN-ANTISPAM-VOTING-LINKS
>------------------------------------------------------
>
>Teach CanIt if this mail (ID 04EhPi1xs) is spam:
>Spam:
>https://antispam.letu.edu/canit/b.php?i=04EhPi1xs&m=03a416022833&c=s
>Not spam:
>https://antispam.letu.edu/canit/b.php?i=04EhPi1xs&m=03a416022833&c=n
>Forget vote:
>https://antispam.letu.edu/canit/b.php?i=04EhPi1xs&m=03a416022833&c=f
>------------------------------------------------------
>END-ANTISPAM-VOTING-LINKS
>
More information about the opencms-dev
mailing list