Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 14th, 2007, 03:05 AM
Authorized User
 
Join Date: Oct 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default WrappedRuntimeException: Stream closed

Hi,

  I am using the saxon jar(version8.x)in my classpath .When i am trying to tranalate a xml using the XSLT in my application it is throwing the following exception.

Could you help me in this issue.

Exceptionjava.lang.RuntimeException: org.apache.xml.utils.WrappedRuntimeException: Stream closed
        at org.apache.xalan.transformer.TransformerImpl.run(T ransformerImpl.java:3456)
        at org.apache.xalan.transformer.TransformerHandlerImp l.endDocument(Trans
formerHandlerImpl.java:389)
        at org.apache.xerces.parsers.AbstractSAXParser.endDoc ument(Unknown Sourc

 
Old March 14th, 2007, 03:16 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

Well, you might have Saxon on your classpath, but you're actually running Xalan. In my experience it's best not to rely on the JAXP mechanism for searching the classpath - it's slow and unpredictable. Use an explicit property setting

javax.xml.transform.factory=net.sf.saxon.Transform erFactoryImpl

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference





Similar Threads
Thread Thread Starter Forum Replies Last Post
Parsing continuous stream Joshua L. Olson General .NET 0 January 22nd, 2005 07:59 PM
Serialization stream header MikoMax J2EE 0 April 1st, 2004 08:49 AM
How can I encode the stream?HELP! HandSomeLi All Other Wrox Books 0 March 9th, 2004 06:21 AM
Stream Confusion benburrows General .NET 1 February 27th, 2004 12:04 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.