Re: Exception 'org.postgresql.util.PSQLException' could not be instantiated - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: Exception 'org.postgresql.util.PSQLException' could not be instantiated
Date
Msg-id 4BEFAEA5.2040500@opencloud.com
Whole thread Raw
In response to Exception 'org.postgresql.util.PSQLException' could not be instantiated  (Krutik Frank <krutikf@We-plan-IT.de>)
List pgsql-jdbc
Krutik Frank wrote:
> Hello,
>
> i have a problem to get a PSQLException. The reason is Hessian as
> transport layer. Hessian de-/serializes every Object automatically (Java
> Reflection) and needs for every object an standard constructor without
> parameters. your actual driver version don't includes a version
> of org.postgresql.util.PSQLException with a standard constructor without
> parameters.

Well.. you are correct, it doesn't include such a constructor, because
there's no need for it.

There are probably many other incompatibilities with Hessian. I don't
know if applying something like Hessian directly to the driver's objects
is a sensible thing to do. You probably want a wrapper layer.

-O

pgsql-jdbc by date:

Previous
From: Krutik Frank
Date:
Subject: Exception 'org.postgresql.util.PSQLException' could not be instantiated
Next
From: Maciek Sakrejda
Date:
Subject: Re: Socket close exception