After looking into the problem further I found that that line is actually
crashing the webserver (iPlanet4.1) and restarting it. I'm not sure if it
has to do with a conflict in jar files or not. I get a couple of lines in
the error log that look like this:
[21/Jun/2001:13:35:54] info ( 9012): Aborting JVM
[21/Jun/2001:13:35:54] info ( 9012): Exiting JVM due to: jvm_abort () and
jvm.exitOnAbort > 0
[21/Jun/2001:13:35:54] info ( 9012): JVM exit statistics:
AttachedThreads/Max=1/1, ActiveThreads/Max=1/1
-----Original Message-----
From: jason heddings [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 21, 2001 3:29 PM
To: [EMAIL PROTECTED]
Subject: Re: tFactory.newInstance
Jim-
Are you using a proxy server to access the internet?
"Decarli, Jim" wrote:
>
> Hi,
>
> I'm trying to run the following code in a Java servlet:
>
> try {
> InputStream bais = new
ByteArrayInputStream(in_XML.getBytes());
> OutputStream baos = new ByteArrayOutputStream();
>
> TransformerFactory tFactory =
TransformerFactory.newInstance();
>
> // Use the TransformerFactory to instantiate a Transformer
that
> will work with the stylesheet you specify.
> // This method call also processes the stylesheet into a
> compiled Templates object.
> ** Transformer transformer = tFactory.newTransformer(new
>
StreamSource("http://mydomain.com/xml/stylesheet/stylesheetname.html.xsl"));
>
> // Use the Transformer to apply the associated Templates
object
> to an XML document
> transformer.transform(new StreamSource(bais), new
> StreamResult(baos));
> }
> catch(Exception e) {
> Debug.println("Exception XSLT Transformation! " +
> e.toString(),1,DebugLogFilenames.XML_LOG);
>
> }
>
> The line denoted with ** is where it hangs. It does not throw any
> exceptions. This code is being run on a Sun Solaris machine. The same
code
> when run on NT webserver runs fine as long as the Stream Source is changed
> to a file location such as "C:\xml\stylesheet\stylesheetname.html.xsl". I
> have put "http://mydomain.com/xml/stylesheet/stylesheetname.html.xsl" in
my
> browser and it displays the style sheet fine so I think that it is
resolving
> the URL alright. I would think that an exception would be thrown and
caught
> if this was a problem but nothing ever makes it to the exception log. Any
> ideas?
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\\\|/// Jason Heddings ((
\\ ~ ~ // 303.272.5166 (x75166) C|~~|
(/ @ @ /) [EMAIL PROTECTED] `__'
~~oOOo~(_)~oOOo~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~