🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fr.comp.text.xml
Article #8783

Failure in execution of the Xalan Java 2 Samples

#8783
From: Stephen
Date: Fri, 27 Jul 2001 01:56
46 lines
2275 bytes
I am using Mandrake 8.0 as the Linux Platform. The language is
   Traditional Chinese. I have installed the xalan, and the classpath is
   also set as followings:

   export CLASSPATH=.:../bin:/usr/local/xalan/bin/xalan.jar:
   /usr/local/xalan/bin/xerces.jar:/usr/local/xalan/bin/xalansamples.jar:
   /usr/local/xalan/bin/xalanservlet.jar:/usr/local/xalan/bin/bsf.jar:$CLASSPATH

   It is successful when I compile the SimpleTransform.java. 
   However, when I try to execute the SimpleTransform:

   [stephen@stephen SimpleTransform]$ javac SimpleTransform.java
   [stephen@stephen SimpleTransform]$ java SimpleTransform
   1
   2
   ????????? (it is a chinese words, in english, it should be
   'segmentation fault')
   [stephen@stephen SimpleTransform]$

   However, when I login as root, the following occurs:
   [root@stephen SimpleTransform]# javac SimpleTransform.java
   [root@stephen SimpleTransform]# java SimpleTransform
   1


   and it is hanged!
   the output of the number is because of my change in
   SimpleTransform.java

   the change are as followings:

   System.out.println("1");
   TransformerFactory tFactory = TransformerFactory.newInstance();

   System.out.println("2");
   Transformer transformer = tFactory.newTransformer(new
   StreamSource("birds.xsl"));

   System.out.println("3");


   What's the problem? i have tried in Windows, there is no problem. 

   Thanks!

   Stephen
Technical Details
Message-ID: <b551ef53.0107261756.68cc8cf3@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!postnews1.google.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 114f60,26c72d0e45d25e1a,start
X-Google-Attributes: gid114f60,public
X-Google-ArrivalTime: 2001-07-26 18:56:25 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!postnews1.google.com!not-for-mail
From: fungho@sinaman.com (Stephen)
Newsgroups: fr.comp.text.xml
Subject: Failure in execution of the Xalan Java 2 Samples
Date: 26 Jul 2001 18:56:25 -0700
Organization: http://groups.google.com/
Lines: 46
Message-ID: <b551ef53.0107261756.68cc8cf3@posting.google.com>
NNTP-Posting-Host: 152.101.107.140
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 996198985 9500 127.0.0.1 (27 Jul 2001 01:56:25 GMT)
X-Complaints-To: groups-support@google.com
NNTP-Posting-Date: 27 Jul 2001 01:56:25 GMT