Hi,
data sent by POST does not get properly sent to my servlet that uses JNI.
I am sending username/password to the servlet which looks up a user's
email address via JDBC connection to mySQL and extracts the hostname from
the email address. The servlet then uses JNI to call rexec to
authenticate. Other servlet that does not use JNI does not experience this
problem.
This works fine, but for some reason after a few hours, it stops working
and gives an default error page. I printed the username and password
gotten from the form using POST method to stderr and it is null.
restarting apache or recompiling the servlet fixes the problem.
jserv.log contains
[14/07/1999 22:48:42:012] (ERROR) ajp11: Servlet Error:
java.lang.NullPointerException: :
[14/07/1999 22:48:42:037] (ERROR) an error returned handling request via
protocol "ajpv11"
jserv.trace
[19990714 224841.999 EDT] java.lang.NullPointerException:
at AuthenticateServlet.authenticate(AuthenticateServlet.java:60)
at AuthenticateServlet.doPost(AuthenticateServlet.java:36)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:521)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at
org.apache.jserv.JServConnection.processRequest(JServConnection.java:
335)
at org.apache.jserv.JServConnection.run(JServConnection.java:197)
at java.lang.Thread.run(Thread.java)
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
READ THE FAQ!!!! <http://java.apache.org/faq/>
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]