Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / May 2007

Tip: Looking for answers? Try searching our database.

debugger behaviour different to execution behaviour

Thread view: 
Andy Chambers - 14 May 2007 10:19 GMT
Hi,

I've got a program that runs fine when run from the debugger in
Eclipse, but when you execute it outwith the debugger the program
throws a ConcurrentModificationException.  It doesn't seem to be a
simple case of http://mindprod.com/jgloss/runerrormessages.html#CONCURRENTMOD
since, the iterator's underlying collection is not being altered at
all.

The bug (presumably in our program) has been uncovered by moving from
Java 1.4.2 to Java 6 (I know, that seems like asking for trouble but
I'm only following orders).  Has anyone experienced similar problems
with an upgrade like this?

Cheers,
Andy
Daniel Dyer - 14 May 2007 10:51 GMT
> Hi,
>
[quoted text clipped - 5 lines]
> since, the iterator's underlying collection is not being altered at
> all.

Sounds like a threading problem.  The fact that it works in the debugger  
is probably because it slows things down sufficiently that two threads  
don't try to access the collection at the same time.  I'd review  
everywhere the collection is accessed and ensure that it is properly  
synchronised.

Dan.

Signature

Daniel Dyer
http://www.uncommons.org



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.