Could not extract response: no suitable HttpMessageConverter found for response type [java.util.Map] and content type [application/javascript]
<p>I'm consuming a web service that return un JSONP object like this:</p>

<pre><code>jQueryxxx_xx({
  "status": "OK",
  "results": [
    {
      "ubicacion": "SAN JUAN, LUCANAS, AYACUCHO",
      "ubigeo": "050616",
      "x": "-74.1991371264406",
      "y": "-14.6514315472295"
    },
    {
      "ubicacion": "SAN JUAN, SIHUAS, ANCASH",
      "ubigeo": "021909",
      "x": "-77.5820769245717",
      "y": "-8.64612162557643"
    },
    {
      "ubicacion": "SAN JUAN, CASTROVIRREYNA, HUANCAVELICA",
      "ubigeo": "090410",
      "x": "-75.6349774079376",
      "y": "-13.2032560496248"
    },
    {
      "ubicacion": "SAN JUAN, CAJAMARCA, CAJAMARCA",
      "ubigeo": "060112",
      "x": "-78.5005693425229",
      "y": "-7.2909846278869"
    },
    {
      "ubicacion": "SAN LUIS, LIMA, LIMA",
      "ubigeo": "150134",
      "x": "-76.9972475943101",
      "y": "-12.0740682897166"
    },
    {
      "ubicacion": "SAN JOSE, LAMBAYEQUE, LAMBAYEQUE",
      "ubigeo": "140311",
      "x": "-79.9661756947746",
      "y": "-6.76677043459326"
    },
    {
      "ubicacion": "SAN LUIS, SAN PABLO, CAJAMARCA",
      "ubigeo": "061203",
      "x": "-78.8683707221198",
      "y": "-7.15717727393363"
    },
    {
      "ubicacion": "SAN LUIS, CARLOS FERMIN FITZCARRALD, ANCASH",
      "ubigeo": "020701",
      "x": "-77.3291574143902",
      "y": "-9.09439276715693"
    },
    {
      "ubicacion": "SAN LUIS, CAÑETE, LIMA",
      "ubigeo": "150514",
      "x": "-76.4282649580734",
      "y": "-13.0502707531236"
    },
    {
      "ubicacion": "SAN JOSE, PACASMAYO, LA LIBERTAD",
      "ubigeo": "130705",
      "x": "-79.4564509393214",
      "y": "-7.34696446146118"
    }
  ],
  "elapsed": 0.036
},"elapsed":0.036})
</code></pre>

<p>I'm using RestTemplate object of Spring 3.1</p>

<p>This is my configurations</p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tx="http://www.springframework.org/schema/tx"
    xmlns:context="http://www.springframework.org/schema/context"
    xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:oxm="http://www.springframework.org/schema/oxm"
    xsi:schemaLocation=" 
http://www.springframework.org/schema/mvc 
http://www.springframework.org/schema/mvc/spring-mvc.xsd
http://www.springframework.org/schema/oxm  
http://www.springframework.org/schema/oxm/spring-oxm-3.1.xsd
http://www.springframework.org/schema/beans

http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://www.springframework.org/schema/tx  
http://www.springframework.org/schema/tx/spring-tx-3.1.xsd 
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.1.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-3.1.xsd"&gt;
    &lt;!-- Scans the classpath of this application for @Components to deploy as 
        beans --&gt;
    &lt;context:component-scan base-package="xxxx" /&gt;

    &lt;!-- Configures the @Controller programming model --&gt;
    &lt;mvc:annotation-driven /&gt;
    &lt;aop:aspectj-autoproxy /&gt;

    &lt;bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"&gt;
        &lt;property name="locations"&gt;
            &lt;list&gt;
                &lt;value&gt;classpath:servicios.properties&lt;/value&gt;
                &lt;value&gt;classpath:other.properties&lt;/value&gt;
            &lt;/list&gt;
        &lt;/property&gt;
    &lt;/bean&gt;

    &lt;!-- Resolves view names to protected .jsp resources within the /WEB-INF/views 
        directory --&gt;

    &lt;bean id="viewResolver"
        class="org.springframework.web.servlet.view.InternalResourceViewResolver"&gt;
        &lt;property name="prefix" value="/WEB-INF/jsp/" /&gt;
        &lt;property name="suffix" value=".jsp" /&gt;
    &lt;/bean&gt;

    &lt;bean id="reHttpConnectionManager"
        class="org.apache.commons.httpclient.MultiThreadedHttpConnectionManager"&gt;
        &lt;property name="params"&gt;
            &lt;bean
                class="org.apache.commons.httpclient.params.HttpConnectionManagerParams"&gt;
                &lt;property name="soTimeout" value="60000" /&gt;
                &lt;property name="connectionTimeout" value="90000" /&gt;
                &lt;property name="maxTotalConnections" value="500" /&gt;
                &lt;property name="defaultMaxConnectionsPerHost" value="500" /&gt;
            &lt;/bean&gt;
        &lt;/property&gt;
    &lt;/bean&gt;

    &lt;bean id="reRequestFactory"
        class="org.springframework.http.client.CommonsClientHttpRequestFactory"&gt;
        &lt;property name="readTimeout" value="90000" /&gt;
        &lt;constructor-arg&gt;
            &lt;bean id="httpClient" class="org.apache.commons.httpclient.HttpClient"&gt;
                &lt;property name="httpConnectionManager" ref="reHttpConnectionManager" /&gt;
            &lt;/bean&gt;
        &lt;/constructor-arg&gt;
    &lt;/bean&gt;

    &lt;bean id="restTemplate" class="org.springframework.web.client.RestTemplate"&gt;
        &lt;constructor-arg ref="reRequestFactory" /&gt;
        &lt;property name="messageConverters"&gt;
            &lt;list&gt;
                &lt;bean class="org.springframework.http.converter.json.MappingJackson2HttpMessageConverter"/&gt;
            &lt;/list&gt;
        &lt;/property&gt;
    &lt;/bean&gt;

    &lt;bean
        class="org.springframework.web.servlet.view.ContentNegotiatingViewResolver"&gt;
        &lt;property name="order" value="1" /&gt;
        &lt;property name="mediaTypes"&gt;
            &lt;map&gt;
                &lt;entry key="json" value="application/json" /&gt;
                &lt;entry key="xml" value="application/xml" /&gt;
                &lt;!-- &lt;entry key="jsonp" value="application/javascript" /&gt; --&gt;
            &lt;/map&gt;
        &lt;/property&gt;

        &lt;property name="defaultViews"&gt;
            &lt;list&gt;
                &lt;!-- JSON View --&gt;
                &lt;bean
                    class="org.springframework.web.servlet.view.json.MappingJacksonJsonView" /&gt;

                &lt;!-- XML View --&gt;
                &lt;bean class="org.springframework.web.servlet.view.xml.MarshallingView"&gt;
                    &lt;constructor-arg&gt;
                        &lt;bean class="org.springframework.oxm.xstream.XStreamMarshaller"&gt;
                            &lt;property name="autodetectAnnotations" value="true" /&gt;
                        &lt;/bean&gt;
                    &lt;/constructor-arg&gt;
                &lt;/bean&gt;


            &lt;/list&gt;
        &lt;/property&gt;
    &lt;/bean&gt;

    &lt;import resource="config.xml"/&gt;

&lt;/beans&gt;
</code></pre>

<p>In my code, I invoke fron this way:</p>

<pre><code>Object respuesta = restTemplate.getForObject(urlSearch, Map.class, parametros);
//parametros is of type Map&lt;String, Object&gt;
</code></pre>

<p>I get following error:</p>

<pre><code>09:45:22,668 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) org.springframework.web.client.RestClientException: Could not extract response: no suitable HttpMessageConverter found for response type [java.util.Map] and content type [application/javascript]

09:45:22,668 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at org.springframework.web.client.HttpMessageConverterExtractor.extractData(HttpMessageConverterExtractor.java:84)

09:45:22,668 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:454)

09:45:22,668 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:417)

09:45:22,668 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at org.springframework.web.client.RestTemplate.getForObject(RestTemplate.java:214)
</code></pre>

<p>I've tried to include application/javascript support:</p>

<pre><code>MappingJackson2HttpMessageConverter converterJSONP = new MappingJackson2HttpMessageConverter();
            converterJSONP.setSupportedMediaTypes(Arrays.asList(new MediaType("application/javascript")));
            restTemplate.getMessageConverters().add(converterJSONP);
</code></pre>

<p>I thought that will solve problem, but don't, I get this error:</p>

<pre><code>Invalid token character '/' in token "application/javascript"
</code></pre>

<p>Well, How I can configure for my web application can consume web services that return JSONP object.</p>

<p>Thanks in advance!</p>

<p><strong>UPDATE 1</strong></p>

<p>Following recommendations from @abaghel, I get this error (I suppose I have to create my own HttpMessageConverter):</p>

<pre><code>09:54:24,208 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) org.springframework.http.converter.HttpMessageNotReadableException: Could not read JSON: Unrecognized token 'jQuery111107193651702763904_1469109722644': was expecting ('true', 'false' or 'null')
09:54:24,211 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)  at [Source: org.apache.commons.httpclient.AutoCloseInputStream@34dfc6; line: 1, column: 43]; nested exception is com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'jQuery111107193651702763904_1469109722644': was expecting ('true', 'false' or 'null')
09:54:24,214 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)  at [Source: org.apache.commons.httpclient.AutoCloseInputStream@34dfc6; line: 1, column: 43]

09:54:24,216 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at org.springframework.http.converter.json.MappingJackson2HttpMessageConverter.readInternal(MappingJackson2HttpMessageConverter.java:126)

09:54:24,218 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at org.springframework.http.converter.AbstractHttpMessageConverter.read(AbstractHttpMessageConverter.java:153)

09:54:24,220 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at org.springframework.web.client.HttpMessageConverterExtractor.extractData(HttpMessageConverterExtractor.java:81)

09:54:24,222 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:454)

09:54:24,223 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:417)

09:54:24,225 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at org.springframework.web.client.RestTemplate.getForObject(RestTemplate.java:214)

09:54:24,226 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at pe.com.equifax.ws.tm.service.impl.MapCityServiceImpl.searchDistricts(MapCityServiceImpl.java:55)

09:54:24,228 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at pe.com.equifax.ws.tm.business.impl.MapCityBusinessImpl.searchDistricts(MapCityBusinessImpl.java:26)

09:54:24,230 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at pe.com.equifax.ws.tm.controller.MapCityController.searchDistricts(MapCityController.java:33)

09:54:24,231 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

09:54:24,233 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

09:54:24,234 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

09:54:24,236 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at java.lang.reflect.Method.invoke(Method.java:601)

09:54:24,237 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:219)

09:54:24,239 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)

09:54:24,241 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:100)

09:54:24,242 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:604)

09:54:24,243 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:565)

09:54:24,245 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)

09:54:24,246 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)

09:54:24,247 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)

09:54:24,248 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)

09:54:24,249 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789)

09:54:24,250 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)

09:54:24,251 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

09:54:24,252 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)

09:54:24,253 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

09:54:24,254 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)

09:54:24,255 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)

09:54:24,256 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)

09:54:24,257 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)

09:54:24,258 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

09:54:24,259 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

09:54:24,260 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)

09:54:24,261 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)

09:54:24,262 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)

09:54:24,264 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)

09:54:24,265 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at java.lang.Thread.run(Thread.java:722)

09:54:24,266 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) Caused by: com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'jQuery111107193651702763904_1469109722644': was expecting ('true', 'false' or 'null')
09:54:24,267 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)  at [Source: org.apache.commons.httpclient.AutoCloseInputStream@34dfc6; line: 1, column: 43]

09:54:24,268 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:1576)

09:54:24,269 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:533)

09:54:24,270 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._reportInvalidToken(UTF8StreamJsonParser.java:3448)

09:54:24,271 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._handleUnexpectedValue(UTF8StreamJsonParser.java:2607)

09:54:24,273 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._nextTokenNotInObject(UTF8StreamJsonParser.java:841)

09:54:24,274 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at com.fasterxml.jackson.core.json.UTF8StreamJsonParser.nextToken(UTF8StreamJsonParser.java:737)

09:54:24,275 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:3742)

09:54:24,276 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3687)

09:54:24,277 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2798)

09:54:24,278 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   at org.springframework.http.converter.json.MappingJackson2HttpMessageConverter.readInternal(MappingJackson2HttpMessageConverter.java:123)

09:54:24,279 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)   ... 37 more
</code></pre>