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

share application context with modern and classic listener fails

    Details

    • Type: Bug
    • Status: Deployed
    • Priority: New
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0.0.121, 4.5.3.001
    • Labels:
      None

      Description

      share application context with modern and classic listener fails to execute error template.

      Attached is a very simple test that you can unzip and run in CommandBox to see the issue. Basically they have multiple applications sharing the same app name but some use Application.cfc and some use Application.cfm. Both apps in this sample are throwing an error (on purpose) and their error handling works initially. However, after you hit the CFC site, the CFM site will stop working and only display a blank page. This error put in the logs is below.

      2015-11-25 12:41:17 ERROR io.undertow.request UT005023: Exception handling request to /CFM/
      java.util.NoSuchElementException
          at java.util.LinkedList.getLast(Unknown Source)
          at lucee.runtime.PageContextImpl.getCurrentTemplatePageSource(PageContextImpl.java:1091)
          at lucee.runtime.type.UDFImpl._call(UDFImpl.java:299)
          at lucee.runtime.type.UDFImpl.call(UDFImpl.java:229)
          at lucee.runtime.ComponentImpl._call(ComponentImpl.java:642)
          at lucee.runtime.ComponentImpl._call(ComponentImpl.java:524)
          at lucee.runtime.ComponentImpl.call(ComponentImpl.java:1761)
          at lucee.runtime.listener.ModernAppListener.call(ModernAppListener.java:405)
          at lucee.runtime.listener.ModernAppListener.onError(ModernAppListener.java:392)
          at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2273)
          at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2225)
          at lucee.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:456)
          at lucee.loader.servlet.CFMLServlet.service(CFMLServlet.java:47)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
          at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:86)
          at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
          at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
          at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)
          at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
          at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
          at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
          at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
          at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
          at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:72)
          at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
          at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
          at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
          at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:284)
          at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:263)
          at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)
          at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:174)
          at io.undertow.server.Connectors.executeRootHandler(Connectors.java:198)
          at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:784)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          at java.lang.Thread.run(Unknown Source)
      
      
      

        Attachments

          Activity

            People

            • Assignee:
              michaeloffner Michael Offner
              Reporter:
              michaeloffner Michael Offner
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: