Jump to content
Changes to the Jaspersoft community edition download ×

problem running the Addressbook example


Recommended Posts

By: quiq - quiq

problem running the Addressbook example

2005-04-04 03:16

Hi all.

i get this error when i trying to run the XMldatasourse example :

Filling report... Error filling print... org.apache.xpath.XPathException: #NUMBER kann nicht in NodeList konvertiert werden!     at org.apache.xpath.objects.XObject.error(Unknown Source)     at org.apache.xpath.objects.XObject.nodeset(Unknown Source)     at org.apache.xpath.CachedXPathAPI.selectNodeIterator(Unknown Source)     at org.apache.xpath.CachedXPathAPI.selectSingleNode(Unknown Source)     at org.apache.xpath.CachedXPathAPI.selectSingleNode(Unknown Source)     at net.sf.jasperreports.engine.data.JRXmlDataSource.getFieldValue(JRXmlDataSource.java:378)     at net.sf.jasperreports.engine.fill.JRBaseFiller.next(JRBaseFiller.java:890)     at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:160)     at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:691)     at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:160)     at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:472)     at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:388)     at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:526)     at java.lang.Thread.run(Unknown Source) NESTED BY : org.apache.xpath.XPathException: #NUMBER kann nicht in NodeList konvertiert werden!     at org.apache.xpath.objects.XObject.error(Unknown Source)     at org.apache.xpath.objects.XObject.nodeset(Unknown Source)     at org.apache.xpath.CachedXPathAPI.selectNodeIterator(Unknown Source)     at org.apache.xpath.CachedXPathAPI.selectSingleNode(Unknown Source)     at org.apache.xpath.CachedXPathAPI.selectSingleNode(Unknown Source)     at net.sf.jasperreports.engine.data.JRXmlDataSource.getFieldValue(JRXmlDataSource.java:378)     at net.sf.jasperreports.engine.fill.JRBaseFiller.next(JRBaseFiller.java:890)     at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:160)     at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:691)     at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:160)     at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:472)     at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:388)     at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:526)     at java.lang.Thread.run(Unknown Source) NESTED BY : net.sf.jasperreports.engine.JRException: XPath selection failed. Expression: /addressbook/category/person+LASTNAME     at net.sf.jasperreports.engine.data.JRXmlDataSource.getFieldValue(JRXmlDataSource.java:380)     at net.sf.jasperreports.engine.fill.JRBaseFiller.next(JRBaseFiller.java:890)     at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:160)     at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:691)     at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:160)     at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:472)     at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:388)     at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:526)     at java.lang.Thread.run(Unknown Source) Caused by: org.apache.xpath.XPathException: #NUMBER kann nicht in NodeList konvertiert werden!     at org.apache.xpath.objects.XObject.error(Unknown Source)     at org.apache.xpath.objects.XObject.nodeset(Unknown Source)     at org.apache.xpath.CachedXPathAPI.selectNodeIterator(Unknown Source)     at org.apache.xpath.CachedXPathAPI.selectSingleNode(Unknown Source)     at org.apache.xpath.CachedXPathAPI.selectSingleNode(Unknown Source)     at net.sf.jasperreports.engine.data.JRXmlDataSource.getFieldValue(JRXmlDataSource.java:378)     ... 8 more Print not filled. Try to use an EmptyDataSource...!

 

The Field "LASTNAME" is defined as follow: /addressbook/category/person+LASTNAME.

 

please help me?

thanks in advance

Inga.

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