[opencms-dev] 9.5.3 html redirect page crashes when locale changed from en to de

Filip Kratochvil filip.kratochvil at nelasoft.cz
Mon May 2 14:39:58 CEST 2016


Hi again,

 

i tried to edit HTML redirect and both languages (cs, en) are available for editing. Maybe you are edit HTML redirect in area where property „locale-available“ is set to „en“? 

 

--
S pozdravem / Kind regards
Filip Kratochvil
------------------------------------------------
NELASOFT Technologies, s.r.o.
E-mail:  <mailto:filip.kratochvil at nelasoft.cz> filip.kratochvil at nelasoft.cz
Web:  <http://www.nelasoft.cz/> www.nelasoft.cz

Twitter:  <https://twitter.com/NELASOFT> @NELASOFT

 

From: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Christoph Kukulies
Sent: Monday, May 2, 2016 1:31 PM
To: The OpenCms mailing list
Subject: [opencms-dev] 9.5.3 html redirect page crashes when locale changed from en to de

 

I played a bit with an index.html that was of type HTML redirect. When I clicked on EDIT it showed as 

 

index

/index.html[en]

 

Link

 

Type

Sub level

 

 

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.

When I tried to edit the page after that, I got an exception:

 

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.
 
 

-- 
Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20160502/a2c15b0a/attachment.htm>


More information about the opencms-dev mailing list