PDA

View Full Version : classic-extensions raises null pointer exception on windows



clapas
10-28-2016, 07:56 AM
Hi there,

I have been embedding pentaho reporting for more than a year sucessfully, but recently I included the classic-extensions library in order to support barcodes in my reports, and this has raised a problem, but only in Windows:

WARNING: Failed to print the report
java.lang.NullPointerException
at javax.print.attribute.HashAttributeSet.add(Unknown Source)
at org.pentaho.reporting.engine.classic.extensions.modules.java14print.Java14PrintUtil.copyConfiguration(Java14PrintUtil.java:136)
at org.pentaho.reporting.engine.classic.extensions.modules.java14print.Java14PrintUtil.print(Java14PrintUtil.java:352)

I have tried various versions: 5.0.1-stable, 5.0.7 and 6.1.0.7-258, all with the same results.

It works smoothly on Linux!

Any idea?

Thank you!