java.lang.ClassCastException: Cannot cast class com.sun.jersey.core.impl.provider.entity.StringProvider to interface javax.ws.rs.ext.MessageBodyReader [21.09.10 18:05:19:657 CEST] 000000ce SystemErr     R at java.lang.Class.cast(Class.java:1711) [21.09.10 18:05:19:657 CEST] 000000ce SystemErr     R at com.sun.jersey.core.spi.component.ProviderServices.getProvidersAndServices(ProviderServices.java:122) [21.09.10 18:05:19:657 CEST] 000000ce SystemErr     R at com.sun.jersey.core.spi.factory.MessageBodyFactory.getProviderMap(MessageBodyFactory.java:136)

nabble.com | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Jersey - Jersey + Spring + Scheduler - ClassCastException

    nabble.com | 6 months ago
    java.lang.ClassCastException: Cannot cast class com.sun.jersey.core.impl.provider.entity.StringProvider to interface javax.ws.rs.ext.MessageBodyReader [21.09.10 18:05:19:657 CEST] 000000ce SystemErr     R at java.lang.Class.cast(Class.java:1711) [21.09.10 18:05:19:657 CEST] 000000ce SystemErr     R at com.sun.jersey.core.spi.component.ProviderServices.getProvidersAndServices(ProviderServices.java:122) [21.09.10 18:05:19:657 CEST] 000000ce SystemErr     R at com.sun.jersey.core.spi.factory.MessageBodyFactory.getProviderMap(MessageBodyFactory.java:136)

    Root Cause Analysis

    1. java.lang.ClassCastException

      Cannot cast class com.sun.jersey.core.impl.provider.entity.StringProvider to interface javax.ws.rs.ext.MessageBodyReader [21.09.10 18:05:19:657 CEST] 000000ce SystemErr     R at java.lang.Class.cast(Class.java:1711) [21.09.10 18:05:19:657 CEST] 000000ce SystemErr     R at com.sun.jersey.core.spi.component.ProviderServices.getProvidersAndServices(ProviderServices.java:122) [21.09.10 18:05:19:657 CEST] 000000ce SystemErr     R at com.sun.jersey.core.spi.factory.MessageBodyFactory.getProviderMap(MessageBodyFactory.java:136)

      at com.sun.jersey.core.spi.factory.MessageBodyFactory.initReaders()
    2. jersey-core
      MessageBodyFactory.init
      1. com.sun.jersey.core.spi.factory.MessageBodyFactory.initReaders(MessageBodyFactory.java:110)
      2. com.sun.jersey.core.spi.factory.MessageBodyFactory.init(MessageBodyFactory.java:105)
      2 frames
    3. jersey-client
      Client.<init>
      1. com.sun.jersey.api.client.Client.<init>(Client.java:208)
      2. com.sun.jersey.api.client.Client.<init>(Client.java:124)
      2 frames