Skip site navigation (1) Skip section navigation (2)

Problem accessing databse via servlets

From: Anders Svensson <anders(at)simusoft(dot)dk>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: Problem accessing databse via servlets
Date: 1999-09-27 12:35:46
Message-ID: v04020a00b41513e1571f@[] (view raw, whole thread or download thread mbox)
Lists: pgsql-interfaces
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   trust
host         all     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(
        at postgresql.Connection.openConnection(
        at postgresql.Driver.connect(
        at java.sql.DriverManager.getConnection(
        at java.sql.DriverManager.getConnection(
        at Flykend.dbConn.<init>(
        at Flykending.init(



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(at)simusoft(dot)dk
tlf.	: +45 3583 8126

pgsql-interfaces by date

Next:From: Craig PotterDate: 1999-09-27 13:46:33
Subject: [INTERFACES] webserver interface
Previous:From: Michael MeskesDate: 1999-09-27 09:55:30
Subject: Re: [INTERFACES] Create a database with ecpg

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group