Free Support Forum - aspose.com

Cvc-complex-type.2.4.a: Invalid content was found starting with element 'bc:asposebarcode'. One of '{"http://jasperreports.sourceforge.net/jasperreports":component}' is expected

Hello,

I want to use aspose for our jasper reports.

But while running your sample code at http://www.aspose.com/documentation/jasperreports-exporters/aspose.barcode-for-jasperreports/printing-barcodes-in-report-that-uses-datasource.html i am getting exception as
net.sf.jasperreports.engine.JRException: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element ‘bc:asposebarcode’. One of ‘{“http://jasperreports.sourceforge.net/jasperreports”:component}’ is expected.
at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:245)
at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:228)
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:216)
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:170)
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:154)
at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:111)
at org.mkcl.embassy.common.Main2.main(Main2.java:40)

Please help me out to overcome from it.


This message was posted using Page2Forum from Printing BarCodes in Report that uses DataSource - Aspose.BarCode for JasperReports

Hi,


Thank you for inquiry.

A similar example is also included in the samples provided with the download. Could you please check http://www.aspose.com/documentation/jasperreports-exporters/aspose.barcode-for-jasperreports/using-the-demos.html page, run this demo and see if it works using ant?