AUTO {ICICICARE#002-039-416}Antwort: PersistentManager with FileStore

2003-01-28 Thread NRI Cell
Dear Sir/Madam,
 
We have received your e-mail and shall respond to you shortly.
 
Regards
ICICI Bank
NRI Services Centre
 
 




Re: Antwort: PersistentManager with FileStore

2003-01-28 Thread Kief Morris
[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]




Antwort: Re: Antwort: PersistentManager with FileStore

2003-01-28 Thread Dietmar . Mueller

Hey Kief,

thanks for your answer.

I try without my wrapper and get also the Exception.

I got:

D:\tomcat\bincatalina 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]




Re: Antwort: Re: Antwort: PersistentManager with FileStore

2003-01-28 Thread Kief Morris
[EMAIL PROTECTED] typed the following on 15:02 28/01/2003 +0100
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.

This is strange, because your configuration shouldn't try to swap it out after
60 seconds - you would have to set maxIdleSwap=1 to make that happen.
What happens if you use a fresh installation of tomcat 4.0.6 and configure
the PersistentManager? If that runs fine, try adding components from the
server you are having problems with one by one and seeing what happens.
Also, if you shut your problem server down before 60 seconds, but after
making a session, does it have any problems shutting down or restarting?

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. 

This is the default - if you start up a new installation of Tomcat without adding
PersistentManager it saves the sessions when you stop tomcat. I just tried
it with 4.0.6 to make sure.

Kief


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




Antwort: PersistentManager with FileStore

2003-01-27 Thread Dietmar . Mueller

2nd attempt

Is nobody useing this feature with tomcat and have some experience and
want to give me some hint?

Dietmar





[EMAIL PROTECTED] am 24.01.2003 15:57:45

Bitte antworten an Tomcat Users List [EMAIL PROTECTED]

An:[EMAIL PROTECTED]
Kopie:
Thema: PersistentManager with FileStore


Hy, first sorry for my bad english!

I use 4.0.6 / jdk1.3.1 / win32.

I want to store session information on filesystem so that it is possible
for me to
restart tomcat without loosing all sessioninformations.

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

In the log from the wrapper I can see follow entries.

STATUS | wrapper  | 2003/01/24 12:41:28 | -- Wrapper Started as Service
STATUS | wrapper  | 2003/01/24 12:41:28 | Launching a JVM...
INFO   | jvm 1| 2003/01/24 12:41:29 | Wrapper (Version 2.2.6)
INFO   | jvm 1| 2003/01/24 12:41:29 | Copyright 2000, 2001 Silver Egg
Technology, Inc.
INFO   | jvm 1| 2003/01/24 12:41:29 | All rights reserved.
INFO   | jvm 1| 2003/01/24 12:41:29 |
INFO   | jvm 1| 2003/01/24 12:41:30 | Starting service kbhsrv03
INFO   | jvm 1| 2003/01/24 12:41:30 | Apache Tomcat/4.0.6
INFO   | jvm 1| 2003/01/24 12:41:35 | Starting service Tomcat-Apache
INFO   | jvm 1| 2003/01/24 12:41:35 | Apache Tomcat/4.0.6
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)
INFO   | jvm 1| 2003/01/24 12:42:31 | at
java.lang.Thread.run(Thread.java:484)

 I config the persistentmanager in the context like this:

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

I build a simple servlet to isolate the problem and I always get the error
on first try from tomcat by save the
sessions to filesystem. About 60 secondes after startup (default).

Have someone a tip.
Is my configuration wrong. I try some default parameter to change.

regards Dietmar


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