logo       

Related Msgs: audio.musicbrai...    enbd.general/20...    ietf.idr/2002-0...    java.ant-contri...    gnu.make.genera...    qplus.devel/200...    video.freevo.cv...    os.netbsd.ports...    yellowdog.gener...    xfree86.cvs/200...    search.nutch.us...    freedesktop.xse...    programming.swi...    capabilities.ge...    telephony.pbx.a...    mail.sylpheed.c...    db.firebase.por...    boot-loaders.u-...    recreation.radi...    netbsd.bugs/200...    web.zope.plone....    user-groups.lin...   

Re: xerces DOM concurrent access and defer-node-expansion: msg#00044

Subject: Re: xerces DOM concurrent access and defer-node-expansion
Hi Michael,

Provided that your code is ensuring that only one thread is accessing the 
DOM at a time (i.e. the whole structure, not just one node) you should be 
fine.

Thanks.

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@xxxxxxxxxx
E-mail: mrglavas@xxxxxxxxxx

Michael S. Daly <michael_daly@xxxxxxxxx> wrote on 04/30/2007 03:25:31 PM:

> Michael Glavassevich <mrglavas <at> ca.ibm.com> writes:
> 
> 
> > No. For example, you will run into trouble with NodeLists. Internally 
they 
> > cache the length and previously accessed position to improve the 
> > performance of calls to getLength() and item(i). Invoking these 
methods 
> > from multiple threads (even on different NodeLists) without 
synchronizing 
> > your application code will lead to the exceptions [1] observed by 
> > Prashant. You can't count on the other read operations being 
thread-safe 
> > either.
> > 
> 
> > [1] Caused by: java.lang.NullPointerException
> >  at org.apache.xerces.dom.ParentNode.nodeListGetLength(Unknown Source)
> >  at org.apache.xerces.dom.ParentNode.getLength(Unknown Source)
> > 
> 
> I'm running into this issue within my application. Aside from 
> synchronizing the
> code that calls these methods, are there any additional steps that need 
to be
> taken to resolve this issue?
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: j-users-unsubscribe@xxxxxxxxxxxxxxxxx
> For additional commands, e-mail: j-users-help@xxxxxxxxxxxxxxxxx



Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo