[#4168] - cvc-enumeration-valid error

Category:
Bug report
Priority:
High
Status:
New
Project: Severity:
Critical
Resolution:
Fixed
Component: Reproducibility:
Random
Assigned to:
0

I am using iReport3.5.2 NB, I have created reports and saved. Now when I opening the saved reports I get the "cvc-enumeration-valid error" error. Sometimes it happens for text alignment, band split type etc....

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 '[Stretch, Prevent, Immediate]'. It must be a value from the enumeration.
Level:
SEVERE
Stack Trace:
org.xml.sax.SAXParseException: cvc-enumeration-valid: Value 'null' is not facet-valid with respect to enumeration '[Stretch, Prevent, Immediate]'. It must be a value from the enumeration.
net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:243)
net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:226)
net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:214)
com.jaspersoft.ireport.designer.JrxmlLoader.reloadJasperDesign(JrxmlLoader.java:73)
com.jaspersoft.ireport.designer.JrxmlVisualView.run(JrxmlVisualView.java:512)
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 '[Stretch, Prevent, Immediate]'. It must be a value from the enumeration.
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:172)
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:382)
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:429)
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3185)
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.processOneAttribute(XMLSchemaValidator.java:2799)
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.processAttributes(XMLSchemaValidator.java:2735)
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:2094)
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.emptyElement(XMLSchemaValidator.java:725)
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:322)
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693)
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
org.apache.commons.digester.Digester.parse(Digester.java:1647)
net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:239)
net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:226)
net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:214)
com.jaspersoft.ireport.designer.JrxmlLoader.reloadJasperDesign(JrxmlLoader.java:73)
com.jaspersoft.ireport.designer.JrxmlVisualView.run(JrxmlVisualView.java:512)
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)

AttachmentSize
Binary Data Stocks_Portfolio.jrxml32.43 KB
forhitesh's picture
Joined: May 2 2007 - 5:32pm
Last seen: 13 years 10 months ago

2 Comments:

#1

This issue is the same issue as ID:0004139.

I tried to repricating the issue, but I have no luck. I tried to see some patterns. e.g. The issue will happen when a static text element is inserted.
or do you think it just happen by "save"ing file?

If you can reproduce the problem, can you also record how you exactly did it?

#2
  • Status:Closed» New
  • Assigned:nobody»

Changing the "The stretchType Attribute" from "ContainerHeight" to "NoStretch" solved the issue for me

Feedback