ramandeep1980 Posted February 26, 2009 Share Posted February 26, 2009 I think this is a problem with iReport and no one is here to reply what this is about?I think i have asked quite a bit questions about jasper iReport erros but noone is here to reply and tell what they are about..I am making one more try here.This has happened with me more than 5 or 6 times.I run a report and close it after prefect execution and when open up after a while suddenly this error comes up and it wont go and ruins the file completely.I am not sure someone is here to help or not.i think jasper should be more active in the forumErro is ;-Error loading the report template: 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.How come file get corrupted while being the folder.Regards,Raman Link to comment Share on other sites More sharing options...
shriyakish Posted April 2, 2009 Share Posted April 2, 2009 Hello Raman, Can you please let me know if you figured out the problem? I got this error just today and I am surprised as there is nothing out of place in my jrxml. Will be really grateful if you can share your solution. -Viidhya Link to comment Share on other sites More sharing options...
Giulio Toffoli Posted April 2, 2009 Share Posted April 2, 2009 How to solve the problem:switch to the XML view, find the the attribute mode, remove it (or set for it a proper value like Opaque or Transparent). Switch back to the visual view. I really don't know how it is possible that the value can be set to null, I need to investigate. Anyway, can you tell me what version are you using? I would like to fix that problem soon.Thanks a lotGiulioPost Edited by Giulio Toffoli at 04/02/09 22:53 Link to comment Share on other sites More sharing options...
shriyakish Posted April 3, 2009 Share Posted April 3, 2009 Thanks a lot for your reply.I am using Ireport 3.5.0There is no mode in my jrxml.Thats what is stranger.When I click 'Opaque' mode gets inserted.Then I remove it.But still the same problem.I am not able to move ahead at all :(Please help.Attached the jrxml for your reference. Link to comment Share on other sites More sharing options...
ramandeep1980 Posted April 5, 2009 Author Share Posted April 5, 2009 Hi giulio,This is what has hapened to me few mind ago.A report which was runnign perfectly fine suddenly end up giving me error coz the text allignment got set to NULL.. See this one.. Error loading the report template: org.xml.sax.SAXParseException: cvc-enumeration-valid: Value 'null' is not facet-valid with respect to enumeration '[Left, Center, Right, Justified]'. It must be a value from the enumeration.Again i have to go back to XML and change them to CENTER to make them start working.. I think u need to do something about it ..shriyakishYa im able to figure out the problem.You have to see the error and se what it is saying and have to goto JRXML file and make the change manually. See my error.It meant was that my text allignemtn was set to NULL automatically thus i hve to go back to xml and change it manually... I hope this would be helpful.If not send me ur XML i will try to help..Though not sure :-)Regards,RamanPost Edited by Raman Deep Singh at 04/05/09 11:06 Link to comment Share on other sites More sharing options...
shriyakish Posted April 6, 2009 Share Posted April 6, 2009 Hello Raman,Thanks for your reply.I am aware of modifying the jrxml based on the error.However this error that comes , the attribute is NOT there in the jrxml at all.From somewhere it seems to go as null.Have attached the jrxml for your reference.Please help Link to comment Share on other sites More sharing options...
rodriguezum Posted July 16, 2009 Share Posted July 16, 2009 i'm experiencing the same problems with ireport 3.5.0 in mode, on the crosstabs. It should be checked out. Link to comment Share on other sites More sharing options...
coopni Posted October 12, 2009 Share Posted October 12, 2009 I'm getting the same problem. It happens when I preview the report and it fails to preview and then corrupts the report. It corrupted my report by putting in null values for textAlignment values. Link to comment Share on other sites More sharing options...
szleo Posted January 12, 2010 Share Posted January 12, 2010 Sometimes when openning a correctly edited and saved jxml, ireport throw exception: Error loading the report template: org.xml.sax.SAXParseException: cvc-enumeration-valid: Value 'null' is not facet-valid with respect to enumeration '[Left, Center, Right, Justified]'. It must be a value from the enumeration.Root: in edit mode, ireport tool DOES allow a "null" value for a set of position attributs and fields, while in openning mode, it DOES NOT!Solution:1. opend jxml in ultra edit or note tool..2. find positionType="null", replace it with positionType="Float" or else valid values suggested by the exception message3. find textPosition="null", replace it with "Center" or else valid valudes suggested by the exception message4. save and reload in iReport.Leo Link to comment Share on other sites More sharing options...
shriyakish Posted April 27, 2010 Share Posted April 27, 2010 Finally figured out!the 'mode' was in the sub report.Modifying that to 'Opaque' solved the error. -Viidhya Link to comment Share on other sites More sharing options...
luigilin Posted December 1, 2010 Share Posted December 1, 2010 HiI've the same problem!I find in my jrxml this line: <measure name="nr_fattureMisura" class="java.lang.Long" calculation="Sum" percentageOf=""> <measureExpression><![CDATA[$F{nr_fatture}]]></measureExpression>I must remove the property percentageOf="" to solve the problem. I think it's a iReport bug because I use the property tab to set this field but no value is written in the jrxml!Luigi Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now