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
November 26th, 2008 at 3:25 am
Cheers. I just ran into this issue on Debian, and your post solved it for me.
November 26th, 2008 at 2:22 pm
Glad I could help James.
Justin
April 21st, 2009 at 6:46 am
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!
April 21st, 2009 at 6:47 am
PS: this was on Ubuntu 8.04
January 31st, 2010 at 11:39 pm
Same problem with same solution running a tomcat in debian