Hi
I'm using b4j developing an app with MySQL as database.
The app have many reports . 90% of them has a code like this:
Dim jasper As JasperReports
Dim report As JasperReport
Dim print As JasperPrint
Dim conn As JasperConnection
Dim design As JasperDesign
Dim query As JasperDesignQuery
jasper.InitializeParameters
jasper.InitializeJasperDesign
jasper.GetResourceAsStream(File.Combine(Main.DirReports, "Contracts_Tart01.jrxml"))
jasper.LoadJRXml(jasper.in) ' <<<<
jasper.InitializeJRDesignQuery
The instruction jasper.LoadJRXml(jasper.in) causes this log:
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by net.sf.jasperreports.engine.util.ClassUtils (file:/D:/MatrixApk/Anywhere%20Software/B4j/AddLibraries/jasperreports-6.17.0.jar) to constructor com.sun.org.apache.xerces.internal.util.XMLGrammarPoolImpl()
WARNING: Please consider reporting this to the maintainers of net.sf.jasperreports.engine.util.ClassUtils
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
The same the report is OK .
Using the .exe created with B4jPackager11 the app crashes with the instruction jasper.LoadJRXml(jasper.in) and so no report is generated.
b4J version 9.10 Jasperreports 2.0 and Tibco.jaspersoftstudio 6.16.0
Can someone help me ? Thanks