Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Atlassian JIRA by Wannes Geysen, 2 years ago
com.sun.management.OperatingSystem cannot be cast to com.sun.management.UnixOperatingSystemMXBean
via Atlassian JIRA by Wannes Geysen, 1 year ago
com.sun.management.OperatingSystem cannot be cast to com.sun.management.UnixOperatingSystemMXBean
java.lang.ClassCastException: com.sun.management.OperatingSystem cannot be cast to com.sun.management.UnixOperatingSystemMXBean	at com.cenqua.fisheye.support.SystemResourceMonitor.(SystemResourceMonitor.java:18)	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)	at java.lang.reflect.Constructor.newInstance(Unknown Source)	at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:74)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:958)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:911)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)	at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)	at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:549)	at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)	at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)	at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)	at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)	at com.cenqua.fisheye.web.jetty.FishEyeWebApplicationContext.doStart(FishEyeWebApplicationContext.java:27)	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)	at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)	at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)	at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)	at org.mortbay.jetty.Server.doStart(Server.java:224)	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)	at com.cenqua.fisheye.web.WebServer.start(WebServer.java:276)	at com.cenqua.fisheye.ctl.Run.mainImpl(Run.java:228)	at com.cenqua.fisheye.ctl.Run.main(Run.java:77)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)	at java.lang.reflect.Method.invoke(Unknown Source)	at com.cenqua.fisheye.FishEyeCtl.mainImpl(FishEyeCtl.java:98)	at com.cenqua.fisheye.FishEyeCtl.main(FishEyeCtl.java:41)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)	at java.lang.reflect.Method.invoke(Unknown Source)	at org.tanukisoftware.wrapper.WrapperStartStopApp.run(WrapperStartStopApp.java:159)	at java.lang.Thread.run(Unknown Source)