[ https://issues.apache.org/jira/browse/DERBY-7110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17401964#comment-17401964 ]
Zeyuan Hu commented on DERBY-7110: ---------------------------------- Thanks for the reply. I have executed the following commands to run the test {code:java} $ svn co https://svn.apache.org/repos/asf/db/derby/code/trunk $ cd trunk $ ant all $ ant junit-clean junit-all junitreport{code} Then the test hangs at org.apache.derbyTesting.functionTests.tests.replicationTests.ReplicationSuite. I have uploaded the terminal printout as [^derby-test-printout.txt] for your reference. I take a look at the derby.log under db_master and see the following exceptions at the end {code:java} ============= begin nested exception, level (2) =========== ERROR XBM02: Startup failed due to missing functionality for org.apache.derby.iapi.store.raw.data.DataFactory. Please ensure your classpath includes the correct Derby software. at org.apache.derby.shared.common.error.StandardException.newException(StandardException.java:300) at org.apache.derby.shared.common.error.StandardException.newException(StandardException.java:295) at org.apache.derby.iapi.services.monitor.Monitor.missingImplementation(Monitor.java:730) at org.apache.derby.iapi.services.monitor.Monitor.findServiceModule(Monitor.java:519) at org.apache.derby.impl.sql.conn.GenericLanguageConnectionFactory$5.run(GenericLanguageConnectionFactory.java:569) at java.base/java.security.AccessController.doPrivileged(Native Method) at org.apache.derby.impl.sql.conn.GenericLanguageConnectionFactory.findServiceModule(GenericLanguageConnectionFactory.java:563) at org.apache.derby.impl.sql.conn.GenericLanguageConnectionFactory.boot(GenericLanguageConnectionFactory.java:322) at org.apache.derby.impl.services.monitor.BaseMonitor.boot(BaseMonitor.java:2004) at org.apache.derby.impl.services.monitor.TopService.bootModule(TopService.java:334) at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(BaseMonitor.java:540) at org.apache.derby.impl.services.monitor.FileMonitor.startModule(FileMonitor.java:48) at org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Monitor.java:460) at org.apache.derby.impl.db.BasicDatabase$5.run(BasicDatabase.java:1011) at java.base/java.security.AccessController.doPrivileged(Native Method) at org.apache.derby.impl.db.BasicDatabase.bootServiceModule(BasicDatabase.java:1005) at org.apache.derby.impl.db.BasicDatabase.boot(BasicDatabase.java:209) at org.apache.derby.impl.services.monitor.BaseMonitor.boot(BaseMonitor.java:2004) at org.apache.derby.impl.services.monitor.TopService.bootModule(TopService.java:334) at org.apache.derby.impl.services.monitor.BaseMonitor.bootService(BaseMonitor.java:1832) at org.apache.derby.impl.services.monitor.BaseMonitor.startProviderService(BaseMonitor.java:1698) at org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(BaseMonitor.java:1582) at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(BaseMonitor.java:1001) at org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Monitor.java:598) at org.apache.derby.impl.jdbc.EmbedConnection$4.run(EmbedConnection.java:4052) at org.apache.derby.impl.jdbc.EmbedConnection$4.run(EmbedConnection.java:4048) at java.base/java.security.AccessController.doPrivileged(Native Method) at org.apache.derby.impl.jdbc.EmbedConnection.startPersistentService(EmbedConnection.java:4046) at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(EmbedConnection.java:2818) at org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java:411) at org.apache.derby.iapi.jdbc.InternalDriver$1.run(InternalDriver.java:664) at org.apache.derby.iapi.jdbc.InternalDriver$1.run(InternalDriver.java:660) at java.base/java.security.AccessController.doPrivileged(Native Method) at org.apache.derby.iapi.jdbc.InternalDriver.getNewEmbedConnection(InternalDriver.java:658) at org.apache.derby.iapi.jdbc.InternalDriver.connect(InternalDriver.java:300) at org.apache.derby.impl.jdbc.authentication.NativeAuthenticationServiceImpl.authenticateRemotely(NativeAuthenticationServiceImpl.java:429) at org.apache.derby.impl.jdbc.authentication.NativeAuthenticationServiceImpl.authenticateUser(NativeAuthenticationServiceImpl.java:324) at org.apache.derby.impl.jdbc.authentication.AuthenticationServiceBase.authenticate(AuthenticationServiceBase.java:255) at org.apache.derby.impl.drda.NetworkServerControlImpl.checkShutdownPrivileges(NetworkServerControlImpl.java:1286) at org.apache.derby.impl.drda.NetworkServerControlImpl.processCommands(NetworkServerControlImpl.java:1845) at org.apache.derby.impl.drda.DRDAConnThread.sessionInitialState(DRDAConnThread.java:669) at org.apache.derby.impl.drda.DRDAConnThread.run(DRDAConnThread.java:288) ============= end nested exception, level (2) =========== Cleanup action completed Thu Aug 19 18:44:58 CDT 2021 : Derby shutdown warning: (40000) Failed to start database 'wombat' with class loader jdk.internal.loader.ClassLoaders$AppClassLoader@277050dc, see the next exception for details. {code} For other test failures, I check the "fail" directory for the test output and see the following tests failed so far {code:java} ├── DerbyNetClient │ └── AutoloadTest └── Embedded_40 ├── AutoloadTest ├── BootLockTest ├── ClassLoaderBootTest ├── ReplicationRun_Local ├── StoreScriptsTest └── SysinfoLocaleTest {code} I'm not sure what's the best starting point for troubleshooting. For the provided script, I think there might be some environment assumptions (e.g., environment variables, directory structure layout) you have made specific to your development environment. I was wondering can you please provide what are the relevant directories and how they locate respect to each other and any environment information I should set to run those scripts? I'll see if I can figure it out. If so, I'll update this comment. Thanks! > Make it possible to build and test Derby cleanly with OpenJDK 17 > ---------------------------------------------------------------- > > Key: DERBY-7110 > URL: https://issues.apache.org/jira/browse/DERBY-7110 > Project: Derby > Issue Type: Task > Components: Build tools > Affects Versions: 10.16.0.0 > Reporter: Richard N. Hillegas > Assignee: Richard N. Hillegas > Priority: Major > Attachments: derby-7110-01-aa-removeAngleBrackets.diff, > derby-7110-02-aa-suppressWarnings.diff, > derby-7110-03-aa-forkAntJavaTask.diff, derby-7110-03-ab-forkAntJavaTask.diff, > derby-test-printout.txt > > > Releases of Open JDK 17 can be found at https://jdk.java.net/17/. We should > adjust Derby as necessary so that it builds cleanly (including javadoc) and > tests cleanly with this version of the platform. -- This message was sent by Atlassian Jira (v8.3.4#803005)