Subject: RE: Saxon error -999
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 10 Feb 2005 11:30:52 -0000
|
It looks like this bug:
http://sourceforge.net/tracker/index.php?func=detail&aid=1098187&group_id=29
872&atid=397617
Saxon problems are best reported on the saxon-help list or forum at
Sourceforge. If you get a stack trace, include it with the report - it may
be meaningless to you, but it contains a lot of information for someone!
If you don't feel like patching the software yourself, the description of
the bug should guide you to a workaround, and if not, there should be a new
release in the next week or so that fixes it.
Michael Kay
http://www.saxonica.com/
> -----Original Message-----
> From: Eder de Oliveira [mailto:eder@xxxxxxxxxxxxx]
> Sent: 10 February 2005 11:12
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re: Saxon error -999
>
> Hello!
>
> I used e.printStackTrace();
> Error Message: java.lang.ArrayIndexOutOfBoundsException: -999
> I'm using Saxon 8.2 with j2sdk1.4.2_06 and JAXP 1.3
>
> What it could be causing this error?
>
>
> Thanks
> Eder
>
> ----- Original Message -----
> From: "Michael Kay" <mike@xxxxxxxxxxxx>
> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
> Sent: Friday, February 04, 2005 9:31 PM
> Subject: RE: Saxon error -999
>
>
> > Knowing the exception message without knowing what kind of
> exception it is
> > doesn't help much. Do an e.printStackTrace().
> >
> > (Actually, I suspect an ArrayIndexOutOfBoundsException)
> >
> > Also say which version you're using.
> >
> > (Because I suspect a known bug in a superseded release)
> >
> > Michael Kay
> >
> >> -----Original Message-----
> >> From: Eder de Oliveira [mailto:eder@xxxxxxxxxxxxx]
> >> Sent: 04 February 2005 14:12
> >> To: XSL - list
> >> Subject: Saxon error -999
> >>
> >> Hello!
> >>
> >> My code to transformation:
> >>
> >> private boolean transformXML(String strPFileXML, String
> strPFileXSL,
> >> String strPArquivoSaida, String strPPathLMPL) throws Exception {
> >> boolean retorno = true;
> >> StreamSource xmlSource = null;
> >> StreamSource xslSource = null;
> >> StreamResult outSource = null;
> >> TransformerFactory tFactory = null;
> >> Transformer transformer = null;
> >> try {
> >> System.setProperty("javax.xml.transform.TransformerFactory",
> >> "net.sf.saxon.TransformerFactoryImpl");
> >>
> >>
> >> tFactory = TransformerFactory.newInstance();
> >>
> >> System.out.println("Processador: " +
> >> tFactory.getClass().getName());
> >>
> >> xmlSource = new StreamSource(strPFileXML);
> >> xslSource = new StreamSource(strPFileXSL);
> >> outSource = new StreamResult(new
> FileOutputStream(strPFileSaida));
> >>
> >> // Templates templates = tFactory.newTemplates(xslSource);
> >> // transformer = templates.newTransformer();
> >>
> >> transformer = tFactory.newTransformer(xslSource);
> >>
> >> transformer.setOutputProperty(OutputKeys.METHOD, "xml");
> >>
> >>
> transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "no");
> >> transformer.setOutputProperty(OutputKeys.ENCODING,
> "ISO-8859-1");
> >> transformer.setOutputProperty(OutputKeys.INDENT, "yes");
> >> // parametro do local do XSL
> >> transformer.setParameter("directory", strPPathLMPL);
> >>
> >> // transforma
> >> transformer.transform(xmlSource, outSource);
> >>
> >> } catch (Exception e) {
> >> retorno = false;
> >> System.out.println("Error: " + e.getMessage());
> >> } finally {
> >> tFactory = null;
> >> transformer = null;
> >> xmlSource = null;
> >> xslSource = null;
> >> }
> >> return retorno;
> >>
> >> }
> >>
> >> Problems: Exception = error: -999 ? Why?
> >>
> >> Thanks a lot
> >>
> >> Eder
|