I'm just kibitzing from the sidelines here, but for situations like this
it might be nice to see all java thread stacks.

This is now possible in java 1.5 by calling Thread.getAllStackTraces().
This call could be done reflectively so as to not make a dependency on
1.5


Neil

> On Thursday 19 January 2006 12:42, Charles O Nutter wrote:
> > Can you toss over the error next time you see it?=20
> 
> REXML::ParseException: attempted adding second root element to document
> =A0 =A0 /usr/lib/ruby/1.8/rexml/parsers/treeparser.rb:85:in `parse'
> =A0 =A0 /usr/lib/ruby/1.8/rexml/document.rb:176:in `build'
> =A0 =A0 /usr/lib/ruby/1.8/rexml/document.rb:45:in `initialize'
> =A0 =A0 enttek/jruby/cinematic/database.rb:14:in `new'
> =A0 =A0 enttek/jruby/cinematic/database.rb:14:in `initialize'
> =A0 =A0 enttek/jruby/cinematic/database.rb:77:in `new'
> =A0 =A0 enttek/jruby/cinematic/database.rb:77:in `metaData'
> =A0 =A0 enttek/jruby/cinematic/database.rb:83:in `clean'
> =A0 =A0 setup/SimpleHomeOfficeFixture.rb:14:in `setupSimpleHomeOffice'
> =A0
>
C:\data\workspace\RubyTest\src\acceptanceTests\webservices\backoffice\Purcha
> seTicketsRestTest.rb:32:in `setup'
> 
> We've gotten this numerous times parsing different XML files, but also 
> numerous times parsing the same one.
> 
> > This could be that JVM issue I was seeing. It went away, but I've
> > got no guarantees it won't come back, and it certainly behaved like
> > a threading issue even though there was only a single thread running.
> >
> > At any rate, I'll keep an eye out for any thread-like failures.
> >
> > - Charlie
> >
> > On 1/19/06, David Corbin <[EMAIL PROTECTED]> wrote:
> > > This is just a comment, to say we still have some type of
synchronization
> > > bug (I think).  We get an intermittent failure parsing XML (the SAME
xml)
> > > during our tests.  Since the bug seems to happen much more frequently
on
> > > hyper-threaded systems, I assume it's a synchronization bug, though
I'm
> > > not really aware of any "extra thread" that are running.
> > >
> > > I've been trying to work on this a bit lately, but haven't yet gotten
> > > anywhere.  If I narrow it down to a small test case, I'll share it.
> > >
> > > David


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Jruby-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jruby-devel

Reply via email to