• Bug
  • Status: Closed
  • 2 Major
  • Resolution: Fixed
  • Sessions
  • hhuynh
  • Reporter: teck
  • August 20, 2007
  • 0
  • Watchers: 0
  • September 06, 2007
  • August 20, 2007

Description

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 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)

Comments