Forum: JRuby attempted duplicate class definition errors

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Ben Porterfield (Guest)
on 2013-10-02 01:22
(Received via mailing list)

We consistently see these errors when starting our server - I assume
multiple Ruby threads attempting to initialize classes that have not yet
been defined?

*java.lang.LinkageError: loader (instance of
> org/jruby/util/ClassCache$OneShotClassLoader): attempted duplicate class
> definition for name: "rubyobj/Some/ClassName"*

Is this expected, and if so is there some sort of workaround?
Ben Porterfield (Guest)
on 2013-10-02 01:39
(Received via mailing list)
A bit more info probably helps. We are on 1.7.3. I also noticed a bug
report ( that mentioned seeing
this issue with reify.classes=true, which we do have by default.
09a41a085f93af8644a7e2e35ba987af?d=identicon&s=25 Charles N. (headius)
on 2013-10-02 07:42
(Received via mailing list)
Add your details to that issue and I'll mark it for 1.7.6. I think we
can mutex or something to prevent the dupe definitions. There's some
logic there already, but it's probably not good enough.

- Charlie

On Tue, Oct 1, 2013 at 6:37 PM, Ben Porterfield
This topic is locked and can not be replied to.