Jump to content
Changes to the Jaspersoft community edition download ×

JRXmlLoader.loadXML) error on StackedBarChart


Recommended Posts

By: Thomas Ludwig Kast - tomkast

JRXmlLoader.loadXML) error on StackedBarChart

2006-01-12 19:16

hi,

 

i am getting an error using jasperrpeorts 1.1.1 when i try to load the StackedBarChartReport.jrxml into a JasperDesign (using JRXmlLoader.loadXML(new FileInputStream(new File(file.jrxml)));)

 

the error i get is:

[junit] net.sf.jasperreports.engine.JRException: Error at line 91 char 18: n

ull

[junit] at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoad

er.java:242)

[junit] at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoad

er.java:225)

[junit] at net.sf.ussrp.tests.bus.transformation.TestChartTransform.setU

p(TestChartTransform.java:127)

[junit] at junit.framework.TestCase.runBare(TestCase.java:125)

 

...the stack trace is:

[java] SEVERE: Begin event threw exception

[java] java.lang.NullPointerException

[java] at net.sf.jasperreports.engine.design.JRDesignChart.setChartType

JRDesignChart.java:520)

[java] at net.sf.jasperreports.engine.design.JRDesignChart.<init>(JRDes

gnChart.java:158)

[java] at net.sf.jasperreports.charts.xml.JRStackedBarChartFactory.crea

eObject(JRStackedBarChartFactory.java:51)

[java] at org.apache.commons.digester.FactoryCreateRule.begin(FactoryCr

ateRule.java:389)

[java] at org.apache.commons.digester.Digester.startElement(Digester.ja

a:1361)

 

 

 

 

JRXmlLoader.loadXML works fine with three other charts reports (bar 3d chart, pie 3d chart, area chart). also the demo/samples/charts/StackedBarChartReport.jrxml throws the same error when adding JRXmlLoader.loadXML(...StackedBarChartReport.jrxml...) to ChartsApp.java and running from ant...

 

tom

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

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