Openbravo Issue Tracking System - Modules
View Issue Details
0044754ModulesBarcode generation in reportspublic2020-08-05 10:582020-08-28 14:57
shuehner 
caristu 
normalmajorhave not tried
closedfixed 
5
 
 
0044754: 2 jar libraries related to batik cause split package problem (batik-ext-1.7.jar, xml-apis-1.3.04.jar)
The version of batik 1.7 and related xml-* jar file cause split package problem with jdk system image.

Collides with packages:['org.w3c.dom', 'org.w3c.dom.events']
Collides with packages:['javax.xml', 'javax.xml.datatype', 'javax.xml.namespace', 'javax.xml.parsers', 'javax.xml.transform', 'javax.xml.transform.dom', 'javax.xml.transform.sax', 'javax.xml.transform.stream', 'javax.xml.validation', 'javax.xml.xpath', 'org.w3c.dom', 'org.w3c.dom.bootstrap', 'org.w3c.dom.css', 'org.w3c.dom.events', 'org.w3c.dom.html', 'org.w3c.dom.ls', 'org.w3c.dom.ranges', 'org.w3c.dom.stylesheets', 'org.w3c.dom.traversal', 'org.w3c.dom.views', 'org.w3c.dom.xpath', 'org.xml.sax', 'org.xml.sax.ext', 'org.xml.sax.helpers']

Checking upstream changes that seems fixed since version 1.11 of that project.
http://svn.apache.org/repos/asf/xmlgraphics/batik/trunk/CHANGES [^]
https://issues.apache.org/jira/browse/BATIK-1249 [^]
https://xmlgraphics.apache.org/batik/ [^]

 There is an utility script in this repo checking jar libraries and raising the split package situations:
https://gitlab.com/openbravo/tools/platform/jar-collision-finder [^] [^]
Currently it is not possible to upgrade the batik library as the current version of the jasper library in core depends on batik 1.7 (see 0044869 for more details)

The alternative is to remove the problematic libraries as it seems they're not required for the barcode report generation
No tags attached.
related to defect 0044869 closed caristu Modules Upgrade batik library 
blocks design defect 0044733 closed platform Openbravo ERP Tracking issue: Find and fix all jar libaries with split packages between classpath and system image (Forbidden since Java9) 
Issue History
2020-08-05 10:58shuehnerNew Issue
2020-08-05 10:58shuehnerAssigned To => platform
2020-08-05 10:59shuehnerRelationship addedblocks 0044733
2020-08-05 10:59shuehnerSummary2 jar libraries related to baik cause split package problem (batik-ext-1.7.jar, xml-apis-1.3.04.jar) => 2 jar libraries related to batik cause split package problem (batik-ext-1.7.jar, xml-apis-1.3.04.jar)
2020-08-05 11:00shuehnerAssigned Toplatform => caristu
2020-08-05 11:00shuehnerDescription Updatedbug_revision_view_page.php?rev_id=21449#r21449
2020-08-21 18:00hgbotNote Added: 0122268
2020-08-21 18:09caristuIssue cloned0044869
2020-08-21 18:09caristuRelationship addedrelated to 0044869
2020-08-21 18:11caristuDescription Updatedbug_revision_view_page.php?rev_id=21519#r21519
2020-08-21 18:11caristuProposed Solution updated
2020-08-28 14:57hgbotResolutionopen => fixed
2020-08-28 14:57hgbotNote Added: 0122431
2020-08-28 14:57hgbotStatusnew => closed
2020-08-28 14:57hgbotNote Added: 0122432

Notes
(0122268)
hgbot   
2020-08-21 18:00   
Merge Request created: https://gitlab.com/openbravo/product/mods/org.openbravo.service.reporting.barcode/-/merge_requests/1 [^]
(0122431)
hgbot   
2020-08-28 14:57   
Merge request merged: https://gitlab.com/openbravo/product/mods/org.openbravo.service.reporting.barcode/-/merge_requests/1 [^]
(0122432)
hgbot   
2020-08-28 14:57   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/mods/org.openbravo.service.reporting.barcode [^]
Changeset: 094e2d4b3271bacdde67121e17c2b4cb935822b9
Author: Carlos Aristu <carlos.aristu@openbravo.com>
Date: 2020-08-21T17:46:46+02:00
URL: https://gitlab.com/openbravo/product/mods/org.openbravo.service.reporting.barcode/-/commit/094e2d4b3271bacdde67121e17c2b4cb935822b9 [^]

fixes BUG-44754: remove jar libraries causing split package problem

  The batik-ext-1.7 and xml-apis-1.3.04 .jar files were causing JDK
split package problems.

  This problem is solved starting from version 1.11 of batik but
currently it is not possible to upgrade to that version as current
version of the jasper library used in core depends on batik 1.7, mainly
because some classes that have been repackaged (example:
org.apache.batik.dom.svg.SAXSVGDocumentFactory ->
org.apache.batik.anim.dom.SAXSVGDocumentFactory). Upgrading to a version
higher than 1.7 makes barcode generation in jasper report to fail.

  For this reason, we've decided to eventually delete the problematic
libraries as it seems that the're not needed for the barcode generation
in reports which indeed is the purpose of the module.

---
M legal/Licensing.txt
R lib/runtime/batik-ext-1.7.jar
R lib/runtime/xml-apis-1.3.04.jar
---