| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера