tomcat Web 应用程序中 XML-XSL 转换中的随机错误
我在执行 XML-XSL 转换的 Web 应用程序中随机收到此错误。重新加载时相同数据不会发生异常。
----------错误1
Caused by: java.lang.ArrayIndexOutOfBoundsException: 7 >= 7
at java.util.Vector.elementAt(Vector.java:427)
at gnu.xml.aelfred2.SAXDriver.startElement(SAXDriver.java:804)
at gnu.xml.aelfred2.XmlParser.parseElement(XmlParser.java:1037)
at gnu.xml.aelfred2.XmlParser.parseDocument(XmlParser.java:416)
at gnu.xml.aelfred2.XmlParser.doParse(XmlParser.java:167)
at gnu.xml.aelfred2.SAXDriver.parse(SAXDriver.java:320)
at gnu.xml.aelfred2.XmlReader.parse(XmlReader.java:294)
at org.apache.xml.dtm.ref.DTMManagerDefault.getDTM(DTMManagerDefault.java:437)
at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:699)
at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1284)
at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1262)
at org.apache.taglibs.xtags.xslt.StyleTag.doEndTag(StyleTag.java:157)
at org.apache.jsp.jsp.chart.newleafmodel.tabdetail_jsp._jspService(tabdetail_jsp.java:698)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:386)
----------------------------------错误2
Caused by: java.lang.ArrayIndexOutOfBoundsException: 5 >= 5
at java.util.Vector.elementAt(Vector.java:427)
at gnu.xml.aelfred2.SAXDriver.startElement(SAXDriver.java:804)
at gnu.xml.aelfred2.XmlParser.parseElement(XmlParser.java:1037)
at gnu.xml.aelfred2.XmlParser.parseDocument(XmlParser.java:416)
at gnu.xml.aelfred2.XmlParser.doParse(XmlParser.java:167)
at gnu.xml.aelfred2.SAXDriver.parse(SAXDriver.java:320)
at gnu.xml.aelfred2.XmlReader.parse(XmlReader.java:294)
at org.apache.xml.dtm.ref.DTMManagerDefault.getDTM(DTMManagerDefault.java:437)
at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:699)
at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1284)
at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1262)
at org.apache.taglibs.xtags.xslt.StyleTag.doEndTag(StyleTag.java:157)
at org.apache.jsp.jsp.chart.newleafmodel.tabdetail_jsp._jspService(tabdetail_jsp.java:698)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:386)
... 29 more
是无论如何,它与我们为 web 应用程序配置的 xml 解析器有关吗?
Im getting this error randomly in the web application which does the XML-XSL transformation. Same data when reloaded exception does not occur.
----------error 1
Caused by: java.lang.ArrayIndexOutOfBoundsException: 7 >= 7
at java.util.Vector.elementAt(Vector.java:427)
at gnu.xml.aelfred2.SAXDriver.startElement(SAXDriver.java:804)
at gnu.xml.aelfred2.XmlParser.parseElement(XmlParser.java:1037)
at gnu.xml.aelfred2.XmlParser.parseDocument(XmlParser.java:416)
at gnu.xml.aelfred2.XmlParser.doParse(XmlParser.java:167)
at gnu.xml.aelfred2.SAXDriver.parse(SAXDriver.java:320)
at gnu.xml.aelfred2.XmlReader.parse(XmlReader.java:294)
at org.apache.xml.dtm.ref.DTMManagerDefault.getDTM(DTMManagerDefault.java:437)
at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:699)
at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1284)
at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1262)
at org.apache.taglibs.xtags.xslt.StyleTag.doEndTag(StyleTag.java:157)
at org.apache.jsp.jsp.chart.newleafmodel.tabdetail_jsp._jspService(tabdetail_jsp.java:698)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:386)
-----------------------------------error 2
Caused by: java.lang.ArrayIndexOutOfBoundsException: 5 >= 5
at java.util.Vector.elementAt(Vector.java:427)
at gnu.xml.aelfred2.SAXDriver.startElement(SAXDriver.java:804)
at gnu.xml.aelfred2.XmlParser.parseElement(XmlParser.java:1037)
at gnu.xml.aelfred2.XmlParser.parseDocument(XmlParser.java:416)
at gnu.xml.aelfred2.XmlParser.doParse(XmlParser.java:167)
at gnu.xml.aelfred2.SAXDriver.parse(SAXDriver.java:320)
at gnu.xml.aelfred2.XmlReader.parse(XmlReader.java:294)
at org.apache.xml.dtm.ref.DTMManagerDefault.getDTM(DTMManagerDefault.java:437)
at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:699)
at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1284)
at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1262)
at org.apache.taglibs.xtags.xslt.StyleTag.doEndTag(StyleTag.java:157)
at org.apache.jsp.jsp.chart.newleafmodel.tabdetail_jsp._jspService(tabdetail_jsp.java:698)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:386)
... 29 more
Is it anyway related to the xml parser which we configured for our webapps?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
既然异常是XML解析器抛出的,那么当然和解析器有关。为什么不尝试使用 Xerces 呢?
Since the exception is thrown from the XML parser, it is of course related to the parser. Why don't you try with Xerces instead?