Openbravo Issue Tracking System - Modules
View Issue Details
0040631ModulesAnalyticspublic2019-04-17 09:572019-04-19 08:10
caristu 
caristu 
urgentminorhave not tried
closedfixed 
5
 
 
alostale
0040631: Analytics module fails to compile after Hibernate upgrade to version 5.4
As part of the Hibernate upgrade to version 5.4, the dom4j library was also upgraded to version 2.1.1.jar.

Analytics fails to compile having that dom4j library version:

  [javac] /srv/ci/workspace/mod-simple-ci23.18103/modules/org.openbravo.client.analytics/src/org/openbravo/client/analytics/report/AnalyticsProcessReportHandlerReplaceBP.java:64: error: incompatible types: List<Node> cannot be converted to ArrayList<Element>
    [javac] .selectNodes("Axis");
    [javac] ^
    [javac] /srv/ci/workspace/mod-simple-ci23.18103/modules/org.openbravo.client.analytics/src/org/openbravo/client/analytics/report/AnalyticsProcessReportHandlerReplaceBP.java:70: error: incompatible types: List<Node> cannot be converted to Collection<Element>
    [javac] .selectNodes("Dimension");
    [javac]
1) Update pi to a revision equal or higher than https://code.openbravo.com/erp/devel/pi/rev/bdd63e1a834142c97bca4bee8ad1f5afbfadaafd [^]

2) Install analytics module. The compilation fails.
No tags attached.
caused by feature request 0040552 closed caristu Openbravo ERP upgrade hibernate to version 5.4 
Issue History
2019-04-17 09:57caristuNew Issue
2019-04-17 09:57caristuAssigned To => platform
2019-04-17 09:57caristuAssigned Toplatform => caristu
2019-04-17 09:58caristuRelationship addedcaused by 0040552
2019-04-17 09:58caristuSummaryAnalytics module fails to compile after => Analytics module fails to compile after Hibernate upgrade to version 5.4
2019-04-17 11:53hgbotCheckin
2019-04-17 11:53hgbotNote Added: 0111180
2019-04-17 11:53hgbotStatusnew => resolved
2019-04-17 11:53hgbotResolutionopen => fixed
2019-04-17 11:53hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.client.analytics/rev/e7825a37d2cbf9b5717a136d04dc527e47049673 [^]
2019-04-17 11:54caristuReview Assigned To => alostale
2019-04-17 12:34caristuSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=18646#r18646
2019-04-17 14:20hgbotCheckin
2019-04-17 14:20hgbotNote Added: 0111197
2019-04-19 08:10alostaleNote Added: 0111212
2019-04-19 08:10alostaleStatusresolved => closed

Notes
(0111180)
hgbot   
2019-04-17 11:53   
Repository: erp/pmods/org.openbravo.client.analytics
Changeset: e7825a37d2cbf9b5717a136d04dc527e47049673
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Wed Apr 17 11:48:48 2019 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.client.analytics/rev/e7825a37d2cbf9b5717a136d04dc527e47049673 [^]

fixes issue 40631: compilation error with dom4j-2.1.1

  With he dom4j-2.1.1.jar library (upgraded with [1]), the selectNodes method of Node class now returns the parameterized type List<Node>. Before it was returning the raw List,i.e., without defining the type parameter.

  Add the changes to adapt to this API change.

---
M src/org/openbravo/client/analytics/report/AnalyticsProcessReportHandlerReplaceBP.java
---
(0111197)
hgbot   
2019-04-17 14:20   
Repository: erp/pmods/org.openbravo.client.analytics
Changeset: 0eb79199135f4d053d71ea36f76d4562e67dbeea
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Wed Apr 17 14:20:00 2019 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.client.analytics/rev/0eb79199135f4d053d71ea36f76d4562e67dbeea [^]

related to issue 40631: remove warning no longer needed

---
M src/org/openbravo/client/analytics/mondrian/Mondrian4SchemaGenerator.java
---
(0111212)
alostale   
2019-04-19 08:10   
reviewed