You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Ramon Buckland <no...@thebuckland.com> on 2006/09/11 02:42:02 UTC

JBoss - org.w3c.dom.DOMException: NOT_FOUND_ERR

Hi Peoples, 

We have been testing JBoss with ServiceMix and have come across this problem
with the Validation component. 

It is a strange one and possibly (i feel) may be related to an
issue of class versions and the classloader. 
Before I spend a few hours creating a simple test case, does
anyone have any suggestions on what we might try ?

Thanks
Ramon

fault: <?xml version="1.0" encoding="UTF-8"?><ExternalError><![CDATA
[org.w3c.dom.DOMException: NOT_FOUND_ERR: An attempt is made to reference a 
node in a context where it does not exist.
at org.apache.xerces.dom.ElementImpl.setIdAttributeNode(Unknown Source)
at org.apache.xerces.jaxp.validation.DOMResultBuilder.startElement(Unknown 
Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
at org.apache.xerces.jaxp.validation.DOMValidatorHelper.beginNode(Unknown 
Source)
at org.apache.xerces.jaxp.validation.DOMValidatorHelper.validate(Unknown 
Source)
at org.apache.xerces.jaxp.validation.DOMValidatorHelper.validate(Unknown 
Source)
at org.apache.xerces.jaxp.validation.ValidatorImpl.validate(Unknown Source)
at org.apache.servicemix.components.validation.ValidateComponent.doValidation
(ValidateComponent.java:208)
at org.apache.servicemix.components.validation.ValidateComponent.transform
(ValidateComponent.java:142)
at 
org.apache.servicemix.components.util.TransformComponentSupport.onMessageExcha
nge(TransformComponentSupport.java:66)
at org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound
(DeliveryChannelImpl.java:623)
at org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting
(AbstractFlow.java:169)
at org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting
(SedaFlow.java:177)
at org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:227)
at org.apache.geronimo.connector.work.WorkerContext.run
(WorkerContext.java:2... 

--
Open WebMail Project (http://openwebmail.org)


Re: JBoss - org.w3c.dom.DOMException: NOT_FOUND_ERR

Posted by Guillaume Nodet <gn...@gmail.com>.
I would check the type of the incoming jaxp source.
The incoming content is transformed to a DOM source,
but there may be problems if the incoming content is
a DOM node already, without being the root element or
document itself...

And I would first try with the latest ServiceMix version...

On 9/11/06, Ramon Buckland <no...@thebuckland.com> wrote:
>
> Hi Peoples,
>
> We have been testing JBoss with ServiceMix and have come across this
> problem
> with the Validation component.
>
> It is a strange one and possibly (i feel) may be related to an
> issue of class versions and the classloader.
> Before I spend a few hours creating a simple test case, does
> anyone have any suggestions on what we might try ?
>
> Thanks
> Ramon
>
> fault: <?xml version="1.0" encoding="UTF-8"?><ExternalError><![CDATA
> [org.w3c.dom.DOMException: NOT_FOUND_ERR: An attempt is made to reference
> a
> node in a context where it does not exist.
> at org.apache.xerces.dom.ElementImpl.setIdAttributeNode(Unknown Source)
> at org.apache.xerces.jaxp.validation.DOMResultBuilder.startElement(Unknown
> Source)
> at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown
> Source)
> at org.apache.xerces.jaxp.validation.DOMValidatorHelper.beginNode(Unknown
> Source)
> at org.apache.xerces.jaxp.validation.DOMValidatorHelper.validate(Unknown
> Source)
> at org.apache.xerces.jaxp.validation.DOMValidatorHelper.validate(Unknown
> Source)
> at org.apache.xerces.jaxp.validation.ValidatorImpl.validate(Unknown
> Source)
> at
> org.apache.servicemix.components.validation.ValidateComponent.doValidation
> (ValidateComponent.java:208)
> at org.apache.servicemix.components.validation.ValidateComponent.transform
> (ValidateComponent.java:142)
> at
>
> org.apache.servicemix.components.util.TransformComponentSupport.onMessageExcha
> nge(TransformComponentSupport.java:66)
> at org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound
> (DeliveryChannelImpl.java:623)
> at org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting
> (AbstractFlow.java:169)
> at org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting
> (SedaFlow.java:177)
> at org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java
> :227)
> at org.apache.geronimo.connector.work.WorkerContext.run
> (WorkerContext.java:2...
>
> --
> Open WebMail Project (http://openwebmail.org)
>
>


-- 
Cheers,
Guillaume Nodet