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

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

From: Guillaume Cottenceau <gc(at)mnc(dot)ch>
To: Major Services <services(dot)major(at)gmail(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: org.postgresql.util.PSQLException: Protocol error. Session setup failed
Date: 2010-03-10 14:54:58
Message-ID: 87fx48rzul.fsf@meuh.mnc.lan (view raw or flat)
Thread:
Lists: pgsql-jdbc
Major Services <services.major 'at' gmail.com> writes:

> Hi,
> Following is the error report:

lol!

(sorry, couldn't resist)

> org.apache.jasper.JasperException: Unable to compile class for JSP:
>
> An error occurred at line: 13 in the jsp file: /jsp/pgtest.jsp
> Properties cannot be resolved to a type
>
> 10: {
> 11: Class.forName("org.postgresql.Driver");
> 12:  String url = "jdbc:postgresql://localhost:5432/postgres?user=postgres&password=major";
> 13:  Properties props = new Properties();
> 14:  props.setProperty("loglevel","2");
>
> 15:  Connection conn = DriverManager.getConnection(url, props);
> 16: }
>
-- 
Guillaume Cottenceau

In response to

Responses

pgsql-jdbc by date

Next:From: dmpDate: 2010-03-10 17:30:08
Subject: Re: org.postgresql.util.PSQLException: Protocol error. Session setup failed
Previous:From: Major ServicesDate: 2010-03-10 14:31:11
Subject: Re: org.postgresql.util.PSQLException: Protocol error. Session setup failed

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