I'm trying to generate ticket with Stella but I'm getting the following error
Exception in thread "main" br.com.caelum.stella.boleto.exception.GeracaoBoletoException: net.sf.jasperreports.engine.JRException: Error loading object from InputStream
at br.com.caelum.stella.boleto.transformer.GeradorDeBoleto.<init>(GeradorDeBoleto.java:62)
at br.com.caelum.stella.boleto.transformer.GeradorDeBoleto.<init>(GeradorDeBoleto.java:72)
at Teste.main(Teste.java:69)
Caused by: net.sf.jasperreports.engine.JRException: Error loading object from InputStream
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:249)
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:229)
at br.com.caelum.stella.boleto.transformer.GeradorDeBoleto.<init>(GeradorDeBoleto.java:60)
... 2 more
Caused by: java.io.StreamCorruptedException: invalid stream header: 3C3F786D
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:806)
at java.io.ObjectInputStream.<init>(ObjectInputStream.java:299)
at net.sf.jasperreports.engine.util.ContextClassLoaderObjectInputStream.<init>(ContextClassLoaderObjectInputStream.java:58)
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:244)
... 4 more
I'm using the default class that is available in the github .
I think this error is caused by the fact that the file is in some wrong format, but that's what came in the package in the template folder.