----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

Hi!

After upgrading my Jserv to 1.1, I see the following problem:

If, and this took a while pin down, session.useCookies=true,
installing new (or same) class files on top will make all
servlets stop
working until 1) the jvm is restarted or 2) they are installed
yet another time!

Note that I need not modify anything. All I do is install (cp or
bsd install, doesn't matter) the class files into the servlet
container directory. After that, subsequent calls will fail until
I once more install! (two consecutive installs won't help; I need
to get the error between them).

This happens very reproduceably on FreeBSD-3.4 and FreeBSD-4.0,
using jdk-1.1.8 and ApacheJServ-1.1. Setting
session.useCookies=false
makes it go away.

The mod_jserv log gives me this:
[07/04/2000 01:08:01:069] (ERROR) ajp12: Servlet Error:
java.lang.NullPointerException: null
[07/04/2000 01:08:01:069] (ERROR) an error returned handling
request via protocol "ajpv12"


Here's what the jserv.log gives:

[2000-04-07 01:08:00:266 CEST] <debug> Connection from
localhost/127.0.0.1
[2000-04-07 01:08:00:266 CEST] <debug> Initializing servlet
request
[2000-04-07 01:08:00:266 CEST] <debug> Reading request data
[2000-04-07 01:08:00:369 CEST] <debug> Parsing cookies
[2000-04-07 01:08:00:371 CEST] <debug> Request is in session
qdrqwerqwe
[2000-04-07 01:08:00:371 CEST] <info> Re-initing ServletManager
stordatan_palle_se
[2000-04-07 01:08:00:371 CEST] <info> Destroying Servlets
[2000-04-07 01:08:00:372 CEST] <info> Destroying servlet ChartGen
[2000-04-07 01:08:00:376 CEST] <servletLog> ChartGen: destroy
[2000-04-07 01:08:00:377 CEST] <info> Destroying servlet AZ
[2000-04-07 01:08:00:377 CEST] <servletLog> AZ: destroy
[2000-04-07 01:08:00:383 CEST] <info> Initialisation timeout: 10
seconds
[2000-04-07 01:08:00:383 CEST] <info> Destroy timeout: 10 seconds
[2000-04-07 01:08:00:384 CEST] <info> Session timeout: 1800
seconds
[2000-04-07 01:08:00:384 CEST] <info> New session timeout: 1800
seconds
[2000-04-07 01:08:00:384 CEST] <info> Session check frequency: 30
seconds
[2000-04-07 01:08:00:384 CEST] <info> Autoreload on zone file
changes: true
[2000-04-07 01:08:00:384 CEST] <info> Autoreload on classfile
changes: true
[2000-04-07 01:08:00:384 CEST] <info> Default initArgs:
{ppProperties.filename=/usr/local/www/etc/mydomainproperties}
[2000-04-07 01:08:00:409 CEST] <debug> Restoring sessions
hashtable.
[2000-04-07 01:08:00:423 CEST] <debug> Initializing servlet: 'AZ'
; initArgs: '{}'
[2000-04-07 01:08:00:423 CEST] <servletLog> AZ: init
[2000-04-07 01:08:01:052 CEST] <debug> Calling service()
[2000-04-07 01:08:01:067 CEST] <debug> Sending response headers.
[2000-04-07 01:08:01:068 CEST] <debug> Status: 500 Internal
Server Error
[2000-04-07 01:08:01:068 CEST] <debug> Servlet-Error:
java.lang.NullPointerException: null
[2000-04-07 01:08:01:068 CEST] <debug> Content-Type: text/html
[2000-04-07 01:08:01:151 CEST] <servletException>
java.lang.NullPointerException
        at
net.mydomain.util.core.PedView.doFrame(PedView.java:170)
        at AZLogIn1OView.doFrame(AZLogIn1OView.java:25)
        at
net.mydomain.util.core.PPFrame.forkFrame(PPFrame.java:98)
        at
net.mydomain.util.core.PPServlet.doPost(PPServlet.java:169)
        at
net.mydomain.util.core.PPServlet.doGet(PPServlet.java:148)
        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:499)
        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
        at
org.apache.jserv.JServConnection.processRequest(JServConnection.java:314)
        at
org.apache.jserv.JServConnection.run(JServConnection.java:188)
        at java.lang.Thread.run(Thread.java)
[2000-04-07 01:08:02:286 CEST] <debug> Connection from
localhost/127.0.0.1
[2000-04-07 01:08:02:286 CEST] <debug> Initializing servlet
request
[2000-04-07 01:08:02:286 CEST] <debug> Reading request data
[2000-04-07 01:08:05:495 CEST] <debug> Connection from
localhost/127.0.0.1
[2000-04-07 01:08:05:496 CEST] <debug> Initializing servlet
request


There's hardly a bug in my program? It has been running for a
long time using the Jserv-1.0. Any ideas?

/Palle


[2000-04-07 01:08:00:409 CEST] <debug> Restoring sessions
hashtable.
[2000-04-07 01:08:00:423 CEST] <debug> Initializing servlet: 'AZ'
; initArgs: '{}'
[2000-04-07 01:08:00:423 CEST] <servletLog> AZ: init
[2000-04-07 01:08:01:052 CEST] <debug> Calling service()
[2000-04-07 01:08:01:067 CEST] <debug> Sending response headers.
[2000-04-07 01:08:01:068 CEST] <debug> Status: 500 Internal
Server Error
[2000-04-07 01:08:01:068 CEST] <debug> Servlet-Error:
java.lang.NullPointerException: null
[2000-04-07 01:08:01:068 CEST] <debug> Content-Type: text/html
[2000-04-07 01:08:01:151 CEST] <servletException>
java.lang.NullPointerException
        at
net.mydomain.util.core.PedView.doFrame(PedView.java:170)
        at AZLogIn1OView.doFrame(AZLogIn1OView.java:25)
        at
net.mydomain.util.core.PPFrame.forkFrame(PPFrame.java:98)
        at
net.mydomain.util.core.PPServlet.doPost(PPServlet.java:169)
        at
net.mydomain.util.core.PPServlet.doGet(PPServlet.java:148)
        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:499)
        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
        at
org.apache.jserv.JServConnection.processRequest(JServConnection.java:314)
        at
org.apache.jserv.JServConnection.run(JServConnection.java:188)
        at java.lang.Thread.run(Thread.java)
[2000-04-07 01:08:02:286 CEST] <debug> Connection from
localhost/127.0.0.1
[2000-04-07 01:08:02:286 CEST] <debug> Initializing servlet
request
[2000-04-07 01:08:02:286 CEST] <debug> Reading request data
[2000-04-07 01:08:05:495 CEST] <debug> Connection from
localhost/127.0.0.1
[2000-04-07 01:08:05:496 CEST] <debug> Initializing servlet
request


There's hardly a bug in my program? It has been running for a
long time using the Jserv-1.0. Any ideas?

/Palle


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to