Project

Profile

Help

Bug #5697

closed

Serializing Node to String hangs

Added by andré mooiweer about 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
s9api API
Sprint/Milestone:
Start date:
2022-09-28
Due date:
% Done:

0%

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

Description

We are using Saxon-EE 9.9.1.8 on Java and we have a problem serialize an Node to a String. A transformation on the node is done in 2 minutes. After that, serializing the Node to a String hangs the system. Her a section of the stacktrace at the moment: There is 1 thread in the server that may be hung. at java.lang.String.getCharsNoBoundChecks(String.java:2010) at java.lang.StringBuffer.append(StringBuffer.java:591) at java.io.StringWriter.write(StringWriter.java:112) at net.sf.saxon.serialize.XMLEmitter.startElement(XMLEmitter.java:405) at net.sf.saxon.serialize.XMLIndenter.startElement(XMLIndenter.java:119) at net.sf.saxon.event.ProxyReceiver.startElement(ProxyReceiver.java:132) at net.sf.saxon.event.SequenceNormalizer.startElement(SequenceNormalizer.java:88) at net.sf.saxon.tree.tiny.TinyElementImpl.copy(TinyElementImpl.java:358) at net.sf.saxon.event.SequenceReceiver.decompose(SequenceReceiver.java:203) at net.sf.saxon.event.SequenceNormalizerWithSpaceSeparator.append(SequenceNormalizerWithSpaceSeparator.java:41) at net.sf.saxon.event.SequenceReceiver.lambda$decompose$1(SequenceReceiver.java:186) at net.sf.saxon.event.SequenceReceiver$$Lambda$614/0x0000000006cd0710.accept(Unknown Source) at net.sf.saxon.om.SequenceIterator.forEachOrFail(SequenceIterator.java:128) at net.sf.saxon.event.SequenceReceiver.decompose(SequenceReceiver.java:185) at net.sf.saxon.event.SequenceNormalizerWithSpaceSeparator.append(SequenceNormalizerWithSpaceSeparator.java:41) at net.sf.saxon.event.ProxyReceiver.append(ProxyReceiver.java:234) at net.sf.saxon.event.SequenceReceiver.append(SequenceReceiver.java:130) at net.sf.saxon.event.SequenceCopier$$Lambda$613/0x000000007a156fd0.accept(Unknown Source) at net.sf.saxon.tree.iter.SingletonIterator.forEachOrFail(SingletonIterator.java:152) at net.sf.saxon.event.SequenceCopier.copySequence(SequenceCopier.java:34) at net.sf.saxon.query.QueryResult.serializeSequence(QueryResult.java:202) at net.sf.saxon.query.QueryResult.serialize(QueryResult.java:118) at net.sf.saxon.s9api.Serializer.serializeNodeToResult(Serializer.java:624) at net.sf.saxon.s9api.Serializer.serializeNodeToString(Serializer.java:618) Probably the output is simply too big, but have you got any suggestions on how to tackle this issue?

Please register to edit this issue

Also available in: Atom PDF