[#13871] - Cannot find documentation on supported Java versions

Category:
General
Priority:
High
Status:
New
Project: Severity:
Block
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:
0

I currently have JasperReports Library 6.18.1 running with Java 11 and although I get a warning about the use of reflective API when compiling the reports from within ANT - it does work. However as everyone is no doubt aware there are a great many jars used by the library and I've been reading various posts about some of these libraries not being able to update at present (POI for example.) I've not been able to determine what causes the warning message. Someone suggested Groovy but my version is already above the suggested version to fix it. My ANT build reports the following.

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by net.sf.jasperreports.engine.util. ClassUtils (file:/Users/dave/Commander4j/workspace/development/b5/lib/jasper/jasperreports-6.18.1. 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

The bottom line is that I cannot find out anything about Java version support and plans to move dependencies to newer versions to support later versions of Java.

My application uses a number of 3rd party apps and I'm using ANT to compile. The Manifest gives you a good idea of just how difficult it's going to be to determine compatibility with a newer Java and it would really be most useful of the JasperReports Library developers could document their dependencies and Java requirements. I'm sure they must have the information somewhere for their own use.

If anyone can advise how to move forward it would be most appreciated. I have to admit that I know very little about maven and don't feel confident enough to tackle moving my build to that presently.

Manifest-Version: 1.0
Main-Class: com.commander4j.start.Init
Class-Path: lib/app/commons-email-1.5.jar
lib/app/commons-io-2.6.jar
lib/app/commons-lang-2.6.jar
lib/app/commons-lang3-3.8.1.jar
lib/app/commons-math3-3.6.1.jar
lib/app/commons-text-1.2.jar
lib/app/jackcess-2.1.9.jar
lib/app/log4j-1.2.17.jar
lib/app/opencsv-4.1.jar
lib/barcode/avalon-framework-4.2.0.jar
lib/barcode/commons-cli-1.3.1.jar
lib/barcode/jdom-2.0.6.jar
lib/barcode/serializer-2.7.2.jar
lib/cups4j/cups4j-0.7.8.jar
lib/cups4j/hamcrest-core-1.3.jar
lib/cups4j/simple-xml-2.7.1.jar
lib/cups4j/stax-1.2.0.jar
lib/cups4j/stax-api-1.0.1.jar
lib/cups4j/xpp3-1.1.3.3.jar
lib/db/mssql-jdbc-9.2.1.jre11.jar
lib/db/mysql-connector-java-8.0.26.jar
lib/db/ojdbc11.jar
lib/jasper/jasperreports-6.18.1.jar
lib/jasper/jasperreports-annotation-processors-6.18.1.jar
lib/jasper/jasperreports-chart-customizers-6.18.1.jar
lib/jasper/jasperreports-chart-themes-6.18.1.jar
lib/jasper/jasperreports-custom-visualization-6.18.1.jar
lib/jasper/jasperreports-fonts-6.18.1.jar
lib/jasper/jasperreports-functions-6.18.1.jar
lib/jasper/jasperreports-javaflow-6.18.1.jar
lib/jasper/jasperreports-metadata-6.18.1.jar
lib/jasperlib/ant-1.10.11.jar
lib/jasperlib/antlr-2.7.5.jar
lib/jasperlib/barbecue-1.5-beta1.jar
lib/jasperlib/barcode4j-2.1.jar
lib/jasperlib/batik-anim-1.14.jar
lib/jasperlib/batik-awt-util-1.14.jar
lib/jasperlib/batik-bridge-1.14.jar
lib/jasperlib/batik-constants-1.14.jar
lib/jasperlib/batik-css-1.14.jar
lib/jasperlib/batik-dom-1.14.jar
lib/jasperlib/batik-ext-1.14.jar
lib/jasperlib/batik-gvt-1.14.jar
lib/jasperlib/batik-i18n-1.14.jar
lib/jasperlib/batik-parser-1.14.jar
lib/jasperlib/batik-script-1.14.jar
lib/jasperlib/batik-svg-dom-1.14.jar
lib/jasperlib/batik-svggen-1.14.jar
lib/jasperlib/batik-transcoder-1.14.jar
lib/jasperlib/batik-util-1.14.jar
lib/jasperlib/batik-xml-1.14.jar
lib/jasperlib/castor-core-1.4.1.jar
lib/jasperlib/castor-xml-1.4.1.jar
lib/jasperlib/cdt-java-client-2.0.0.jar
lib/jasperlib/commons-beanutils-1.9.4.jar
lib/jasperlib/commons-codec-1.11.jar
lib/jasperlib/commons-collections-3.2.2.jar
lib/jasperlib/commons-collections4-4.2.jar
lib/jasperlib/commons-digester-2.1.jar
lib/jasperlib/commons-logging-1.2.jar
lib/jasperlib/commons-pool2-2.4.2.jar
lib/jasperlib/core-3.4.0.jar
lib/jasperlib/ecj-4.4.2.jar
lib/jasperlib/groovy-3.0.7.jar
lib/jasperlib/groovy-sandbox-1.26-jaspersoft-2.jar
lib/jasperlib/hibernate-core-5.4.24.Final.jar
lib/jasperlib/httpclient-4.5.13.jar
lib/jasperlib/httpcore-4.4.12.jar
lib/jasperlib/icu4j-57.1.jar
lib/jasperlib/itext-2.1.7.js9.jar
lib/jasperlib/jackson-annotations-2.12.2.jar
lib/jasperlib/jackson-core-2.12.2.jar
lib/jasperlib/jackson-databind-2.12.2.jar
lib/jasperlib/javax.persistence-api-2.2.jar
lib/jasperlib/javax.xml.soap-api-1.4.0.jar
lib/jasperlib/jcommon-1.0.23.jar
lib/jasperlib/jfreechart-1.5.0.jar
lib/jasperlib/log4j-api-2.14.0.jar
lib/jasperlib/log4j-core-2.14.0.jar
lib/jasperlib/log4j-jcl-2.14.0.jar
lib/jasperlib/lucene-analyzers-common-7.3.0.jar
lib/jasperlib/lucene-core-7.3.0.jar
lib/jasperlib/lucene-queryparser-7.3.0.jar
lib/jasperlib/mondrian-3.1.1.12687.jar
lib/jasperlib/net.tascalate.asmx-7.0.1.jar
lib/jasperlib/net.tascalate.asmx.analysis-7.0.1.jar
lib/jasperlib/net.tascalate.asmx.tree-7.0.1.jar
lib/jasperlib/net.tascalate.javaflow.api-2.6.0.jar
lib/jasperlib/net.tascalate.javaflow.providers.asm5-2.6.0.jar
lib/jasperlib/net.tascalate.javaflow.providers.asmx-2.6.0.jar
lib/jasperlib/net.tascalate.javaflow.spi-2.6.0.jar
lib/jasperlib/net.tascalate.javaflow.tools.ant-2.6.0.jar
lib/jasperlib/net.tascalate.javaflow.tools.jar-2.6.0.jar
lib/jasperlib/olap4j-0.9.7.309-JS-3.jar
lib/jasperlib/poi-4.1.1.jar
lib/jasperlib/poi-ooxml-4.1.1.jar
lib/jasperlib/rhino-1.7.11.jar
lib/jasperlib/servlet-api-2.4.jar
lib/jasperlib/slf4j-api-1.7.26.jar
lib/jasperlib/slf4j-nop-1.7.26.jar
lib/jasperlib/spring-beans-5.1.4.RELEASE.jar
lib/jasperlib/spring-core-5.1.4.RELEASE.jar
lib/jasperlib/velocity-engine-core-2.3.jar
lib/jasperlib/xalan-2.7.2.jar
lib/jasperlib/xml-apis-ext-1.3.04.jar
lib/jasperlib/xmpcore-5.1.3.jar
lib/jasperlib_aux/asm-all-5.2.jar
lib/jasperlib_aux/batik-extension-1.14.jar
lib/jasperlib_aux/batik-gui-util-1.14.jar
lib/jasperlib_aux/bsh-2.0b6.jar
lib/jasperlib_aux/joda-time-2.10.2.jar
lib/jasperlib_aux/xmlgraphics-commons-2.2.jar
lib/mail/javax.activation-1.2.0.jar
lib/mail/javax.mail.jar
lib/serial/jSerialComm-2.7.0.jar

v6.18.1
Documentation
davidgarratt's picture
Joined: Sep 17 2013 - 8:13pm
Last seen: 2 weeks 6 days ago

3 Comments:

#1

Some details about the XMLGrammarPoolImpl warning at https://github.com/TIBCOSoftware/jasperreports/issues/61

Regards,
Lucian

#2

I've just been looking at that. I have the jasperreports.properties file but I'm struggling to figure out how to add it to the class path in the ant build.xml. I tried adding it as a new path element but it complained that it was not a jar file. I should perhaps have mentioned that I'm not running JasperReports server but instead including it in a Java Swing desktop application.

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- WARNING: Eclipse auto-generated file.
Any modifications will be overwritten.
To include a user specific buildfile here, simply create one in the same
directory with the processing instruction <?eclipse.ant.import?>
as the first entry and export the buildfile again. --><project basedir="." default="build" name="b5">
<property environment="env"/>
<property name="debuglevel" value="source,lines,vars"/>
<property name="target" value="11"/>
<property name="source" value="11"/>
<path id="b5.classpath">
<pathelement location="bin"/>
<pathelement location="lib/jasperlib/commons-digester-2.1.jar"/>
<pathelement location="lib/jasperlib/antlr-2.7.5.jar"/>
<pathelement location="lib/jasperlib/barbecue-1.5-beta1.jar"/>
<pathelement location="lib/jasperlib/barcode4j-2.1.jar"/>
<pathelement location="lib/jasperlib/mondrian-3.1.1.12687.jar"/>
<pathelement location="lib/jasperlib/servlet-api-2.4.jar"/>
<pathelement location="lib/barcode/avalon-framework-4.2.0.jar"/>
<pathelement location="lib/mail/javax.mail.jar"/>
<pathelement location="lib/jasperlib/olap4j-0.9.7.309-JS-3.jar"/>
<pathelement location="lib/devonly/i4jruntime.jar"/>
<pathelement location="lib/app/commons-email-1.5.jar"/>
<pathelement location="lib/barcode/commons-cli-1.3.1.jar"/>
<pathelement location="lib/barcode/jdom-2.0.6.jar"/>
<pathelement location="lib/jasperlib/jcommon-1.0.23.jar"/>
<pathelement location="lib/jasperlib/commons-collections-3.2.2.jar"/>
<pathelement location="lib/jasperlib/commons-logging-1.2.jar"/>
<pathelement location="lib/jasperlib/icu4j-57.1.jar"/>
<pathelement location="lib/jasperlib/xalan-2.7.2.jar"/>
<pathelement location="lib/jasperlib/xml-apis-ext-1.3.04.jar"/>
<pathelement location="lib/app/log4j-1.2.17.jar"/>
<pathelement location="lib/db/ojdbc11.jar"/>
<pathelement location="lib/jasperlib/commons-pool2-2.4.2.jar"/>
<pathelement location="lib/jasperlib/ecj-4.4.2.jar"/>
<pathelement location="lib/jasperlib/commons-codec-1.11.jar"/>
<pathelement location="lib/app/commons-lang-2.6.jar"/>
<pathelement location="lib/app/opencsv-4.1.jar"/>
<pathelement location="lib/app/jackcess-2.1.9.jar"/>
<pathelement location="lib/app/commons-text-1.2.jar"/>
<pathelement location="lib/app/commons-io-2.6.jar"/>
<pathelement location="lib/app/commons-lang3-3.8.1.jar"/>
<pathelement location="lib/jasperlib/lucene-analyzers-common-7.3.0.jar"/>
<pathelement location="lib/jasperlib/lucene-core-7.3.0.jar"/>
<pathelement location="lib/jasperlib/lucene-queryparser-7.3.0.jar"/>
<pathelement location="lib/barcode/serializer-2.7.2.jar"/>
<pathelement location="lib/jasperlib/commons-collections4-4.2.jar"/>
<pathelement location="lib/jasperlib/spring-beans-5.1.4.RELEASE.jar"/>
<pathelement location="lib/jasperlib/spring-core-5.1.4.RELEASE.jar"/>
<pathelement location="lib/jasperlib/castor-core-1.4.1.jar"/>
<pathelement location="lib/jasperlib/castor-xml-1.4.1.jar"/>
<pathelement location="lib/jasperlib/javax.xml.soap-api-1.4.0.jar"/>
<pathelement location="lib/jasperlib/xmpcore-5.1.3.jar"/>
<pathelement location="lib/jasperlib_aux/xmlgraphics-commons-2.2.jar"/>
<pathelement location="lib/jasperlib_aux/asm-all-5.2.jar"/>
<pathelement location="lib/jasperlib_aux/bsh-2.0b6.jar"/>
<pathelement location="lib/cups4j/cups4j-0.7.8.jar"/>
<pathelement location="lib/cups4j/simple-xml-2.7.1.jar"/>
<pathelement location="lib/jasperlib/batik-anim-1.14.jar"/>
<pathelement location="lib/jasperlib/batik-ext-1.14.jar"/>
<pathelement location="lib/jasperlib/hibernate-core-5.4.24.Final.jar"/>
<pathelement location="lib/app/commons-math3-3.6.1.jar"/>
<pathelement location="lib/jasperlib/jfreechart-1.5.0.jar"/>
<pathelement location="lib/jasperlib/javax.persistence-api-2.2.jar"/>
<pathelement location="lib/jasperlib/cdt-java-client-2.0.0.jar"/>
<pathelement location="lib/jasperlib/poi-4.1.1.jar"/>
<pathelement location="lib/jasperlib/poi-ooxml-4.1.1.jar"/>
<pathelement location="lib/jasperlib/httpclient-4.5.13.jar"/>
<pathelement location="lib/jasperlib/httpcore-4.4.12.jar"/>
<pathelement location="lib/jasperlib/jackson-annotations-2.12.2.jar"/>
<pathelement location="lib/jasperlib/jackson-core-2.12.2.jar"/>
<pathelement location="lib/jasperlib/jackson-databind-2.12.2.jar"/>
<pathelement location="lib/jasperlib/commons-beanutils-1.9.4.jar"/>
<pathelement location="lib/jasperlib/batik-awt-util-1.14.jar"/>
<pathelement location="lib/jasperlib/batik-bridge-1.14.jar"/>
<pathelement location="lib/jasperlib/batik-constants-1.14.jar"/>
<pathelement location="lib/jasperlib/batik-css-1.14.jar"/>
<pathelement location="lib/jasperlib/batik-dom-1.14.jar"/>
<pathelement location="lib/jasperlib/batik-gvt-1.14.jar"/>
<pathelement location="lib/jasperlib/batik-i18n-1.14.jar"/>
<pathelement location="lib/jasperlib/batik-svg-dom-1.14.jar"/>
<pathelement location="lib/jasperlib/batik-svggen-1.14.jar"/>
<pathelement location="lib/jasperlib/batik-util-1.14.jar"/>
<pathelement location="lib/jasperlib_aux/batik-extension-1.14.jar"/>
<pathelement location="lib/jasperlib_aux/batik-gui-util-1.14.jar"/>
<pathelement location="lib/jasperlib/batik-parser-1.14.jar"/>
<pathelement location="lib/jasperlib/batik-script-1.14.jar"/>
<pathelement location="lib/jasperlib/batik-xml-1.14.jar"/>
<pathelement location="lib/jasperlib_aux/joda-time-2.10.2.jar"/>
<pathelement location="lib/jasperlib/core-3.4.0.jar"/>
<pathelement location="lib/jasperlib/rhino-1.7.11.jar"/>
<pathelement location="lib/db/mysql-connector-java-8.0.26.jar"/>
<pathelement location="lib/serial/jSerialComm-2.7.0.jar"/>
<pathelement location="lib/jasperlib/ant-1.10.11.jar"/>
<pathelement location="lib/jasperlib/itext-2.1.7.js9.jar"/>
<pathelement location="lib/jasper/jasperreports-6.18.1.jar"/>
<pathelement location="lib/jasper/jasperreports-annotation-processors-6.18.1.jar"/>
<pathelement location="lib/jasper/jasperreports-chart-customizers-6.18.1.jar"/>
<pathelement location="lib/jasper/jasperreports-chart-themes-6.18.1.jar"/>
<pathelement location="lib/jasper/jasperreports-custom-visualization-6.18.1.jar"/>
<pathelement location="lib/jasper/jasperreports-fonts-6.18.1.jar"/>
<pathelement location="lib/jasper/jasperreports-functions-6.18.1.jar"/>
<pathelement location="lib/jasper/jasperreports-javaflow-6.18.1.jar"/>
<pathelement location="lib/jasper/jasperreports-metadata-6.18.1.jar"/>
<pathelement location="lib/mail/javax.activation-1.2.0.jar"/>
<pathelement location="lib/db/mssql-jdbc-9.2.1.jre11.jar"/>
<pathelement location="lib/jasperlib/batik-transcoder-1.14.jar"/>
<pathelement location="lib/cups4j/hamcrest-core-1.3.jar"/>
<pathelement location="lib/cups4j/stax-1.2.0.jar"/>
<pathelement location="lib/cups4j/stax-api-1.0.1.jar"/>
<pathelement location="lib/cups4j/xpp3-1.1.3.3.jar"/>
<pathelement location="lib/jasperlib/groovy-sandbox-1.26-jaspersoft-2.jar"/>
<pathelement location="lib/jasperlib/groovy-3.0.7.jar"/>
<pathelement location="lib/jasperlib/log4j-api-2.14.0.jar"/>
<pathelement location="lib/jasperlib/log4j-core-2.14.0.jar"/>
<pathelement location="lib/jasperlib/log4j-jcl-2.14.0.jar"/>
<pathelement location="lib/jasperlib/slf4j-nop-1.7.26.jar"/>
<pathelement location="lib/jasperlib/slf4j-api-1.7.26.jar"/>
<pathelement location="lib/jasperlib/velocity-engine-core-2.3.jar"/>
<pathelement location="lib/jasperlib/net.tascalate.asmx.analysis-7.0.1.jar"/>
<pathelement location="lib/jasperlib/net.tascalate.asmx.tree-7.0.1.jar"/>
<pathelement location="lib/jasperlib/net.tascalate.asmx-7.0.1.jar"/>
<pathelement location="lib/jasperlib/net.tascalate.javaflow.providers.asm5-2.6.0.jar"/>
<pathelement location="lib/jasperlib/net.tascalate.javaflow.providers.asmx-2.6.0.jar"/>
<pathelement location="lib/jasperlib/net.tascalate.javaflow.spi-2.6.0.jar"/>
<pathelement location="lib/jasperlib/net.tascalate.javaflow.tools.jar-2.6.0.jar"/>
<pathelement location="lib/jasperlib/net.tascalate.javaflow.api-2.6.0.jar"/>
<pathelement location="lib/jasperlib/net.tascalate.javaflow.tools.ant-2.6.0.jar"/>
</path>

<target name="init">
<mkdir dir="bin"/>
<copy includeemptydirs="false" todir="bin">
<fileset dir="src">
<exclude name="**/*.launch"/>
<exclude name="**/*.java"/>
</fileset>
</copy>
</target>
<target name="clean">
<delete dir="bin"/>
</target>
<target depends="clean" name="cleanall"/>
<target depends="build-subprojects,build-project" name="build"/>
<target name="build-subprojects"/>
<target depends="init" name="build-project">
<echo message="${ant.project.name}: ${ant.file}"/>
<javac debug="true" debuglevel="${debuglevel}" destdir="bin" includeantruntime="false" source="${source}" target="${target}">
<src path="src"/>
<classpath refid="b5.classpath"/>
</javac>
</target>
<target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects"/>

<target name="cleanreports">
<delete>
<fileset dir="./reports/" includes="**/*.jasper"/>
</delete>
</target>

<target name="compilereports" description="Compiles report designs specified using the &quot;srcdir&quot; in the &lt;jrc&gt; tag." >
<taskdef name="jrc" classname="net.sf.jasperreports.ant.JRAntCompileTask">
<classpath refid="b5.classpath"/>
</taskdef>
<jrc
srcdir="./reports"
destdir="./reports"
tempdir="./reports"
keepjava="false"
xmlvalidation="true">
<classpath refid="b5.classpath"/>
<include name="**/*.jrxml"/>
</jrc>
</target>
</project>

#3

OK - using the setting you mentioned and adding the jasperreports.properties file I can suppress the error message when my ANT build.xml compiles my reports.

Going back to my initial concern - is there any guidance as to the support for Java versions > 11 ?

I would have expected a Requirements section to document this somewhere.

Thanks

Dave

Feedback
randomness