You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by xa...@xml.apache.org on 2004/09/06 08:01:37 UTC
[jira] Updated: (XALANJ-676) WrappedRunningException on document() call
The following issue has been updated:
Updater: Brian Minchau (mailto:minchau@ca.ibm.com)
Date: Sun, 5 Sep 2004 11:01 PM
Changes:
assignee changed from Xalan Developers Mailing List
description changed from 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);
}
} to 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);
}
}
environment changed from Operating System: Other
Platform: Other to Operating System: Other
Platform: Other
priority changed to Blocker
Component changed to XPath function
Component changed from Xalan-interpretive transformation
---------------------------------------------------------------------
For a full history of the issue, see:
http://issues.apache.org/jira/browse/XALANJ-676?page=history
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/XALANJ-676
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XALANJ-676
Summary: WrappedRunningException on document() call
Type: Bug
Status: Unassigned
Priority: Blocker
Project: XalanJ2
Components:
XPath function
Versions:
2.2.x
Assignee:
Reporter: Curt Arnold
Created: Tue, 13 Nov 2001 7:05 PM
Updated: Sun, 5 Sep 2004 11:01 PM
Environment: Operating System: Other
Platform: Other
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.
* @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);
}
}
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org