org.jboss.resteasy.spi.ReaderException: java.lang.RuntimeException: Unable to find a MessageBodyReader for media type: text/plain;charset=us-ascii and class type java.lang.Object

Stack Overflow | Jithin Mohan | 7 months ago
  1. 0

    Unable to find a MessageBodyReader for media type: text/plain;charset=us-ascii and class type java.lang.Object

    Stack Overflow | 7 months ago | Jithin Mohan
    org.jboss.resteasy.spi.ReaderException: java.lang.RuntimeException: Unable to find a MessageBodyReader for media type: text/plain;charset=us-ascii and class type java.lang.Object
  2. 0

    Is there a workaround BUG:21518838 - CALL TO REST BASED SERVICE RESULTS "UNKNOWN MEDIA TYPE : TEXT/PLAIN"

    Oracle Community | 1 year ago | 2911915
    java.lang.RuntimeException: Unknown media type : text/plain; charset=utf-8
  3. 0
    If the decompile process didn't work properly, try the Android APK Decompiler.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    I did this as root, and works dpkg --add-architecture i386 apt-get install libncurses5:i386 libstdc++6:i386 zlib1g:i386
  6. 0
    SMS Emulator caused this error. abortBroadcast only works with broadcasts sent through Context.sendOrderedBroadcast.

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.RuntimeException

      Unable to find a MessageBodyReader for media type: text/plain;charset=us-ascii and class type java.lang.Object

      at org.jboss.resteasy.plugins.providers.multipart.MultipartInputImpl$PartImpl.getBody()
    2. org.jboss.resteasy
      MultipartFormAnnotationReader.readFrom
      1. org.jboss.resteasy.plugins.providers.multipart.MultipartInputImpl$PartImpl.getBody(MultipartInputImpl.java:287)[resteasy-multipart-provider-3.0.10.Final.jar:]
      2. org.jboss.resteasy.plugins.providers.multipart.MultipartFormAnnotationReader.setFields(MultipartFormAnnotationReader.java:152)[resteasy-multipart-provider-3.0.10.Final.jar:]
      3. org.jboss.resteasy.plugins.providers.multipart.MultipartFormAnnotationReader.readFrom(MultipartFormAnnotationReader.java:76)[resteasy-multipart-provider-3.0.10.Final.jar:]
      3 frames
    3. RESTEasy JAX-RS Implementation
      AbstractReaderInterceptorContext.proceed
      1. org.jboss.resteasy.core.interception.AbstractReaderInterceptorContext.readFrom(AbstractReaderInterceptorContext.java:59)[resteasy-jaxrs-3.0.10.Final.jar:]
      2. org.jboss.resteasy.core.interception.ServerReaderInterceptorContext.readFrom(ServerReaderInterceptorContext.java:62)[resteasy-jaxrs-3.0.10.Final.jar:]
      3. org.jboss.resteasy.core.interception.AbstractReaderInterceptorContext.proceed(AbstractReaderInterceptorContext.java:51)[resteasy-jaxrs-3.0.10.Final.jar:]
      3 frames
    4. org.jboss.resteasy
      DigitalVerificationInterceptor.aroundReadFrom
      1. org.jboss.resteasy.security.doseta.DigitalVerificationInterceptor.aroundReadFrom(DigitalVerificationInterceptor.java:32)[resteasy-crypto-3.0.10.Final.jar:]
      1 frame
    5. RESTEasy JAX-RS Implementation
      HttpServletDispatcher.service
      1. org.jboss.resteasy.core.interception.AbstractReaderInterceptorContext.proceed(AbstractReaderInterceptorContext.java:53)[resteasy-jaxrs-3.0.10.Final.jar:]
      2. org.jboss.resteasy.plugins.interceptors.encoding.GZIPDecodingInterceptor.aroundReadFrom(GZIPDecodingInterceptor.java:59)[resteasy-jaxrs-3.0.10.Final.jar:]
      3. org.jboss.resteasy.core.interception.AbstractReaderInterceptorContext.proceed(AbstractReaderInterceptorContext.java:53)[resteasy-jaxrs-3.0.10.Final.jar:]
      4. org.jboss.resteasy.core.MessageBodyParameterInjector.inject(MessageBodyParameterInjector.java:150)[resteasy-jaxrs-3.0.10.Final.jar:]
      5. org.jboss.resteasy.core.MethodInjectorImpl.injectArguments(MethodInjectorImpl.java:89)[resteasy-jaxrs-3.0.10.Final.jar:]
      6. org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:112)[resteasy-jaxrs-3.0.10.Final.jar:]
      7. org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:296)[resteasy-jaxrs-3.0.10.Final.jar:]
      8. org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:250)[resteasy-jaxrs-3.0.10.Final.jar:]
      9. org.jboss.resteasy.core.ResourceLocatorInvoker.invokeOnTargetObject(ResourceLocatorInvoker.java:140)[resteasy-jaxrs-3.0.10.Final.jar:]
      10. org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(ResourceLocatorInvoker.java:103)[resteasy-jaxrs-3.0.10.Final.jar:]
      11. org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)[resteasy-jaxrs-3.0.10.Final.jar:]
      12. org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:179)[resteasy-jaxrs-3.0.10.Final.jar:]
      13. org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:220)[resteasy-jaxrs-3.0.10.Final.jar:]
      14. org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56)[resteasy-jaxrs-3.0.10.Final.jar:]
      15. org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51)[resteasy-jaxrs-3.0.10.Final.jar:]
      15 frames
    6. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:790)[jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]
      1 frame
    7. Undertow Servlet
      ServletDispatchingHandler.handleRequest
      1. io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:86)[undertow-servlet-1.1.8.Final.jar:1.1.8.Final]
      2. io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)[undertow-servlet-1.1.8.Final.jar:1.1.8.Final]
      3. io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)[undertow-servlet-1.1.8.Final.jar:1.1.8.Final]
      3 frames
    8. WildFly: Undertow
      SecurityContextAssociationHandler.handleRequest
      1. org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
      1 frame
    9. Undertow Core
      PredicateHandler.handleRequest
      1. io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)[undertow-core-1.1.8.Final.jar:1.1.8.Final]
      1 frame
    10. Undertow Servlet
      ServletAuthenticationCallHandler.handleRequest
      1. io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)[undertow-servlet-1.1.8.Final.jar:1.1.8.Final]
      2. io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)[undertow-servlet-1.1.8.Final.jar:1.1.8.Final]
      2 frames
    11. Undertow Core
      AbstractConfidentialityHandler.handleRequest
      1. io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)[undertow-core-1.1.8.Final.jar:1.1.8.Final]
      2. io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)[undertow-core-1.1.8.Final.jar:1.1.8.Final]
      2 frames
    12. Undertow Servlet
      ServletConfidentialityConstraintHandler.handleRequest
      1. io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)[undertow-servlet-1.1.8.Final.jar:1.1.8.Final]
      1 frame
    13. Undertow Core
      AuthenticationMechanismsHandler.handleRequest
      1. io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58)[undertow-core-1.1.8.Final.jar:1.1.8.Final]
      1 frame
    14. Undertow Servlet
      CachedAuthenticatedSessionHandler.handleRequest
      1. io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70)[undertow-servlet-1.1.8.Final.jar:1.1.8.Final]
      1 frame
    15. Undertow Core
      PredicateHandler.handleRequest
      1. io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76)[undertow-core-1.1.8.Final.jar:1.1.8.Final]
      2. io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)[undertow-core-1.1.8.Final.jar:1.1.8.Final]
      2 frames
    16. WildFly: Undertow
      JACCContextIdHandler.handleRequest
      1. org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
      1 frame
    17. Undertow Core
      PredicateHandler.handleRequest
      1. io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)[undertow-core-1.1.8.Final.jar:1.1.8.Final]
      2. io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)[undertow-core-1.1.8.Final.jar:1.1.8.Final]
      2 frames
    18. Undertow Servlet
      ServletInitialHandler$1.handleRequest
      1. io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:261)[undertow-servlet-1.1.8.Final.jar:1.1.8.Final]
      2. io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:248)[undertow-servlet-1.1.8.Final.jar:1.1.8.Final]
      3. io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:77)[undertow-servlet-1.1.8.Final.jar:1.1.8.Final]
      4. io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:167)[undertow-servlet-1.1.8.Final.jar:1.1.8.Final]
      4 frames
    19. Undertow Core
      HttpServerExchange$1.run
      1. io.undertow.server.Connectors.executeRootHandler(Connectors.java:199)[undertow-core-1.1.8.Final.jar:1.1.8.Final]
      2. io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:761)[undertow-core-1.1.8.Final.jar:1.1.8.Final]
      2 frames
    20. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[rt.jar:1.8.0_91]
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[rt.jar:1.8.0_91]
      3. java.lang.Thread.run(Thread.java:745)[rt.jar:1.8.0_91]
      3 frames