java.sql.SQLException: Database 'memory:testdb' not found.

Spring JIRA | Benson Margulies | 6 years ago
  1. 0

    I'm using the embedded database mechanism with type="DERBY" and derby 10.6.1.0. It works, but on the way out the door, I get the following rather loud set of complaining. {code}1 [Thread-2] WARN org.springframework.jdbc.datasource.embedded.DerbyEmbeddedDatabaseConfigurer - Could not shutdown in-memory Derby database java.sql.SQLException: Database 'memory:testdb' not found. at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source) at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source) at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source) at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source) at org.apache.derby.impl.jdbc.EmbedConnection.newSQLException(Unknown Source) at org.apache.derby.impl.jdbc.EmbedConnection.handleDBNotFound(Unknown Source) at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source) at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(Unknown Source) at org.apache.derby.impl.jdbc.EmbedConnection40.<init>(Unknown Source) at org.apache.derby.jdbc.Driver40.getNewEmbedConnection(Unknown Source) at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source) at org.apache.derby.jdbc.EmbeddedDriver.connect(Unknown Source) at org.springframework.jdbc.datasource.embedded.DerbyEmbeddedDatabaseConfigurer.shutdown(DerbyEmbeddedDatabaseConfigurer.java:75) at org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactory.shutdownDatabase(EmbeddedDatabaseFactory.java:177) at org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactoryBean.destroy(EmbeddedDatabaseFactoryBean.java:57) at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:184) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:487) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:463) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:431) at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1048) at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1022) at org.springframework.context.support.AbstractApplicationContext$3.run(AbstractApplicationContext.java:940) Caused by: java.sql.SQLException: Database 'memory:testdb' not found. at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source) at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source) ... 22 more {code}

    Spring JIRA | 6 years ago | Benson Margulies
    java.sql.SQLException: Database 'memory:testdb' not found.
  2. 0

    I'm using the embedded database mechanism with type="DERBY" and derby 10.6.1.0. It works, but on the way out the door, I get the following rather loud set of complaining. {code}1 [Thread-2] WARN org.springframework.jdbc.datasource.embedded.DerbyEmbeddedDatabaseConfigurer - Could not shutdown in-memory Derby database java.sql.SQLException: Database 'memory:testdb' not found. at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source) at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source) at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source) at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source) at org.apache.derby.impl.jdbc.EmbedConnection.newSQLException(Unknown Source) at org.apache.derby.impl.jdbc.EmbedConnection.handleDBNotFound(Unknown Source) at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source) at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(Unknown Source) at org.apache.derby.impl.jdbc.EmbedConnection40.<init>(Unknown Source) at org.apache.derby.jdbc.Driver40.getNewEmbedConnection(Unknown Source) at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source) at org.apache.derby.jdbc.EmbeddedDriver.connect(Unknown Source) at org.springframework.jdbc.datasource.embedded.DerbyEmbeddedDatabaseConfigurer.shutdown(DerbyEmbeddedDatabaseConfigurer.java:75) at org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactory.shutdownDatabase(EmbeddedDatabaseFactory.java:177) at org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactoryBean.destroy(EmbeddedDatabaseFactoryBean.java:57) at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:184) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:487) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:463) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:431) at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1048) at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1022) at org.springframework.context.support.AbstractApplicationContext$3.run(AbstractApplicationContext.java:940) Caused by: java.sql.SQLException: Database 'memory:testdb' not found. at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source) at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source) ... 22 more {code}

    Spring JIRA | 6 years ago | Benson Margulies
    java.sql.SQLException: Database 'memory:testdb' not found.
  3. 0

    Comentários - Desenvolvendo uma aplicação completa utilizando Swing

    com.br | 1 year ago
    java.sql.SQLException: Banco de dados 'sample' não encontrado.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Derby client jdbc driver connection error : Failed to create database 'sample'

    Stack Overflow | 1 year ago | user3719857
    java.sql.SQLException: Failed to create database 'sample', see the next exception for details.
  6. 0

    java-servicemix-user - Apache Ode in Embedded ServiceMix - msg#00063 - Recent Discussion OSDir.com

    osdir.com | 12 months ago
    javax.resource.spi.ResourceAllocationException: Unable to obtain physical connection to jdbc:derby:C:\myWorkspace\myProject\./derby-db

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.sql.SQLException

      Database 'memory:testdb' not found.

      at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException()
    2. Derby
      EmbeddedDriver.connect
      1. org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
      2. org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
      3. org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
      4. org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
      5. org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
      6. org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
      7. org.apache.derby.impl.jdbc.EmbedConnection.newSQLException(Unknown Source)
      8. org.apache.derby.impl.jdbc.EmbedConnection.handleDBNotFound(Unknown Source)
      9. org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source)
      10. org.apache.derby.impl.jdbc.EmbedConnection30.<init>(Unknown Source)
      11. org.apache.derby.impl.jdbc.EmbedConnection40.<init>(Unknown Source)
      12. org.apache.derby.jdbc.Driver40.getNewEmbedConnection(Unknown Source)
      13. org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
      14. org.apache.derby.jdbc.EmbeddedDriver.connect(Unknown Source)
      14 frames
    3. org.springframework.jdbc
      EmbeddedDatabaseFactoryBean.destroy
      1. org.springframework.jdbc.datasource.embedded.DerbyEmbeddedDatabaseConfigurer.shutdown(DerbyEmbeddedDatabaseConfigurer.java:75)
      2. org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactory.shutdownDatabase(EmbeddedDatabaseFactory.java:177)
      3. org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactoryBean.destroy(EmbeddedDatabaseFactoryBean.java:57)
      3 frames
    4. Spring Beans
      DefaultSingletonBeanRegistry.destroySingletons
      1. org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:184)
      2. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:487)
      3. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:463)
      4. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:431)
      4 frames
    5. Spring Context
      AbstractApplicationContext$3.run
      1. org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1048)
      2. org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1022)
      3. org.springframework.context.support.AbstractApplicationContext$3.run(AbstractApplicationContext.java:940)
      3 frames