xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
Re: [XOM-interest] best way to bind java classes to xom classes?
- From: Steve Loughran <steve.loughran AT gmail.com>
- Cc: xom-interest <xom-interest AT lists.ibiblio.org>
- Subject: Re: [XOM-interest] best way to bind java classes to xom classes?
- Date: Mon, 20 Jun 2005 23:26:24 +0100
I've built against CVS_HEAD, this is what is happening
Additional namespace http://example.org/24 conflicts with existing
default namespace http://example.org/23
nu.xom.ParsingException: Additional namespace http://example.org/24
conflicts with existing default namespace http://example.org/23 at
nu.xom.Builder.build(Builder.java:1138) at
nu.xom.Builder.build(Builder.java:586) at
org.smartfrog.sfcore.languages.cdl.CdlParser.parseStream(CdlParser.java:105)
at
org.smartfrog.sfcore.languages.cdl.CdlParser.parseResource(CdlParser.java:120)
at
org.smartfrog.test.unit.sfcore.languages.cdl.XmlTestBase.load(XmlTestBase.java:88)
at
org.smartfrog.test.unit.sfcore.languages.cdl.XmlTestBase.assertInvalidCDL(XmlTestBase.java:141)
at
org.smartfrog.test.unit.sfcore.languages.cdl.XmlTestBase.assertInvalidCDL(XmlTestBase.java:122)
at
org.smartfrog.test.unit.sfcore.languages.cdl.CdlLoaderTest.testWrongDocNamespace(CdlLoaderTest.java:130)Caused
by: nu.xom.NamespaceConflictException: Additional namespace
http://example.org/24 conflicts with existing default namespace
http://example.org/23 at
nu.xom.Element.addNamespaceDeclaration(Element.java:1185) at
nu.xom.XOMHandler.startElement(XOMHandler.java:199) at
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Source) at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown
Source) at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source) at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source) at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at nu.xom.Builder.build(Builder.java:1121) ... 22 more
One possibiltiy is some kind of reentrancy bug, after all, this
happened since I subclassed stuff. I dont see anything special in the
factory, so it may be a ctor funny.
http://cvs.sourceforge.net/viewcvs.py/smartfrog/core/extras/cdl/src/org/smartfrog/sfcore/languages/cdl/dom/ExtendedNodeFactory.java?rev=1.2&view=markup
What I will do now is just set some breakpoints on Element.java:1185
in that test case, and just see how many times it crops up. That'll
show me what is going on.
-steve
-
[XOM-interest] best way to bind java classes to xom classes?,
Steve Loughran, 06/17/2005
-
Re: [XOM-interest] best way to bind java classes to xom classes?,
John.Cowan, 06/17/2005
-
Re: [XOM-interest] best way to bind java classes to xom classes?,
Elliotte Harold, 06/17/2005
- Re: [XOM-interest] best way to bind java classes to xom classes?, Arjan Huijzer, 06/17/2005
-
Re: [XOM-interest] best way to bind java classes to xom classes?,
Steve Loughran, 06/20/2005
-
Re: [XOM-interest] best way to bind java classes to xom classes?,
Elliotte Harold, 06/20/2005
-
Re: [XOM-interest] best way to bind java classes to xom classes?,
Steve Loughran, 06/20/2005
- Re: [XOM-interest] best way to bind java classes to xom classes?, Elliotte Harold, 06/20/2005
-
Re: [XOM-interest] best way to bind java classes to xom classes?,
Elliotte Harold, 06/20/2005
- Re: [XOM-interest] best way to bind java classes to xom classes?, Steve Loughran, 06/20/2005
- Re: [XOM-interest] best way to bind java classes to xom classes?, Elliotte Harold, 06/20/2005
- Re: [XOM-interest] best way to bind java classes to xom classes?, Steve Loughran, 06/20/2005
- Re: [XOM-interest] best way to bind java classes to xom classes?, Elliotte Harold, 06/20/2005
- Re: [XOM-interest] best way to bind java classes to xom classes?, Elliotte Harold, 06/20/2005
- Re: [XOM-interest] best way to bind java classes to xom classes?, Elliotte Harold, 06/20/2005
- Re: [XOM-interest] best way to bind java classes to xom classes?, Steve Loughran, 06/21/2005
-
Re: [XOM-interest] best way to bind java classes to xom classes?,
Steve Loughran, 06/20/2005
-
Re: [XOM-interest] best way to bind java classes to xom classes?,
Elliotte Harold, 06/20/2005
-
Re: [XOM-interest] best way to bind java classes to xom classes?,
Elliotte Harold, 06/17/2005
-
Re: [XOM-interest] best way to bind java classes to xom classes?,
John.Cowan, 06/17/2005
Archive powered by MHonArc 2.6.24.