wodarski Posted April 3, 2007 Share Posted April 3, 2007 Hello folks, I use JasperReports 0.6.7 and I would like upgrade it to the newest version. I tried just change jasperreports.jar file (and its dependencies) in my application classpath, without recompiling my reports, and I got this exception: Code:java.io.InvalidClassException: net.sf.jasperreports.engine.base.JRBaseReport; local class incompatible: stream classdesc serialVersionUID = 607, local class serialVersionUID = 10200 at java.io.ObjectStreamClass.initNonProxy(Ljava/io/ObjectStreamClass;Ljava/lang/Class;Ljava/lang/ClassNotFoundException;Ljava/io/ObjectStreamClass;«»)V(Unknown Source) at java.io.ObjectInputStream.readNonProxyDesc(Z)Ljava/io/ObjectStreamClass;(Unknown Source) at java.io.ObjectInputStream.readClassDesc(Z)Ljava/io/ObjectStreamClass;(Unknown Source) at java.io.ObjectInputStream.readNonProxyDesc(Z)Ljava/io/ObjectStreamClass;(Unknown Source) at java.io.ObjectInputStream.readClassDesc(Z)Ljava/io/ObjectStreamClass;(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Z)Ljava/lang/Object;(Unknown Source) at java.io.ObjectInputStream.readObject0(Z)Ljava/lang/Object;(Unknown Source) at java.io.ObjectInputStream.readObject()Ljava/lang/Object;(Unknown Source) at net.sf.jasperreports.engine.util.JRLoader.loadObject(Ljava/io/InputStream;«»)Ljava/lang/Object;(JRLoader.java:192) at net.sf.jasperreports.engine.JasperFillManager.fillReport(Ljava/io/InputStream;Ljava/util/Map;Lnet/sf/jasperreports/engine/JRDataSource;«»)Lnet/sf/jasperreports/engine/JasperPrint;(JasperFillManager.java:580)......... When I recompile my reports they work fine. So, do I really need to recompile all my reports? Are the newer JasperReports version not compatible with the older ones? Thanks,Mauricio Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now