java.lang.IllegalArgumentException: This method supports only the Types Cookie, CacheControl, EntityTag, NewCookie and MediaType at org.restlet.ext.jaxrs.internal.spi.RuntimeDelegateImpl.createHeaderDelegate(RuntimeDelegateImpl.java: 101) at com.sun.jersey.spi.container.ContainerResponse.getHeaderValue(ContainerResponse.java: 205) at com.sun.jersey.spi.container.servlet.WebComponent $Writer.writeHeaders(WebComponent.java:329) at com.sun.jersey.spi.container.servlet.WebComponent $Writer.finish(WebComponent.java:264) at com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java: 296) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java: 1035) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java: 947) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java: 938) at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java: 399) at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java: 478) at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java: 663) at org.grails.jaxrs.web.JaxrsContext $JaxrsServiceImpl.process(JaxrsContext.java:150)

Google Groups | davide.cavestro | 6 years 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

    IllegalArgumentException using Responses.created

    Google Groups | 6 years ago | davide.cavestro
    java.lang.IllegalArgumentException: This method supports only the Types Cookie, CacheControl, EntityTag, NewCookie and MediaType at org.restlet.ext.jaxrs.internal.spi.RuntimeDelegateImpl.createHeaderDelegate(RuntimeDelegateImpl.java: 101) at com.sun.jersey.spi.container.ContainerResponse.getHeaderValue(ContainerResponse.java: 205) at com.sun.jersey.spi.container.servlet.WebComponent $Writer.writeHeaders(WebComponent.java:329) at com.sun.jersey.spi.container.servlet.WebComponent $Writer.finish(WebComponent.java:264) at com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java: 296) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java: 1035) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java: 947) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java: 938) at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java: 399) at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java: 478) at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java: 663) at org.grails.jaxrs.web.JaxrsContext $JaxrsServiceImpl.process(JaxrsContext.java:150)

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      This method supports only the Types Cookie, CacheControl, EntityTag, NewCookie and MediaType at org.restlet.ext.jaxrs.internal.spi.RuntimeDelegateImpl.createHeaderDelegate(RuntimeDelegateImpl.java: 101) at com.sun.jersey.spi.container.ContainerResponse.getHeaderValue(ContainerResponse.java: 205) at com.sun.jersey.spi.container.servlet.WebComponent $Writer.writeHeaders(WebComponent.java:329) at com.sun.jersey.spi.container.servlet.WebComponent $Writer.finish(WebComponent.java:264) at com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java: 296) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java: 1035) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java: 947) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java: 938) at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java: 399) at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java: 478) at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java: 663) at org.grails.jaxrs.web.JaxrsContext $JaxrsServiceImpl.process(JaxrsContext.java:150)

      at org.grails.jaxrs.web.JaxrsService$process.call()
    2. org.grails.jaxrs
      JaxrsService$process.call
      1. org.grails.jaxrs.web.JaxrsService$process.call(Unknown Source)
      1 frame
    3. Unknown
      JaxrsController$_closure1.doCall
      1. JaxrsController$_closure1.doCall(JaxrsController.groovy:38)
      2. JaxrsController$_closure1.doCall(JaxrsController.groovy)
      2 frames