[opencms-dev] Error NullPointer on LogFile Admin view

Sandrine Prousteau s.prousteau at eurelis.com
Fri Sep 4 14:26:31 CEST 2015


I do not have log too on a new installed OpenCms 9.5.0 ….

CmsRfsFileViewer.getFilePath() and getRootPath() are null, and it’s frozen.



De : opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] De la part de Sandrine Prousteau
Envoyé : mardi 18 août 2015 17:53
À : The OpenCms mailing list
Objet : [opencms-dev] Error NullPointer on LogFile Admin view

Hi all,

I have this error when trying to view LogFile on Administration view on a new installed OpenCms 9.5.2 :

java.lang.NullPointerException
                at java.io.File.<init>(Unknown Source)
                at org.opencms.util.CmsRfsFileViewer.clone(CmsRfsFileViewer.java:157)
                at org.opencms.workplace.tools.workplace.rfsfile.A_CmsRfsFileWidgetDialog.initLogfileViewBean(A_CmsRfsFileWidgetDialog.java:133)
                at org.opencms.workplace.tools.workplace.rfsfile.A_CmsRfsFileWidgetDialog.defineWidgets(A_CmsRfsFileWidgetDialog.java:112)
                at org.opencms.workplace.tools.workplace.rfsfile.CmsRfsFileViewDialog.defineWidgets(CmsRfsFileViewDialog.java:175)
                at org.opencms.workplace.CmsWidgetDialog.initWorkplaceRequestValues(CmsWidgetDialog.java:1514)
                at org.opencms.workplace.CmsWorkplace.initWorkplaceMembers(CmsWorkplace.java:2002)
                at org.opencms.workplace.CmsWorkplace.<init>(CmsWorkplace.java:251)
                at org.opencms.workplace.tools.CmsToolDialog.<init>(CmsToolDialog.java:96)
                at org.opencms.workplace.CmsDialog.<init>(CmsDialog.java:283)
                at org.opencms.workplace.CmsWidgetDialog.<init>(CmsWidgetDialog.java:146)
                at org.opencms.workplace.tools.workplace.rfsfile.A_CmsRfsFileWidgetDialog.<init>(A_CmsRfsFileWidgetDialog.java:69)
                at org.opencms.workplace.tools.workplace.rfsfile.CmsRfsFileViewDialog.<init>(CmsRfsFileViewDialog.java:65)
                at org.opencms.workplace.tools.workplace.rfsfile.CmsRfsFileViewDialog.<init>(CmsRfsFileViewDialog.java:78)
                at org.apache.jsp.WEB_002dINF.jsp.offline.system.workplace.admin.workplace.logfileview.index_jsp._jspService(index_jsp.java:62)
                at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
                at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:419)
                at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:389)
                at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:333)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
                at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
                at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:471)
                at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:402)
                at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:329)
                at org.opencms.flex.CmsFlexRequestDispatcher.forward(CmsFlexRequestDispatcher.java:111)
                at org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:522)
                at org.opencms.loader.CmsResourceManager.loadResource(CmsResourceManager.java:1199)
                at org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1719)
                at org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:153)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
                at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
                at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:471)
                at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:402)
                at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:329)
                at org.opencms.flex.CmsFlexRequestDispatcher.forward(CmsFlexRequestDispatcher.java:111)
                at org.opencms.util.CmsRequestUtil.forwardRequest(CmsRequestUtil.java:469)
                at org.opencms.workplace.tools.CmsToolManager.jspForwardPage(CmsToolManager.java:475)
                at org.opencms.workplace.administration.CmsAdminDialog.displayDialog(CmsAdminDialog.java:92)
                at org.apache.jsp.WEB_002dINF.jsp.offline.system.workplace.views.admin.admin_002dmain_jsp._jspService(admin_002dmain_jsp.java:63)
                at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
                at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:419)
                at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:389)
                at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:333)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
                at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
                at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:471)
                at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:402)
                at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:329)
                at org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:522)
                at org.opencms.loader.CmsResourceManager.loadResource(CmsResourceManager.java:1199)
                at org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1719)
                at org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:153)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164)
                at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:403)
                at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:301)
                at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:162)
                at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309)
                at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                at java.lang.Thread.run(Unknown Source)

And the /logs/opencms.log is empty, even after Tomcat shutdown and restart.

I’m on Tomcat 7 on Windows 7 with java 1.7.
My OpenCms is instanced with this kind of server.xml code :

<Host name="mytest.spr"  appBase="C:\dev\projects\mytest" >
<Logger className="org.apache.catalina.logger.FileLogger" directory="logs" prefix="mytest." suffix=".log" timestamp="true" />
<Context path="" docBase="" debug="0" />
<Context path="/manager" docBase="C:\Programs\Tomcats\Tomcat 7.0\webapps\manager" debug="0" privileged="true" />
</Host>

Do you have an idea?

Sandrine.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20150904/8e535487/attachment.htm>


More information about the opencms-dev mailing list