Jump to content
Changes to the Jaspersoft community edition download ×

Suspected Bug: Transform in Textfield


bluelikejazz

Recommended Posts

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:47

Post edited by: bluelikejazz, at: 2007/03/12 18:48

Link to comment
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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

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...