Nicholas --

About all I can suggest for the moment is that you run XalanJ in a
debugger and find where, in the redirect extension, this problem is
occurring in your environment.  Your CLASSPATH looks fine so perhaps
there is some permission problem trying to create 1-redir.out.  Have you
checked to see if this file is created at all?  Can you manually create
/opt/odi/java/xalan-j_2_2_0/samples/extensions/1-redir.out?  Try
specifying a -OUT argument with a file in a directory where you can
create files (like -OUT /writeabledir/sample1.out) and see if that makes
the exception go away.

I have made a note to myself to revisit and clean up the exception
handling from extension elements (and functions).  I've held off on
making changes to XalanJ for awhile because we were preparing for an
imminent release for quite a while.  Now that 2.2 is out, I'll look at
this code again and see what I can do.

Gary

> -----Original Message-----
> From: Nicholas Sushkin [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, February 07, 2002 7:32 AM
> To: Gary L Peskin; [EMAIL PROTECTED]
> Subject: RE: InvocationTargetException in xalan 2.2.0 
> extension samples
> 
> 
> Gary, for some reason I don't get any stack trace.
> 
> $ echo $CLASSPATH 
> /opt/odi/java/xalan-j_2_2_0/bin/xerces.jar:/opt/odi/java/xalan
> -j_2_2_0/bin/x
> alan.jar:/opt/odi/java/xalan-j_2_2_0/bin/xml-apis.jar:/opt/odi
> /java/xalan-j_
> 2_2_0/bin/xalansamples.jar:/opt/odi/java/xerces-1_2_3/xercesSa
> mples.jar:/opt
> /odi/java/xalan-j_2_2_0/bin/bsf.jar:/opt/odi/java/rhino/js.jar
> 
> $ java org.apache.xalan.xslt.Process -edump -IN 
> /opt/odi/java/xalan-j_2_2_0/samples/extensions/1-redir.xml 
> -XSL /opt/odi/java/xalan-j_2_2_0/samples/extensions/1-redir.xsl
> <?xml version="1.0" encoding="UTF-8"?>
> <standard-out>
>       Standard output:
> 
> file:///opt/odi/java/xalan-j_2_2_0/samples/extensions/1-redir.
> xsl; Line 29; Column 36; java.lang.reflect.InvocationTargetException
> 
>   <main>
>     -- look in 1-redir.out for the redirected output --
> 
>     Everything else
>   </main>
> </standard-out>
> 
> > -----Original Message-----
> > From: Gary L Peskin [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, February 06, 2002 9:42 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: InvocationTargetException in xalan 2.2.0 extension 
> > samples
> >
> >
> > Please add the -EDUMP switch to your command line and send 
> along the 
> > stack trace.
> >
> > Gary
> >
> > > -----Original Message-----
> > > From: Nicholas Sushkin [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, February 06, 2002 3:49 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: InvocationTargetException in xalan 2.2.0 
> extension samples
> > >
> > >
> > > Hi,
> > >
> > > I never had any problems with extensions, but in 2.2.0, I 
> can't even 
> > > get the samples to work. I get 
> > > java.lang.reflect.InvocationTargetException
> > > whenever xalan processes an extension element. What am I doing 
> > > wrong?
> > >
> > > $ echo $CLASSPATH 
> > > /opt/odi/java/xalan-j_2_2_0/bin/xerces.jar:/opt/odi/java/xalan
> > > -j_2_2_0/bin/xalan.jar:/opt/odi/java/xalan-j_2_2_0/bin/xml-api
> > > s.jar:/opt/odi/java/xalan-j_2_2_0/bin/xalansamples.jar:/opt/od
> > > i/java/xerces-1_2_3/xercesSamples.jar:/opt/odi/java/xalan-j_2_
> > > 2_0/bin/bsf.jar:/opt/odi/java/rhino/js.jar
> > >
> > > $ java org.apache.xalan.xslt.Process -IN 
> > > /opt/odi/java/xalan-j_2_2_0/samples/extensions/1-redir.xml
> > > -XSL /opt/odi/java/xalan-j_2_2_0/samples/extensions/1-redir.xsl
> > > <?xml version="1.0" encoding="UTF-8"?>
> > > <standard-out>
> > >       Standard output:
> > >
> > file:///opt/odi/java/xalan-j_2_2_0/samples/extensions/1-redir.xsl; 
> > Line 29; Column 36; java.lang.reflect.InvocationTargetException
> >
> >   <main>
> >     -- look in 1-redir.out for the redirected output --
> >
> >     Everything else
> >   </main>
> > </standard-out>
> >
> >
> > Thanks!
> >
> > --
> > Nicholas Sushkin
> > Open Finance Corporation <http://www.openfinance.com>
> >
> >
> 

Reply via email to