You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "nakamura noritaka (JIRA)" <xa...@xml.apache.org> on 2006/02/22 06:18:49 UTC
[jira] Created: (XALANJ-2272) ArrayIndexOutOfBoundsException
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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org
[jira] Commented: (XALANJ-2272) ArrayIndexOutOfBoundsException
Posted by "Henry Zongaro (JIRA)" <xa...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XALANJ-2272?page=comments#action_12367345 ]
Henry Zongaro commented on XALANJ-2272:
---------------------------------------
Are you able to provide a complete XSLT stylesheet and input XML document that demonstrate the problem? Also, Xalan-J version 2.2 is very old, it's possible that this problem has been fixed in a more recent version of Xalan-J. May I ask you to try to reproduce the problem with Xalan-J 2.7.0?
> 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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org
[jira] Commented: (XALANJ-2272) ArrayIndexOutOfBoundsException
Posted by "nakamura noritaka (JIRA)" <xa...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XALANJ-2272?page=comments#action_12371382 ]
nakamura noritaka commented on XALANJ-2272:
-------------------------------------------
Thank you.
It is waiting for reproduction now.
"SXL" and "XML" are put out when reproducing it.
> 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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org
[jira] Resolved: (XALANJ-2272) ArrayIndexOutOfBoundsException
Posted by "Henry Zongaro (JIRA)" <xa...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XALANJ-2272?page=all ]
Henry Zongaro resolved XALANJ-2272:
-----------------------------------
Resolution: Cannot Reproduce
Hello. We would really like to help to fix this problem, but it's difficult to do without any more information. If you are able to provide a complete test case that demonstrates the problem (stylesheet, XML input document and any Java source code that's needed), please attach them to this issue and reopen the bug report.
> 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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org