0
I’m trying to generate billet 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 am using the standard class that is available on github.
I think this error is being caused because the file is in some wrong format, however it came in the package in template folder.
As error, your file is corrupted. Tried to download it again?
– Bruno César
Yes, I tried. the file is a Jasperstudio jrxml
– SoabTI
Then it might be corrupted in the file provided by themselves. Take the JRXML from the repository and Compile again, it might work.
– Bruno César