<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>I played a bit with an index.html that was of type HTML redirect.
      When I clicked on EDIT it showed as <br>
    </p>
    <p><br>
    </p>
    <p>index</p>
    <p>/index.html[en]</p>
    <p><br>
    </p>
    <p>Link</p>
    <p><br>
    </p>
    <p>Type</p>
    <p>Sub level</p>
    <p><br>
    </p>
    <p><br>
    </p>
    <p>I was wondering why I always landed in the /en tree and for the
      fun of it I changed [en] to [de] using the EDIT control code
      option.</p>
    <p>When I tried to edit the page after that, I got an exception:</p>
    <p><br>
    </p>
    <pre><pre>javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.servlet.ServletException: org.opencms.gwt.CmsRpcException: java.lang.NullPointerException
        at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:861)
        at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:794)
        at org.apache.jsp.WEB_002dINF.jsp.offline.system.workplace.editors.editor_005fmain_jsp._jspService(editor_005fmain_jsp.java:69)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
        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:723)
        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:646)
        at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
        at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
        at org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:191)
        at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:165)
        at org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:643)
        at org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFlexRequestDispatcher.java:441)
        at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:169)
        at org.opencms.loader.CmsJspLoader.dispatchJsp(CmsJspLoader.java:937)
        at org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:523)
        at org.opencms.loader.CmsResourceManager.loadResource(CmsResourceManager.java:1191)
        at org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1733)
        at org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:159)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
        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:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:879)
        at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:617)
        at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1774)
        at java.lang.Thread.run(Thread.java:744)
Caused by: javax.servlet.ServletException: org.opencms.gwt.CmsRpcException: java.lang.NullPointerException
        at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:865)
        at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:794)
        at org.apache.jsp.WEB_002dINF.jsp.offline.system.workplace.editors.acacia.editor_jsp._jspService(editor_jsp.java:85)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
        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:723)
        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:646)
        at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
        at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
        at org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:191)
        at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:165)
        at org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:643)
        at org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFlexRequestDispatcher.java:441)
        at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:169)
        at org.opencms.jsp.CmsJspTagInclude.includeActionWithCache(CmsJspTagInclude.java:367)
        at org.opencms.jsp.CmsJspTagInclude.includeTagAction(CmsJspTagInclude.java:241)
        at org.opencms.jsp.CmsJspActionElement.include(CmsJspActionElement.java:515)
        at org.opencms.jsp.CmsJspActionElement.include(CmsJspActionElement.java:556)
        at org.opencms.jsp.CmsJspActionElement.include(CmsJspActionElement.java:573)
        at org.apache.jsp.WEB_002dINF.jsp.offline.system.workplace.editors.editor_005fmain_jsp._jspService(editor_005fmain_jsp.java:61)
        ... 35 more
Caused by: org.opencms.gwt.CmsRpcException: java.lang.NullPointerException
        at org.opencms.gwt.CmsGwtService.error(CmsGwtService.java:114)
        at org.opencms.ade.contenteditor.CmsContentService.prefetch(CmsContentService.java:535)
        at org.opencms.ade.contenteditor.CmsContentService.prefetch(CmsContentService.java:263)
        at org.opencms.ade.contenteditor.CmsContentEditorActionElement.getPrefetch(CmsContentEditorActionElement.java:142)
        at org.opencms.ade.contenteditor.CmsContentEditorActionElement.exportAll(CmsContentEditorActionElement.java:97)
        at org.apache.jsp.WEB_002dINF.jsp.offline.system.workplace.editors.acacia.editor_jsp._jspService(editor_jsp.java:70)
        ... 57 more
Caused by: java.lang.NullPointerException
        at org.opencms.ade.contenteditor.CmsContentService.readContentDefinition(CmsContentService.java:1362)
        at org.opencms.ade.contenteditor.CmsContentService.prefetch(CmsContentService.java:529)
        ... 61 more

Changing it back to [en] makes the crash go away.


</pre></pre>
    <div class="moz-signature">-- <br>
      Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
    </div>
  </body>
</html>