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

My guess:  You are accessing a null object(myConnection).
The connection is null so you can't create the
statement. Are you handling exceptions from
the establishment of the connection? Are you sure you have
a connection(this moment, this box)?

probable cause, the linux box jdbc access is not configured properly
or you are supplying wrong connection params/bad driver or something.

It working with the servletrunner tells you nothing unless you run it
on the same machine/same params/jdbc driver - the exact same JDBC-setup.
Do You?

My point - the error is within your source/jdbc-setup. Not jserv.

Other suggestions anyone?

HTH
//OLAS


tdb43 wrote:

> ----------------------------------------------------------------
> 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!!!
> ----------------------------------------------------------------
>
> Hello:
>
> I've got a problem with a servlet working on Apache JServ.
> Could anybody help me?
>
> My Setup:
>
>     - Apache 1.3.12
>     - Apache JServ 1.1
>     - mod_ssl 2.6.2 for Apache 1.3.12
>     - openssl 0.9.5
>     - JDK1.2.2
>     - JSDK2.0
>     - Linux Red Hat 6.0 (2.2.14)
> ------------------------------------------------------------
>
> Error I get in browser:
>
> Internal Server Error
> The server encountered an internal error or misconfiguration and was
> unable to complete your request.
> ------------------------------------------------------------
>
> Entry in the JServ log file:
>
> [11/04/2000 13:30:42:044 CEST] miServlet: init
> [11/04/2000 13:30:42:085 CEST] java.lang.NullPointerException:
>         at miServlet.actualizarBaseDeDatos(miServlet.java:50)
>         at miServlet.doPost(miServlet.java:43)
>         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:314)
>         at org.apache.jserv.JServConnection.run
> (JServConnection.java:188)
>         at java.lang.Thread.run(Thread.java:475)
>
> Note: Servlet miServlet.java works properly with servletrunner provided
> by JSDK2.0;
>       the sample servlets provided with Apache JServ 1.1 also works.
>       This servlet -miServlet.java- access to a PostgreSQL database,
>       the problem appears at the line 50:
>
>         ...
>         myStatement = myConnection.createStatement();
>         ...
> ----------------------------------------------------------
>
> Entry in mod_jserv error log:
>
> [11/04/2000 13:30:42:083] (ERROR) ajp12: Servlet Error:
> java.lang.NullPointerException: :
> [11/04/2000 13:30:42:083] (ERROR) an error returned handling request
> via protocol "ajpv12"
> ----------------------------------------------------------
>
> Any help will be greatly appreciated.
> Thanks.
>
>  ___________________________________________________________________
> Consigue tu e-mail gratuito OLE.COM
>  Haz click en "http://www.olemail.com"
>
> --
> --------------------------------------------------------------
> 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]



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