Error with DataMatrix


I have a bug or a error when I try to use a DataMatrix code in my report in the php, in jaspersoft studio the report works normaly, he print the DataMatrix but when I put in de php, I have a error, I tested without the code of DataMatrix and it works.

This is the code of DataMatrix:

  <reportElement x="232" y="37" width="75" height="66" uuid="162f75f3-5070-4402-9650-ea6342d1997e"/>
  <jr:DataMatrix xmlns:jr="" xsi:schemaLocation="">

This is the errors:

Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.
Tue Oct 30 11:00:13 BRT 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Warning: Could not get charToByteConverterClass!

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/batik/bridge/FontFamilyResolver
at net.sf.jasperreports.renderers.util.SvgDataSniffer.<init>(
at net.sf.jasperreports.renderers.util.SvgDataSniffer.getInstance(
at net.sf.jasperreports.renderers.util.RendererUtil.getSvgDataSniffer(
at net.sf.jasperreports.renderers.util.RendererUtil.isSvgData(
at net.sf.jasperreports.renderers.util.RendererUtil.isSvgData(
at net.sf.jasperreports.engine.export.JRPdfExporter$InternalImageProcessor.process(
at net.sf.jasperreports.engine.export.JRPdfExporter$InternalImageProcessor.access$300(
at net.sf.jasperreports.engine.export.JRPdfExporter.exportImage(
at net.sf.jasperreports.engine.export.JRPdfExporter.exportElements(
at net.sf.jasperreports.engine.export.JRPdfExporter.exportFrame(
at net.sf.jasperreports.engine.export.JRPdfExporter.exportElements(
at net.sf.jasperreports.engine.export.JRPdfExporter.exportPage(
at net.sf.jasperreports.engine.export.JRPdfExporter.exportReportToStream(
at net.sf.jasperreports.engine.export.JRPdfExporter.exportReport(
at net.sf.jasperreports.engine.JasperExportManager.exportToPdfFile(
at net.sf.jasperreports.engine.JasperExportManager.exportReportToPdfFile(
at de.cenote.jasperstarter.Report.exportPdf(
at de.cenote.jasperstarter.App.processReport(
at de.cenote.jasperstarter.App.main(
Caused by: java.lang.ClassNotFoundException: org.apache.batik.bridge.FontFamilyResolver
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
... 19 more

I'm using the jdbc most current and the other reports I have in the code they works, this is not a problem, but he appoint that, the error is the second code.

Anyone knows how fix that ?

I'm using php with Yii2 FrameWork and the chrmorandi for jasper.

Gabriel Nadodoski

gabriel.nadoroski's picture
Joined: Oct 1 2018 - 2:05pm
Last seen: 4 years 9 months ago

1 Answer:

I found the solution, if you using JasperStarter only atualize the files, just do this he come it work again.

Here is the link where I do the download:

Thanks !

gabriel.nadoroski's picture
Joined: Oct 1 2018 - 2:05pm
Last seen: 4 years 9 months ago