JasperStarter could not run reports with Barcode4J barcodes

Description

When I am trying to run JasperStarter with jrxml that have Barcode4J barcode in it I get following error:

Environment

Windows OS
TIBCO JasperSoft Studio
Java version 8.

Activity

Show:
Klemen Pukl
October 11, 2017, 7:02 AM

Hi Volker.

Thanks for quick response.
Of course you can use example data files. I hope that the files will help you with this issue.

Best Regards
Klemen

Volker Voßkämper
October 11, 2017, 4:21 PM

They helped much. The issue is already solved
I will change the brand to example.com and write a test using your files.
Thanx

Marcos Marciel Pagung
October 22, 2019, 12:46 PM

Please judge me a light, I need to generate a qrcode, but just give me the error!

 

Fatal error: Uncaught Exception: Warning: Could not get charToByteConverterClass! in E:\xampp\htdocs\gerador relatorios\vendor\copam\phpjasper7\src\PHPJasper.php:216 Stack trace: #0 E:\xampp\htdocs\gerador relatorios\index.php(67): PHPJasper\PHPJasper->execute() #1 {main} thrown in E:\xampp\htdocs\gerador relatorios\vendor\copam\phpjasper7\src\PHPJasper.php on line 216

Volker Voßkämper
November 6, 2019, 8:08 PM

Hi Marcos,

you commented an already closed bug. This problem is solved with JasperStarter 3.2.0.

You are using a php library that most likely ship with a version of JasperStarter - mayby it is older than 3.2.0.
Please check the version of JasperStarter you're using and if it is >= 3.2.0 then try to repoduce the error on the command line without php.
Only if you can reproduce the error this way, reopen this issue and give detailed instruction to reproduce it.

Best regards
Volker

Tom Mendes Pereira
December 18, 2019, 2:27 PM
Edited

Hello guys!
I use PHPJasper with JasperStarter 3.5.0 Rev a2e9c21 (JasperStarter-3.5.0) and when I try to run the report with QRCode I get the error below. Note that we read "Caused by: java.lang.ClassNotFoundException". Could a class be missing? Error:
Exception in thread "main" java.lang.NoClassDefFoundError: com / google / zxing / WriterException
        at java.lang.Class.forName0 (Native Method)
        at java.lang.Class.forName (Class.java:348)
        at net.sf.jasperreports.engine.util.JRClassLoader.loadClassForRealName (JRClassLoader.java:173)
        at net.sf.jasperreports.engine.util.JRClassLoader.loadClassForName (JRClassLoader.java:131)
        at net.sf.jasperreports.engine.util.JRSingletonCache.createInstance (JRSingletonCache.java:87)
        at net.sf.jasperreports.engine.util.JRSingletonCache.getCachedInstance (JRSingletonCache.java:76)
        at net.sf.jasperreports.components.barcode4j.BarcodeUtils.getQRCodeProducer (BarcodeUtils.java:109)
        at net.sf.jasperreports.components.barcode4j.AbstractBarcodeEvaluator.evaluateBarcodeRenderable (AbstractBarcodeEvaluator.java:120)
        at net.sf.jasperreports.components.barcode4j.AbstractBarcodeEvaluator.visitQRCode (AbstractBarcodeEvaluator.java:530)
        at net.sf.jasperreports.components.barcode4j.QRCodeComponent.receive (QRCodeComponent.java:73)
        at net.sf.jasperreports.components.barcode4j.AbstractBarcodeEvaluator.evaluateBarcode (AbstractBarcodeEvaluator.java:85)
        at net.sf.jasperreports.components.barcode4j.BarcodeFillComponent.evaluateBarcode (BarcodeFillComponent.java:83)
        at net.sf.jasperreports.components.barcode4j.BarcodeFillComponent.evaluate (BarcodeFillComponent.java:70)
        at net.sf.jasperreports.engine.fill.JRFillComponentElement.evaluate (JRFillComponentElement.java:110)
        at net.sf.jasperreports.engine.fill.JRFillElementContainer.evaluate (JRFillElementContainer.java:383)
        at net.sf.jasperreports.engine.fill.JRFillBand.evaluate (JRFillBand.java:548)
        at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand (JRVerticalFiller.java:2583)
        at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillGroupFooter (JRVerticalFiller.java:1008)
        at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillGroupFooters (JRVerticalFiller.java:903)
        at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportEnd (JRVerticalFiller.java:295)
        at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport (JRVerticalFiller.java:117)
        at net.sf.jasperreports.engine.fill.JRBaseFiller.fill (JRBaseFiller.java:615)
        at net.sf.jasperreports.engine.fill.BaseReportFiller.fill (BaseReportFiller.java:413)
        at net.sf.jasperreports.engine.fill.JRFiller.fill (JRFiller.java:120)
        at net.sf.jasperreports.engine.fill.JRFiller.fill (JRFiller.java:103)
        at net.sf.jasperreports.engine.JasperFillManager.fill (JasperFillManager.java:530)
        at net.sf.jasperreports.engine.JasperFillManager.fillReport (JasperFillManager.java:954)
        at de.cenote.jasperstarter.Report.fillInternal (Report.java:338)
        at de.cenote.jasperstarter.Report.fill (Report.java:282)
        at de.cenote.jasperstarter.App.processReport (App.java:226)
        at de.cenote.jasperstarter.App.main (App.java:109)
Caused by: java.lang.ClassNotFoundException: com.google.zxing.WriterException
        at java.net.URLClassLoader.findClass (URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass (ClassLoader.java:424)
        at sun.misc.Launcher $ AppClassLoader.loadClass (Launcher.java:335)
        at java.lang.ClassLoader.loadClass (ClassLoader.java:357)
        ... more

Assignee

Volker Voßkämper

Reporter

Klemen Pukl

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure