[opencms-dev] weird null pointer exception

Christoph P. Kukulies kuku at physik.rwth-aachen.de
Mon Mar 14 15:31:54 CET 2011


Hi Mark,

thanks. I looked into that file  and here is the expanded jsp:
I marked the respective line number by comments (// line 203).

package org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.org_mycompany_frontend.templates;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.opencms.jsp.*;
import org.opencms.file.*;
import java.util.*;

public final class companymain_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();

  private static java.util.List _jspx_dependants;

  static {
    _jspx_dependants = new java.util.ArrayList(1);
    _jspx_dependants.add("/WEB-INF/opencms.tld");
  }

  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fcms_005ftemplate_0026_005felement;
  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fcms_005finclude_0026_005ffile_005felement_005fnobody;
  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fcms_005finclude_0026_005felement_005fnobody;

  private javax.el.ExpressionFactory _el_expressionfactory;
  private org.apache.AnnotationProcessor _jsp_annotationprocessor;

  public Object getDependants() {
    return _jspx_dependants;
  }

  public void _jspInit() {
    _005fjspx_005ftagPool_005fcms_005ftemplate_0026_005felement = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _005fjspx_005ftagPool_005fcms_005finclude_0026_005ffile_005felement_005fnobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _005fjspx_005ftagPool_005fcms_005finclude_0026_005felement_005fnobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
    _jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
  }

  public void _jspDestroy() {
    _005fjspx_005ftagPool_005fcms_005ftemplate_0026_005felement.release();
    _005fjspx_005ftagPool_005fcms_005finclude_0026_005ffile_005felement_005fnobody.release();
    _005fjspx_005ftagPool_005fcms_005finclude_0026_005felement_005fnobody.release();
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      response.setContentType("text/html;charset=UTF-8");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \n");
      out.write("\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n");
      out.write("<html xmlns=\"http://www.w3.org/1999/xhtml\">\n");
      out.write("\n");
      if (_jspx_meth_cms_005ftemplate_005f0(_jspx_page_context)) // line 75
        return;
      //  cms:template
      org.opencms.jsp.CmsJspTagTemplate _jspx_th_cms_005ftemplate_005f1 = (org.opencms.jsp.CmsJspTagTemplate) _005fjspx_005ftagPool_005fcms_005ftemplate_0026_005felement.get(org.opencms.jsp.CmsJspTagTemplate.class);
      _jspx_th_cms_005ftemplate_005f1.setPageContext(_jspx_page_context);
      _jspx_th_cms_005ftemplate_005f1.setParent(null);
      // /WEB-INF/jsp/offline/system/modules/org.mycompany.frontend/templates/companymain.jsp(11,0) name = element type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
      _jspx_th_cms_005ftemplate_005f1.setElement("body");
      int _jspx_eval_cms_005ftemplate_005f1 = _jspx_th_cms_005ftemplate_005f1.doStartTag();
      if (_jspx_eval_cms_005ftemplate_005f1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        if (_jspx_eval_cms_005ftemplate_005f1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
          out = _jspx_page_context.pushBody();
          _jspx_th_cms_005ftemplate_005f1.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
          _jspx_th_cms_005ftemplate_005f1.doInitBody();
        }
        do {
          out.write("<div id=\"contentfloatholder\">\n");
          out.write("<div id=\"centerwrap\">\n");
          out.write("<div id=\"center\">\n");
          out.write("<h2>");
          if (_jspx_meth_cms_005finclude_005f1(_jspx_th_cms_005ftemplate_005f1, _jspx_page_context))
            return;
          out.write("</h2>\n");
          out.write("\n");
          out.write("\n");
          if (_jspx_meth_cms_005finclude_005f2(_jspx_th_cms_005ftemplate_005f1, _jspx_page_context))
            return;
          out.write("</div><!-- Ende center (vermain) -->\n");
          out.write("</div><!-- Ende centerwrap (vermain) -->\n");
          out.write("<div id=\"left\">\n");

CmsJspActionElement cms = new CmsJspActionElement(pageContext, request, response);

out.println("1.\n");
   CmsObject o = cms.getCmsObject();
   String idString="no-navinfo";
   CmsRequestContext rec=cms.getRequestContext();
   List entryList = cms.getNavigation().getNavigationForFolder("/"+cms.property("locale","search")+"/");   
out.println("2.\n");
   CmsRequestContext cmsRequest = cms.getRequestContext();
   String requestFile = cmsRequest.getUri();

   CmsResource resource = o.readResource(requestFile);

   CmsProperty p = o.readPropertyObject(resource,"NavInfo", false);  
   if(p!=null)
         idString = o.readPropertyObject(resource,"NavInfo", false).getValue();
   
out.println("3.\n");

// Hole navigation von pages / subfolders im lfd. Ordner, start from level . to level .+1
    int thisLevel=cms.getNavigation().getNavigationForResource().getNavTreeLevel();
    List list = cms.getNavigation().getNavigationTreeForFolder(thisLevel,thisLevel+1);
    String locp=cms.property("locale", "search");
    Boolean hasItems = list.size() >0;
 out.println("4.\n");           
    Iterator i = list.iterator();
// Get filename (if other than index.html)
   CmsJspNavElement thisne=cms.getNavigation().getNavigationForResource();
   String currentUri = cms.getRequestContext().getUri();
  // out.println("<div class=\"menuitem156\"> <a href=\""+ thisne.getParentFolderName() + "index.htm\">" +  "<--" +"</a></div>");
if(thisLevel > 1) {
  while (i.hasNext()) {
    org.opencms.jsp.CmsJspNavElement ne =
       (org.opencms.jsp.CmsJspNavElement)i.next();
    int level=ne.getNavTreeLevel();
    String indent="";
    out.println("1.\n");
    for(int l=1;l<level;l++)
       indent=indent+"-";
// Klemm es ab:
    indent="";
   out.println("5.\n"); 
    if(!currentUri.equals(ne.getResourceName())) {
       if(ne.isFolderLink()){
          out.println("<div class=\"menuitem156\"> <a href=\""+ ne.getResourceName() + "index.htm\">" +  ne.getNavText()+"</a></div>");
       } else {  
          out.println("<div class=\"menuitem156\"> <a href=\""+ ne.getResourceName() + "\">" +ne.getNavText()+"</a></div>");
       }
    } else {
       if(ne.isFolderLink()){
          out.println("<div class=\"menuitem156sel\">" +  ne.getNavText()+"</div>");
       } else {  
          out.println("<div class=\"menuitem156sel\">"  + ne.getNavText()+"</div>");
       }
    }
  } // while()
} // thisLevel > 1


out.println("6.\n");


//out.println("--> [" + currentUri + "\">");
//out.println(currentUri.substring(currentUri.lastIndexOf('/') + 1) +
//"]</div>");




          out.write("</div><!-- Ende left (companymain) -->\n");
          out.write("\n");
          out.write("</div><!-- Ende contentfloatholder (companymain) -->\n");
          int evalDoAfterBody = _jspx_th_cms_005ftemplate_005f1.doAfterBody();
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
            break;
        } while (true);
        if (_jspx_eval_cms_005ftemplate_005f1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
          out = _jspx_page_context.popBody();
        }
      }
      if (_jspx_th_cms_005ftemplate_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
        _005fjspx_005ftagPool_005fcms_005ftemplate_0026_005felement.reuse(_jspx_th_cms_005ftemplate_005f1);
        return;
      }
      _005fjspx_005ftagPool_005fcms_005ftemplate_0026_005felement.reuse(_jspx_th_cms_005ftemplate_005f1);
      if (_jspx_meth_cms_005ftemplate_005f2(_jspx_page_context))
        return;
      out.write("</div><!-- Ende container -->\n");
      out.write(" </div><!-- Ende minwidth -->\n");
      out.write("</div><!-- Ende wrapper (companymain) -->\n");
      out.write("</body><!-- Ende body (companymain) -->\n");
      out.write("</html>");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try { out.clearBuffer(); } catch (java.io.IOException e) {}
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); // line 203
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }

  private boolean _jspx_meth_cms_005ftemplate_005f0(PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context; // line 212
    JspWriter out = _jspx_page_context.getOut();
    //  cms:template
    org.opencms.jsp.CmsJspTagTemplate _jspx_th_cms_005ftemplate_005f0 = (org.opencms.jsp.CmsJspTagTemplate) _005fjspx_005ftagPool_005fcms_005ftemplate_0026_005felement.get(org.opencms.jsp.CmsJspTagTemplate.class);
    _jspx_th_cms_005ftemplate_005f0.setPageContext(_jspx_page_context);
    _jspx_th_cms_005ftemplate_005f0.setParent(null);
    // /WEB-INF/jsp/offline/system/modules/org.mycompany.frontend/templates/companymain.jsp(8,0) name = element type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_cms_005ftemplate_005f0.setElement("head");
    int _jspx_eval_cms_005ftemplate_005f0 = _jspx_th_cms_005ftemplate_005f0.doStartTag();
    if (_jspx_eval_cms_005ftemplate_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      if (_jspx_eval_cms_005ftemplate_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
        out = _jspx_page_context.pushBody();
        _jspx_th_cms_005ftemplate_005f0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
        _jspx_th_cms_005ftemplate_005f0.doInitBody();
      }
      do {
        if (_jspx_meth_cms_005finclude_005f0(_jspx_th_cms_005ftemplate_005f0, _jspx_page_context)) // line 228
          return true;
        int evalDoAfterBody = _jspx_th_cms_005ftemplate_005f0.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
      if (_jspx_eval_cms_005ftemplate_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
        out = _jspx_page_context.popBody();
      }
    }
    if (_jspx_th_cms_005ftemplate_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fcms_005ftemplate_0026_005felement.reuse(_jspx_th_cms_005ftemplate_005f0);
      return true;
    }
    _005fjspx_005ftagPool_005fcms_005ftemplate_0026_005felement.reuse(_jspx_th_cms_005ftemplate_005f0);
    return false;
  }

  private boolean _jspx_meth_cms_005finclude_005f0(javax.servlet.jsp.tagext.JspTag _jspx_th_cms_005ftemplate_005f0, PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  cms:include
    org.opencms.jsp.CmsJspTagInclude _jspx_th_cms_005finclude_005f0 = (org.opencms.jsp.CmsJspTagInclude) _005fjspx_005ftagPool_005fcms_005finclude_0026_005ffile_005felement_005fnobody.get(org.opencms.jsp.CmsJspTagInclude.class);
    _jspx_th_cms_005finclude_005f0.setPageContext(_jspx_page_context);
    _jspx_th_cms_005finclude_005f0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_cms_005ftemplate_005f0);
    // /WEB-INF/jsp/offline/system/modules/org.mycompany.frontend/templates/companymain.jsp(9,0) name = file type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_cms_005finclude_005f0.setFile("../elements/companyhead");
    // /WEB-INF/jsp/offline/system/modules/org.mycompany.frontend/templates/companymain.jsp(9,0) name = element type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_cms_005finclude_005f0.setElement("head");
    int _jspx_eval_cms_005finclude_005f0 = _jspx_th_cms_005finclude_005f0.doStartTag();
    if (_jspx_th_cms_005finclude_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { // line 259
      _005fjspx_005ftagPool_005fcms_005finclude_0026_005ffile_005felement_005fnobody.reuse(_jspx_th_cms_005finclude_005f0);
      return true;
    }
    _005fjspx_005ftagPool_005fcms_005finclude_0026_005ffile_005felement_005fnobody.reuse(_jspx_th_cms_005finclude_005f0);
    return false;
  }

  private boolean _jspx_meth_cms_005finclude_005f1(javax.servlet.jsp.tagext.JspTag _jspx_th_cms_005ftemplate_005f1, PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  cms:include
    org.opencms.jsp.CmsJspTagInclude _jspx_th_cms_005finclude_005f1 = (org.opencms.jsp.CmsJspTagInclude) _005fjspx_005ftagPool_005fcms_005finclude_0026_005felement_005fnobody.get(org.opencms.jsp.CmsJspTagInclude.class);
    _jspx_th_cms_005finclude_005f1.setPageContext(_jspx_page_context);
    _jspx_th_cms_005finclude_005f1.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_cms_005ftemplate_005f1);
    // /WEB-INF/jsp/offline/system/modules/org.mycompany.frontend/templates/companymain.jsp(15,4) name = element type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_cms_005finclude_005f1.setElement("titel");
    int _jspx_eval_cms_005finclude_005f1 = _jspx_th_cms_005finclude_005f1.doStartTag();
    if (_jspx_th_cms_005finclude_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fcms_005finclude_0026_005felement_005fnobody.reuse(_jspx_th_cms_005finclude_005f1);
      return true;
    }
    _005fjspx_005ftagPool_005fcms_005finclude_0026_005felement_005fnobody.reuse(_jspx_th_cms_005finclude_005f1);
    return false;
  }

  private boolean _jspx_meth_cms_005finclude_005f2(javax.servlet.jsp.tagext.JspTag _jspx_th_cms_005ftemplate_005f1, PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  cms:include
    org.opencms.jsp.CmsJspTagInclude _jspx_th_cms_005finclude_005f2 = (org.opencms.jsp.CmsJspTagInclude) _005fjspx_005ftagPool_005fcms_005finclude_0026_005felement_005fnobody.get(org.opencms.jsp.CmsJspTagInclude.class);
    _jspx_th_cms_005finclude_005f2.setPageContext(_jspx_page_context);
    _jspx_th_cms_005finclude_005f2.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_cms_005ftemplate_005f1);
    // /WEB-INF/jsp/offline/system/modules/org.mycompany.frontend/templates/companymain.jsp(18,0) name = element type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_cms_005finclude_005f2.setElement("inhalt");
    int _jspx_eval_cms_005finclude_005f2 = _jspx_th_cms_005finclude_005f2.doStartTag();
    if (_jspx_th_cms_005finclude_005f2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fcms_005finclude_0026_005felement_005fnobody.reuse(_jspx_th_cms_005finclude_005f2);
      return true;
    }
    _005fjspx_005ftagPool_005fcms_005finclude_0026_005felement_005fnobody.reuse(_jspx_th_cms_005finclude_005f2);
    return false;
  }

  private boolean _jspx_meth_cms_005ftemplate_005f2(PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  cms:template
    org.opencms.jsp.CmsJspTagTemplate _jspx_th_cms_005ftemplate_005f2 = (org.opencms.jsp.CmsJspTagTemplate) _005fjspx_005ftagPool_005fcms_005ftemplate_0026_005felement.get(org.opencms.jsp.CmsJspTagTemplate.class);
    _jspx_th_cms_005ftemplate_005f2.setPageContext(_jspx_page_context);
    _jspx_th_cms_005ftemplate_005f2.setParent(null);
    // /WEB-INF/jsp/offline/system/modules/org.mycompany.frontend/templates/companymain.jsp(96,0) name = element type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_cms_005ftemplate_005f2.setElement("foot");
    int _jspx_eval_cms_005ftemplate_005f2 = _jspx_th_cms_005ftemplate_005f2.doStartTag();
    if (_jspx_eval_cms_005ftemplate_005f2 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      if (_jspx_eval_cms_005ftemplate_005f2 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
        out = _jspx_page_context.pushBody();
        _jspx_th_cms_005ftemplate_005f2.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
        _jspx_th_cms_005ftemplate_005f2.doInitBody();
      }
      do {
        if (_jspx_meth_cms_005finclude_005f3(_jspx_th_cms_005ftemplate_005f2, _jspx_page_context))
          return true;
        int evalDoAfterBody = _jspx_th_cms_005ftemplate_005f2.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
      if (_jspx_eval_cms_005ftemplate_005f2 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
        out = _jspx_page_context.popBody();
      }
    }
    if (_jspx_th_cms_005ftemplate_005f2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fcms_005ftemplate_0026_005felement.reuse(_jspx_th_cms_005ftemplate_005f2);
      return true;
    }
    _005fjspx_005ftagPool_005fcms_005ftemplate_0026_005felement.reuse(_jspx_th_cms_005ftemplate_005f2);
    return false;
  }

  private boolean _jspx_meth_cms_005finclude_005f3(javax.servlet.jsp.tagext.JspTag _jspx_th_cms_005ftemplate_005f2, PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  cms:include
    org.opencms.jsp.CmsJspTagInclude _jspx_th_cms_005finclude_005f3 = (org.opencms.jsp.CmsJspTagInclude) _005fjspx_005ftagPool_005fcms_005finclude_0026_005ffile_005felement_005fnobody.get(org.opencms.jsp.CmsJspTagInclude.class);
    _jspx_th_cms_005finclude_005f3.setPageContext(_jspx_page_context);
    _jspx_th_cms_005finclude_005f3.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_cms_005ftemplate_005f2);
    // /WEB-INF/jsp/offline/system/modules/org.mycompany.frontend/templates/companymain.jsp(97,0) name = file type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_cms_005finclude_005f3.setFile("../elements/companyfoot");
    // /WEB-INF/jsp/offline/system/modules/org.mycompany.frontend/templates/companymain.jsp(97,0) name = element type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_cms_005finclude_005f3.setElement("foot");
    int _jspx_eval_cms_005finclude_005f3 = _jspx_th_cms_005finclude_005f3.doStartTag();
    if (_jspx_th_cms_005finclude_005f3.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fcms_005finclude_0026_005ffile_005felement_005fnobody.reuse(_jspx_th_cms_005finclude_005f3);
      return true;
    }
    _005fjspx_005ftagPool_005fcms_005finclude_0026_005ffile_005felement_005fnobody.reuse(_jspx_th_cms_005finclude_005f3);
    return false;
  }
}



On Sun, Mar 13, 2011 at 06:18:26PM +0000, Roedel, Mark wrote:
> 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
> >
> >
--
Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de



More information about the opencms-dev mailing list