[
https://issues.apache.org/jira/browse/DERBY-6700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14091000#comment-14091000
]
Rick Hillegas commented on DERBY-6700:
--------------------------------------
I can also reproduce the problem using the insane trunk jars. However, when I
run the sane trunk jars on this machine on top of jdk 6u81, I see this problem:
{noformat}
1) DatabaseClassLoadingTestjava.sql.SQLException: Failed to create database
'wombat', see the next exception for details.
at
org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:107)
at
org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:133)
at org.apache.derby.impl.jdbc.Util.seeNextException(Util.java:255)
at
org.apache.derby.impl.jdbc.EmbedConnection.createDatabase(EmbedConnection.java:2647)
at
org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java:429)
at
org.apache.derby.jdbc.InternalDriver.getNewEmbedConnection(InternalDriver.java:647)
at org.apache.derby.jdbc.InternalDriver.connect(InternalDriver.java:301)
at org.apache.derby.jdbc.InternalDriver.connect(InternalDriver.java:932)
at
org.apache.derby.jdbc.AutoloadedDriver.connect(AutoloadedDriver.java:147)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:154)
at
org.apache.derbyTesting.junit.DriverManagerConnector.openConnection(DriverManagerConnector.java:122)
at
org.apache.derbyTesting.junit.DriverManagerConnector.openConnection(DriverManagerConnector.java:68)
at
org.apache.derbyTesting.junit.DriverManagerConnector.openConnection(DriverManagerConnector.java:44)
at
org.apache.derbyTesting.junit.TestConfiguration.openDefaultConnection(TestConfiguration.java:1643)
at
org.apache.derbyTesting.junit.BaseJDBCTestSetup.getConnection(BaseJDBCTestSetup.java:72)
at
org.apache.derbyTesting.junit.CleanDatabaseTestSetup.setUp(CleanDatabaseTestSetup.java:103)
at junit.extensions.TestSetup$1.protect(TestSetup.java:20)
at junit.extensions.TestSetup.run(TestSetup.java:25)
at
org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
Caused by: ERROR XJ041: Failed to create database 'wombat', see the next
exception for details.
at
org.apache.derby.iapi.error.StandardException.newException(StandardException.java:290)
at
org.apache.derby.impl.jdbc.SQLExceptionFactory.wrapArgsForTransportAcrossDRDA(SQLExceptionFactory.java:162)
at
org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:74)
... 23 more
Caused by: ERROR XBM01: Startup failed due to an exception. See next exception
for details.
at
org.apache.derby.iapi.error.StandardException.newException(StandardException.java:290)
at
org.apache.derby.iapi.services.monitor.Monitor.exceptionStartingModule(Monitor.java:681)
at
org.apache.derby.impl.services.monitor.BaseMonitor.bootService(BaseMonitor.java:1823)
at
org.apache.derby.impl.services.monitor.BaseMonitor.createPersistentService(BaseMonitor.java:988)
at
org.apache.derby.impl.services.monitor.FileMonitor.createPersistentService(FileMonitor.java:48)
at
org.apache.derby.iapi.services.monitor.Monitor.createPersistentService(Monitor.java:592)
at
org.apache.derby.impl.jdbc.EmbedConnection.createDatabase(EmbedConnection.java:2640)
... 20 more
Caused by: org.apache.derby.shared.common.sanity.AssertFailure: ASSERT FAILED
Unable to Acquire Exclusive Lock on
/home/jrockitqa/rhillegas/testRun/system/wombat/dbex.lck
at
org.apache.derby.shared.common.sanity.SanityManager.THROWASSERT(SanityManager.java:162)
at
org.apache.derby.impl.io.DirFile.getExclusiveFileLock(DirFile.java:260)
at
org.apache.derby.impl.store.raw.data.BaseDataFileFactory.privGetJBMSLockOnDB(BaseDataFileFactory.java:1953)
at
org.apache.derby.impl.store.raw.data.BaseDataFileFactory.run(BaseDataFileFactory.java:2907)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.derby.impl.store.raw.data.BaseDataFileFactory.getJBMSLockOnDB(BaseDataFileFactory.java:1829)
at
org.apache.derby.impl.store.raw.data.BaseDataFileFactory.boot(BaseDataFileFactory.java:335)
at
org.apache.derby.impl.services.monitor.BaseMonitor.boot(BaseMonitor.java:1968)
at
org.apache.derby.impl.services.monitor.TopService.bootModule(TopService.java:334)
at
org.apache.derby.impl.services.monitor.BaseMonitor.startModule(BaseMonitor.java:543)
at
org.apache.derby.impl.services.monitor.FileMonitor.startModule(FileMonitor.java:48)
at
org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Monitor.java:423)
at org.apache.derby.impl.store.raw.RawStore.boot(RawStore.java:189)
at
org.apache.derby.impl.services.monitor.BaseMonitor.boot(BaseMonitor.java:1968)
at
org.apache.derby.impl.services.monitor.TopService.bootModule(TopService.java:334)
at
org.apache.derby.impl.services.monitor.BaseMonitor.startModule(BaseMonitor.java:543)
at
org.apache.derby.impl.services.monitor.FileMonitor.startModule(FileMonitor.java:48)
at
org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Monitor.java:423)
at
org.apache.derby.impl.store.access.RAMAccessManager.boot(RAMAccessManager.java:1035)
at
org.apache.derby.impl.services.monitor.BaseMonitor.boot(BaseMonitor.java:1968)
at
org.apache.derby.impl.services.monitor.TopService.bootModule(TopService.java:334)
at
org.apache.derby.impl.services.monitor.BaseMonitor.startModule(BaseMonitor.java:543)
at
org.apache.derby.impl.services.monitor.FileMonitor.startModule(FileMonitor.java:48)
at
org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Monitor.java:423)
at
org.apache.derby.impl.db.BasicDatabase.bootStore(BasicDatabase.java:776)
at org.apache.derby.impl.db.BasicDatabase.boot(BasicDatabase.java:185)
at
org.apache.derby.impl.services.monitor.BaseMonitor.boot(BaseMonitor.java:1968)
at
org.apache.derby.impl.services.monitor.TopService.bootModule(TopService.java:334)
at
org.apache.derby.impl.services.monitor.BaseMonitor.bootService(BaseMonitor.java:1796)
... 24 more
Caused by: java.io.IOException: No locks available
at sun.nio.ch.FileChannelImpl.lock0(Native Method)
at sun.nio.ch.FileChannelImpl.tryLock(FileChannelImpl.java:876)
at java.nio.channels.FileChannel.tryLock(FileChannel.java:962)
at
org.apache.derby.impl.io.DirFile.getExclusiveFileLock(DirFile.java:215)
... 51 more
{noformat}
> Error in DatabaseClassLoadingTest.testSignedJar
> -----------------------------------------------
>
> Key: DERBY-6700
> URL: https://issues.apache.org/jira/browse/DERBY-6700
> Project: Derby
> Issue Type: Bug
> Components: Test
> Affects Versions: 10.11.1.1
> Reporter: Rick Hillegas
>
> The following error was seen in a continuous integration run on the 10.11
> branch on platform ia32_jdk6:
> http://download.java.net/javadesktop/derby/request_5594356/
> {noformat}
> java.sql.SQLSyntaxErrorException: The class
> 'org.apache.derbyTesting.databaseclassloader.emc' does not exist or is
> inaccessible. This can happen if the class is not public.
> at
> org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:95)
> at
> org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:133)
> at org.apache.derby.impl.jdbc.Util.seeNextException(Util.java:255)
> at
> org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(TransactionResourceImpl.java:431)
> at
> org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(TransactionResourceImpl.java:353)
> at
> org.apache.derby.impl.jdbc.EmbedConnection.handleException(EmbedConnection.java:2396)
> at
> org.apache.derby.impl.jdbc.ConnectionChild.handleException(ConnectionChild.java:82)
> at
> org.apache.derby.impl.jdbc.EmbedPreparedStatement.<init>(EmbedPreparedStatement.java:152)
> at
> org.apache.derby.jdbc.InternalDriver.newEmbedPreparedStatement(InternalDriver.java:727)
> at
> org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(EmbedConnection.java:1734)
> at
> org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(EmbedConnection.java:1562)
> at
> org.apache.derbyTesting.functionTests.tests.lang.DatabaseClassLoadingTest.signersTests(DatabaseClassLoadingTest.java:552)
> at
> org.apache.derbyTesting.functionTests.tests.lang.DatabaseClassLoadingTest.testSignedJar(DatabaseClassLoadingTest.java:546)
> at
> org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:118)
> at
> org.apache.derbyTesting.junit.BaseJDBCTestCase.runBareOverridable(BaseJDBCTestCase.java:440)
> at
> org.apache.derbyTesting.junit.BaseJDBCTestCase.runBare(BaseJDBCTestCase.java:457)
> 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: ERROR 42X51: The class
> 'org.apache.derbyTesting.databaseclassloader.emc' does not exist or is
> inaccessible. This can happen if the class is not public.
> at
> org.apache.derby.iapi.error.StandardException.newException(StandardException.java:290)
> at
> org.apache.derby.impl.jdbc.SQLExceptionFactory.wrapArgsForTransportAcrossDRDA(SQLExceptionFactory.java:162)
> at
> org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:74)
> Caused by: java.lang.ClassNotFoundException:
> org.apache.derbyTesting.databaseclassloader.emc : Security exception thrown
> accessing class org.apache.derbyTesting.databaseclassloader.emc in jar
> "EMC"."MAIL_APP" : NotBefore: Thu Dec 01 19:06:44 CET 2005
> at
> org.apache.derby.impl.services.reflect.DatabaseClasses.loadApplicationClass(DatabaseClasses.java:254)
> at
> org.apache.derby.iapi.services.loader.ClassInspector.getClass(ClassInspector.java:935)
> at
> org.apache.derby.iapi.services.loader.ClassInspector.accessible(ClassInspector.java:131)
> at
> org.apache.derby.impl.sql.compile.QueryTreeNode.verifyClassExist(QueryTreeNode.java:1217)
> at
> org.apache.derby.impl.sql.compile.StaticMethodCallNode.bindExpressionMinion(StaticMethodCallNode.java:384)
> at
> org.apache.derby.impl.sql.compile.StaticMethodCallNode.bindExpression(StaticMethodCallNode.java:209)
> at
> org.apache.derby.impl.sql.compile.JavaToSQLValueNode.bindExpression(JavaToSQLValueNode.java:229)
> at
> org.apache.derby.impl.sql.compile.ResultColumn.bindExpression(ResultColumn.java:740)
> at
> org.apache.derby.impl.sql.compile.ResultColumnList.bindExpressions(ResultColumnList.java:824)
> at
> org.apache.derby.impl.sql.compile.RowResultSetNode.bindExpressions(RowResultSetNode.java:227)
> at
> org.apache.derby.impl.sql.compile.DMLStatementNode.bindExpressions(DMLStatementNode.java:209)
> at
> org.apache.derby.impl.sql.compile.DMLStatementNode.bind(DMLStatementNode.java:130)
> at
> org.apache.derby.impl.sql.compile.CursorNode.bindStatement(CursorNode.java:283)
> at
> org.apache.derby.impl.sql.GenericStatement.prepMinion(GenericStatement.java:401)
> at
> org.apache.derby.impl.sql.GenericStatement.prepare(GenericStatement.java:99)
> at
> org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternalStatement(GenericLanguageConnectionContext.java:1114)
> at
> org.apache.derby.impl.jdbc.EmbedPreparedStatement.<init>(EmbedPreparedStatement.java:134)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.2#6252)