[
https://issues.apache.org/jira/browse/DERBY-7124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17402684#comment-17402684
]
Richard N. Hillegas commented on DERBY-7124:
--------------------------------------------
I made LoginTimeoutTest drop the procedure it creates. When I run just
junit-all, I get clean results except for the following permissions problem in
org.apache.derbyTesting.functionTests.tests.lang.XMLBindingTest:
{noformat}
<testcase
classname="org.apache.derbyTesting.functionTests.tests.lang.XMLBindingTest$XBindTestSetup"
name="unknown" time="0.0">
<error message="Invalid XML Document: access denied ("java.io.FilePermission"
"/Users/rhillegas/derby/mainline/trunk/junit_20210821_1025/extin/personal.dtd"
"read")" type="java.sql.SQLDataException">
java.sql.SQLDataException: Invalid XML Document: access denied
("java.io.FilePermission"
"/Users/rhillegas/derby/mainline/trunk/junit_20210821_1025/extin/personal.dtd"
"read") at
org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:84)
at
org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:141)
at org.apache.derby.impl.jdbc.Util.seeNextException(Util.java:252) at
org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(TransactionResourceImpl.java:438)
at
org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(TransactionResourceImpl.java:360)
at
org.apache.derby.impl.jdbc.EmbedConnection.handleException(EmbedConnection.java:2405)
at
org.apache.derby.impl.jdbc.ConnectionChild.handleException(ConnectionChild.java:88)
at
org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(EmbedStatement.java:1436)
at
org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(EmbedPreparedStatement.java:1709)
at
org.apache.derby.impl.jdbc.EmbedPreparedStatement.execute(EmbedPreparedStatement.java:1394)
at org.apache.derbyTesting.junit.XML.insertDocWithDTD(XML.java:206) at
org.apache.derbyTesting.functionTests.tests.lang.XMLBindingTest$XBindTestSetup.setUp(XMLBindingTest.java:306)
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:60) 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) Caused by: ERROR 2200M:
Invalid XML Document: access denied ("java.io.FilePermission"
"/Users/rhillegas/derby/mainline/trunk/junit_20210821_1025/extin/personal.dtd"
"read") at
org.apache.derby.shared.common.error.StandardException.newException(StandardException.java:300)
at
org.apache.derby.impl.jdbc.SQLExceptionFactory.wrapArgsForTransportAcrossDRDA(SQLExceptionFactory.java:170)
at
org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:75)
Caused by: java.security.AccessControlException: access denied
("java.io.FilePermission"
"/Users/rhillegas/derby/mainline/trunk/junit_20210821_1025/extin/personal.dtd"
"read") at
java.base/java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
at
java.base/java.security.AccessController.checkPermission(AccessController.java:895)
at
java.base/java.lang.SecurityManager.checkPermission(SecurityManager.java:322)
at java.base/java.lang.SecurityManager.checkRead(SecurityManager.java:661) at
java.base/java.io.File.isDirectory(File.java:845) at
java.base/sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:78)
at
java.base/sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:184)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source) at
org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source) at
org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source) at
org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown
Source) at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at
org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at
org.apache.xerces.parsers.DOMParser.parse(Unknown Source) at
org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) at
org.apache.derby.iapi.types.SqlXmlUtil$1.run(SqlXmlUtil.java:331) at
org.apache.derby.iapi.types.SqlXmlUtil$1.run(SqlXmlUtil.java:328) at
java.base/java.security.AccessController.doPrivileged(Native Method) at
org.apache.derby.iapi.types.SqlXmlUtil.serializeToString(SqlXmlUtil.java:326)
at org.apache.derby.iapi.types.XML.XMLParse(XML.java:630) at
org.apache.derby.exe.ac2654b365x017bx69c7x2ca0x000057fb2baa0.e0(Unknown Source)
at
org.apache.derby.impl.services.reflect.DirectCall.invoke(ReflectGeneratedClass.java:101)
at
org.apache.derby.impl.sql.execute.RowResultSet.getNextRowCore(RowResultSet.java:150)
at
org.apache.derby.impl.sql.execute.NormalizeResultSet.getNextRowCore(NormalizeResultSet.java:188)
at
org.apache.derby.impl.sql.execute.DMLWriteResultSet.getNextRowCore(DMLWriteResultSet.java:148)
at
org.apache.derby.impl.sql.execute.InsertResultSet.getNextRowCore(InsertResultSet.java:1082)
at
org.apache.derby.impl.sql.execute.InsertResultSet.open(InsertResultSet.java:451)
at
org.apache.derby.impl.sql.GenericPreparedStatement.executeStmt(GenericPreparedStatement.java:472)
at
org.apache.derby.impl.sql.GenericPreparedStatement.execute(GenericPreparedStatement.java:351)
at
org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(EmbedStatement.java:1344)
</error>
</testcase>
{noformat}
> Errors seen while running the junit-all target
> ----------------------------------------------
>
> Key: DERBY-7124
> URL: https://issues.apache.org/jira/browse/DERBY-7124
> Project: Derby
> Issue Type: Task
> Components: Test
> Affects Versions: 10.16.0.0
> Reporter: Richard N. Hillegas
> Assignee: Richard N. Hillegas
> Priority: Major
>
> When I run the following commands...
> {noformat}
> ant clean
> ant all
> ant junit-clean junit-all junitreport
> {noformat}
> ...I see the following output:
> {noformat}
> [junit] Running org.apache.derbyTesting.junit.EnvTest
> [junit] Tests run: 18, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
> 5.344 sec
> [junit] Running
> org.apache.derbyTesting.functionTests.tests.derbynet._Suite
> [junit] Tests run: 338, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
> 342.785 sec
> [junit] Running org.apache.derbyTesting.functionTests.tests.tools._Suite
> [junit] Tests run: 129, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
> 78.403 sec
> [junit] Running org.apache.derbyTesting.functionTests.tests.demo._Suite
> [junit] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
> 50.304 sec
> [junit] Running org.apache.derbyTesting.functionTests.tests.lang._Suite
> [junit] Tests run: 3236, Failures: 0, Errors: 1, Skipped: 0, Time
> elapsed: 1,069.957 sec
> [junit] Test org.apache.derbyTesting.functionTests.tests.lang._Suite
> FAILED
> [junit] Running org.apache.derbyTesting.functionTests.tests.jdbcapi._Suite
> [junit] Tests run: 8015, Failures: 0, Errors: 0, Skipped: 0, Time
> elapsed: 1,255.236 sec
> [junit] Running org.apache.derbyTesting.functionTests.tests.store._Suite
> [junit] Tests run: 346, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
> 542.981 sec
> [junit] Running org.apache.derbyTesting.functionTests.tests.engine._Suite
> [junit] Tests run: 39, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
> 160.282 sec
> [junit] Running
> org.apache.derbyTesting.functionTests.tests.replicationTests.ReplicationSuite
> [junit] Tests run: 23, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
> 423.346 sec
> [junit] Running org.apache.derbyTesting.unitTests.junit._Suite
> [junit] Tests run: 169, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
> 11.151 sec
> [junit] Running
> org.apache.derbyTesting.functionTests.tests.upgradeTests._Suite
> [junit] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
> 5.176 sec
> [junit] Running
> org.apache.derbyTesting.functionTests.suites.EncryptionSuite
> [junit] Tests run: 203, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
> 26.483 sec
> {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)