IF you read the message, it tells you that it will create the connection
(not that the connection has been created). So Spring logs the message
before to call
https://github.com/spring-projects/spring-framework/blob/master/spring-jdbc/src/main/java/org/springframework/jdbc/datasource/SimpleDriverDataSource.java#L140

return driver.connect(url, props);

So the connection object could be null


On Mon, May 5, 2014 at 7:36 AM, Shiv <[email protected]> wrote:

> As per your suggestion, I changed the logging level of the package and got
> below line in log:
>
> 2014-05-05 10:53:46,007 | DEBUG | Creating new JDBC Driver Connection to
> [jdbc:microsoft:sqlserver://<host name>:1433;DatabaseName=TESTDB] |
> org.springframework.jdbc.datasource.SimpleDriverDataSource
>
> Does it also expect to log successful connection message if connection is
> created successfully?
>
> Thanks
> Shiv
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/java-lang-NullPointerException-in-Camel-JDBC-component-for-Select-statement-tp5750783p5750852.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

Reply via email to