Jump to content
Changes to the Jaspersoft community edition download ×

Compiling report: Nullpointer exception


Recommended Posts


we are migrating from version 1.2.6 to 1.3.3. When we try to compile a JasperDesign which was stored in 1.2.6 using JRSaver.saveObject() (to save the report to a stream) we get the following Nullpointer exception. Is this a bug or should we use a different approach?:



at net.sf.jasperreports.engine.design.JRDesignDataset.getSortFields(JRDesignDataset.java:521)

at net.sf.jasperreports.engine.design.JRVerifier.verifySortFields(JRVerifier.java:708)

at net.sf.jasperreports.engine.design.JRVerifier.verifyDataset(JRVerifier.java:2372)

at net.sf.jasperreports.engine.design.JRVerifier.verifyDesign(JRVerifier.java:213)

at net.sf.jasperreports.engine.design.JRVerifier.verifyDesign(JRVerifier.java:183)

at net.sf.jasperreports.engine.design.JRAbstractCompiler.verifyDesign(JRAbstractCompiler.java:257)

at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:144)

at net.sf.jasperreports.engine.design.JRDefaultCompiler.compileReport(JRDefaultCompiler.java:105)

at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:212)


kind regards,

Christiaan [file name=reportsaved.txt size=7857]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/reportsaved.txt[/file]

Post edited by: christiaan_se, at: 2007/05/03 15:11

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic



This is a bug. It will be solved in a future release.

If you want to workaround it, you can use 1.2.6 to load the JasperDesign objects and then export them to JRXML format. Then with 1.3.3, you load them from JRXML and serialize again.


I hope this helps.


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