Hi Mike,
Just out of curiosity, what JVM are you using?
We're running XalanJ under JNI, and we've found that it crashes with the
1.3.02 Solaris JVM from Sun.
We had to revert to 1.2.2.
I'd be interested to hear how your adaptation goes, since one of the
reasons we decided to use Xalan was the availability of the C++ implementation.
Paul Winder
Arbortext
At 10:17 AM 5/29/01 -0700, you wrote:
>Hello Xalan Developers,
>
>Please reply to my email address.
>
>We have been using Xalan Java for a while on our project but are
>noticing that its relatively slow when compared to Xalan C++ (
>using the command line for both with samples of our xml/xslt
>files). I'm noticing about .0005 seconds for the C++
>transformation and a 2.5 second transformation for java, on
>average. I'd like to be able to make a native call to Xalan C++
>to perform the transformation since I think it would greatly
>enhance our performance. What do you think?
>
>Currently I have a simple JNI implementation that takes in two
>string args. One for the xml source and the second for the path
>to an xslt file. Ideally I am attempting to convert these to
>streams and use these streams to perform the transformation.
>Using the SimpleTransform code, I compiled it into my source
>however, when I try to run it from java, I get the following
>error:
>
>#
># An EXCEPTION_ACCESS_VIOLATION exception has been detected in
>native code outside the VM.
># Program counter=0x8fd2b94
>#
>#
># An EXCEPTION_ACCESS_VIOLATION exception has been detected in
>native code outside the VM.
># Program counter=0x8fd2c63
>#
>#
># An EXCEPTION_ACCESS_VIOLATION exception has been detected in
>native code outside the VM.
># Program counter=0x245c8a53
>#
>
>interestigly enough, just before XSLTEngineImpl::process method.
> I threw in lots of couts and the last one that prints is just
>before process then the above messages appear. The first thing
>I was hoping to accomplish was to be able to run SimpleTransform
>from a java call just to get it working.
>
>I have a suspicious feeling that this error might be a VM bug.
>
>My questions are has anyone successfully done this? Is it
>feasible for performance gains? Your advice is much
>appreciated.
>
>Respectfully,
>Mike G.
>BusinessEdge Solutions
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! Auctions - buy the things you want at great prices
>http://auctions.yahoo.com/