Jump to content

"Severe - Error loading the report template"


wdn

Recommended Posts

This happend during the seminair in Boston (Nov 2nd -  Nov 5th).

After I reloaded a working department.jrxml I saw that the "opaque" setting was set to "false". I changed it to "true", saved (stupid I know) and then did "preview".

"net.sf.jasperreports.engine.JRException: org.xml.sax.SAXParseException: cvc-enumeration-valid: Value 'null' is not facet-valid with respect to enumeration '[Opaque, Transparent]'. It must be a value from the enumeration."

Complete error message in code. jrxml included as attachment.

Our course leader had a quick scan in the jrxml but could not find the problem (we searched for "null" and "transparant" iirc.

Any ideas? Or should I file a bug report somewhere?

 

 

Code:
Error loading the report template Message:    net.sf.jasperreports.engine.JRException: org.xml.sax.SAXParseException: cvc-enumeration-valid: Value 'null' is not facet-valid with respect to enumeration '[Opaque, Transparent]'. It must be a value from the enumeration.Level:    SEVEREStack Trace:org.xml.sax.SAXParseException: cvc-enumeration-valid: Value 'null' is not facet-valid with respect to enumeration '[Opaque, Transparent]'. It must be a value from the enumeration.    net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:239)    net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:222)    net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:210)    com.jaspersoft.ireport.designer.JrxmlLoader.reloadJasperDesign(JrxmlLoader.java:87)    com.jaspersoft.ireport.designer.JrxmlVisualView.run(JrxmlVisualView.java:505)    org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)    org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)cvc-enumeration-valid: Value 'null' is not facet-valid with respect to enumeration '[Opaque, Transparent]'. It must be a value from the enumeration.    com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)    com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131)    com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384)    com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:318)    com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:410)    com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3165)    com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.processOneAttribute(XMLSchemaValidator.java:2748)    com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.processAttributes(XMLSchemaValidator.java:2685)    com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:2037)    com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.emptyElement(XMLSchemaValidator.java:705)    com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:377)    com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2747)    com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)    com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)    com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)    com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)    com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)    com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)    com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)    com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)    org.apache.commons.digester.Digester.parse(Digester.java:1647)    net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:235)    net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:222)    net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:210)    com.jaspersoft.ireport.designer.JrxmlLoader.reloadJasperDesign(JrxmlLoader.java:87)    com.jaspersoft.ireport.designer.JrxmlVisualView.run(JrxmlVisualView.java:505)    org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)    org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)
Link to comment
Share on other sites

  • Replies 1
  • 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...