You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Swaminathan A <Sw...@siemens.com> on 2003/09/02 19:49:13 UTC

XalanTransformer::transform fails in Xalan 1.5

Dear all,

I am using XalanTransformer::transform for XSLT transformation.
Currently I am using a custom build xalan 1.5 with Visual Studio 6 Service
Pack 5.
This XalanTransformer::transform fails sporadically in the ratio of 1500
Failures / 80000 Attempts.

I tried the same call with Xalan 1.5 built with SP3 ( DownLoaded from Site).
In that case fails sporadically in the ratio of 80 Failures / 80000
Attempts.

The function call returns -1 and getlasterror returns 
"XalanFileOutputStreamOpenException: Error opening file:
c:\temp\ValidationError.xml.  The C++ run-time error code (errno) is 0. (,
line -1, column -1)"

c:\temp\ValidationError.xml is the output XSLT tranformed file.

Best Regards,
Swaminathan.

RE: XalanTransformer::transform fails in Xalan 1.5

Posted by Mark Weaver <ma...@npsl.co.uk>.
>
> I tried the same call with Xalan 1.5 built with SP3 ( DownLoaded
> from Site).
> In that case fails sporadically in the ratio of 80 Failures / 80000
> Attempts.
>
> The function call returns -1 and getlasterror returns
> "XalanFileOutputStreamOpenException: Error opening file:
> c:\temp\ValidationError.xml.  The C++ run-time error code (errno) is 0. (,
> line -1, column -1)"
>
> c:\temp\ValidationError.xml is the output XSLT tranformed file.
>
Is this multi-threaded?  Are you using separate XalanTransformer objects per
thread?  Are all the transformations to the same target?  You need to
provide more details -- there are a number of reasons that you might not be
able to open the output file, e.g. too many open files for the process, or
something else has it locked.

Mark