org.springframework.dao.DataAccessResourceFailureException: Error retrieving database metadata; nested exception is org.springframework.jdbc.support.MetaDataAccessException: Connection returned by DataSource [dataSource] was null

Stack Overflow | imoteb | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 1

    Java Spring Testing JDBC

    Stack Overflow | 6 months ago | imoteb
    org.springframework.dao.DataAccessResourceFailureException: Error retrieving database metadata; nested exception is org.springframework.jdbc.support.MetaDataAccessException: Connection returned by DataSource [dataSource] was null

    Root Cause Analysis

    1. org.springframework.dao.DataAccessResourceFailureException

      Error retrieving database metadata; nested exception is org.springframework.jdbc.support.MetaDataAccessException: Connection returned by DataSource [dataSource] was null

      at org.springframework.jdbc.core.metadata.CallMetaDataProviderFactory.createMetaDataProvider()
    2. Spring Framework
      CallMetaDataContext.initializeMetaData
      1. org.springframework.jdbc.core.metadata.CallMetaDataProviderFactory.createMetaDataProvider(CallMetaDataProviderFactory.java:141)
      2. org.springframework.jdbc.core.metadata.CallMetaDataContext.initializeMetaData(CallMetaDataContext.java:286)
      2 frames