Uploaded image for project: 'XalanJ2'
  1. XalanJ2
  2. XALANJ-676

WrappedRunningException on document() call

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.2.0
    • None
    • XPath-function
    • None
    • Operating System: Other
      Platform: Other
    • 4859

    Description

      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.

      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); }

      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            carnold@houston.rr.com Curt Arnold
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: