Not exactly what I meant.  Kevan Miller dug into this for a couple weeks a 
couple years back as this problem happens in Geronimo as well.

It's not really specific to any library and seems to be an issue in the VM 
itself occasionally stepping on itself loading a class.  I don't recall the 
exact details he dug up but seem to recall there's a rare condition in which a 
simple circular reference causes the JVM to try and load a class it's already 
trying to load earlier in the stack.  He had it pinned down to a particular 
class and method, IIRC.

It works most the time, but there was some situations where it could fail and 
the only workaround was to catch the LinkageError and try again.  On the second 
try the class in question would be loaded so the LinkageError wouldn't occur.

Seems it can pop up with pretty much any flavor of child classloader.

At least that's my vague recollection.


-David

On Feb 19, 2014, at 7:29 AM, Romain Manni-Bucau <rmannibu...@gmail.com> wrote:

> That's not what I meant. I was used to dig into these issues and they
> had most of the time no link at all with parallelism. Was just out
> filtering which was wrong. It can still have side effects but enhance
> so much th euser experience that we need to keep it IMO. CXF was one
> of the most common framework where we were a bit wrong. SO I strongly
> believe this is not only a synchro issue.
> 
> If that's just a synchro issue we can synchronized the classloader
> (not a lock please, it doesn't bring anything) but i doubt it.
> Romain Manni-Bucau
> Twitter: @rmannibucau
> Blog: http://rmannibucau.wordpress.com/
> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> Github: https://github.com/rmannibucau
> 
> 
> 
> 2014-02-19 15:25 GMT+01:00 David Blevins <david.blev...@gmail.com>:
>> Synchronization issues rarely are :)
>> 
>> -David
>> 
>> On Feb 19, 2014, at 6:01 AM, agumbrecht <agumbre...@tomitribe.com> wrote:
>> 
>>> OK, I'll dig in a bit later - And yes, it's not an 'always' thing?
>>> 
>>> Andy.
>>> 
>>> 
>>> 
>>> --
>>> View this message in context: 
>>> http://openejb.979440.n4.nabble.com/LazyStopWebappClassLoader-LinkageError-tp4667885p4667889.html
>>> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>> 

Reply via email to