Share

UDDI4J

Tracker: Bugs

5 DOMException in find_service() - ID: 1566244
Last Update: Comment added ( steinle )

UDDI4J worked without any problem for a relative long
amount of time, but now I got the DOMException with the
following stacktrace:

org.w3c.dom.DOMException: WRONG_DOCUMENT_ERR: A node is
used in a different document than the one that created it.
at
org.apache.xerces.dom.ParentNode.internalInsertBefore(Unknown
Source)
at
org.apache.xerces.dom.ParentNode.insertBefore(Unknown
Source)
at org.apache.xerces.dom.NodeImpl.appendChild(Unknown
Source)
at
org.uddi4j.util.FindQualifiers.saveToXML(FindQualifiers.java:149)
at
org.uddi4j.request.FindService.saveToXML(FindService.java:275)
at
org.uddi4j.transport.TransportBase.send(TransportBase.java:56)
at org.uddi4j.client.UDDIProxy.send(UDDIProxy.java:1938)
at
org.uddi4j.client.UDDIProxy.find_service(UDDIProxy.java:886)


Martin Steinle ( steinle ) - 2006-09-27 10:22

5

Closed

None

Nobody/Anonymous

None

None

Public


Comments ( 4 )




Date: 2006-12-21 14:16
Sender: steinle


Hi Ian,

Thanks for your help. I think I found the problem in my code and fixed it.
Hope the exception won't come back again.

Regards,
Martin Steinle


Date: 2006-12-21 10:32
Sender: ihodgesProject Admin


Hi Martin,

I have reviewed the uddi4j code and can confirm that it is Thread safe,
but I agree with you that this must be a Threading issue. The only way I
can see this exception springing is if the FindQualifiers object that you
pass in to the UDDIProxy.find_service() method is shared between Threads.
Can you confirm that a FindQualifiers object is instantiated for each
Thread of your application. If the object is shared then its possible for
this Exception to be thrown.

Regards,
Ian Hodges.


Date: 2006-12-21 07:16
Sender: nobody

Logged In: NO

Hello,

once again, I had exactly the same exception. As it happens very rare, I
assume it is a multithreading issue. Can you please tell me if the uddi4j
libraries are implemented threadsafe?

Regards,
Martin Steinle


Date: 2006-11-13 10:48
Sender: ihodgesProject Admin

Logged In: YES
user_id=1463591

Hi,

I am sorry I am unable to recreate this problem with V2.0.5.

Regards,
Ian Hodges.


Log in to comment.




Attached File

No Files Currently Attached

Changes ( 2 )

Field Old Value Date By
status_id Open 2006-11-13 10:48 ihodges
close_date - 2006-11-13 10:48 ihodges