• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

ClassCircularityError; Multi Threaded

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

Suddenly my application started to throw this error.

I have several threads. Each threads gets a runnable task.
All my runnable tasks inherit from a single abstract class. This abstract class is doing very little. mostly administration of status and runtime-properties update.

All the threads are started one after the other.
Many times it works. But sometimes it throws this error.

Please see the link below for the SUN's explanation of a bug regarding this error. bus.sun.com


Did anyone encounter this, or has a workaround? I thought about adding a sleep of, say, 2 seconds between the starting of the threads. But it MIGHT work sometimes. Maybe this started because I made something take a little while longer (or less) in one of the threads, and suddenly it causes it.


Thanks,

Azriel
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic