Syntax to be used is onException(CannotGetJdbcConnectionException.class) and not onExectption(CannotGetJdbcConnectionException.class).
On Tue, May 6, 2014 at 11:51 AM, kalber <karlheinz.al...@swslt.com> wrote: > How can i handle this error ? On first exchange i get this error and the > program > loops over it. > > How can i intercept this error ? > > onExectption(CannotGetJdbcConnectionException.class) not works. > > > ------------------ error message ----------------------------------- > [org.springframework.jdbc.CannotGetJdbcConnectionException - Could not get > JDBC Connection; nested exception is org.postgresql.util.PSQLException: > FATAL: no pg_hba.conf entry for host "192.168.201.172", user "paginfor", > database "testdb", SSL off] > org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get > JDBC Connection; nested exception is org.postgresql.util.PSQLException: > FATAL: no pg_hba.conf entry for host "192.168.201.172", user "paginfor", > database "testdb", SSL off > at > > org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:80) > at > org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:575) > at > org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:617) > at > org.apache.camel.component.sql.SqlConsumer.poll(SqlConsumer.java:94) > Caused by: org.postgresql.util.PSQLException: FATAL: no pg_hba.conf entry > for host "122.333.33.11", user "xxxx", database "testdb", SSL off > > > > ----- > kh > -- > View this message in context: > http://camel.465427.n5.nabble.com/Error-loop-CannotGetJdbcConnectionException-from-route-tp5750911.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Charles Moulliard Apache Committer / Architect @RedHat Twitter : @cmoulliard | Blog : http://cmoulliard.github.io