Project

Profile

Help

Bug #5851

closed

Exception found in XdmFunctionItem.call Message=

Added by O'Neil Delpratt almost 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Category:
C++ API
Start date:
2023-01-23
Due date:
% Done:

100%

Estimated time:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Found in version:
12.0
Fixed in version:
12.1
SaxonC Languages:
SaxonC Platforms:
SaxonC Architecture:

Description

Bug issue reported by user here: https://saxonica.plan.io/boards/4/topics/9235

For the following python code:

from saxonche import *

with PySaxonProcessor(license=True) as proc:
    print(proc.version)
    parse_ietf_date = PyXdmFunctionItem().get_system_function(proc, "{http://www.w3.org/2005/xpath-functions}parse-ietf-date", 1)
    for date in ["Wed, 06 Jun 1994 07:29:35 GMT", "We, 06 Jun 1994 07:29:35 GMT"]:
        date_xdm_string = proc.make_string_value(date)
        result = parse_ietf_date.call(proc, [date_xdm_string])
        if proc.exception_occurred:
            print(proc.error_message)
        else:
            print(result)

We get the following output:

SaxonC-HE 12.0 from Saxonica
1994-06-06T07:29:35Z
None
Exception found in XdmFunctionItem.call Message= Invalid IETF date value We, 06 Jun 1994 07:29:35 GMT (String expected to begin with month name or day name (or day number))

The message "Exception found in ...." is actually a std::cerr print message in the C++ code. It is present because we are not throwing the exception from the Java code as in the same way as for Processor objects.


Related issues

Related to SaxonC - Bug #5781: If the stylesheet is not well-formed, compile_stylesheet silently ignores the errorClosedO'Neil Delpratt2022-12-22

Actions

Please register to edit this issue

Also available in: Atom PDF