Uploaded image for project: 'Lucee Development'
  1. LDEV-1713

improve logging for missing extensions in deploy.log

    Details

    • Type: Bug
    • Status: Deployed
    • Priority: New
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2.7.47
    • Labels:
    • Sprint:
      March 2018

      Description

      when updating if an extension (*.lex) file is missing, a full stack trace is logged into deploy.log

      1. there's no need for a stack trace
      2. include the name of missing extension to make fixing the problem

      "ERROR","http-nio-8888-exec-10","02/22/2018","15:58:04","","extension;C:\lucee\tomcat\lucee-server\context\extensions\installed\1ko1na7pab4st.lex (The system cannot find the file specified);lucee.runtime.exp.NativeException: C:\lucee\tomcat\lucee-server\context\extensions\installed\1ko1na7pab4st.lex (The system cannot find the file specified)
      	at java.io.FileInputStream.open0(Native Method)
      	at java.io.FileInputStream.open(FileInputStream.java:195)
      	at java.io.FileInputStream.<init>(FileInputStream.java:138)
      	at lucee.commons.io.res.type.file.FileResource.getInputStream(FileResource.java:196)
      	at lucee.runtime.extension.RHExtension.load(RHExtension.java:276)
      	at lucee.runtime.extension.RHExtension.getBundles(RHExtension.java:1125)
      	at lucee.runtime.config.XMLConfigAdmin.cleanBundles(XMLConfigAdmin.java:6427)
      	at lucee.runtime.config.XMLConfigAdmin.removeRHExtension(XMLConfigAdmin.java:5231)
      	at lucee.runtime.config.XMLConfigAdmin.updateRHExtension(XMLConfigAdmin.java:4812)
      	at lucee.runtime.config.XMLConfigAdmin.updateRHExtension(XMLConfigAdmin.java:4796)
      	at lucee.runtime.config.XMLConfigAdmin._updateRHExtension(XMLConfigAdmin.java:4776)
      	at lucee.runtime.config.DeployHandler.deployExtension(DeployHandler.java:258)
      	at lucee.runtime.config.DeployHandler.deployExtensions(DeployHandler.java:140)
      	at lucee.runtime.engine.CFMLEngineImpl.<init>(CFMLEngineImpl.java:358)
      	at lucee.runtime.engine.CFMLEngineImpl.getInstance(CFMLEngineImpl.java:623)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at lucee.loader.engine.CFMLEngineFactory.getEngine(CFMLEngineFactory.java:1543)
      	at lucee.loader.engine.CFMLEngineFactory.initEngine(CFMLEngineFactory.java:374)
      	at lucee.loader.engine.CFMLEngineFactory._restart(CFMLEngineFactory.java:629)
      	at lucee.loader.engine.CFMLEngineFactory.restart(CFMLEngineFactory.java:596)
      	at lucee.runtime.config.XMLConfigAdmin.changeVersionTo(XMLConfigAdmin.java:3818)
      	at lucee.runtime.tag.Admin.doChangeVersionTo(Admin.java:878)
      	at lucee.runtime.tag.Admin._doStartTag(Admin.java:814)
      	at lucee.runtime.tag.Admin.doStartTag(Admin.java:340)
      	at changeto_cfm$cf.call(/admin/changeto.cfm:9)
      	at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:908)
      	at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:833)
      	at lucee.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:223)
      	at lucee.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:43)
      	at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2405)
      	at lucee.runtime.PageContextImpl._execute(PageContextImpl.java:2395)
      	at lucee.runtime.PageContextImpl.executeCFML(PageContextImpl.java:2363)
      	at lucee.runtime.engine.Request.exe(Request.java:44)
      	at lucee.runtime.engine.CFMLEngineImpl._service(CFMLEngineImpl.java:1091)
      	at lucee.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:1039)
      	at lucee.loader.engine.CFMLEngineWrapper.serviceCFML(CFMLEngineWrapper.java:102)
      	at lucee.loader.servlet.CFMLServlet.service(CFMLServlet.java:51)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
      	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478)
      	at org.apache.catalina.valves.rewrite.RewriteValve.invoke(RewriteValve.java:279)
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80)
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
      	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:799)
      	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
      	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
      	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1455)
      	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      	at java.lang.Thread.run(Thread.java:748)
      Caused by: java.io.FileNotFoundException: C:\lucee\tomcat\lucee-server\context\extensions\installed\1ko1na7pab4st.lex (The system cannot find the file specified)
      	... 63 more
      "
      

        Attachments

          Activity

            People

            • Assignee:
              michael1 Michael Offner
              Reporter:
              zac.spitzer Zac Spitzer
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: