Hi,

Has anyone had any problems with the combination of javamail and apache
jserv? The situation is this :

Configuration 1 : Apache 1.3.9 i386, Apache JServ 1.1b3, Javamail 1.1.3,
JDK 1.1.7, Debian/GNU Linux

Configuration 2 : Apache 1.3.9 Alpha, Apache JServ 1.1final, Javamail
1.1.3, JDK 1.1.6-2, DEC osf1

Example a : Command line javamail tool, uses mail.jar, activation.jar
Example b : Servlet, uses all the normal servlet classes
Example c : Servlet that does mail things, uses both the above class
sets.

Has anyone got any idea why, although all three work on the intel setup,
and the first two on the Alpha, the mail servlet throws a null pointer
exception when running on the alpha? The trace from the jserv log is :

[01/03/2000 10:14:53:271 GMT] java.lang.NullPointerException
        at java.util.zip.ZipFile.read(Compiled Code)
        at java.util.zip.ZipFileInputStream.read(Compiled Code)
        at java.util.zip.InflaterInputStream.fill(Compiled Code)
        at java.util.zip.InflaterInputStream.read(Compiled Code)
        at java.util.zip.InflaterInputStream.read(Compiled Code)
        at com.sun.mail.util.LineInputStream.readLine(Compiled Code)
        at javax.mail.Session.loadProvidersFromStream(Compiled Code)
        at javax.mail.Session.loadProviders(Compiled Code)
        at javax.mail.Session.<init>(Compiled Code)
        at javax.mail.Session.getDefaultInstance(Compiled Code)
        at EmailSubmission.doPost(Compiled Code)
        at javax.servlet.http.HttpServlet.service(Compiled Code)
        at javax.servlet.http.HttpServlet.service(Compiled Code)
        at org.apache.jserv.JServConnection.processRequest(Compiled
Code)
        at org.apache.jserv.JServConnection.run(Compiled Code)
        at java.lang.Thread.run(Thread.java)

The servlet that causes this is fairly trivial, source code is online at
:

http://rhuidean.ebi.ac.uk:8080/~tmo/cgi-bin/cvsweb.cgi/SPIN

The file is EmailPassword.java.

I'd be very grateful if anyone can shed any light on this; I could
understand if either javamail or servlets didn't work on Alpha (these
things happen), but that they only fail in conjunction is somewhat
strange.

Cheers,

Tom

--
I love catnip mice... 
It's why I chew their heads off.
They're good for breakfast.
                                        -- Cat Haiku


------------------------------------------------------------
To subscribe:    [EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:       [EMAIL PROTECTED]

Reply via email to