[ https://issues.apache.org/jira/browse/DERBY-6405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13814724#comment-13814724 ]
Knut Anders Hatlen commented on DERBY-6405: ------------------------------------------- derby.log shows the following exception: {noformat} ERROR XBM0A: The database directory 'D:\tendril4\work\run\27528213\junit\system\srvdscreateshutdowndb1' exists. However, it does not contain the expected 'service.properties' file. Perhaps Derby was brought down in the middle of creating this database. You may want to delete this directory and try creating the database again. at org.apache.derby.iapi.error.StandardException.newException(StandardException.java:295) at org.apache.derby.impl.services.monitor.StorageFactoryService.vetService(StorageFactoryService.java:864) at org.apache.derby.impl.services.monitor.StorageFactoryService.access$900(StorageFactoryService.java:71) at org.apache.derby.impl.services.monitor.StorageFactoryService$10.run(StorageFactoryService.java:806) at java.security.AccessController.doPrivileged(Native Method) at org.apache.derby.impl.services.monitor.StorageFactoryService.createServiceRoot(StorageFactoryService.java:785) at org.apache.derby.impl.services.monitor.BaseMonitor.bootService(BaseMonitor.java:1749) at org.apache.derby.impl.services.monitor.BaseMonitor.createPersistentService(BaseMonitor.java:1011) at org.apache.derby.iapi.services.monitor.Monitor.createPersistentService(Monitor.java:592) at org.apache.derby.impl.jdbc.EmbedConnection.createDatabase(EmbedConnection.java:2644) at org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java:420) at org.apache.derby.impl.jdbc.EmbedConnection40.<init>(EmbedConnection40.java:53) at org.apache.derby.jdbc.Driver40.getNewEmbedConnection(Driver40.java:65) at org.apache.derby.jdbc.InternalDriver.connect(InternalDriver.java:264) at org.apache.derby.jdbc.EmbeddedBaseDataSource.getConnection(EmbeddedBaseDataSource.java:615) at org.apache.derby.jdbc.EmbeddedBaseDataSource.getConnection(EmbeddedBaseDataSource.java:570) at org.apache.derby.jdbc.EmbeddedBaseDataSource.setupResourceAdapter(EmbeddedBaseDataSource.java:699) at org.apache.derby.jdbc.EmbeddedXADataSource.getXAConnection(EmbeddedXADataSource.java:111) at org.apache.derby.impl.drda.XADatabase.makeConnection(XADatabase.java:98) at org.apache.derby.impl.drda.DRDAConnThread.getConnFromDatabaseName(DRDAConnThread.java:1465) at org.apache.derby.impl.drda.DRDAConnThread.verifyUserIdPassword(DRDAConnThread.java:1415) at org.apache.derby.impl.drda.DRDAConnThread.parseSECCHK(DRDAConnThread.java:3368) at org.apache.derby.impl.drda.DRDAConnThread.parseDRDAConnection(DRDAConnThread.java:1198) at org.apache.derby.impl.drda.DRDAConnThread.processCommands(DRDAConnThread.java:998) at org.apache.derby.impl.drda.DRDAConnThread.run(DRDAConnThread.java:295) {noformat} > PoolXADSCreateShutdownDBTest.testXADS failure on 10.10 on Windows machine > ------------------------------------------------------------------------- > > Key: DERBY-6405 > URL: https://issues.apache.org/jira/browse/DERBY-6405 > Project: Derby > Issue Type: Bug > Components: Test > Affects Versions: 10.10.1.3 > Reporter: Mamta A. Satoor > > http://download.java.net/javadesktop/derby/request_5582873/javadb-task-3742645.html > The stack trace is as follows > java.sql.SQLNonTransientConnectionException: DERBY SQL error: ERRORCODE: > 40000, SQLSTATE: XJ041, SQLERRMC: Failed to create database > 'srvdscreateshutdowndb1', see the next exception for details.::SQLSTATE: XBM0A > at > org.apache.derby.client.am.SQLExceptionFactory40.getSQLException(SQLExceptionFactory40.java:104) > at > org.apache.derby.client.am.SqlException.getSQLException(SqlException.java:364) > at > org.apache.derby.client.ClientPooledConnection.<init>(ClientPooledConnection.java:168) > at > org.apache.derby.client.ClientXAConnection.<init>(ClientXAConnection.java:49) > at > org.apache.derby.client.ClientXAConnection40.<init>(ClientXAConnection40.java:56) > at > org.apache.derby.client.net.ClientJDBCObjectFactoryImpl40.newClientXAConnection(ClientJDBCObjectFactoryImpl40.java:88) > at > org.apache.derby.jdbc.ClientBaseDataSourceRoot.getXAConnectionX(ClientBaseDataSourceRoot.java:1453) > at > org.apache.derby.jdbc.ClientBaseDataSourceRoot.getXAConnectionMinion(ClientBaseDataSourceRoot.java:1414) > at > org.apache.derby.jdbc.ClientXADataSource.getXAConnection(ClientXADataSource.java:63) > at > org.apache.derbyTesting.functionTests.tests.jdbcapi.PoolXADSCreateShutdownDBTest.assertUpdateCount(PoolXADSCreateShutdownDBTest.java:488) > at > org.apache.derbyTesting.functionTests.tests.jdbcapi.PoolXADSCreateShutdownDBTest.assertPositive(PoolXADSCreateShutdownDBTest.java:386) > at > org.apache.derbyTesting.functionTests.tests.jdbcapi.PoolXADSCreateShutdownDBTest.doCreateAndShutdown(PoolXADSCreateShutdownDBTest.java:202) > at > org.apache.derbyTesting.functionTests.tests.jdbcapi.PoolXADSCreateShutdownDBTest.testXADS(PoolXADSCreateShutdownDBTest.java:156) > at > org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:117) > at > org.apache.derbyTesting.junit.BaseJDBCTestCase.runBareOverridable(BaseJDBCTestCase.java:442) > at > org.apache.derbyTesting.junit.BaseJDBCTestCase.runBare(BaseJDBCTestCase.java:459) > at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) > at junit.extensions.TestSetup$1.protect(TestSetup.java:21) > at junit.extensions.TestSetup.run(TestSetup.java:25) > at > org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57) > at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) > at junit.extensions.TestSetup$1.protect(TestSetup.java:21) > at junit.extensions.TestSetup.run(TestSetup.java:25) > at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) > at junit.extensions.TestSetup$1.protect(TestSetup.java:21) > at junit.extensions.TestSetup.run(TestSetup.java:25) > at > org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57) > Caused by: org.apache.derby.client.am.SqlException: DERBY SQL error: > ERRORCODE: 40000, SQLSTATE: XJ041, SQLERRMC: Failed to create database > 'srvdscreateshutdowndb1', see the next exception for details.::SQLSTATE: XBM0A > at > org.apache.derby.client.am.Connection.completeSqlca(Connection.java:2184) > at > org.apache.derby.client.net.NetConnectionReply.parseRdbAccessFailed(NetConnectionReply.java:497) > at > org.apache.derby.client.net.NetConnectionReply.parseAccessRdbError(NetConnectionReply.java:390) > at > org.apache.derby.client.net.NetConnectionReply.parseACCRDBreply(NetConnectionReply.java:253) > at > org.apache.derby.client.net.NetConnectionReply.readAccessDatabase(NetConnectionReply.java:80) > at > org.apache.derby.client.net.NetConnection.readSecurityCheckAndAccessRdb(NetConnection.java:849) > at > org.apache.derby.client.net.NetConnection.flowSecurityCheckAndAccessRdb(NetConnection.java:785) > at > org.apache.derby.client.net.NetConnection.flowUSRIDPWDconnect(NetConnection.java:614) > at > org.apache.derby.client.net.NetConnection.flowConnect(NetConnection.java:409) > at > org.apache.derby.client.net.NetConnection.initialize(NetConnection.java:308) > at > org.apache.derby.client.net.NetConnection.<init>(NetConnection.java:292) > at > org.apache.derby.client.net.NetConnection40.<init>(NetConnection40.java:122) > at > org.apache.derby.client.net.ClientJDBCObjectFactoryImpl40.newNetConnection(ClientJDBCObjectFactoryImpl40.java:310) > at > org.apache.derby.client.net.NetXAConnection.createNetConnection(NetXAConnection.java:273) > at > org.apache.derby.client.net.NetXAConnection.<init>(NetXAConnection.java:75) > at > org.apache.derby.client.ClientPooledConnection.getNetXAConnection(ClientPooledConnection.java:473) > at > org.apache.derby.client.ClientPooledConnection.<init>(ClientPooledConnection.java:162) -- This message was sent by Atlassian JIRA (v6.1#6144)