[JR] can't show QR code on jasper report (org/apache/batik/bridge/UserAgent)


run a jasper report has QR Code show error org/apache/batik/bridge/UserAgent

reason: issue when resolve bundle that use org.w3c.dom.events
we has 2 where provide org.w3c.* package jdk and bundle "org.w3c.dom.events version 3.0.0"

need "org.w3c.dom.events version 3.0.0" because org.w3c.dom.svg dependency to org.w3c.dom.smil 1.0.1 and org.w3c.dom.smil import org.w3c.dom.events;version="[3.0.0,4.0.0)"

when has multi place provide same package x then we can get some kind exception ClassNotFoundException, ClassCastException, NoClassDefFoundError

solution: down org.w3c.dom.smil to 1.0.0 so don't need "org.w3c.dom.events version 3.0.0" anymore

issue with discus about multi package. it's not direct relate to my issue, but good to know issue
at 7.1z use batik-11 seem don't need org.w3c.dom.svg.patch anymore to resolve




Hiep Lq
October 22, 2020, 11:05 AM

sorry make confuse.

down version seem good solution because we can remove "org.w3c.dom.events version 3.0.0", void this kind of issue comeback
but it make more change than solution i just commit

so i will do it when update jasper library

Heng Sin Low
October 22, 2020, 8:22 AM

above you say - down org.w3c.dom.smil to 1.0.0 so don't need "org.w3c.dom.events version 3.0.0"

but the pull request doesn’t seems to related to that ?

Hiep Lq
October 22, 2020, 8:10 AM

test case:
login to any client of https://test.idempiere.org/webui/
run process testqrcode

Your pinned fields
Click on the next to a field label to start pinning.


Hiep Lq


Hiep Lq