Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0040827Openbravo ERPA. Platformpublic2019-05-09 15:482019-05-21 15:17
alostale 
caristu 
normalmajorhave not tried
closedfixed 
5
 
3.0PR19Q3 
alostale
Core
No
0040827: JDK 12: cannot start application due to Weld error
When trying to start Openbravo using JDK 12 or higher, an error is thrown.

This is caused by Weld issue 2572 [1].

---
[1] https://issues.jboss.org/browse/WELD-2572 [^]
Using JDK 12 try to start Tomcat

Caused by: org.jboss.weld.exceptions.WeldException: WELD-001524: Unable to load proxy class for bean Implicit Bean [javax.enterprise.event.Event] with qualifiers [@Default] with class interface javax.enterprise.event.Event
    at org.jboss.weld.bean.proxy.ProxyFactory.getProxyClass(ProxyFactory.java:378)
    at org.jboss.weld.bean.builtin.AbstractFacadeBean.initializeAfterBeanDiscovery(AbstractFacadeBean.java:61)
    at org.jboss.weld.bootstrap.ConcurrentBeanDeployer$AfterBeanDiscoveryInitializerFactory.doWork(ConcurrentBeanDeployer.java:111)
    at org.jboss.weld.bootstrap.ConcurrentBeanDeployer$AfterBeanDiscoveryInitializerFactory.doWork(ConcurrentBeanDeployer.java:102)
    at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:62)
    at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:55)
    ... 4 more
Caused by: java.lang.Error: java.lang.NoSuchFieldException: override
    at org.jboss.classfilewriter.ClassFile$1.run(ClassFile.java:394)
    at org.jboss.classfilewriter.ClassFile$1.run(ClassFile.java:385)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:551)
    at org.jboss.classfilewriter.ClassFile.<clinit>(ClassFile.java:385)
    at org.jboss.weld.bean.proxy.ProxyFactory.newClassFile(ProxyFactory.java:494)
    at org.jboss.weld.bean.proxy.ProxyFactory.createProxyClass(ProxyFactory.java:444)
    at org.jboss.weld.bean.proxy.ProxyFactory.getProxyClass(ProxyFactory.java:370)
    ... 9 more
Caused by: java.lang.NoSuchFieldException: override
    at java.base/java.lang.Class.getDeclaredField(Class.java:2417)
    at org.jboss.classfilewriter.ClassFile$1.run(ClassFile.java:392)
    ... 15 more
Update Weld to at least 3.1.1 which fixes the issue.
No tags attached.
related to feature request 0040193 closed caristu upgrade Weld to version 3.1.0.Final 
related to design defect 0040840 closed platform Illegal Access warning in weld-core-impl-3.1.1.Final.jar using JDK12+ 
blocks feature request 0040826 closed platform support JDK 12 and JDK 13 
Issue History
2019-05-09 15:48alostaleNew Issue
2019-05-09 15:48alostaleAssigned To => platform
2019-05-09 15:48alostaleModules => Core
2019-05-09 15:48alostaleTriggers an Emergency Pack => No
2019-05-09 15:48alostaleRelationship addedrelated to 0040193
2019-05-09 15:49alostaleRelationship addedblocks 0040826
2019-05-09 16:32shuehnerIssue Monitored: shuehner
2019-05-09 19:15caristuAssigned Toplatform => caristu
2019-05-10 15:00caristuRelationship addedrelated to 0040840
2019-05-13 09:29hgbotCheckin
2019-05-13 09:29hgbotNote Added: 0111637
2019-05-13 09:29hgbotStatusnew => resolved
2019-05-13 09:29hgbotResolutionopen => fixed
2019-05-13 09:29hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/9c2b642b9342b02921a2c306c7b82839acd70924 [^]
2019-05-13 12:54caristuReview Assigned To => alostale
2019-05-17 09:08alostaleNote Added: 0111761
2019-05-17 09:08alostaleStatusresolved => closed
2019-05-17 09:08alostaleFixed in Version => 3.0PR19Q3
2019-05-21 15:17hudsonbotCheckin
2019-05-21 15:17hudsonbotNote Added: 0112026

Notes
(0111637)
hgbot   
2019-05-13 09:29   
Repository: erp/devel/pi
Changeset: 9c2b642b9342b02921a2c306c7b82839acd70924
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Mon May 13 09:10:41 2019 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/9c2b642b9342b02921a2c306c7b82839acd70924 [^]

fixes issue 40827: update weld to version 3.1.1

  Update Weld to version 3.1.1 which contains the fix[1] for the issue that causes Tomcat not correctly start using JDK 12.

  [1] https://issues.jboss.org/browse/WELD-2572 [^]

---
M legal/Licensing.txt
A modules/org.openbravo.base.weld/lib/runtime/jboss-classfilewriter-1.2.4.Final.jar
A modules/org.openbravo.base.weld/lib/runtime/weld-core-impl-3.1.1.Final.jar
A modules/org.openbravo.base.weld/lib/runtime/weld-environment-common-3.1.1.Final.jar
A modules/org.openbravo.base.weld/lib/runtime/weld-jsf-3.1.1.Final.jar
A modules/org.openbravo.base.weld/lib/runtime/weld-servlet-core-3.1.1.Final.jar
A modules/org.openbravo.base.weld/lib/runtime/weld-web-3.1.1.Final.jar
R modules/org.openbravo.base.weld/lib/runtime/jboss-classfilewriter-1.2.3.Final.jar
R modules/org.openbravo.base.weld/lib/runtime/weld-core-impl-3.1.0.Final.jar
R modules/org.openbravo.base.weld/lib/runtime/weld-environment-common-3.1.0.Final.jar
R modules/org.openbravo.base.weld/lib/runtime/weld-jsf-3.1.0.Final.jar
R modules/org.openbravo.base.weld/lib/runtime/weld-servlet-core-3.1.0.Final.jar
R modules/org.openbravo.base.weld/lib/runtime/weld-web-3.1.0.Final.jar
---
(0111761)
alostale   
2019-05-17 09:08   
tested with jdk 12.0.1+12 and 13-ea+21
(0112026)
hudsonbot   
2019-05-21 15:17   
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/9b8f37d9d85e [^]
Maturity status: Test