Hey Kief,

thanks for your answer.

I try without my wrapper and get also the Exception.

I got:

D:\tomcat\bin>catalina run
Using CATALINA_BASE:   ..
Using CATALINA_HOME:   ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME:       d:\jdk1.3
Starting service kbhsrv03
Apache Tomcat/4.0.6
Starting service Tomcat-Apache
Apache Tomcat/4.0.6
java.lang.NullPointerException
        at org.apache.catalina.session.StoreBase.processExpires(StoreBase.java:293)
        at org.apache.catalina.session.StoreBase.run(StoreBase.java:350)
        at java.lang.Thread.run(Thread.java:484)

I comment all context except one for testing.
The part in server.xml look like this:

<Context path="/test" docBase="test" debug="0"
                 reloadable="true" crossContext="true">
       <Logger className="org.apache.catalina.logger.FileLogger"
                     prefix="kbhsrv03_test_log." suffix=".txt"
            timestamp="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.FileStore"/>
          </Manager>
     </Context>

I have only one testservlet where only the HttpSession Object is created.

After the first connect to the test servlet and maxima 60 Seconds I get the
Exception.

Why I use the PersistenManager?

I have a good tomcatbook in german (I belife it?) and there is the information
that I have to use at least the StandardManager with saveOnRestart=true to
store all Sessions to recover on startup. And I have many Sessions with some
big objects in my webapplication.

I thought the problem is the interface Serializable with i implement, but I can
reproduce the Except. with the simple test - servlet.

Dietmar





Kief Morris <[EMAIL PROTECTED]> am 28.01.2003 13:55:00

Bitte antworten an "Tomcat Users List" <[EMAIL PROTECTED]>

An:    "Tomcat Users List" <[EMAIL PROTECTED]>
Kopie:
Thema: Re: Antwort: PersistentManager with FileStore


[EMAIL PROTECTED] typed the following on 08:56 28/01/2003 +0100
>I want to store session information on filesystem so that it is possible
>for me to
>restart tomcat without loosing all sessioninformations.

First of all, you don't need to use PersistentManager to do this - the
default
session manager in Tomcat does this already. PersistentManager is useful
if you want to swap sessions temporarily to disk before they expire, so an
active site can support more concurrent sessions using less memory, perhaps
with very long session expiration times.

>To start tomcat as service with my runtime parameter I use an wrapper
>from "Silver Egg Technology".

Do you have the same problem when you run tomcat straight from the
command line?

>INFO   | jvm 1    | 2003/01/24 12:42:31 | java.lang.NullPointerException
>INFO   | jvm 1    | 2003/01/24 12:42:31 |     at
>org.apache.catalina.session.StoreBase.processExpires(StoreBase.java:293)
>INFO   | jvm 1    | 2003/01/24 12:42:31 |     at
>org.apache.catalina.session.StoreBase.run(StoreBase.java:350)

I've just combed over the source code, and I can't see what would cause
this
error. I can't reproduce it even by fiddling with the code a bit to
simulate
the failure of certain statements - they variable concerned shouldn't be
able to reach this point with a null value.

If this error only happens with your wrapper script, it must be doing
something
weird. Let us know what happens when you start tomcat using "catalina.bat
run".

Kief


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








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

Reply via email to