Jump to content
Changes to the Jaspersoft community edition download ×

[JR1.3.3] ClassCastException:JRBaseLine


michaelzhao

Recommended Posts

Hi,guys:

 

I just downloaded JR 1.3.3 and tried the demo under jasper, but the problem shows:

 

ant viewDesign:

...

viewDesign:

[java] class net.sf.jasperreports.engine.base.JRBaseElementGroup

[java] Exception in thread "main" java.lang.ClassCastException: net.sf.jasperreports.engine.base.JRBaseLine

[java] class net.sf.jasperreports.engine.base.JRBaseLine

[java] at net.sf.jasperreports.view.JRPreviewBuilder.setElements(JRPreviewBuilder.java:366)

[java] at net.sf.jasperreports.view.JRPreviewBuilder.setElements(JRPreviewBuilder.java:333)

[java] at net.sf.jasperreports.view.JRPreviewBuilder.addBandElements(JRPreviewBuilder.java:400)

[java] at net.sf.jasperreports.view.JRPreviewBuilder.createJasperPrint(JRPreviewBuilder.java:192)

[java] at net.sf.jasperreports.view.JRPreviewBuilder.<init>(JRPreviewBuilder.java:149)

[java] at net.sf.jasperreports.view.JasperDesignViewer.setReport(JasperDesignViewer.java:506)

[java] at net.sf.jasperreports.view.JasperDesignViewer.loadReport(JasperDesignViewer.java:473)

[java] at net.sf.jasperreports.view.JasperDesignViewer.<init>(JasperDesignViewer.java:150)

[java] at net.sf.jasperreports.view.JasperDesignViewer.viewReport(JasperDesignViewer.java:408)

[java] at net.sf.jasperreports.view.JasperDesignViewer.viewReport(JasperDesignViewer.java:339)

[java] at net.sf.jasperreports.view.JasperDesignViewer.main(JasperDesignViewer.java:311)

 

I checked the code and docs, looks like the JRDesignElement Class just a subclass of JRBaseElement, the element JRBaseLine OR JRBaseElement can not be casted to JRDesignElement.

 

After I tried to use the 1.3.2.jar, it turned to be OK.

 

Does anyone had the same problem?

 

Is this a bug or something else?

 

Post edited by: michaelzhao, at: 2007/05/24 05:38

 

Post edited by: michaelzhao, at: 2007/05/24 05:39

Post edited by: michaelzhao, at: 2007/05/24 05:42

Link to comment
Share on other sites

  • 2 weeks later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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