Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0054490 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] Y. DBSourceManager | major | have not tried | 2024-01-29 13:42 | 2024-03-06 18:06 | |||
Reporter | shuehner | View Status | public | |||||
Assigned To | Triage Platform Base | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | PR24Q2 | |||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | ||||||||
Web browser | ||||||||
Modules | Core | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0054490: update.database fails with jdk21 | |||||||
Description | Running update.database with jdk21 fails with following error: [java] 24523 [main] INFO org.openbravo.ddlutils.task.AlterDatabaseDataAll - Executing script postscript-PostgreSql.sql [java] 24535 [main] INFO org.apache.ddlutils.platform.PGStandardBatchEvaluator - Executed 10 SQL command(s) successfully in 12 ms [java] 25413 [main] ERROR org.apache.commons.betwixt.io.AbstractBeanWriter - [MethodExpression] Cannot evaluate method public default java.lang.Object java.util.List.getFirst() [java] java.lang.reflect.InvocationTargetException: null [java] at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:118) ~[?:?] [java] at java.lang.reflect.Method.invoke(Method.java:580) ~[?:?] [java] at org.apache.commons.betwixt.expression.MethodExpression.evaluate(MethodExpression.java:62) [commons-betwixt-0.8.jar:0.8] [java] at org.apache.commons.betwixt.io.AbstractBeanWriter.writeElementContent(AbstractBeanWriter.java:940) [commons-betwixt-0.8.jar:0.8] [java] at org.apache.commons.betwixt.io.AbstractBeanWriter.writeElement(AbstractBeanWriter.java:756) [commons-betwixt-0.8.jar:0.8] [java] at org.apache.commons.betwixt.io.AbstractBeanWriter.writeBean(AbstractBeanWriter.java:391) [commons-betwixt-0.8.jar:0.8] [java] at org.apache.commons.betwixt.io.AbstractBeanWriter.writeBean(AbstractBeanWriter.java:245) [commons-betwixt-0.8.jar:0.8] [java] at org.apache.commons.betwixt.io.AbstractBeanWriter.write(AbstractBeanWriter.java:146) [commons-betwixt-0.8.jar:0.8] [java] at org.apache.commons.betwixt.io.BeanWriter.write(BeanWriter.java:211) [commons-betwixt-0.8.jar:0.8] [java] at org.apache.ddlutils.io.DatabaseIO.write(DatabaseIO.java:549) [dbsourcemanager.jar:?] [java] at org.openbravo.ddlutils.process.DBUpdater.checkFormalChanges(DBUpdater.java:311) [dbsourcemanager.jar:?] [java] at org.openbravo.ddlutils.process.DBUpdater.update(DBUpdater.java:141) [dbsourcemanager.jar:?] [java] at org.openbravo.ddlutils.task.AlterDatabaseDataAll.doExecute(AlterDatabaseDataAll.java:59) [dbsourcemanager.jar:?] [java] at org.openbravo.ddlutils.task.BaseDatabaseTask.execute(BaseDatabaseTask.java:56) [dbsourcemanager.jar:?] [java] at org.openbravo.ddlutils.task.AlterDatabaseJava.main(AlterDatabaseJava.java:63) [dbsourcemanager.jar:?] | |||||||
Steps To Reproduce | backoffice context with jdk21 Run update.database alternatively: - run try (backoffice) with jdk21 - check build output of try-upgrade-pgsql job - specifically it running update.database - Note: Job nor update.database fails (need to check output) alternatively: - run dbsm junit tests (with jdk21) They show 7 tests failing all related to this issue | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |||||||||||||||||||||||||||||
|
Notes | |
(0159887) hgbot (developer) 2024-01-29 16:20 |
Merge Request created: https://gitlab.com/openbravo/product/dbsm/-/merge_requests/45 [^] |
(0160011) shuehner (administrator) 2024-01-31 14:09 |
Add 24Q1 backport to be able to have Q1 a supported for jdk21 (as inititally planned) |
(0160261) hgbot (developer) 2024-02-05 14:50 |
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/1125 [^] |
(0161782) hgbot (developer) 2024-03-06 18:05 |
Repository: https://gitlab.com/openbravo/product/dbsm [^] Changeset: a68e966b12feb9abd64b935a1a7d3899ed62e525 Author: Stefan Huehner <stefan.huehner@openbravo.com> Date: 29-01-2024 16:16:11 URL: https://gitlab.com/openbravo/product/dbsm/-/commit/a68e966b12feb9abd64b935a1a7d3899ed62e525 [^] ISSUE-54490: Fix update.databse with jdk21 When running with jdk21 update.databse fails near its end in checkFormalChanges. Problem is that BeanWriter.write(Vector<Change>) fails when being passed an empty list. Only call with when the actual list has entries to avoid the problem. Note that underlying cause seems to be betwixt library not working cleanly with jdk21. RM-11112 is already reported with the goal to remove/replace betwixt library entirely some time later. --- M src/org/apache/ddlutils/io/DatabaseIO.java --- |
(0161783) hgbot (developer) 2024-03-06 18:05 |
Merge request merged: https://gitlab.com/openbravo/product/dbsm/-/merge_requests/45 [^] |
(0161784) hgbot (developer) 2024-03-06 18:06 |
Directly closing issue as related merge request is already approved. Repository: https://gitlab.com/openbravo/product/openbravo [^] Changeset: 9258860594bc4688846c4ea9d2c3ca7eb4b76d5c Author: Stefan Huehner <stefan.huehner@openbravo.com> Date: 06-03-2024 17:05:08 URL: https://gitlab.com/openbravo/product/openbravo/-/commit/9258860594bc4688846c4ea9d2c3ca7eb4b76d5c [^] Fixed ISSUE-54490: Fix update.database with jdk21 When running with jdk21 update.databse fails near its end in checkFormalChanges. Note that underlying cause seems to be betwixt library not working cleanly with jdk21. RM-11112 is already reported with the goal to remove/replace betwixt library entirely some time later. --- M src-db/database/lib/dbsourcemanager.jar --- |
(0161785) hgbot (developer) 2024-03-06 18:06 |
Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/1125 [^] |
Issue History | |||
Date Modified | Username | Field | Change |
2024-01-29 13:42 | shuehner | New Issue | |
2024-01-29 13:42 | shuehner | Assigned To | => Triage Platform Base |
2024-01-29 13:42 | shuehner | Modules | => Core |
2024-01-29 13:42 | shuehner | Triggers an Emergency Pack | => No |
2024-01-29 13:42 | shuehner | Relationship added | blocks 0054449 |
2024-01-29 13:44 | shuehner | Steps to Reproduce Updated | View Revisions |
2024-01-29 16:20 | hgbot | Note Added: 0159887 | |
2024-01-29 16:21 | shuehner | Steps to Reproduce Updated | View Revisions |
2024-01-31 14:09 | shuehner | Status | new => scheduled |
2024-01-31 14:09 | shuehner | Note Added: 0160011 | |
2024-02-05 14:50 | hgbot | Note Added: 0160261 | |
2024-03-06 18:05 | hgbot | Note Added: 0161782 | |
2024-03-06 18:05 | hgbot | Note Added: 0161783 | |
2024-03-06 18:06 | hgbot | Resolution | open => fixed |
2024-03-06 18:06 | hgbot | Status | scheduled => closed |
2024-03-06 18:06 | hgbot | Fixed in Version | => PR24Q2 |
2024-03-06 18:06 | hgbot | Note Added: 0161784 | |
2024-03-06 18:06 | hgbot | Note Added: 0161785 | |
2024-07-17 10:07 | shuehner | Relationship added | causes 0056039 |
2024-10-10 11:42 | shuehner | Relationship added | related to 0056729 |
Copyright © 2000 - 2009 MantisBT Group |