JasperReport Server push failure org.xml.sax.SAXException
search cancel

JasperReport Server push failure org.xml.sax.SAXException

book

Article ID: 247279

calendar_today

Updated On:

Products

CA Identity Manager

Issue/Introduction

A custom-developed Jasper Report fails to push from Jasper Soft Studio to the JasperReport Server. The operation terminates with a SOAP message processing error.

Unable to push the Custom generated Jasper Report from Jasper Soft Studio to JasperReport Server.
While pushing the report we are getting the below error.

When attempting to push a report, the following error is generated in the console or logs:

ERROR:

 AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultString: org.xml.sax.SAXException: Processing instructions are not allowed within SOAP messages

Stack Trace Details: 

{http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException: Processing instructions are not allowed within SOAP messages
at org.apache.axis.encoding.DeserializationContext.startDTD(DeserializationContext.java:1161)
at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.doctypeDecl(Unknown Source)

Additional customer reports indicate that improperly formatted TEWS requests can also trigger related SAXParseException errors, such as "Content is not allowed in trailing section".

 

 

Environment

  • Product: CA Identity Manager
  • Release: 14.4, 14.5
  • Component: JasperReports Server, JasperSoft Studio
  • Other: TEWS (Task Execution Web Service)

Cause

This issue typically occurs due to a version mismatch between the JasperSoft Studio client and the JasperReport Server, or when the XML encoding format in the SOAP message is incompatible with the server's requirements.

Resolution

  1. Modify Encoding Format:
    • Open the attachment settings in your JasperSoft Studio project.
    • Change the encoding format for attached files from MIME to DIME.
  2. Validate XML Structure:
    • Ensure the report XML does not contain DTD declarations or processing instructions (e.g., <?xml-stylesheet ...?>) that are prohibited in SOAP envelopes.
    • Verify that TEWS requests are correctly formatted and do not contain trailing content after the closing SOAP tag.
  3. Version Alignment:
    • Verify that the JasperSoft Studio version matches the JasperReport Server version.

 Error: Processing instructions are not allowed within SOAP messages

 

Additional Information

 

Error Publishing Report from Jaspersoft Studio to JasperReports Server