Please HELP!!!!!

JDK1.3
Win 2000
Mysql
Tomcat 4.0.3

I'm getting an exception in Tomcat 4.0.3 that I don't know what to do with.
I'm reading James Goodwill's book "Apache Jakarta-Tomcat" and I'm trying to
run the example on page page 128.

You are suppose to be able to track sessions automatically with <Store
className="org.apache.catalina.session.JDBCStore"
Tomcat runs fine and actually puts some session data in the table. But then
when tomcat checks the table for sessions that have expiried(every 60
seconds) I get the exception below.


The exception I'm getting is
java.io.IOException: Stream closed
        at
java.io.BufferedInputStream.ensureOpen(BufferedInputStream.java:123)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:273)
        at
java.io.ObjectInputStream.readFullyInternal(ObjectInputStream.java:1780)
        at java.io.ObjectInputStream.bufferData(ObjectInputStream.java:1750)
        at java.io.ObjectInputStream.readShort(ObjectInputStream.java:1935)
        at
java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:842)
        at java.io.ObjectInputStream.<init>(ObjectInputStream.java:168)
        at
org.apache.catalina.util.CustomObjectInputStream.<init>(CustomObjectInputStr
eam.java:103)
        at org.apache.catalina.session.JDBCStore.load(JDBCStore.java:518)
        at
org.apache.catalina.session.StoreBase.processExpires(StoreBase.java:295)
        at org.apache.catalina.session.StoreBase.run(StoreBase.java:350)
        at java.lang.Thread.run(Thread.java:484)

The relative portion of the server.xml file is...

<Context path="/library2" docBase="library2" debug="0" reloadable="true">
                                   <Manager 
className="org.apache.catalina.session.PersistentManager"
                                                          debug="0"
                                                          saveOnRestart="true"
                                                          maxActiveSessions="-1"
                                                          minIdleSwap="-1"
                                                          maxIdleSwap="-1"
                                                          maxIdleBackup="-1">
                                                          <Store 
className="org.apache.catalina.session.JDBCStore"
                                                          
driverName="org.gjt.mm.mysql.Driver"

connectionURL="jdbc:mysql://localhost/tomcatsessions?user=SessionTracking;pa
ssword=tracking"
                                                          sessionTable="sessions"
                                                          sessionIdCol="id"
                                                          sessionDataCol="data"
                                                          sessionValidCol="valid"
                                                          
sessionMaxInactiveCol="maxinactive"
                                                          
sessionLastAccessedCol="lastaccess"
                                                          checkInterval="60"
                                                          debug="99" />

                                        </Manager>


 </Context>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to