mardi 14 octobre 2014

jasper Report Caused by: net.sf.jasperreports.engine.JRException: org.xml.sax.SAXParseException;


Vote count:

0




I want to use Jasper Report that is open source.


But these errors occurred.



  • Development environment : Spring + iBatis + tomcat


please help me! :)


have a good day!have a good day!have a good day!have a good day!have a good day!have a good day! have a good day!have a good day!have a good day!have a good day!have a good day!have a good day!



org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ExpenseListExcel' defined in ServletContext resource [/WEB-INF/config/context-jasper.xml]: Initialization of bean failed; nested exception is org.springframework.context.ApplicationContextException: Could not parse JasperReports report from class path resource [reports/ExpenseList.jrxml]; nested exception is net.sf.jasperreports.engine.JRException: org.xml.sax.SAXParseException; lineNumber: 58; columnNumber: 60; cvc-complex-type.2.4.a: Invalid content was found starting with element 'property'. One of '{"http://ift.tt/1bXYvZE":printWhenExpression, "http://ift.tt/1bXYvZE":break, "http://ift.tt/1bXYvZE":line, "http://ift.tt/1bXYvZE":rectangle, "http://ift.tt/1bXYvZE":ellipse, "http://ift.tt/1bXYvZE":image, "http://ift.tt/1bXYvZE":staticText, "http://ift.tt/1bXYvZE":textField, "http://ift.tt/1bXYvZE":subreport, "http://ift.tt/1bXYvZE":pieChart, "http://ift.tt/1bXYvZE":pie3DChart, "http://ift.tt/1bXYvZE":barChart, "http://ift.tt/1bXYvZE":bar3DChart, "http://ift.tt/1bXYvZE":xyBarChart, "http://ift.tt/1bXYvZE":stackedBarChart, "http://ift.tt/1bXYvZE":stackedBar3DChart, "http://ift.tt/1bXYvZE":lineChart, "http://ift.tt/1bXYvZE":xyLineChart, "http://ift.tt/1bXYvZE":areaChart, "http://ift.tt/1bXYvZE":xyAreaChart, "http://ift.tt/1bXYvZE":scatterChart, "http://ift.tt/1bXYvZE":bubbleChart, "http://ift.tt/1bXYvZE":timeSeriesChart, "http://ift.tt/1bXYvZE":highLowChart, "http://ift.tt/1bXYvZE":candlestickChart, "http://ift.tt/1bXYvZE":meterChart, "http://ift.tt/1bXYvZE":thermometerChart, "http://ift.tt/1bXYvZE":multiAxisChart, "http://ift.tt/1bXYvZE":stackedAreaChart, "http://ift.tt/1bXYvZE":ganttChart, "http://ift.tt/1bXYvZE":elementGroup, "http://ift.tt/1bXYvZE":crosstab, "http://ift.tt/1bXYvZE":frame, "http://ift.tt/1bXYvZE":componentElement, "http://ift.tt/1bXYvZE":genericElement}' is expected.
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Caused by: org.springframework.context.ApplicationContextException: Could not parse JasperReports report from class path resource [reports/ExpenseList.jrxml]; nested exception is net.sf.jasperreports.engine.JRException: org.xml.sax.SAXParseException; lineNumber: 58; columnNumber: 60; cvc-complex-type.2.4.a: Invalid content was found starting with element 'property'. One of '{"http://ift.tt/1bXYvZE":printWhenExpression, "http://ift.tt/1bXYvZE":break, "http://ift.tt/1bXYvZE":line, "http://ift.tt/1bXYvZE":rectangle, "http://ift.tt/1bXYvZE":ellipse, "http://ift.tt/1bXYvZE":image, "http://ift.tt/1bXYvZE":staticText, "http://ift.tt/1bXYvZE":textField, "http://ift.tt/1bXYvZE":subreport, "http://ift.tt/1bXYvZE":pieChart, "http://ift.tt/1bXYvZE":pie3DChart, "http://ift.tt/1bXYvZE":barChart, "http://ift.tt/1bXYvZE":bar3DChart, "http://ift.tt/1bXYvZE":xyBarChart, "http://ift.tt/1bXYvZE":stackedBarChart, "http://ift.tt/1bXYvZE":stackedBar3DChart, "http://ift.tt/1bXYvZE":lineChart, "http://ift.tt/1bXYvZE":xyLineChart, "http://ift.tt/1bXYvZE":areaChart, "http://ift.tt/1bXYvZE":xyAreaChart, "http://ift.tt/1bXYvZE":scatterChart, "http://ift.tt/1bXYvZE":bubbleChart, "http://ift.tt/1bXYvZE":timeSeriesChart, "http://ift.tt/1bXYvZE":highLowChart, "http://ift.tt/1bXYvZE":candlestickChart, "http://ift.tt/1bXYvZE":meterChart, "http://ift.tt/1bXYvZE":thermometerChart, "http://ift.tt/1bXYvZE":multiAxisChart, "http://ift.tt/1bXYvZE":stackedAreaChart, "http://ift.tt/1bXYvZE":ganttChart, "http://ift.tt/1bXYvZE":elementGroup, "http://ift.tt/1bXYvZE":crosstab, "http://ift.tt/1bXYvZE":frame, "http://ift.tt/1bXYvZE":componentElement, "http://ift.tt/1bXYvZE":genericElement}' is expected.
at org.springframework.web.servlet.view.jasperreports.AbstractJasperReportsView.loadReport(AbstractJasperReportsView.java:526)
at org.springframework.web.servlet.view.jasperreports.AbstractJasperReportsView.loadReport(AbstractJasperReportsView.java:476)
at org.springframework.web.servlet.view.jasperreports.AbstractJasperReportsView.initApplicationContext(AbstractJasperReportsView.java:306)
at org.springframework.context.support.ApplicationObjectSupport.initApplicationContext(ApplicationObjectSupport.java:119)
at org.springframework.web.context.support.WebApplicationObjectSupport.initApplicationContext(WebApplicationObjectSupport.java:72)
at org.springframework.context.support.ApplicationObjectSupport.setApplicationContext(ApplicationObjectSupport.java:73)
at org.springframework.context.support.ApplicationContextAwareProcessor.invokeAwareInterfaces(ApplicationContextAwareProcessor.java:106)
at org.springframework.context.support.ApplicationContextAwareProcessor.postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:85)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1413)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
... 21 more
Caused by: net.sf.jasperreports.engine.JRException: org.xml.sax.SAXParseException; lineNumber: 58; columnNumber: 60; cvc-complex-type.2.4.a: Invalid content was found starting with element 'property'. One of '{"http://ift.tt/1bXYvZE":printWhenExpression, "http://ift.tt/1bXYvZE":break, "http://ift.tt/1bXYvZE":line, "http://ift.tt/1bXYvZE":rectangle, "http://ift.tt/1bXYvZE":ellipse, "http://ift.tt/1bXYvZE":image, "http://ift.tt/1bXYvZE":staticText, "http://ift.tt/1bXYvZE":textField, "http://ift.tt/1bXYvZE":subreport, "http://ift.tt/1bXYvZE":pieChart, "http://ift.tt/1bXYvZE":pie3DChart, "http://ift.tt/1bXYvZE":barChart, "http://ift.tt/1bXYvZE":bar3DChart, "http://ift.tt/1bXYvZE":xyBarChart, "http://ift.tt/1bXYvZE":stackedBarChart, "http://ift.tt/1bXYvZE":stackedBar3DChart, "http://ift.tt/1bXYvZE":lineChart, "http://ift.tt/1bXYvZE":xyLineChart, "http://ift.tt/1bXYvZE":areaChart, "http://ift.tt/1bXYvZE":xyAreaChart, "http://ift.tt/1bXYvZE":scatterChart, "http://ift.tt/1bXYvZE":bubbleChart, "http://ift.tt/1bXYvZE":timeSeriesChart, "http://ift.tt/1bXYvZE":highLowChart, "http://ift.tt/1bXYvZE":candlestickChart, "http://ift.tt/1bXYvZE":meterChart, "http://ift.tt/1bXYvZE":thermometerChart, "http://ift.tt/1bXYvZE":multiAxisChart, "http://ift.tt/1bXYvZE":stackedAreaChart, "http://ift.tt/1bXYvZE":ganttChart, "http://ift.tt/1bXYvZE":elementGroup, "http://ift.tt/1bXYvZE":crosstab, "http://ift.tt/1bXYvZE":frame, "http://ift.tt/1bXYvZE":componentElement, "http://ift.tt/1bXYvZE":genericElement}' is expected.
at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:247)
at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:230)
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:218)
at org.springframework.web.servlet.view.jasperreports.AbstractJasperReportsView.loadReport(AbstractJasperReportsView.java:509)
... 31 more
Caused by: org.xml.sax.SAXParseException; lineNumber: 58; columnNumber: 60; cvc-complex-type.2.4.a: Invalid content was found starting with element 'property'. One of '{"http://ift.tt/1bXYvZE":printWhenExpression, "http://ift.tt/1bXYvZE":break, "http://ift.tt/1bXYvZE":line, "http://ift.tt/1bXYvZE":rectangle, "http://ift.tt/1bXYvZE":ellipse, "http://ift.tt/1bXYvZE":image, "http://ift.tt/1bXYvZE":staticText, "http://ift.tt/1bXYvZE":textField, "http://ift.tt/1bXYvZE":subreport, "http://ift.tt/1bXYvZE":pieChart, "http://ift.tt/1bXYvZE":pie3DChart, "http://ift.tt/1bXYvZE":barChart, "http://ift.tt/1bXYvZE":bar3DChart, "http://ift.tt/1bXYvZE":xyBarChart, "http://ift.tt/1bXYvZE":stackedBarChart, "http://ift.tt/1bXYvZE":stackedBar3DChart, "http://ift.tt/1bXYvZE":lineChart, "http://ift.tt/1bXYvZE":xyLineChart, "http://ift.tt/1bXYvZE":areaChart, "http://ift.tt/1bXYvZE":xyAreaChart, "http://ift.tt/1bXYvZE":scatterChart, "http://ift.tt/1bXYvZE":bubbleChart, "http://ift.tt/1bXYvZE":timeSeriesChart, "http://ift.tt/1bXYvZE":highLowChart, "http://ift.tt/1bXYvZE":candlestickChart, "http://ift.tt/1bXYvZE":meterChart, "http://ift.tt/1bXYvZE":thermometerChart, "http://ift.tt/1bXYvZE":multiAxisChart, "http://ift.tt/1bXYvZE":stackedAreaChart, "http://ift.tt/1bXYvZE":ganttChart, "http://ift.tt/1bXYvZE":elementGroup, "http://ift.tt/1bXYvZE":crosstab, "http://ift.tt/1bXYvZE":frame, "http://ift.tt/1bXYvZE":componentElement, "http://ift.tt/1bXYvZE":genericElement}' is expected.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.emptyElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1647)
at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:243)
... 34 more


asked 27 secs ago







jasper Report Caused by: net.sf.jasperreports.engine.JRException: org.xml.sax.SAXParseException;

Aucun commentaire:

Enregistrer un commentaire