Jump to content
We've recently updated our Privacy Statement, available here ×

Getting a JRException: Error loading object from InputStream when filling report on loop


blamblam
Go to solution Solved by blamblam,

Recommended Posts

Hi I'm trying to create a report for multiple users so I have a loop that goes through the List of users and creates a report based on their details. Inside the loop I have a JasperFillManager like this: 

def jrprint = JasperFillManager.fillReport(resource.get(), parameters, dataSource)[/code]

where resource is the .jasper file, parameter contains the details of the users and dataSource is aa JRBeanCollectionDataSource. It creates the first report just fine but flags an error on the second loop:

net.sf.jasperreports.engine.JRException: Error loading object from InputStream.[/code]

I hope you can help me, thanks!

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...