java.lang.AssertionError: Precondition Failed in session code under tomcat
--------------------------------------------------------------------------

                 Key: CDV-385
                 URL: https://jira.terracotta.org/jira//browse/CDV-385
             Project: Community Development
          Issue Type: Bug
          Components: Sessions
    Affects Versions: 2.4.1
            Reporter: Tim Eck
         Assigned To: Issue Review Board


This has come up a few times in various places. I've found at least one 
reproducible case, and this item is to fix that case. 

If one deletes all the contexts/webapps from a tomcat installation and 
configures a <web-application> of "ROOT" in tc-config.xml, this will occur. My 
best explanation is that the context is null because there is no matching 
context in the container. 

java.lang.AssertionError: Precondition Failed
        at com.terracotta.session.util.Assert.pre(Assert.java:9)
        at 
com.tc.tomcat55.session.SessionValve55.makeWebAppConfig(SessionValve55.java:95)
        at 
com.tc.tomcat55.session.SessionValve55.createManager(SessionValve55.java:79)
        at 
com.tc.tomcat55.session.SessionValve55.findOrCreateManager(SessionValve55.java:71)
        at 
com.tc.tomcat55.session.SessionValve55.tcInvoke(SessionValve55.java:54)
        at com.tc.tomcat55.session.SessionValve55.invoke(SessionValve55.java:47)
        at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
        at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
        <snip>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.terracotta.org/jira//secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
tc-dev mailing list
[email protected]
http://lists.terracotta.org/mailman/listinfo/tc-dev

Reply via email to