Received: from mailhost.digiweb2.dk ([194.239.250.55]) by hub.org (8.9.3/8.9.3) with ESMTP id IAA48826 for ; Mon, 27 Sep 1999 08:35:56 -0400 (EDT) (envelope-from anders@simusoft.dk) Received: from 194.239.250.245 ([194.239.250.245]) by mailhost.digiweb2.dk (8.9.3+Sun/8.9.1) with SMTP id OAA21450 for ; Mon, 27 Sep 1999 14:31:42 +0100 (WET DST) Received: from (43.ppp1-10.image.dk [212.54.73.235]) by with SMTP (MailShield v1.5); Mon, 27 Sep 1999 14:40:27 +0200 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Sender: anders$simusoft.dk@pop.simusoft.dk (Unverified) Message-Id: Date: Mon, 27 Sep 1999 14:35:46 +0200 To: pgsql-interfaces@postgresql.org From: Anders Svensson Subject: Problem accessing databse via servlets Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.org id IAA48830 Does anyone have any solution to my problem. I have 2 servlets, with basicly the same code for the database interface. My problem is that one works the others doesn't. I have local all trust host all 127.0.0.1 255.255.255.255 trust host all 192.168.1.0 255.255.255.0 trust for testing in my pg_hba.conf file. The servlets are accesing two different databases, and when i run the one that doesn't work i get the following meesage in my apache error_log The backend has broken the connection. Possibly the action you have attempted h\ as caused it to close. at postgresql.PG_Stream.ReceiveChar(PG_Stream.java:178) at postgresql.Connection.openConnection(Connection.java:219) at postgresql.Driver.connect(Driver.java:116) at java.sql.DriverManager.getConnection(DriverManager.java:457) at java.sql.DriverManager.getConnection(DriverManager.java:137) at Flykend.dbConn.(dbConn.java) at Flykending.init(Flykending.java) at org.apache.jserv.JServServletManager.load_init(JServServletManager.j\ava:478) at org.apache.jserv.JServServletManager.loadServlet(JServServletManager\.java:397) at org.apache.jserv.JServConnection.processRequest(JServConnection.java\:287) at org.apache.jserv.JServConnection.run(JServConnection.java:197) at java.lang.Thread.run(Thread.java:479) The funny thing ?? is that the trouble program works if it is not run from a servlet, but from a command line???????? Simu Soft v/Anders Svensson Frederikssundsvej 20, 2 th DK-2400 København NV e-mail : Anders@simusoft.dk tlf. : +45 3583 8126