JRuby 1.1.4 & getPlatformMBeanServer error on linux

I was getting an error on a new install of JRuby on a Linux

jruby 1.1.4 (ruby 1.8.6 patchlevel 114) (2008-08-28 rev 7570) [i386-java]
Created MBeanServer with ID: -vsnele:fl2bg1bd.0:mandlebrot:1
java.lang.management.ManagementFactory:-1:in `getPlatformMBeanServer’: java.lang.InternalError: One of the management beans is not compliant.
from org.jruby.management.BeanManager:59:in `register’
from org.jruby.management.BeanManager:29:in `register’
from org.jruby.compiler.JITCompiler:68:in `<init>’
from org.jruby.Ruby:207:in `<init>’
from org.jruby.Ruby:160:in `newInstance’
from org.jruby.Main:184:in `run’
from org.jruby.Main:100:in `run’
from org.jruby.Main:84:in `main’

It turned out that remove the following packages solved that problemRemoved the following packages:
java-gcj-compat
java-gcj-compat-headless

5 Responses to “JRuby 1.1.4 & getPlatformMBeanServer error on linux”

  1. James Healy Says:

    Cheers. I just ran into this issue on Debian, and your post solved it for me.

  2. admin Says:

    Glad I could help James.

    Justin

  3. Sanjay M Says:

    it was a different problem for me but the gcj clue in this post really got me going – I changed the jvm in eclipse to the default sun jvm. Thanks a ton!

  4. Sanjay M Says:

    PS: this was on Ubuntu 8.04

  5. Stefan Says:

    Same problem with same solution running a tomcat in debian

Leave a Reply