Project

Profile

Help

Support #5147

closed

Saxon with Json Payload fails to fetch xpath

Added by Trinath Reddy over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
2021-10-27
Due date:
% Done:

0%

Estimated time:
Legacy ID:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:

Description

Dear Colleagues,

This is Trinath from SAP Labs. We are using SaxonEE library for Xpath processing in our product.

The payload used is Json and we wanted to fetch XPath for Json payloads as well. The error is:

Content is not allowed in prolog., cause: javax.xml.xpath.XPathExpressionException: Failure converting a node of class javax.xml.transform.sax.SAXSource: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.

We are getting this issue in SaxonEE-9.9 version

Could you please provide us some insight into this problem. Is it a known issue, can we expect a fix for this in the upcoming releases, or is there any other way to avoid this.

In our stack, we have Apache Camel in our runtime, SaxonEE as XSLT processor with OSGI (Karaf containers)

Thanks in advance Best Regards, Trinath SAP Labs

Please register to edit this issue

Also available in: Atom PDF