From issues-return-86130-archive-asf-public=cust-asf.ponee.io@nifi.apache.org Thu Oct 3 07:26:02 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 690F6180674 for ; Thu, 3 Oct 2019 09:26:02 +0200 (CEST) Received: (qmail 73777 invoked by uid 500); 3 Oct 2019 07:26:01 -0000 Mailing-List: contact issues-help@nifi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@nifi.apache.org Delivered-To: mailing list issues@nifi.apache.org Received: (qmail 73765 invoked by uid 99); 3 Oct 2019 07:26:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Oct 2019 07:26:01 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id C0789E0E2E for ; Thu, 3 Oct 2019 07:26:00 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 3E2A6780397 for ; Thu, 3 Oct 2019 07:26:00 +0000 (UTC) Date: Thu, 3 Oct 2019 07:26:00 +0000 (UTC) From: "Raymond (Jira)" To: issues@nifi.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (NIFI-6498) XMLTransform processor: XSLT doesn't give detail error message with line number MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/NIFI-6498?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D16943= 384#comment-16943384 ]=20 Raymond commented on NIFI-6498: ------------------------------- Added patch with code of Nico Verwerk to fix this issue. The patch contains= : =C2=A0 1) Add support for Saxon errors 2) Add support for Saxon functions 3) Upgrade Saxon-HE to the latest version in pom.xml 4) Change code by Nico to follow checkstyle style rules 5) Add comment to documentation on the use of parameters. =C2=A0 > XMLTransform processor: XSLT doesn't give detail error message with line = number > -------------------------------------------------------------------------= ------ > > Key: NIFI-6498 > URL: https://issues.apache.org/jira/browse/NIFI-6498 > Project: Apache NiFi > Issue Type: Improvement > Components: Core Framework > Affects Versions: 1.9.2 > Reporter: Raymond > Priority: Major > Attachments: 0001-Add-support-for-Saxon-error-messages-and-functi= ons.patch > > > When something is wrong with the XSLT in the XMLTransform processor you g= et an error, but this is only a general error without any details or the li= ne number where the parsing error occurs. For example when using Saxon from= example I get the following error: > Error on line 17 column 5 SXXP0003: Error reported by XML parser: The ele= ment type "xsl:tomplate" must be terminated by the matching end-tag "". > When using NiFi the following error is printed: > 11:07:43 CEST > ERROR > 2b4c1dab-3a87-175f-f817-3f3c72af4102 > TransformXml[id=3D2b4c1dab-3a87-175f-f817-3f3c72af4102] Unable to transfo= rm StandardFlowFileRecord[uuid=3Dc4dde8e5-89b0-4f29-8f2d-a97a009cf843,claim= =3DStandardContentClaim [resourceClaim=3DStandardResourceClaim[id=3D1564391= 260760-1, container=3Ddefault, section=3D1], offset=3D0, length=3D6380],off= set=3D0,name=3Dc4dde8e5-89b0-4f29-8f2d-a97a009cf843,size=3D6380] due to IOE= xception thrown from TransformXml[id=3D2b4c1dab-3a87-175f-f817-3f3c72af4102= ]: java.io.IOException: java.util.concurrent.ExecutionException: javax.xml.= transform.TransformerConfigurationException: net.sf.saxon.s9api.SaxonApiExc= eption: Stylesheet compilation failed: 1 error reported: org.apache.nifi.pr= ocessor.exception.ProcessException: IOException thrown from TransformXml[id= =3D2b4c1dab-3a87-175f-f817-3f3c72af4102]: java.io.IOException: java.util.co= ncurrent.ExecutionException: javax.xml.transform.TransformerConfigurationEx= ception: net.sf.saxon.s9api.SaxonApiException: Stylesheet compilation faile= d: 1 error reported > The error in NiFi gives almost no information for debugging. Would be a b= ig improvement if the Saxon error message is catched and add to the NiFi er= ror message (bulletin board). > =C2=A0 > =C2=A0 -- This message was sent by Atlassian Jira (v8.3.4#803005)