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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-jdbc by date

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