Jump to content

Unable to generate DataMatrix in Jasper 6.20.0


Go to solution Solved by marten.carlzon,

Recommended Posts

Posted

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.0
batik-bridge1.16
jasperreports-fonts6.20.0
jasperreports-functions6.20.0
barbeque1.5-beta1
barcode4j2.1
aspose.words-jasperreports22.12.0

I 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.

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Posted

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
Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...