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

Browse pgsql-jdbc by date

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