|
X-He-Spam-Score: -2.2
|
|
Return-Path: <graydonish@gmail.com>
|
|
Delivered-To: dropbox@plan.io
|
|
Received: from m.launch.gmbh ([127.0.0.1])
|
|
by m.launch.gmbh with LMTP id SBAYF2u7gWB1GwAAJzdhvw
|
|
for <dropbox@plan.io>; Thu, 22 Apr 2021 20:07:39 +0200
|
|
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on m.launch.gmbh
|
|
X-Spam-Level:
|
|
X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,
|
|
DKIM_VALID,DKIM_VALID_AU,DMARC_PASS,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,
|
|
RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham
|
|
autolearn_force=no version=3.4.2
|
|
X-Spam-Report:
|
|
* -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at
|
|
* https://www.dnswl.org/, no trust
|
|
* [209.85.222.169 listed in list.dnswl.org]
|
|
* -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
|
|
* [score: 0.0000]
|
|
* -0.1 SPF_PASS SPF check passed
|
|
* -0.1 DMARC_PASS DMARC check passed
|
|
* -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2)
|
|
* [209.85.222.169 listed in wl.mailspike.net]
|
|
* 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record
|
|
* 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
|
|
* provider (polifernandes1976[at]gmail.com)
|
|
* (graydonish[at]gmail.com)
|
|
* 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
|
|
* valid
|
|
* -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
|
|
* -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from
|
|
* author's domain
|
|
X-Spam-Score: -2.2
|
|
Envelope-to: inbox+saxonica+f38e+saxon@plan.io
|
|
Authentication-Results: m.launch.gmbh; dmarc=pass (p=none dis=none) header.from=gmail.com
|
|
Authentication-Results: m.launch.gmbh; spf=pass smtp.mailfrom=graydonish@gmail.com
|
|
Authentication-Results: m.launch.gmbh;
|
|
dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="YYKz02Yn";
|
|
dkim-atps=neutral
|
|
Received: from mail-qk1-f169.google.com (mail-qk1-f169.google.com [209.85.222.169])
|
|
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits))
|
|
(No client certificate requested)
|
|
by m.launch.gmbh (Postfix) with ESMTPS id 15DD58755A
|
|
for <inbox+saxonica+f38e+saxon@plan.io>; Thu, 22 Apr 2021 20:07:39 +0200 (CEST)
|
|
Received: by mail-qk1-f169.google.com with SMTP id u20so15060252qku.10
|
|
for <inbox+saxonica+f38e+saxon@plan.io>; Thu, 22 Apr 2021 11:07:38 -0700 (PDT)
|
|
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
|
|
d=gmail.com; s=20161025;
|
|
h=date:from:to:subject:message-id:reply-to:references:mime-version
|
|
:content-disposition:content-transfer-encoding:in-reply-to;
|
|
bh=+pKVH+VakJ9us7PD6tzRDzjSXGnLdntOn0K3nxdf4q4=;
|
|
b=YYKz02YnKp1vrz9j/pe+HFo95dtZxE6sbNh+/ARLeHisMidt+7udO+yQh5np4lb2A7
|
|
aYlsKwupoOS3fkS5XYUgGZOUKEi3x5ofuyZFZKRgPS+RrTNomTn1WsAE1cXq7hV0RDa4
|
|
t9DvnE/jjHnSBVsMdq2SVHrTlTYXLzmZv6OyslJCgG9zhQhsaUiGNhZBJGkH/AibLpNi
|
|
6RMixpCqm1HhjKSm4zKqn3uJQHoEG8nkR2UQu4voByvHb+1LmXcToJZW4y32f5l40QuG
|
|
tWP1/wDf2TwCOk6Brmt18wOPdIyG1Gbx1mScO1V8l/qU1MXsW5ubZ/q9WkJkz895Rn7c
|
|
7QZA==
|
|
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
|
|
d=1e100.net; s=20161025;
|
|
h=x-gm-message-state:date:from:to:subject:message-id:reply-to
|
|
:references:mime-version:content-disposition
|
|
:content-transfer-encoding:in-reply-to;
|
|
bh=+pKVH+VakJ9us7PD6tzRDzjSXGnLdntOn0K3nxdf4q4=;
|
|
b=KRrzlmiLr0bfC0VkcfspAE/8Tc1t4t3XKfkVuE091Ndrka9Udi/vcawN/3q52riMmG
|
|
rmdhnwLQhri6Q8yjVasJn+WenkIYQ4OkoYSKwUn04ld21/IfqLQTfz/jlClBsm4g59dw
|
|
WiEEMMfwhVmO7TD359alZlWWuNbv5823eIN8VstutfPbnoZHtNKMEpF8JflQ0RuK6SGo
|
|
uDYrzKYcdNw3hbZ/28eKcwK9F6cB8Dx5Qw8HWQ5VUad4IJYELL4YalPXKGITkoNQfEyo
|
|
w+2GtXZAYozrh70ysrX6eXfB3Ch4bfHc/hf4oURjJiUDxQUNQEnLgNZY47gpzW2p6uEp
|
|
O/sA==
|
|
X-Gm-Message-State: AOAM531oUnVPVVp7uV7YMH4EC/yugxoeJpFKZmvuocC28ZATCqNAfQO0
|
|
P+n/bWj8eBWRoTTO9T7tGGMSWiZMVRVgXg==
|
|
X-Google-Smtp-Source: ABdhPJxpHhBP2JVDLSniHOBgQces3j9WFXZF0UcpUyqZE6bUNh5Sx+QoqOn/xmRLJ1tFrelb+bupOg==
|
|
X-Received: by 2002:a37:610b:: with SMTP id v11mr4807873qkb.229.1619114857314;
|
|
Thu, 22 Apr 2021 11:07:37 -0700 (PDT)
|
|
Received: from menja (ip-64-140-118-250.user.start.ca. [64.140.118.250])
|
|
by smtp.gmail.com with ESMTPSA id h12sm2720294qtq.1.2021.04.22.11.07.35
|
|
for <inbox+saxonica+f38e+saxon@plan.io>
|
|
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
|
|
Thu, 22 Apr 2021 11:07:36 -0700 (PDT)
|
|
Date: Thu, 22 Apr 2021 14:07:34 -0400
|
|
From: Graydon <graydonish@gmail.com>
|
|
To: Saxonica Developer Community <inbox+saxonica+f38e+saxon@plan.io>
|
|
Subject: Re: [Saxon - Bug #4975] Null pointer exception when XSLT 3.0 run
|
|
from the command line
|
|
Message-ID: <YIG7ZjO/uOvx5tbB@menja>
|
|
Reply-To: graydonish@gmail.com
|
|
References: <redmine.issue-4975.20210422164522@plan.io>
|
|
<redmine.journal-17870.20210422172045.aaa1ec1f40ee1dee@plan.io>
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=iso-8859-1
|
|
Content-Disposition: inline
|
|
Content-Transfer-Encoding: 8bit
|
|
In-Reply-To: <redmine.journal-17870.20210422172045.aaa1ec1f40ee1dee@plan.io>
|
|
|
|
> Thanks for sending the repro (offline). Sure enough, line 85 uses `on-error=warning`, so changing that should enable you to make progress while we fix the bug.
|
|
|
|
on-error=ignore continues to produce a null-pointer exception;
|
|
on-error=fail fails politely on a specific file, which I can certainly
|
|
fix.
|
|
|
|
Thank you; gets me unstuck.
|
|
|
|
On Thu, Apr 22, 2021 at 07:20:45PM +0200, Saxonica Developer Community scripsit:
|
|
> --- In your reply, please do not write below this line ---
|
|
>
|
|
> Issue #4975 has been updated by Michael Kay.
|
|
>
|
|
>
|
|
> Thanks for sending the repro (offline). Sure enough, line 85 uses `on-error=warning`, so changing that should enable you to make progress while we fix the bug.
|
|
>
|
|
> ----------------------------------------
|
|
> Bug #4975: Null pointer exception when XSLT 3.0 run from the command line
|
|
> https://saxonica.plan.io/issues/4975?pn=1#change-17870
|
|
>
|
|
> * Author: Graydon Saunders
|
|
> * Status: New
|
|
> * Priority: Normal
|
|
> * Assignee:
|
|
> * Category:
|
|
> * Sprint/Milestone:
|
|
> * Legacy ID:
|
|
> * Applies to branch: 10
|
|
> * Fix Committed on Branch:
|
|
> * Fixed in Maintenance Release:
|
|
> ----------------------------------------
|
|
> in oXygen (<oXygen/> XML Editor 23.1, build 2021040908) with the 10.3 external add-on, the transform (small.xsl) works. oXygen 23 uses a Java 15 JRE
|
|
>
|
|
> 17:40 bin % ./java --version
|
|
> openjdk 15.0.1 2020-10-20
|
|
> OpenJDK Runtime Environment (build 15.0.1+9-18)
|
|
> OpenJDK 64-Bit Server VM (build 15.0.1+9-18, mixed mode)
|
|
>
|
|
> If I try to call small.xsl from the shell (Linux; Fedora 33, bash 5.0.17) using small.sh, I get a null pointer error.
|
|
>
|
|
> I believe I have exhausted my ingenuity on this one and have a minimal example which I would prefer to send under separate cover.
|
|
>
|
|
> The code from which the minimal example has been extracted has been working fine in oXygen; the minimal example itself runs fine in oXygen. Trying to run it from the command line for automated testing purposes hasn't made it past the null pointer error. Various other transforms run fine, Saxon finds the license OK, etc. I get what I think is the same error with Saxon 10.3 and 10.5, and with Java 11 and Java 16.
|
|
>
|
|
> 15:48 tests % java --version
|
|
> openjdk 11.0.10 2021-01-19
|
|
> OpenJDK Runtime Environment 18.9 (build 11.0.10+9)
|
|
> OpenJDK 64-Bit Server VM 18.9 (build 11.0.10+9, mixed mode, sharing)
|
|
>
|
|
> 15:54 tests % /etc/alternatives/java_sdk_16/bin/java --version
|
|
> openjdk 16 2021-03-16
|
|
> OpenJDK Runtime Environment 21.3 (build 16+36)
|
|
> OpenJDK 64-Bit Server VM 21.3 (build 16+36, mixed mode, sharing)
|
|
>
|
|
> Stack Trace:
|
|
> 17:42 tests % ./small.sh (DITA2Word)-[one-githubTests-gds]
|
|
> java.lang.NullPointerException
|
|
> at java.base/java.util.Objects.requireNonNull(Objects.java:221)
|
|
> at net.sf.saxon.trans.XmlProcessingIncident.<init>(XmlProcessingIncident.java:52)
|
|
> at net.sf.saxon.Controller.warning(Controller.java:469)
|
|
> at net.sf.saxon.resource.XmlResource.getItem(XmlResource.java:162)
|
|
> at net.sf.saxon.resource.UnknownResource.getItem(UnknownResource.java:88)
|
|
> at net.sf.saxon.resource.MetadataResource.lambda$getItem$0(MetadataResource.java:64)
|
|
> at net.sf.saxon.functions.CallableFunction.call(CallableFunction.java:128)
|
|
> at net.sf.saxon.functions.SystemFunction.dynamicCall(SystemFunction.java:459)
|
|
> at net.sf.saxon.functions.ApplyFn.call(ApplyFn.java:166)
|
|
> at net.sf.saxon.expr.FunctionCall.iterate(FunctionCall.java:548)
|
|
> at net.sf.saxon.expr.CardinalityChecker.evaluateItem(CardinalityChecker.java:283)
|
|
> at net.sf.saxon.expr.ItemChecker.evaluateItem(ItemChecker.java:255)
|
|
> at net.sf.saxon.expr.parser.Evaluator$5.evaluate(Evaluator.java:151)
|
|
> at net.sf.saxon.expr.parser.Evaluator$5.evaluate(Evaluator.java:148)
|
|
> at net.sf.saxon.expr.UserFunctionCall.evaluateArguments(UserFunctionCall.java:662)
|
|
> at net.sf.saxon.expr.UserFunctionCall.evaluateArguments(UserFunctionCall.java:644)
|
|
> at net.sf.saxon.expr.UserFunctionCall.callFunction(UserFunctionCall.java:534)
|
|
> at net.sf.saxon.expr.UserFunctionCall.evaluateItem(UserFunctionCall.java:491)
|
|
> at net.sf.saxon.expr.LookupExpression.iterate(LookupExpression.java:337)
|
|
> at net.sf.saxon.expr.parser.Evaluator$7.evaluate(Evaluator.java:199)
|
|
> at net.sf.saxon.expr.SystemFunctionCall.evaluateArguments(SystemFunctionCall.java:454)
|
|
> at net.sf.saxon.expr.FunctionCall.iterate(FunctionCall.java:546)
|
|
> at net.sf.saxon.expr.instruct.ForEach.map(ForEach.java:584)
|
|
> at net.sf.saxon.expr.ContextMappingIterator.next(ContextMappingIterator.java:61)
|
|
> at net.sf.saxon.om.FocusTrackingIterator.next(FocusTrackingIterator.java:76)
|
|
> at net.sf.saxon.om.SequenceIterator.forEachOrFail(SequenceIterator.java:135)
|
|
> at net.sf.saxon.expr.instruct.ForEach.processLeavingTail(ForEach.java:526)
|
|
> at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:142)
|
|
> at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:352)
|
|
> at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:298)
|
|
> at com.saxonica.ee.bytecode.ByteCodeCandidate.processLeavingTail(ByteCodeCandidate.java:185)
|
|
> at net.sf.saxon.expr.instruct.NamedTemplate.expand(NamedTemplate.java:264)
|
|
> at net.sf.saxon.trans.XsltController.callTemplate(XsltController.java:850)
|
|
> at net.sf.saxon.s9api.Xslt30Transformer.callTemplate(Xslt30Transformer.java:480)
|
|
> at net.sf.saxon.Transform.processFile(Transform.java:1306)
|
|
> at net.sf.saxon.Transform.doTransform(Transform.java:853)
|
|
> at net.sf.saxon.Transform.main(Transform.java:82)
|
|
> Fatal error during transformation: java.lang.NullPointerException: (no message)
|
|
>
|
|
>
|
|
>
|
|
>
|
|
> --
|
|
> You have received this notification because you have either subscribed to or are involved in a project on Saxonica Developer Community site.
|
|
> To change your notification preferences, please click here: https://saxonica.plan.io/my/account?tour=mail_preferences
|
|
>
|
|
> This notification was cheerfully delivered by https://plan.io
|
|
> ?
|