Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0039372 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | minor | have not tried | 2018-09-28 09:48 | 2018-10-11 10:52 | |||
Reporter | alostale | View Status | public | |||||
Assigned To | alostale | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | 3.0PR18Q4 | |||
Status | closed | Fix in branch | Fixed in SCM revision | a55bab8b0e2f | ||||
Projection | none | ETA | none | Target Version | 3.0PR18Q4 | |||
OS | Any | Database | Any | Java version | 9+ | |||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | caristu | |||||||
OBNetwork customer | No | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0039372: Illegal Access warning in ant tasks | |||||||
Description | When executing some ant tasks with a JDK >=9 an Illegal Access warning is seen. | |||||||
Steps To Reproduce | The following flows are affected: - install.source - smartbuild - update.database Note there might be others that are also affected, but as they are not that common, and technically require a different and more complex solution (they are not executed in a different forked jvm where it's easy to set params), they will not fix within patch for this issue. | |||||||
Proposed Solution | Until a proper fix is done by updating dependencies making those illegal accesses, open up the required modules with --add-open jvm argument in those tasks making use of it. Note. Include the argument in an ant property (jvm.arg.line) so that: * By default, if JDK is 9+ required modules are opened * It is possible to overwrite that property in command line to, for example see all occurrences of this problem. Ie.: ant generate.entities.quick -Djvm.arg.line='--illegal-access=debug'would display a warning including stack trace on each occurrence. --- [1] https://docs.oracle.com/javase/9/tools/java.htm#JSWOR624 [^] | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|||||||||||||||
|
![]() |
|
(0107065) hgbot (developer) 2018-09-28 11:33 |
Repository: erp/devel/pi Changeset: a55bab8b0e2fa7a738e1b03b4becbb67dedd2f66 Author: Asier Lostalé <asier.lostale <at> openbravo.com> Date: Fri Sep 28 11:29:31 2018 +0200 URL: http://code.openbravo.com/erp/devel/pi/rev/a55bab8b0e2fa7a738e1b03b4becbb67dedd2f66 [^] fixed issue 39372: Illegal Access warning in ant tasks Fixed for most common build flows. Note --add-opens jvm argument can only be set in JDK >= 9, as miniumum supported is 8, it's enough checking it. --- M build.xml M src/build.xml --- |
(0107086) hudsonbot (viewer) 2018-10-01 11:36 |
A changeset related to this issue has been promoted main and to the Central Repository, after passing a series of tests. Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/c83c34c74ee4 [^] Maturity status: Test |
(0107247) caristu (viewer) 2018-10-11 10:52 |
Code reviewed + tested OK. |
![]() |
|||
Date Modified | Username | Field | Change |
2018-09-28 09:48 | alostale | New Issue | |
2018-09-28 09:48 | alostale | Assigned To | => platform |
2018-09-28 09:48 | alostale | OBNetwork customer | => No |
2018-09-28 09:48 | alostale | Modules | => Core |
2018-09-28 09:48 | alostale | Triggers an Emergency Pack | => No |
2018-09-28 10:28 | alostale | Steps to Reproduce Updated | View Revisions |
2018-09-28 10:28 | alostale | Relationship added | blocks 0039031 |
2018-09-28 11:23 | alostale | Assigned To | platform => alostale |
2018-09-28 11:27 | alostale | Review Assigned To | => caristu |
2018-09-28 11:27 | alostale | Steps to Reproduce Updated | View Revisions |
2018-09-28 11:27 | alostale | Target Version | => 3.0PR18Q4 |
2018-09-28 11:33 | hgbot | Checkin | |
2018-09-28 11:33 | hgbot | Note Added: 0107065 | |
2018-09-28 11:33 | hgbot | Status | new => resolved |
2018-09-28 11:33 | hgbot | Resolution | open => fixed |
2018-09-28 11:33 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/a55bab8b0e2fa7a738e1b03b4becbb67dedd2f66 [^] |
2018-10-01 11:36 | hudsonbot | Checkin | |
2018-10-01 11:36 | hudsonbot | Note Added: 0107086 | |
2018-10-11 10:52 | caristu | Note Added: 0107247 | |
2018-10-11 10:52 | caristu | Status | resolved => closed |
2018-10-11 10:52 | caristu | Fixed in Version | => 3.0PR19Q1 |
2018-10-11 10:52 | caristu | Fixed in Version | 3.0PR19Q1 => 3.0PR18Q4 |
2019-04-19 08:35 | alostale | Relationship added | related to 0040649 |
Copyright © 2000 - 2009 MantisBT Group |