bluelikejazz Posted March 13, 2007 Share Posted March 13, 2007 I use Transform in Textfield on a static text field. I change the text to ${RES_STRING} where RES_STRING is a valid string in my res file. Now if I do this manually by creating a new text field, it works fine. However if I use Transform in Textfield I get the following error: Code:Errors compiling C:java420reportsireportsSessionAttendance.jasper.4579034 [Thread-14] ERROR digester.Digester - Parse Error at line 435 column 80: Attribute "lineSpacing" with value "single" must have a value from the list "Single 1_1_2 Double ". org.xml.sax.SAXParseException: Attribute "lineSpacing" with value "single" must have a value from the list "Single 1_1_2 Double ". 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.dtd.XMLDTDValidator.validateDTDattribute(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.addDTDDefaultAttrsAndValidate(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.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:238) at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:225) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:213) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:167) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:151) at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:107) at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:529) at java.lang.Thread.run(Unknown Source) In the jrxml file at line 201: Code:[code]<textElement verticalAlignment="Top" rotation="None" lineSpacing="single"> The only workaround I have found is to switch in iReport the line spacing textfield from single to 1-2-1 and then back to single. If I do this it works. It's just a real pain especially since I have to change hundreds of fields. Is this a bug or am I missing something? Please let me know ASAP, I've got a deadline :( Post edited by: bluelikejazz, at: 2007/03/12 18:46 Post edited by: bluelikejazz, at: 2007/03/12 18:47Post edited by: bluelikejazz, at: 2007/03/12 18:48 Link to comment Share on other sites More sharing options...
jmurray Posted March 13, 2007 Share Posted March 13, 2007 You didn't select a value from the list because "single" <> "Single". Java is case sensitive, specify "Single" and you're report will run fine. Link to comment Share on other sites More sharing options...
bluelikejazz Posted March 13, 2007 Author Share Posted March 13, 2007 Well I never selected or changed anything in that field. The only thing I did was transform the field. Shouldn't the settings from the static field or the general settings for a new text field be applied here? The incorrect capitalization is caused by iReport not me. Check your code and alas you'll see, it's you not me. Link to comment Share on other sites More sharing options...
Giulio Toffoli Posted March 13, 2007 Share Posted March 13, 2007 It was a bug :laugh: Fixed now. thanks a lot!!!! Giulio Link to comment Share on other sites More sharing options...
bluelikejazz Posted March 13, 2007 Author Share Posted March 13, 2007 Hi Guilo,Thanks! Is there anyway I could get a build with the fix in it?Thanks Again! Jerrod Link to comment Share on other sites More sharing options...
Giulio Toffoli Posted March 13, 2007 Share Posted March 13, 2007 you can download the source code from the public SVN repository: http://scm.jasperforge.org/svn/repos/ireport/trunk/iReport2 You need to be a registered user on SourceForge Enterprise Edition hosted on JasperForge (see the iReport home page: http://ireport.sf.net ) GiulioPost edited by: giulio, at: 2007/03/13 04:52 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