java.lang.ClassCastException: java.lang.String cannot be cast to javax.management.openmbean.CompositeData

webtide.com | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Jetty JMX Webservice – Webtide

    webtide.com | 7 months ago
    java.lang.ClassCastException: java.lang.String cannot be cast to javax.management.openmbean.CompositeData

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.lang.String cannot be cast to javax.management.openmbean.CompositeData

      at org.mortbay.jetty.jmx.ws.service.impl.AggregateServiceImpl.getMemoryByNode()
    2. org.mortbay.jetty
      Nodes.getObjectNames
      1. org.mortbay.jetty.jmx.ws.service.impl.AggregateServiceImpl.getMemoryByNode(AggregateServiceImpl.java:84)
      2. org.mortbay.jetty.jmx.ws.service.impl.AggregateServiceImpl.getNodes(AggregateServiceImpl.java:63)
      3. org.mortbay.jetty.jmx.ws.web.Nodes.getObjectNames(Nodes.java:42)
      3 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    4. Jersey
      WebApplicationImpl.handleRequest
      1. com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:168)
      2. com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:71)
      3. com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:280)
      4. com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
      5. com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
      6. com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
      7. com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1341)
      8. com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1273)
      9. com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1223)
      10. com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1213)
      10 frames
    5. Jersey
      ServletContainer.service
      1. com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:414)
      2. com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537)
      3. com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:699)
      3 frames
    6. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      1 frame
    7. Jetty
      HttpConnection.handle
      1. org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:538)
      2. org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:478)
      3. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
      4. org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:480)
      5. org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225)
      6. org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:937)
      7. org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406)
      8. org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183)
      9. org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:871)
      10. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
      11. org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
      12. org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
      13. org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
      14. org.eclipse.jetty.server.Server.handle(Server.java:346)
      15. org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:589)
      16. org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1048)
      17. org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:601)
      18. org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:214)
      19. org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:411)
      19 frames
    8. GWT dev
      SelectChannelEndPoint$1.run
      1. org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:535)
      2. org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
      2 frames
    9. Jetty
      QueuedThreadPool$3.run
      1. org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:529)
      1 frame
    10. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:662)
      1 frame