Uploaded image for project: 'Alfresco One Platform'
  1. Alfresco One Platform
  2. ACE-3460

Resource leak loading webscript extensions

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 5.0
    • Fix Version/s: None
    • Component/s: Web Scripts and Surf
    • Labels:
      None

      Description

      Resource leak loading webscript extensions in
      org.springframework.extensions.webscripts.ClassPathStore:

              Resource document = this.getDocumentResource(documentPath);
              if (document != null)
              {
                  mod = document.getURL().openConnection().getLastModified();
              }
      

      See attached screen shot showing stack trace:

      java.io.FileInputStream.open(String)
      java.io.FileInputStream.<init>(File)
      java.io.FileInputStream.<init>(String)
      sun.net.www.protocol.file.FileURLConnection.connect()
      sun.net.www.protocol.file.FileURLConnection.initializeHeaders()
      sun.net.www.protocol.file.FileURLConnection.getLastModified()
      org.springframework.extensions.webscripts.ClassPathStore.lastModified(String)
      org.springframework.extensions.webscripts.ClassPathStore$ClassPathTemplateSource.lastModified()
      org.springframework.extensions.webscripts.ClassPathStore$ClassPathTemplateLoader.getLastModified(Object)
      freemarker.cache.MultiTemplateLoader$MultiSource.getLastModified()
      freemarker.cache.MultiTemplateLoader.getLastModified(Object)
      freemarker.cache.TemplateCache.getTemplate(TemplateLoader, String, Locale, String, boolean)
      freemarker.cache.TemplateCache.getTemplate(String, Locale, String, boolean)
      freemarker.template.Configuration.getTemplate(String, Locale, String, boolean)
      freemarker.template.Configuration.getTemplate(String)
      org.alfresco.repo.web.scripts.RepositoryTemplateProcessor.hasTemplate(String)
      org.springframework.extensions.webscripts.TemplateProcessorRegistry.findValidTemplatePath(String)
      org.springframework.extensions.webscripts.AbstractWebScript.renderTemplate(String, Map, Writer)
      org.springframework.extensions.webscripts.DeclarativeWebScript.renderFormatTemplate(String, Map, Writer)
      org.springframework.extensions.webscripts.DeclarativeWebScript.execute(WebScriptRequest, WebScriptResponse)
      org.alfresco.repo.web.scripts.RepositoryContainer$3.execute()
      org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper$RetryingTransactionCallback, boolean, boolean)
      org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(WebScript, WebScriptRequest, WebScriptResponse)
      org.alfresco.repo.web.scripts.RepositoryContainer$4.doWork()
      org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil$RunAsWork, String)
      org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(WebScript, WebScriptRequest, WebScriptResponse)
      org.alfresco.repo.web.scripts.RepositoryContainer.executeScriptInternal(WebScriptRequest, WebScriptResponse, Authenticator)
      org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(WebScriptRequest, WebScriptResponse, Authenticator)
      org.springframework.extensions.webscripts.AbstractRuntime.executeScript(WebScriptRequest, WebScriptResponse, Authenticator)
      org.springframework.extensions.webscripts.AbstractRuntime.executeScript()
      org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(HttpServletRequest, HttpServletResponse)
      javax.servlet.http.HttpServlet.service(ServletRequest, ServletResponse)
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ServletRequest, ServletResponse)
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ServletRequest, ServletResponse)
      org.apache.tomcat.websocket.server.WsFilter.doFilter(ServletRequest, ServletResponse, FilterChain)
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ServletRequest, ServletResponse)
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ServletRequest, ServletResponse)
      org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(ServletRequest, ServletResponse, FilterChain)
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ServletRequest, ServletResponse)
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ServletRequest, ServletResponse)
      org.apache.catalina.core.StandardWrapperValve.invoke(Request, Response)
      org.apache.catalina.core.StandardContextValve.invoke(Request, Response)
      org.apache.catalina.authenticator.AuthenticatorBase.invoke(Request, Response)
      org.apache.catalina.core.StandardHostValve.invoke(Request, Response)
      org.apache.catalina.valves.ErrorReportValve.invoke(Request, Response)
      org.apache.catalina.valves.AccessLogValve.invoke(Request, Response)
      org.apache.catalina.core.StandardEngineValve.invoke(Request, Response)
      org.apache.catalina.connector.CoyoteAdapter.service(Request, Response)
      org.apache.coyote.http11.AbstractHttp11Processor.process(SocketWrapper)
      org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(SocketWrapper, SocketStatus)
      org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run()
      java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor$Worker)
      java.util.concurrent.ThreadPoolExecutor$Worker.run()
      java.lang.Thread.run()
      

        Attachments

          Activity

            People

            • Assignee:
              wat2unassigned WAT2 Unassigned
              Reporter:
              dhulley Derek Hulley [X] (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: