Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-6413

test failure in XML tests, TriggerTests and BooleanValuesTest with ibm 1.6 sr 15 in 10.7 and earlier

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.6.2.4, 10.7.1.4
    • Component/s: Test
    • Labels:
      None
    • Environment:
      IBM JVM 1.6 sr 15.
    • Bug behavior facts:
      Regression Test Failure

      Description

      With the recently release IBM jvm 1.6 SR15 update I see the following failures:

      1) testTypesInActionStatement(org.apache.derbyTesting.functionTests.tests.lang.TriggerTest)java.sql.SQLException: Java exception: 'Access denied (java.lang.RuntimePermission accessClassInPackage.org.apache.xml.utils): java.security.AccessControlException'.
      at <unknown class>.<unknown method>(Unknown Source)
      at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
      at org.apache.derby.impl.jdbc.Util.javaException(Unknown Source)
      at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
      at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source)
      at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
      at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source)
      at org.apache.derby.impl.jdbc.EmbedStatement.execute(Unknown Source)
      at org.apache.derby.impl.jdbc.EmbedStatement.executeUpdate(Unknown Source)
      at org.apache.derbyTesting.functionTests.tests.lang.TriggerTest.actionTypesSetup(TriggerTest.java:958)
      at org.apache.derbyTesting.functionTests.tests.lang.TriggerTest.actionTypeTest(TriggerTest.java:922)
      at org.apache.derbyTesting.functionTests.tests.lang.TriggerTest.testTypesInActionStatement(TriggerTest.java:906)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
      at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:102)
      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: java.sql.SQLException: Java exception: 'Access denied (java.lang.RuntimePermission accessClassInPackage.org.apache.xml.utils): java.security.AccessControlException'.
      at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
      at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
      at <unknown class>.<unknown method>(Unknown Source)
      ... 38 more
      Caused by: java.security.AccessControlException: Access denied (java.lang.RuntimePermission accessClassInPackage.org.apache.xml.utils)
      at java.security.AccessController.throwACE(AccessController.java:100)
      at java.security.AccessController.checkPermission(AccessController.java:174)
      at java.lang.SecurityManager.checkPermission(SecurityManager.java:544)
      at java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:1539)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:643)
      at java.lang.J9VMInternals.verifyImpl(Native Method)
      at java.lang.J9VMInternals.verify(J9VMInternals.java:73)
      at java.lang.J9VMInternals.initialize(J9VMInternals.java:135)
      at org.apache.derby.impl.sql.compile.UnaryOperatorNode.bindXMLParse(Unknown Source)
      at org.apache.derby.impl.sql.compile.UnaryOperatorNode.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.InsertNode.bindStatement(Unknown Source)
      at org.apache.derby.impl.sql.compile.CreateTriggerNode.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)
      ... 32 more
      2) XML Type and Operators Suite
      java.sql.SQLException: Java exception: 'Access denied (java.lang.RuntimePermission accessClassInPackage.org.apache.xml.utils): java.security.AccessControlException'.
      at <unknown class>.<unknown method>(Unknown Source)
      at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
      at org.apache.derby.impl.jdbc.Util.javaException(Unknown Source)
      at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
      at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source)
      at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
      at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source)
      at org.apache.derby.impl.jdbc.EmbedStatement.execute(Unknown Source)
      at org.apache.derby.impl.jdbc.EmbedStatement.executeUpdate(Unknown Source)
      at org.apache.derbyTesting.junit.BaseJDBCTestCase.assertUpdateCount(BaseJDBCTestCase.java:1130)
      at org.apache.derbyTesting.functionTests.tests.lang.XMLTypeAndOpsTest$XMLTestSetup.setUp(XMLTypeAndOpsTest.java:2692)
      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: java.sql.SQLException: Java exception: 'Access denied (java.lang.RuntimePermission accessClassInPackage.org.apache.xml.utils): java.security.AccessControlException'.
      at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
      at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
      at <unknown class>.<unknown method>(Unknown Source)
      ... 25 more
      Caused by: java.security.AccessControlException: Access denied (java.lang.RuntimePermission accessClassInPackage.org.apache.xml.utils)
      at java.security.AccessController.throwACE(AccessController.java:100)
      at java.security.AccessController.checkPermission(AccessController.java:174)
      at java.lang.SecurityManager.checkPermission(SecurityManager.java:544)
      at java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:1539)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:643)
      at java.lang.J9VMInternals.verifyImpl(Native Method)
      at java.lang.J9VMInternals.verify(J9VMInternals.java:73)
      at java.lang.J9VMInternals.initialize(J9VMInternals.java:135)
      at org.apache.derby.impl.sql.compile.UnaryOperatorNode.bindXMLParse(Unknown Source)
      at org.apache.derby.impl.sql.compile.UnaryOperatorNode.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.InsertNode.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)
      ... 19 more
      3) XML Binding Suitejava.sql.SQLException: Java exception: 'Access denied (java.lang.RuntimePermission accessClassInPackage.org.apache.xml.utils): java.security.AccessControlException'.
      at <unknown class>.<unknown method>(Unknown Source)
      at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
      at org.apache.derby.impl.jdbc.Util.javaException(Unknown Source)
      at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
      at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source)
      at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
      at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source)
      at org.apache.derby.impl.jdbc.EmbedPreparedStatement.<init>(Unknown Source)
      at org.apache.derby.jdbc.Driver40.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.junit.XML.insertFile(XML.java:180)
      at org.apache.derbyTesting.functionTests.tests.lang.XMLBindingTest$XBindTestSetup.setUp(XMLBindingTest.java:291)
      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)
      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)
      Caused by: java.sql.SQLException: Java exception: 'Access denied (java.lang.RuntimePermission accessClassInPackage.org.apache.xml.utils): java.security.AccessControlException'.
      at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
      at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
      at <unknown class>.<unknown method>(Unknown Source)
      ... 31 more
      Caused by: java.security.AccessControlException: Access denied (java.lang.RuntimePermission accessClassInPackage.org.apache.xml.utils)
      at java.security.AccessController.throwACE(AccessController.java:100)
      at java.security.AccessController.checkPermission(AccessController.java:174)
      at java.lang.SecurityManager.checkPermission(SecurityManager.java:544)
      at java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:1539)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:643)
      at java.lang.J9VMInternals.verifyImpl(Native Method)
      at java.lang.J9VMInternals.verify(J9VMInternals.java:73)
      at java.lang.J9VMInternals.initialize(J9VMInternals.java:135)
      at org.apache.derby.impl.sql.compile.UnaryOperatorNode.bindXMLParse(Unknown Source)
      at org.apache.derby.impl.sql.compile.UnaryOperatorNode.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.InsertNode.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)
      ... 25 more

        Attachments

        1. DERBY-6413.diff_not4commit
          11 kB
          Myrna van Lunteren
        2. DERBY-6413.diff_nosecmgr
          5 kB
          Myrna van Lunteren

          Issue Links

            Activity

              People

              • Assignee:
                myrna Myrna van Lunteren
                Reporter:
                myrna Myrna van Lunteren
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: