Stella Boleto error loading jrxml

Asked

Viewed 257 times

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?

  • Yes, I tried. the file is a Jasperstudio jrxml

  • Then it might be corrupted in the file provided by themselves. Take the JRXML from the repository and Compile again, it might work.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.