marten.carlzon Posted January 26, 2023 Posted January 26, 2023 Hi,We are in the works of going up from iReport 5.1.0 to Jaspersoft Studio 6.20.0 to be up to date but have found an issue with generating DataMatrix and was wondering if I could get some help here.When trying to generate the DataMatrix we get the following error:[ERROR] Receiver class org.apache.batik.script.rhino.RhinoInterpreterFactory does not define or inherit an implementation of the resolved method 'abstract java.lang.String[] getMimeTypes()' of interface org.apache.batik.script.InterpreterFactory.java.lang.AbstractMethodError: Receiver class org.apache.batik.script.rhino.RhinoInterpreterFactory does not define or inherit an implementation of the resolved method 'abstract java.lang.String[] getMimeTypes()' of interface org.apache.batik.script.InterpreterFactory. at org.apache.batik.script.InterpreterPool.<clinit>(InterpreterPool.java:67) at org.apache.batik.bridge.BridgeContext.<clinit>(BridgeContext.java:276) at net.sf.jasperreports.renderers.AbstractSvgDataToGraphics2DRenderer.getRootNode(AbstractSvgDataToGraphics2DRenderer.java:170) at net.sf.jasperreports.renderers.AbstractSvgDataToGraphics2DRenderer.render(AbstractSvgDataToGraphics2DRenderer.java:89) at net.sf.jasperreports.renderers.WrappingDataToGraphics2DRenderer.render(WrappingDataToGraphics2DRenderer.java:104) at net.sf.jasperreports.renderers.WrappingDeprecatedRenderable.render(WrappingDeprecatedRenderable.java:173) at net.sf.jasperreports.engine.JRWrappingSvgRenderer.render(JRWrappingSvgRenderer.java:105) at net.sf.jasperreports.engine.JRAbstractSvgRenderer.getImageData(JRAbstractSvgRenderer.java:174) at net.sf.jasperreports.engine.JRAbstractSvgRenderer.getImageData(JRAbstractSvgRenderer.java:123) at com.aspose.words.jasperreports.internal.awjr3042.a(Unknown Source) at com.aspose.words.jasperreports.internal.awjr3050.awz(Unknown Source) at com.aspose.words.jasperreports.internal.awjr3050.<init>(Unknown Source) at com.aspose.words.jasperreports.internal.awjr4.a(Unknown Source) at com.aspose.words.jasperreports.internal.awjr4.a(Unknown Source) at com.aspose.words.jasperreports.internal.awjr4.a(Unknown Source) at com.aspose.words.jasperreports.AWAbstractExporter.a(Unknown Source) at com.aspose.words.jasperreports.AWAbstractExporter.exportReport(Unknown Source) at idainfront.forensic.lims.report.jasper.JasperReportProcess.generateReport(JasperReportProcess.java:190) at idainfront.forensic.lims.report.jasper.JasperReportProcess.main(JasperReportProcess.java:81)[/code]I think we might have wrong versions in our maven dependencies but not sure.The setup we have is:Jasperreports6.20.0batik-bridge1.16jasperreports-fonts6.20.0jasperreports-functions6.20.0barbeque1.5-beta1barcode4j2.1aspose.words-jasperreports22.12.0I have tried with batik-bridge 1.14 as well with no luck..We don't use Jasperstarter as someone mentioned in an earlier question. We juse, JRLoader, JRXmlLoader and JasperCompileManager as we use XML files as datasources.It can be previewed in JaspersoftStudio, but not compiled when we make the report from our software.
marten.carlzon Posted January 26, 2023 Author Posted January 26, 2023 Can mention that other barcodes seem to work, Code128, QRCode etc, but not DataMatrix which is what our customer wants to use.
Raphaël Peguet Posted February 2, 2023 Posted February 2, 2023 Hello, do you use the same Java version with Jasper 6.20 as with Jasper 5.1?
marten.carlzon Posted February 2, 2023 Author Posted February 2, 2023 No, iReport 5.1 doesn't support above java 7, but we are now using Java 11 with Jasper 6.20.
marten.carlzon Posted February 3, 2023 Author Posted February 3, 2023 We seem to have found the issue. Apparently some old dependencies of batik-bridge was not updated as it should and ended up first on classpath so we didn't use the version we thought but the old one from iReport 5.1.0 and therefor we got the errors with DataMatrix.Cleaned out all old versions and now it works as it should.
Solution marten.carlzon Posted February 3, 2023 Author Solution Posted February 3, 2023 Issue has been resolved, not all dependencies had been updated to new versions and old versions ended up on classpath ahead of the ones we wanted to use. This caused the issue as the old code wasn't compatible with newer code for barcode: data matrix.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now