invalid cidr crahses pooled connection

Поиск
Список
Период
Сортировка
От Mir Shafiqul Islam
Тема invalid cidr crahses pooled connection
Дата
Msg-id 3CF6B277.4040008@corp.earthlink.net
обсуждение исходный текст
Список 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.


В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Noel Rappin
Дата:
Сообщение: Re: Issues with Array Interface
Следующее
От: "Edd Stanley"
Дата:
Сообщение: Big problem inserting Russian characters into Postgres using JDBC