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

org.postgresql.util.PSQLException: Protocol error. Session setup failed

From: Major Services <services(dot)major(at)gmail(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: org.postgresql.util.PSQLException: Protocol error. Session setup failed
Date: 2010-03-09 16:51:14
Message-ID: 375c2da1003090851h36daef83v2ced94b02051b08b@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-jdbc
I am trying to connect to PostgreSQL database on my local system.

The code is:

Class.forName("org.postgresql.Driver");
String url =
"jdbc:postgresql://localhost:5432/postgres?user=postgres&password=major";
Connection conn = DriverManager.getConnection(url);

Running the code I get:

org.postgresql.util.PSQLException: Protocol error. Session setup failed.

Using postgresql-8.4-701.jdbc3 on PostgreSql 8.4

Responses

pgsql-jdbc by date

Next:From: dmpDate: 2010-03-09 16:56:20
Subject: Re: org.postgresql.util.PSQLException: Protocol error. Session setup failed
Previous:From: Thomas KellererDate: 2010-03-07 22:46:55
Subject: Re: Driver not returning the type for TYPEs

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