Anonymous | Login
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajoralways2018-11-21 13:592018-12-11 20:22
ReporterjarmendarizView Statuspublic 
Assigned Tojarmendariz 
PrioritynormalResolutionfixedFixed in Version3.0PR19Q1
StatusclosedFix in branchFixed in SCM revisionbc617f478775
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Toalostale
Web browser
Regression level
Regression date
Regression introduced in release
Regression introduced by commit39504
Triggers an Emergency PackNo

0039663: Build fails with Java11 starting from log4j upgrade

DescriptionBuild fails when using JDK11 after log4j2 upgrade with the following stacktrace:

/home/openbravo/Projects/issues/pi/build.xml:495: The following error occurred while executing this line:
/home/openbravo/Projects/issues/pi/src/build.xml:304: java.lang.ExceptionInInitializerError
    at org.openbravo.wad.validation.WADValidator.validate(
    at org.openbravo.wad.validation.WADValidatorTask.execute(
    at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(
    at java.base/java.lang.reflect.Method.invoke(
    at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(
    at java.base/java.lang.reflect.Method.invoke(
Caused by: java.lang.UnsupportedOperationException: No class provided, and an appropriate one cannot be found.
    at org.apache.logging.log4j.LogManager.callerClass(
    at org.apache.logging.log4j.LogManager.getLogger(
    at org.apache.logging.log4j.LogManager.getLogger(
    at org.openbravo.wad.validation.WADValidationResult.<clinit>(
    ... 30 more
Steps To ReproduceIn a system using Java 11:

* Pull pi to its latest revision
* Execute ant install.source
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to feature request 0038130 closedcaristu Openbravo ERP support JDK 11 
caused by feature request 0039504 closedjarmendariz Openbravo ERP Upgrade Log4j to version 2 
related to feature request 0039664 newTriage Platform Base Openbravo ERP Replace ant Task subclasses to be executed as a java fork 
related to defect 0039795 newstaffrm Openbravo Deployment Options Build fails in PR19Q1 with Java 11 

-  Notes
hgbot (developer)
2018-11-23 14:50

Repository: erp/devel/pi
Changeset: bc617f478775a30c8f78191cdbe7404b96098f45
Author: Javier Armendáriz <javier.armendariz <at>>
Date: Fri Nov 23 10:32:52 2018 +0100
URL: [^]

Fixed issue 39663: Build fails in Java 11 since log4j upgrade.

New log4j libraries are multi-release jars (mrjar), meaning that they can define
multiple version of classes depending on the JVM version being run. Currently
ant does not support mrjars for custom java tasks and build fails when executing
LogManager.getLogger() inside an ant task.
For this reason, a new jar is included during build to override LogManager and
StackLocator implementation to make build work in Java9+. In addition, classpath
in build script is modified to force including the build libraries first in the
classpath and use these classes instead of the ones implemented in log4j-api.

M build.xml
M src-db/database/build-create.xml
M src-db/database/build.xml
M src-util/diagnostic/build-create.xml
A lib/build/log4j-api-no-mrjar-2.11.1.jar
jarmendariz (developer)
2018-11-27 12:57

This issue has been reported to ant bug tracker: [^]
hudsonbot (developer)
2018-12-11 20:22

A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: [^]
Maturity status: Test

- Issue History
Date Modified Username Field Change
2018-11-21 13:59 jarmendariz New Issue
2018-11-21 13:59 jarmendariz Assigned To => platform
2018-11-21 13:59 jarmendariz Modules => Core
2018-11-21 13:59 jarmendariz Regression introduced by commit => 39504
2018-11-21 13:59 jarmendariz Triggers an Emergency Pack => No
2018-11-21 14:00 jarmendariz Relationship added caused by 0039504
2018-11-21 14:02 jarmendariz Relationship added related to 0038130
2018-11-21 14:03 jarmendariz Status new => scheduled
2018-11-21 14:03 jarmendariz Assigned To platform => jarmendariz
2018-11-21 14:09 jarmendariz Relationship added related to 0039664
2018-11-22 18:16 shuehner Issue Monitored: shuehner
2018-11-23 14:50 hgbot Checkin
2018-11-23 14:50 hgbot Note Added: 0108090
2018-11-23 14:50 hgbot Status scheduled => resolved
2018-11-23 14:50 hgbot Resolution open => fixed
2018-11-23 14:50 hgbot Fixed in SCM revision => [^]
2018-11-27 12:57 jarmendariz Note Added: 0108126
2018-11-30 11:17 alostale Review Assigned To => alostale
2018-11-30 11:17 alostale Status resolved => closed
2018-11-30 11:17 alostale Fixed in Version => 3.0PR19Q1
2018-12-11 20:22 hudsonbot Checkin
2018-12-11 20:22 hudsonbot Note Added: 0108498
2018-12-13 13:43 jarmendariz Relationship added related to 0039795

Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker