tomcat Web 应用程序中 XML-XSL 转换中的随机错误

发布于 2024-12-09 03:52:29 字数 2675 浏览 0 评论 0原文

我在执行 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

黑凤梨 2024-12-16 03:52:29

既然异常是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?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文