DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4859>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

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

WrappedRunningException on document() call

           Summary: WrappedRunningException on document() call
           Product: XalanJ2
           Version: 2.2.x
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: org.apache.xalan
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Applying transforms/test-to-java.xsl on 
tests/level1/core/documentcreatecdatasection.xml will result in

C:\xalanbug\domts\2001\DOM-Test-Suite>java org.apache.xalan.xslt.Process -IN 
tes
ts\level1\core\documentcreatecdatasection.xml -XSL transforms\test-to-java.xsl

/*
This Java source file was generated by test-to-java.xsl
and is a derived work from the source document.
The source document contained the following notice:


Copyright (c) 2001 World Wide Web Consortium,
(Massachusetts Institute of Technology, Institut National de
Recherche en Informatique et en Automatique, Keio University). All
Rights Reserved. This program is distributed under the W3C's Software
Intellectual Property License. This program is distributed in the
hope that it will be useful, but WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
See W3C License http://www.w3.org/Consortium/Legal/ for more details.

*/

package org.w3.domts.level1.core;

import org.w3c.dom.*;

import org.w3c.domts.*;
import javax.xml.parsers.*;
import java.util.*;



/**
*
    The "createCDATASection(data)" method creates a new
   CDATASection node whose value is the specified string.
   Retrieve the entire DOM document and invoke its
   "createCDATASection(data)" method.  It should create a
   new CDATASection node whose "data" is the specified
   string.  The content, name and type are retrieved and
   output.

* @author NIST
* @author Mary Brady
* @see <a href="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-
cor
e#ID-D26C0AF8">http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-
core
#ID-D26C0AF8</a>
*/
public class documentcreatecdatasection extends DOMTestCase {

   public documentcreatecdatasection(DOMTestDocumentBuilderFactory factory) 
thro
ws Exception {
      DocumentBuilderFactory myFactory = factory.newInstance();

      DocumentBuilder builder = myFactory.newDocumentBuilder();

      setFactory(myFactory);
      setBuilder(builder);
   }

   public void runTest() throws java.lang.Throwable {
      Document doc;
      CDATASection newCDATASectionNode;
      String newCDATASectionValue;
      String newCDATASectionName;
      int newCDATASectionType;
      doc = load("staff.xml");
      org.apache.xml.utils.WrappedRuntimeException
        at org.apache.xml.dtm.ref.DTMManagerDefault.getDTM
(DTMManagerDefault.jav
a:329)
        at org.apache.xpath.XPathContext.getDTM(XPathContext.java:169)
        at org.apache.xpath.SourceTreeManager.parseToNode
(SourceTreeManager.java
:367)
        at org.apache.xpath.SourceTreeManager.getSourceTree
(SourceTreeManager.ja
va:338)
        at org.apache.xalan.templates.FuncDocument.getDoc
(FuncDocument.java:316)

        at org.apache.xalan.templates.FuncDocument.execute
(FuncDocument.java:235
)
        at org.apache.xpath.XPath.execute(XPath.java:318)
        at org.apache.xalan.templates.ElemVariable.getValue
(ElemVariable.java:31
1)
        at org.apache.xalan.templates.XUnresolvedVariable.execute
(XUnresolvedVar
iable.java:166)
        at org.apache.xpath.VariableStack.getGlobalVariable
(VariableStack.java:4
19)
        at org.apache.xpath.operations.Variable.execute(Variable.java:170)
        at org.apache.xpath.Expression.asIterator(Expression.java:273)
        at org.apache.xpath.axes.FilterExprWalker.setRoot
(FilterExprWalker.java:
156)
        at org.apache.xpath.axes.WalkingIteratorSorted.reset
(WalkingIteratorSort
ed.java:292)
        at org.apache.xpath.axes.LocPathIterator.setRoot
(LocPathIterator.java:37
3)
        at org.apache.xpath.axes.WalkingIteratorSorted.setRoot
(WalkingIteratorSo
rted.java:170)
        at org.apache.xpath.axes.LocPathIterator.execute
(LocPathIterator.java:24
2)
        at org.apache.xpath.XPath.execute(XPath.java:318)
        at org.apache.xalan.templates.ElemVariable.getValue
(ElemVariable.java:31
1)
        at org.apache.xalan.templates.ElemVariable.execute
(ElemVariable.java:282
)
        at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes
(
ElemApplyTemplates.java:422)
        at org.apache.xalan.templates.ElemApplyTemplates.execute
(ElemApplyTempla
tes.java:226)
        at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes
(
ElemApplyTemplates.java:422)
        at org.apache.xalan.templates.ElemApplyTemplates.execute
(ElemApplyTempla
tes.java:226)
        at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates
(Tr
ansformerImpl.java:2186)
        at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode
(Tran
sformerImpl.java:2012)
        at org.apache.xalan.transformer.TransformerImpl.transformNode
(Transforme
rImpl.java:1175)
        at org.apache.xalan.transformer.TransformerImpl.transform
(TransformerImp
l.java:642)
        at org.apache.xalan.transformer.TransformerImpl.transform
(TransformerImp
l.java:1092)
        at org.apache.xalan.transformer.TransformerImpl.transform
(TransformerImp
l.java:1070)
        at org.apache.xalan.xslt.Process.main(Process.java:882)
file:///C:/xalanbug/domts/2001/DOM-Test-Suite/transforms/test-to-java.xsl; Line
1083; Column 131; Can not load requested doc: ../build/dom2-interfaces.xml
file:///C:/xalanbug/domts/2001/DOM-Test-Suite/transforms/test-to-java.xsl; Line
1098; Column 19; Unrecognized element createCDATASection

      file:///C:/xalanbug/domts/2001/DOM-Test-Suite/transforms/test-to-
java.xsl;
 Line 1098; Column 19; Unrecognized element nodeValue

      assertEquals("nodeValue","This is a new CDATASection 
node",newCDATASection
Value);
      file:///C:/xalanbug/domts/2001/DOM-Test-Suite/transforms/test-to-
java.xsl;
 Line 1098; Column 19; Unrecognized element nodeName

      assertEquals("nodeName","#cdata-section",newCDATASectionName);
      file:///C:/xalanbug/domts/2001/DOM-Test-Suite/transforms/test-to-
java.xsl;
 Line 1098; Column 19; Unrecognized element nodeType

      assertEquals("nodeType",4,newCDATASectionType);

   }
   public String getTargetURI() {
      return "http://www.w3.org/2001/DOM-Test-Suite/tests/Level-
1/documentcreate
cdatasection";
   }
   public static void main(String[] args) {
        DOMTestCase.doMain(documentcreatecdatasection.class,args);
   }
}

Reply via email to