NotSerializableException SimpleFileResolver

0

Hi,

We are using JR 4.5 in an application deployed on Jboss 7.0 cluster. We are getting the following error:

java.io.NotSerializableException: net.sf.jasperreports.engine.util.SimpleFileResolver

How can we resolve it?

Thanks,

 

recursoshumanos001's picture
Joined: Jun 21 2013 - 8:21am
Last seen: 6 years 4 months ago

1 Answer:

1

The SimpleFileResolver uses a java.util.List which is not serializeable. Looking at the source, I assume the simplest way to get around would be to implement your own FileResolver (implement the net.sf.jasperreports.engine.util.FileResolverInterface, copy from SimpleFileResolver and use an ArrayList instead of List)

Cheers, Thomas

http://www.thomaszimmer.net

Thomas Zimmer's picture
Joined: Oct 2 2012 - 1:35am
Last seen: 5 days 12 hours ago

Thank you very much.

recursoshumanos001 - 6 years 4 months ago
Feedback