Issue Description
In Studio 7.5.0, when publishing to an earlier version of JasperReports Server, you might encounter an error if you have textfields using isStretchWithOverflow=true. The Studio error upon publish is:
org.apache.http.client.HttpResponseException: illegal.parameter.value.error Invalid JRXML JRXML.content JRXML.content at com.jaspersoft.studio.server.protocol.restv2.RESTv2ExceptionHandler.handleErrorDescriptor(RESTv2ExceptionHandler.java:121) at...
Resolution
The server-side error in jasperserver.log provides a clue, the key error is:
org.xml.sax.SAXParseException; lineNumber: 90; columnNumber: 65; cvc-complex-type.3.2.2: Attribute 'textAdjust' is not allowed to appear in element 'textField'.
This is occurring because 'textAdjust' only exists in the 7.5.0 version of JR API, and Studio isn't correctly downgrading it's API syntax during publish..
Workaround is toggle from "Same version as server" to "Jasperreports 6.4.3" under "Advanced" in the Studio connection to JRS.
Ref. Case 01859282
Recommended Comments
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