Project

Profile

Help

OutputURIResolver not being closed in Saxon-HE 9.9.0-1

Added by Andy Duncan about 6 years ago

Hi,

I have a custom OutputURIResolver that outputs to S3. I use the close method to create the object and put it to S3.

Since updating to 9.9 the close method doesn't get called. I can see in the OutputURIResolverWrapper class that an Action is created to close the resolver but it doesn't appear to ever get invoked:

            Result result = r2.resolve(href, baseUri);
            Action onClose = () -> { // This Action appears to never get invoked
                try {
                    r2.close(result);
                } catch (TransformerException te) {
                    throw new UncheckedXPathException(XPathException.makeXPathException(te));
                }
            };

OutputURIResolverWrapper 54:61

Is there something I can do to get this working, short of migrating the code to the new ResultDocumentResolver?

Thanks.


Replies (3)

Please register to reply

RE: OutputURIResolver not being closed in Saxon-HE 9.9.0-1 - Added by Andy Duncan about 6 years ago

The last maintenance release fixed this issue. Thanks for the quick response.

    (1-3/3)

    Please register to reply