cpscdave Posted November 4, 2008 Share Posted November 4, 2008 Hi everyone,I built a report locally using iReport 2.0.1, and 3 subreports. The one subreport that just displays data runs fine on JasperServer.They all run with-out issue locally on my machine via iReportHowever the 2 subreports that use charts both throw errors and I have no idea why. We tried upgrading from JasperServer 2 to JasperServer 3 (whatever the most recent version is) The one chart is a pie graph and it gives the error: cannot assign instance of java.util.TreeMap to field org.jfree.chart.plot.PiePlot.explodePercentages of type org.jfree.util.ObjectList in instance of org.jfree.chart.plot.PiePlot3D java.lang.ClassCastException: cannot assign instance of java.util.TreeMap to field org.jfree.chart.plot.PiePlot.explodePercentages of type org.jfree.util.ObjectList in instance of org.jfree.chart.plot.PiePlot3D at java.io.ObjectStreamClass$FieldReflector.setObjFieldValues(Unknown Source)..... The other chart is a bar graph and it's giving the error:Error loading object from InputStream net.sf.jasperreports.engine.JRException: Error loading object from InputStream at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:196) at com.jaspersoft.jasperserver.irplugin.wsclient.WSClient.runReport(WSClient.java:316) at com.jaspersoft.jasperserver.irplugin.ReportRunner.run(ReportRunner.java:78) at java.lang.Thread.run(Unknown Source) Caused by: java.io.InvalidClassException: org.jfree.chart.plot.ValueMarker; local class incompatible: stream classdesc serialVersionUID = -7723230047083002786, local class serialVersionUID = -8443836095770227598 at java.io.ObjectStreamClass.initNonProxy(Unknown Source) Any suggestions as to what's going on would be greatly appricated spent all of yesterday bashing my head against the wall with these errors.-Dave Link to comment Share on other sites More sharing options...
swood Posted November 4, 2008 Share Posted November 4, 2008 Upgrade to the latest iReport. JFreeChart changed between iReport and JS version 2 and version 3. ShermanJaspersoft Link to comment Share on other sites More sharing options...
cpscdave Posted November 7, 2008 Author Share Posted November 7, 2008 Okay for whatever reason the charts still do not work when I try and generate them via iReport->server connection. However it all works good via the soap calls which is what we care about so problem solved :D Link to comment Share on other sites More sharing options...
swood Posted November 8, 2008 Share Posted November 8, 2008 When you run the report through web services, you can get a JasperReports JasperPrint java object back, or HTML, PDF etc.The iReport plugin is getting the JasperPrint object, so the Java objects have to be compatible between iReport and JasperServer. iReport 2.0.1 has older versions of JasperReports and JFreeChart compared to JasperServer v3, hence the problem. ShermanJaspersoft 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