ArrayIndexOutOfBoundsException
------------------------------

         Key: XALANJ-2272
         URL: http://issues.apache.org/jira/browse/XALANJ-2272
     Project: XalanJ2
        Type: Bug
  Components: Xalan  
    Versions: 2.2.x    
 Environment: Machine:HP ProLiant DL-380
OS:Red Hat Enterprise Linux 2.1 AS
Web Application:Weblogic7.0(SP5)
xalan:xalan-j_2_2 (It is a bundle in Weblogic. )
Xerces:Xerces-J-1.4.4((It is a bundle in Weblogic. ) 
JDK:Jrockit7.0 SP5
J2EE:j2se1.3.2
    Reporter: nakamura noritaka


The following Exception went out. 
Exception is not generated usually. 
However, when Exception is generated once, it is sure to become 
Exception. 
Normal xsl does Exception.
----------------------------------------------------------------------------
javax.xml.transform.TransformerConfigurationException: 
javax.xml.transform.TransformerConfigurationException: 
javax.xml.transform.TransformerException: 
java.lang.ArrayIndexOutOfBoundsException
        at 
weblogic.apache.xalan.processor.TransformerFactoryImpl.newTransformer(Ljavax.xml.transform.Source;)Ljavax.xml.transform.Transformer;(TransformerFactoryImpl.java:774)
        at 
weblogic.xml.jaxp.WebLogicTransformerFactory.newTransformer(Ljavax.xml.transform.Source;)Ljavax.xml.transform.Transformer;(WebLogicTransformerFactory.java:195)
        at 
weblogic.xml.jaxp.RegistryTransformerFactory.newTransformer(Ljavax.xml.transform.Source;)Ljavax.xml.transform.Transformer;(RegistryTransformerFactory.java:211)
        at 
jp.co.nttcom.business.taskbrain.common.XMLUtil.transformHtml(Ljava.lang.String;Ljava.lang.String;)Ljava.lang.String;(XMLUtil.java:676)
        at 
jsp_servlet._createdoc.__wdbrc001013._jspService(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(__wdbrc001013.java:170)
----------------------------------------------------------------------------

It is a source of the correspondence as follows. 
----------------------------------------------------------------------------
   669     public static String transformHtml(String xmlString, String 
xslString)
    670                             throws  TransformerException, 
TransformerConfigurationException,
    671                                     IOException {
    672
    673   try {
    674         TransformerFactory tFactory = TransformerFactory.newInstance();
    675
    676         Transformer transformer = tFactory.newTransformer(new 
StreamSource(new StringReader(xslString)));
    677 
    678         setTransformerProperty(transformer);
    679
    680         StringWriter out = new StringWriter();
    681         transformer.transform(new StreamSource(new 
StringReader(xmlString)), new StreamResult(out));
    682
    683         return out.toString();
    684   }
    685   catch(TransformerConfigurationException e){
    686     LogMgr logMgr = new LogMgr(XMLUtil.class);
    687     logMgr.debug("ERROR XMLUtil.class:transformHtml() by nakamura");
    688     logMgr.debug("1 
----------------------------------------------------------------:");
    689     logMgr.debug("String xslString:" + xslString);
    690     logMgr.debug("2 
----------------------------------------------------------------:");
    691     throw e;
    692   }
    693 }
----------------------------------------------------------------------------



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to