[
https://issues.apache.org/jira/browse/DERBY-6700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14091072#comment-14091072
]
Rick Hillegas commented on DERBY-6700:
--------------------------------------
I have instrumented JarLoader to print the original security exception. Here it
is:
{noformat}
java.security.cert.CertificateNotYetValidException: NotBefore: Thu Dec 01
19:06:44 CET 2005
at
sun.security.x509.CertificateValidity.valid(CertificateValidity.java:252)
at sun.security.x509.X509CertImpl.checkValidity(X509CertImpl.java:568)
at sun.security.x509.X509CertImpl.checkValidity(X509CertImpl.java:541)
at org.apache.derby.impl.services.reflect.JarLoader.getSigners(Unknown
Source)
at
org.apache.derby.impl.services.reflect.JarLoader.loadClassData(Unknown Source)
at
org.apache.derby.impl.services.reflect.JarLoader.loadClassDataFromJar(Unknown
Source)
at
org.apache.derby.impl.services.reflect.JarLoader.loadClassData(Unknown Source)
at
org.apache.derby.impl.services.reflect.UpdateLoader.loadClass(Unknown Source)
at
org.apache.derby.impl.services.reflect.DatabaseClasses.loadApplicationClass(Unknown
Source)
at
org.apache.derby.iapi.services.loader.ClassInspector.getClass(Unknown Source)
at
org.apache.derby.iapi.services.loader.ClassInspector.accessible(Unknown Source)
at
org.apache.derby.impl.sql.compile.QueryTreeNode.verifyClassExist(Unknown Source)
at
org.apache.derby.impl.sql.compile.StaticMethodCallNode.bindExpressionMinion(Unknown
Source)
at
org.apache.derby.impl.sql.compile.StaticMethodCallNode.bindExpression(Unknown
Source)
at
org.apache.derby.impl.sql.compile.JavaToSQLValueNode.bindExpression(Unknown
Source)
at
org.apache.derby.impl.sql.compile.ResultColumn.bindExpression(Unknown Source)
at
org.apache.derby.impl.sql.compile.ResultColumnList.bindExpressions(Unknown
Source)
at
org.apache.derby.impl.sql.compile.RowResultSetNode.bindExpressions(Unknown
Source)
at
org.apache.derby.impl.sql.compile.DMLStatementNode.bindExpressions(Unknown
Source)
at org.apache.derby.impl.sql.compile.DMLStatementNode.bind(Unknown
Source)
at org.apache.derby.impl.sql.compile.CursorNode.bindStatement(Unknown
Source)
at org.apache.derby.impl.sql.GenericStatement.prepMinion(Unknown Source)
at org.apache.derby.impl.sql.GenericStatement.prepare(Unknown Source)
at
org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternalStatement(Unknown
Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.<init>(Unknown
Source)
at
org.apache.derby.jdbc.InternalDriver.newEmbedPreparedStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown
Source)
at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown
Source)
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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at junit.framework.TestCase.runTest(TestCase.java:164)
at junit.framework.TestCase.runBare(TestCase.java:130)
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.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
at junit.framework.TestResult.runProtected(TestResult.java:124)
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.framework.TestResult.runProtected(TestResult.java:124)
at junit.extensions.TestSetup.run(TestSetup.java:25)
at
org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
at junit.textui.TestRunner.doRun(TestRunner.java:121)
at junit.textui.TestRunner.start(TestRunner.java:185)
at junit.textui.TestRunner.main(TestRunner.java:143)
java.lang.SecurityException: 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.JarLoader.handleException(Unknown Source)
at org.apache.derby.impl.services.reflect.JarLoader.getSigners(Unknown
Source)
at
org.apache.derby.impl.services.reflect.JarLoader.loadClassData(Unknown Source)
at
org.apache.derby.impl.services.reflect.JarLoader.loadClassDataFromJar(Unknown
Source)
at
org.apache.derby.impl.services.reflect.JarLoader.loadClassData(Unknown Source)
at
org.apache.derby.impl.services.reflect.UpdateLoader.loadClass(Unknown Source)
at
org.apache.derby.impl.services.reflect.DatabaseClasses.loadApplicationClass(Unknown
Source)
at
org.apache.derby.iapi.services.loader.ClassInspector.getClass(Unknown Source)
at
org.apache.derby.iapi.services.loader.ClassInspector.accessible(Unknown Source)
at
org.apache.derby.impl.sql.compile.QueryTreeNode.verifyClassExist(Unknown Source)
at
org.apache.derby.impl.sql.compile.StaticMethodCallNode.bindExpressionMinion(Unknown
Source)
at
org.apache.derby.impl.sql.compile.StaticMethodCallNode.bindExpression(Unknown
Source)
at
org.apache.derby.impl.sql.compile.JavaToSQLValueNode.bindExpression(Unknown
Source)
at
org.apache.derby.impl.sql.compile.ResultColumn.bindExpression(Unknown Source)
at
org.apache.derby.impl.sql.compile.ResultColumnList.bindExpressions(Unknown
Source)
at
org.apache.derby.impl.sql.compile.RowResultSetNode.bindExpressions(Unknown
Source)
at
org.apache.derby.impl.sql.compile.DMLStatementNode.bindExpressions(Unknown
Source)
at org.apache.derby.impl.sql.compile.DMLStatementNode.bind(Unknown
Source)
at org.apache.derby.impl.sql.compile.CursorNode.bindStatement(Unknown
Source)
at org.apache.derby.impl.sql.GenericStatement.prepMinion(Unknown Source)
at org.apache.derby.impl.sql.GenericStatement.prepare(Unknown Source)
at
org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternalStatement(Unknown
Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.<init>(Unknown
Source)
at
org.apache.derby.jdbc.InternalDriver.newEmbedPreparedStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown
Source)
at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown
Source)
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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at junit.framework.TestCase.runTest(TestCase.java:164)
at junit.framework.TestCase.runBare(TestCase.java:130)
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.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
at junit.framework.TestResult.runProtected(TestResult.java:124)
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.framework.TestResult.runProtected(TestResult.java:124)
at junit.extensions.TestSetup.run(TestSetup.java:25)
at
org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
at junit.textui.TestRunner.doRun(TestRunner.java:121)
at junit.textui.TestRunner.start(TestRunner.java:185)
at junit.textui.TestRunner.main(TestRunner.java:143)
E..XXX JarLoader caught SHA1 digest error for
org/apache/derbyTesting/databaseclassloader/emc.class which is a
java.lang.SecurityException
java.lang.SecurityException: SHA1 digest error for
org/apache/derbyTesting/databaseclassloader/emc.class
at
sun.security.util.ManifestEntryVerifier.verify(ManifestEntryVerifier.java:198)
at java.util.jar.JarVerifier.processEntry(JarVerifier.java:212)
at java.util.jar.JarVerifier.update(JarVerifier.java:199)
at java.util.jar.JarVerifier$VerifierStream.read(JarVerifier.java:449)
at org.apache.derby.iapi.services.io.InputStreamUtil.readFully(Unknown
Source)
at org.apache.derby.impl.services.reflect.JarLoader.readData(Unknown
Source)
at
org.apache.derby.impl.services.reflect.JarLoader.loadClassData(Unknown Source)
at
org.apache.derby.impl.services.reflect.JarLoader.loadClassDataFromJar(Unknown
Source)
at
org.apache.derby.impl.services.reflect.JarLoader.loadClassData(Unknown Source)
at
org.apache.derby.impl.services.reflect.UpdateLoader.loadClass(Unknown Source)
at
org.apache.derby.impl.services.reflect.DatabaseClasses.loadApplicationClass(Unknown
Source)
at
org.apache.derby.iapi.services.loader.ClassInspector.getClass(Unknown Source)
at
org.apache.derby.iapi.services.loader.ClassInspector.accessible(Unknown Source)
at
org.apache.derby.impl.sql.compile.QueryTreeNode.verifyClassExist(Unknown Source)
at
org.apache.derby.impl.sql.compile.StaticMethodCallNode.bindExpressionMinion(Unknown
Source)
at
org.apache.derby.impl.sql.compile.StaticMethodCallNode.bindExpression(Unknown
Source)
at
org.apache.derby.impl.sql.compile.JavaToSQLValueNode.bindExpression(Unknown
Source)
at
org.apache.derby.impl.sql.compile.CallStatementNode.bindStatement(Unknown
Source)
at org.apache.derby.impl.sql.GenericStatement.prepMinion(Unknown Source)
at org.apache.derby.impl.sql.GenericStatement.prepare(Unknown Source)
at
org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternalStatement(Unknown
Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.<init>(Unknown
Source)
at org.apache.derby.impl.jdbc.EmbedCallableStatement.<init>(Unknown
Source)
at
org.apache.derby.jdbc.InternalDriver.newEmbedCallableStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.prepareCall(Unknown
Source)
at org.apache.derby.impl.jdbc.EmbedConnection.prepareCall(Unknown
Source)
at
org.apache.derbyTesting.junit.BaseJDBCTestCase.prepareCall(BaseJDBCTestCase.java:350)
at
org.apache.derbyTesting.functionTests.tests.lang.DatabaseClassLoadingTest.testHackedJarReplacedClass(DatabaseClassLoadingTest.java:580)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at junit.framework.TestCase.runTest(TestCase.java:164)
at junit.framework.TestCase.runBare(TestCase.java:130)
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.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
at junit.framework.TestResult.runProtected(TestResult.java:124)
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.framework.TestResult.runProtected(TestResult.java:124)
at junit.extensions.TestSetup.run(TestSetup.java:25)
at
org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
at junit.textui.TestRunner.doRun(TestRunner.java:121)
at junit.textui.TestRunner.start(TestRunner.java:185)
at junit.textui.TestRunner.main(TestRunner.java:143)
java.lang.SecurityException: Security exception thrown accessing class
org.apache.derbyTesting.databaseclassloader.emc in jar "EMC"."MAIL_APP" : SHA1
digest error for org/apache/derbyTesting/databaseclassloader/emc.class
at
org.apache.derby.impl.services.reflect.JarLoader.handleException(Unknown Source)
at org.apache.derby.impl.services.reflect.JarLoader.readData(Unknown
Source)
at
org.apache.derby.impl.services.reflect.JarLoader.loadClassData(Unknown Source)
at
org.apache.derby.impl.services.reflect.JarLoader.loadClassDataFromJar(Unknown
Source)
at
org.apache.derby.impl.services.reflect.JarLoader.loadClassData(Unknown Source)
at
org.apache.derby.impl.services.reflect.UpdateLoader.loadClass(Unknown Source)
at
org.apache.derby.impl.services.reflect.DatabaseClasses.loadApplicationClass(Unknown
Source)
at
org.apache.derby.iapi.services.loader.ClassInspector.getClass(Unknown Source)
at
org.apache.derby.iapi.services.loader.ClassInspector.accessible(Unknown Source)
at
org.apache.derby.impl.sql.compile.QueryTreeNode.verifyClassExist(Unknown Source)
at
org.apache.derby.impl.sql.compile.StaticMethodCallNode.bindExpressionMinion(Unknown
Source)
at
org.apache.derby.impl.sql.compile.StaticMethodCallNode.bindExpression(Unknown
Source)
at
org.apache.derby.impl.sql.compile.JavaToSQLValueNode.bindExpression(Unknown
Source)
at
org.apache.derby.impl.sql.compile.CallStatementNode.bindStatement(Unknown
Source)
at org.apache.derby.impl.sql.GenericStatement.prepMinion(Unknown Source)
at org.apache.derby.impl.sql.GenericStatement.prepare(Unknown Source)
at
org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternalStatement(Unknown
Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.<init>(Unknown
Source)
at org.apache.derby.impl.jdbc.EmbedCallableStatement.<init>(Unknown
Source)
at
org.apache.derby.jdbc.InternalDriver.newEmbedCallableStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.prepareCall(Unknown
Source)
at org.apache.derby.impl.jdbc.EmbedConnection.prepareCall(Unknown
Source)
at
org.apache.derbyTesting.junit.BaseJDBCTestCase.prepareCall(BaseJDBCTestCase.java:350)
at
org.apache.derbyTesting.functionTests.tests.lang.DatabaseClassLoadingTest.testHackedJarReplacedClass(DatabaseClassLoadingTest.java:580)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at junit.framework.TestCase.runTest(TestCase.java:164)
at junit.framework.TestCase.runBare(TestCase.java:130)
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.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
at junit.framework.TestResult.runProtected(TestResult.java:124)
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.framework.TestResult.runProtected(TestResult.java:124)
at junit.extensions.TestSetup.run(TestSetup.java:25)
at
org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
at junit.textui.TestRunner.doRun(TestRunner.java:121)
at junit.textui.TestRunner.start(TestRunner.java:185)
at junit.textui.TestRunner.main(TestRunner.java:143)
....java.lang.SecurityException: Prohibited package name: java.sql
at java.lang.ClassLoader.preDefineClass(ClassLoader.java:485)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.lang.ClassLoader.defineClass(ClassLoader.java:471)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:139)
at
org.apache.derby.impl.services.reflect.JarLoader.loadClassData(Unknown Source)
at
org.apache.derby.impl.services.reflect.JarLoader.loadClassDataFromJar(Unknown
Source)
at
org.apache.derby.impl.services.reflect.JarLoader.loadClassData(Unknown Source)
at
org.apache.derby.impl.services.reflect.UpdateLoader.loadClass(Unknown Source)
at
org.apache.derby.impl.services.reflect.DatabaseClasses.loadApplicationClass(Unknown
Source)
at
org.apache.derby.iapi.services.loader.ClassInspector.getClass(Unknown Source)
at
org.apache.derby.iapi.services.loader.ClassInspector.accessible(Unknown Source)
at
org.apache.derby.impl.sql.compile.QueryTreeNode.verifyClassExist(Unknown Source)
at
org.apache.derby.impl.sql.compile.StaticMethodCallNode.bindExpressionMinion(Unknown
Source)
at
org.apache.derby.impl.sql.compile.StaticMethodCallNode.bindExpression(Unknown
Source)
at
org.apache.derby.impl.sql.compile.JavaToSQLValueNode.bindExpression(Unknown
Source)
at
org.apache.derby.impl.sql.compile.CallStatementNode.bindStatement(Unknown
Source)
at org.apache.derby.impl.sql.GenericStatement.prepMinion(Unknown Source)
at org.apache.derby.impl.sql.GenericStatement.prepare(Unknown Source)
at
org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternalStatement(Unknown
Source)
at org.apache.derby.impl.jdbc.EmbedStatement.execute(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedStatement.execute(Unknown Source)
at
org.apache.derbyTesting.functionTests.tests.lang.DatabaseClassLoadingTest.loadJavaClass(DatabaseClassLoadingTest.java:771)
at
org.apache.derbyTesting.functionTests.tests.lang.DatabaseClassLoadingTest.testLoadJavaClassDirectly(DatabaseClassLoadingTest.java:714)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at junit.framework.TestCase.runTest(TestCase.java:164)
at junit.framework.TestCase.runBare(TestCase.java:130)
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.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
at junit.framework.TestResult.runProtected(TestResult.java:124)
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.framework.TestResult.runProtected(TestResult.java:124)
at junit.extensions.TestSetup.run(TestSetup.java:25)
at
org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
at junit.textui.TestRunner.doRun(TestRunner.java:121)
at junit.textui.TestRunner.start(TestRunner.java:185)
at junit.textui.TestRunner.main(TestRunner.java:143)
.java.lang.SecurityException: Prohibited package name: java.derby99
at java.lang.ClassLoader.preDefineClass(ClassLoader.java:485)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.lang.ClassLoader.defineClass(ClassLoader.java:471)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:139)
at
org.apache.derby.impl.services.reflect.JarLoader.loadClassData(Unknown Source)
at
org.apache.derby.impl.services.reflect.JarLoader.loadClassDataFromJar(Unknown
Source)
at
org.apache.derby.impl.services.reflect.JarLoader.loadClassData(Unknown Source)
at
org.apache.derby.impl.services.reflect.UpdateLoader.loadClass(Unknown Source)
at
org.apache.derby.impl.services.reflect.DatabaseClasses.loadApplicationClass(Unknown
Source)
at
org.apache.derby.iapi.services.loader.ClassInspector.getClass(Unknown Source)
at
org.apache.derby.iapi.services.loader.ClassInspector.accessible(Unknown Source)
at
org.apache.derby.impl.sql.compile.QueryTreeNode.verifyClassExist(Unknown Source)
at
org.apache.derby.impl.sql.compile.StaticMethodCallNode.bindExpressionMinion(Unknown
Source)
at
org.apache.derby.impl.sql.compile.StaticMethodCallNode.bindExpression(Unknown
Source)
at
org.apache.derby.impl.sql.compile.JavaToSQLValueNode.bindExpression(Unknown
Source)
at
org.apache.derby.impl.sql.compile.CallStatementNode.bindStatement(Unknown
Source)
at org.apache.derby.impl.sql.GenericStatement.prepMinion(Unknown Source)
at org.apache.derby.impl.sql.GenericStatement.prepare(Unknown Source)
at
org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternalStatement(Unknown
Source)
at org.apache.derby.impl.jdbc.EmbedStatement.execute(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedStatement.execute(Unknown Source)
at
org.apache.derbyTesting.functionTests.tests.lang.DatabaseClassLoadingTest.loadJavaClass(DatabaseClassLoadingTest.java:771)
at
org.apache.derbyTesting.functionTests.tests.lang.DatabaseClassLoadingTest.testLoadJavaClassDirectly2(DatabaseClassLoadingTest.java:724)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at junit.framework.TestCase.runTest(TestCase.java:164)
at junit.framework.TestCase.runBare(TestCase.java:130)
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.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
at junit.framework.TestResult.runProtected(TestResult.java:124)
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.framework.TestResult.runProtected(TestResult.java:124)
at junit.extensions.TestSetup.run(TestSetup.java:25)
at
org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
at junit.textui.TestRunner.doRun(TestRunner.java:121)
at junit.textui.TestRunner.start(TestRunner.java:185)
at junit.textui.TestRunner.main(TestRunner.java:143)
.......XXX JarLoader caught NotBefore: Thu Dec 01 19:06:44 CET 2005 which is a
java.security.cert.CertificateNotYetValidException
java.security.cert.CertificateNotYetValidException: NotBefore: Thu Dec 01
19:06:44 CET 2005
at
sun.security.x509.CertificateValidity.valid(CertificateValidity.java:252)
at sun.security.x509.X509CertImpl.checkValidity(X509CertImpl.java:568)
at sun.security.x509.X509CertImpl.checkValidity(X509CertImpl.java:541)
at org.apache.derby.impl.services.reflect.JarLoader.getSigners(Unknown
Source)
at
org.apache.derby.impl.services.reflect.JarLoader.loadClassData(Unknown Source)
at
org.apache.derby.impl.services.reflect.JarLoader.loadClassData(Unknown Source)
at
org.apache.derby.impl.services.reflect.JarLoader.loadClassData(Unknown Source)
at
org.apache.derby.impl.services.reflect.UpdateLoader.loadClass(Unknown Source)
at
org.apache.derby.impl.services.reflect.DatabaseClasses.loadApplicationClass(Unknown
Source)
at
org.apache.derby.iapi.services.loader.ClassInspector.getClass(Unknown Source)
at
org.apache.derby.iapi.services.loader.ClassInspector.accessible(Unknown Source)
at
org.apache.derby.impl.sql.compile.QueryTreeNode.verifyClassExist(Unknown Source)
at
org.apache.derby.impl.sql.compile.StaticMethodCallNode.bindExpressionMinion(Unknown
Source)
at
org.apache.derby.impl.sql.compile.StaticMethodCallNode.bindExpression(Unknown
Source)
at
org.apache.derby.impl.sql.compile.JavaToSQLValueNode.bindExpression(Unknown
Source)
at
org.apache.derby.impl.sql.compile.CallStatementNode.bindStatement(Unknown
Source)
at org.apache.derby.impl.sql.GenericStatement.prepMinion(Unknown Source)
at org.apache.derby.impl.sql.GenericStatement.prepare(Unknown Source)
at
org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternalStatement(Unknown
Source)
at org.apache.derby.impl.jdbc.EmbedStatement.execute(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedStatement.execute(Unknown Source)
at
org.apache.derbyTesting.junit.BaseJDBCTestCase.assertStatementErrorMinion(BaseJDBCTestCase.java:1188)
at
org.apache.derbyTesting.junit.BaseJDBCTestCase.assertStatementError(BaseJDBCTestCase.java:1145)
at
org.apache.derbyTesting.junit.BaseJDBCTestCase.assertStatementError(BaseJDBCTestCase.java:1228)
at
org.apache.derbyTesting.functionTests.tests.lang.DatabaseClassLoadingTest.readOnlyTest(DatabaseClassLoadingTest.java:820)
at
org.apache.derbyTesting.functionTests.tests.lang.DatabaseClassLoadingTest.testDatabaseInJar(DatabaseClassLoadingTest.java:687)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at junit.framework.TestCase.runTest(TestCase.java:164)
at junit.framework.TestCase.runBare(TestCase.java:130)
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.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
at junit.framework.TestResult.runProtected(TestResult.java:124)
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.framework.TestResult.runProtected(TestResult.java:124)
at junit.extensions.TestSetup.run(TestSetup.java:25)
at
org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
at junit.textui.TestRunner.doRun(TestRunner.java:121)
at junit.textui.TestRunner.start(TestRunner.java:185)
at junit.textui.TestRunner.main(TestRunner.java:143)
java.lang.SecurityException: 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.JarLoader.handleException(Unknown Source)
at org.apache.derby.impl.services.reflect.JarLoader.getSigners(Unknown
Source)
at
org.apache.derby.impl.services.reflect.JarLoader.loadClassData(Unknown Source)
at
org.apache.derby.impl.services.reflect.JarLoader.loadClassData(Unknown Source)
at
org.apache.derby.impl.services.reflect.JarLoader.loadClassData(Unknown Source)
at
org.apache.derby.impl.services.reflect.UpdateLoader.loadClass(Unknown Source)
at
org.apache.derby.impl.services.reflect.DatabaseClasses.loadApplicationClass(Unknown
Source)
at
org.apache.derby.iapi.services.loader.ClassInspector.getClass(Unknown Source)
at
org.apache.derby.iapi.services.loader.ClassInspector.accessible(Unknown Source)
at
org.apache.derby.impl.sql.compile.QueryTreeNode.verifyClassExist(Unknown Source)
at
org.apache.derby.impl.sql.compile.StaticMethodCallNode.bindExpressionMinion(Unknown
Source)
at
org.apache.derby.impl.sql.compile.StaticMethodCallNode.bindExpression(Unknown
Source)
at
org.apache.derby.impl.sql.compile.JavaToSQLValueNode.bindExpression(Unknown
Source)
at
org.apache.derby.impl.sql.compile.CallStatementNode.bindStatement(Unknown
Source)
at org.apache.derby.impl.sql.GenericStatement.prepMinion(Unknown Source)
at org.apache.derby.impl.sql.GenericStatement.prepare(Unknown Source)
at
org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternalStatement(Unknown
Source)
at org.apache.derby.impl.jdbc.EmbedStatement.execute(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedStatement.execute(Unknown Source)
at
org.apache.derbyTesting.junit.BaseJDBCTestCase.assertStatementErrorMinion(BaseJDBCTestCase.java:1188)
at
org.apache.derbyTesting.junit.BaseJDBCTestCase.assertStatementError(BaseJDBCTestCase.java:1145)
at
org.apache.derbyTesting.junit.BaseJDBCTestCase.assertStatementError(BaseJDBCTestCase.java:1228)
at
org.apache.derbyTesting.functionTests.tests.lang.DatabaseClassLoadingTest.readOnlyTest(DatabaseClassLoadingTest.java:820)
at
org.apache.derbyTesting.functionTests.tests.lang.DatabaseClassLoadingTest.testDatabaseInJar(DatabaseClassLoadingTest.java:687)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at junit.framework.TestCase.runTest(TestCase.java:164)
at junit.framework.TestCase.runBare(TestCase.java:130)
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.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
at junit.framework.TestResult.runProtected(TestResult.java:124)
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.framework.TestResult.runProtected(TestResult.java:124)
at junit.extensions.TestSetup.run(TestSetup.java:25)
at
org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
at junit.textui.TestRunner.doRun(TestRunner.java:121)
at junit.textui.TestRunner.start(TestRunner.java:185)
at junit.textui.TestRunner.main(TestRunner.java:143)
{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)