Jump to content
Changes to the Jaspersoft community edition download ×

JasperServer & Charts


cpscdave

Recommended Posts

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 iReport

However 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

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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.

 

Sherman

Jaspersoft

 

Link to comment
Share on other sites

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...