camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shrivallabh <>
Subject DataAccessResourceFailureException was not handled by onException DSL
Date Mon, 15 Sep 2014 16:42:31 GMT
I have a postgres connection and I have given wrong credentials, I want to
catch connection exception in camel context. It never catch the exception. 

see camel context
<bean id="myQ"
 <property name="brokerURL" value="tcp://localhost:61616"/>
<camel:errorHandler id="deadLetterErrorHandler" type="DeadLetterChannel" 
<camel:redeliveryPolicy maximumRedeliveries="3"	redeliveryDelay="1000" />
<camelContext id="myContext"
errorHandlerRef="deadLetterErrorHandler" >

		<setHeader headerName="ExceptionStacktrace">
		<setHeader headerName="ExceptionMessage">
		<to uri="activemq:myQ:errQueue" />

<route id="routeid1" handleFault="true" >
<from uri="start" />
<to uri="seda:asyncOne" />

<route id="routeid2" handleFault="true" >
	<from uri="seda:asyncOne" />
	<setHeader headerName="BATCH_STATUS">
		<method ref="demoProcessor" method="process" />

Throws exception but could not be caught.

see the log:
org.springframework.retry.ExhaustedRetryException: Retry exhausted after
last attempt in recovery path, but exception is not skippable.; nested
exception is org.springframework.dao.DataAccessResourceFailureException:
Error retreiving database metadata; nested exception is Could not get
Connection for extracting meta data; nested exception is
org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get
JDBC Connection; nested exception is
org.apache.commons.dbcp.SQLNestedException: Cannot create
PoolableConnectionFactory (FATAL: password authentication failed for user

Thanks in advance

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message