Jump to content
We've recently updated our Privacy Statement, available here ×
  • Studio error "illegal.parameter.value.error" when you have a textfield isStretchWithOverflow = true


    ghudson_1
    • Version: v7.5 Product: Jaspersoft® Studio

    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


    User Feedback

    Recommended Comments

    I tried to resolve the error received by following the instructions in "Studio error "illegal.parameter.value.error" when you have a textfield isStretchWithOverflow = true", but the issue is not resolved.

    I went to Window>Preferences>Jaspersoft Studio>Compatibility in Studio, and set the version as shown below:

    The report runs successfully in Studio, but when I try to publish it to Jaspersoft Server, it still produces the error below:

    I even tried to delete the references in the source tab on lines where the textfields used "isStretchWithOverflow=true"; this created other errors.  Could use any help available to resolve.

     

     

     

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