invalid cidr crahses pooled connection

From: Mir Shafiqul Islam <mislam(at)corp(dot)earthlink(dot)net>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: invalid cidr crahses pooled connection
Date: 2002-05-30 23:15:03
Message-ID: 3CF6B277.4040008@corp.earthlink.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Environment: JBoss 2.4.4 with tomcat
Connection to postgres established at jboss startup time via regular
connection pooling.
Accessing db from ejb

I am facing a problem with a pooled connection to postgres being
dropped. This happens when the user is trying to execute a query with
and invalid CIDR address. I am pasting a similar query and error I am
seeing jboss side.

[INFO,Default] Debug SELECT ip from ip_space where ip
>>='192.168.1.0/8'::cidr
[INFO,Default] SQLException: ERROR: invalid CIDR value '192.168.1.0/8':
has bits set to right of mask
[INFO,Default] SQLState: null
[INFO,Default] VendorError: 0

After this nothing can be done with the same connection object. And
since this is actually a pooled object once it is closed the ejb is
pretty much useless until jboss is restarted. This happens only in the
SQLException involving invalid cidr.

Browse pgsql-jdbc by date

  From Date Subject
Next Message Noel Rappin 2002-05-31 15:07:49 Re: Issues with Array Interface
Previous Message d a 2002-05-30 19:00:31 Issues with Array interface (String parsing)