You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2001/05/09 15:59:24 UTC

[Bug 1676] New - java.lang.NoSuchMethodError, if NodeIterator.nextNode()-method is called from a jsp-page

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1676

*** shadow/1676	Wed May  9 06:59:24 2001
--- shadow/1676.tmp.10480	Wed May  9 06:59:24 2001
***************
*** 0 ****
--- 1,32 ----
+ +============================================================================+
+ | java.lang.NoSuchMethodError, if NodeIterator.nextNode()-method  is called  |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 1676                        Product: XalanJ2                 |
+ |       Status: NEW                         Version: 2.0.1                   |
+ |   Resolution:                            Platform: PC                      |
+ |     Severity: Normal                   OS/Version: Windows NT/2K           |
+ |     Priority:                           Component: org.apache.xpath        |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: xalan-dev@xml.apache.org                                     |
+ |  Reported By: treiner@sony.de                                              |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ A jsp page is calling a class, which is operating on a NodeIterator.
+ The used appServer is Tomcat 3.2.1
+ The method "nextNode()" is causing the following error :
+ java.lang.NoSuchMethodError
+ 	at org.apache.xpath.patterns.NodeTest.execute(NodeTest.java:403)
+ 	at org.apache.xpath.axes.PredicatedNodeTest.acceptNode
+ (PredicatedNodeTest.java:388)
+ 	at org.apache.xpath.axes.DescendantIterator.nextNode
+ (DescendantIterator.java:239)
+ 
+ The bug can be avoided by deleting the last condition of the if-statement of 
+ line 403 in Class NodeTest (method on the context-node) as follows
+ 
+   if((Node.TEXT_NODE == nodeType || Node.CDATA_SECTION_NODE == nodeType) )
+ 
+ But don't know, if this has got any ugly side-effects