<div dir="ltr">Nope,<div><br></div><div>tried the staging URL, and I am still getting that error </div><div><br></div><div><br></div><div><pre style="line-height:14.545454025268555px;width:5410.9091796875px;font-size:11.818181991577148px;margin-bottom:0px;font-family:Consolas,'Liberation Mono',Courier,monospace;margin-top:0px;padding:0px">
<div>08:08:25,988 ERROR [org.jboss.aerogear.controller.log] (http--0.0.0.0-8080-1) AG_CONTROLLER000005: Exception Message: 'AG_CONTROLLER000012: No Consumer found for Parameter: 'Parameter[type=ENTITY, type=class org.aerogear.prodoctor.model.SaleAgent]'. The registered Consumers were: '[JsonConsumer[mediaType=application/json]]'. Please add a Consumer for one the media types supported by the route: [application/json].': java.lang.RuntimeException: AG_CONTROLLER000012: No Consumer found for Parameter: 'Parameter[type=ENTITY, type=class org.aerogear.prodoctor.model.SaleAgent]'. The registered Consumers were: '[JsonConsumer[mediaType=application/json]]'. Please add a Consumer for one the media types supported by the route: [application/json].</div>
<div> at org.jboss.aerogear.controller.util.ParameterExtractor.getConsumer(ParameterExtractor.java:152) [aerogear-controller-1.0.1.jar:1.0.1]</div><div>
        at org.jboss.aerogear.controller.util.ParameterExtractor.extractArguments(ParameterExtractor.java:70) [aerogear-controller-1.0.1.jar:1.0.1]</div><div>        at org.jboss.aerogear.controller.router.DefaultRouteProcessor.process(DefaultRouteProcessor.java:53) [aerogear-controller-1.0.1.jar:1.0.1]</div>
<div>        at org.jboss.aerogear.controller.router.DefaultRouteProcessor$Proxy$_$$_WeldSubclass.process(DefaultRouteProcessor$Proxy$_$$_WeldSubclass.java) [aerogear-controller-1.0.1.jar:1.0.1]</div>
<div>        at org.jboss.aerogear.controller.router.rest.pagination.PaginationHandler.process(PaginationHandler.java:80) [aerogear-controller-1.0.1.jar:1.0.1]</div><div>
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_09]</div><div>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_09]</div>
<div>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_09]</div><div>        at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_09]</div>
<div>        at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:264) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]</div><div>
        at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]</div><div>        at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:137) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]</div>
<div>        at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:260) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]</div><div>
        at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:170) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]</div><div>        at org.jboss.weld.bean.proxy.DecoratorProxyMethodHandler.doInvoke(DecoratorProxyMethodHandler.java:78) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]</div>
<div>        at org.jboss.interceptor.util.proxy.TargetInstanceProxyMethodHandler.invoke(TargetInstanceProxyMethodHandler.java:43) [jboss-interceptor-core-2.0.0.Final.jar:2.0.0.Final]</div><div>
        at org.jboss.weld.bean.proxy.TargetBeanInstance.invoke(TargetBeanInstance.java:88) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]</div><div>        at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:105) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]</div>
<div>        at org.jboss.aerogear.controller.router.DefaultRouteProcessor$Proxy$_$$_Weld$Proxy$.process(DefaultRouteProcessor$Proxy$_$$_Weld$Proxy$.java) [aerogear-controller-1.0.1.jar:1.0.1]</div>
<div>        at org.jboss.aerogear.controller.router.decorators.SecurityHandler.process(SecurityHandler.java:65) [aerogear-controller-1.0.1.jar:1.0.1]</div><div>
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_09]</div><div>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_09]</div>
<div>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_09]</div><div>        at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_09]</div>
<div>        at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:264) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]</div><div>
        at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]</div><div>        at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:137) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]</div>
<div>        at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:260) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]</div><div>
        at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:170) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]</div><div>        at org.jboss.weld.bean.proxy.DecoratorProxyMethodHandler.doInvoke(DecoratorProxyMethodHandler.java:78) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]</div>
<div>        at org.jboss.interceptor.util.proxy.TargetInstanceProxyMethodHandler.invoke(TargetInstanceProxyMethodHandler.java:43) [jboss-interceptor-core-2.0.0.Final.jar:2.0.0.Final]</div><div>
        at org.jboss.weld.bean.proxy.TargetBeanInstance.invoke(TargetBeanInstance.java:88) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]</div><div>        at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:105) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]</div>
<div>        at org.jboss.aerogear.controller.router.DefaultRouteProcessor$Proxy$_$$_Weld$Proxy$.process(DefaultRouteProcessor$Proxy$_$$_Weld$Proxy$.java) [aerogear-controller-1.0.1.jar:1.0.1]</div>
<div>        at org.jboss.aerogear.controller.router.decorators.ErrorHandler.process(ErrorHandler.java:61) [aerogear-controller-1.0.1.jar:1.0.1]</div><div>
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_09]</div><div>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_09]</div>
<div>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_09]</div><div>        at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_09]</div>
<div>        at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:264) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]</div><div>
        at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]</div><div>        at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:137) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]</div>
<div>        at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:260) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]</div><div>
        at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:170) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]</div><div>        at org.jboss.weld.bean.proxy.DecoratorProxyMethodHandler.doInvoke(DecoratorProxyMethodHandler.java:78) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]</div>
<div>        at org.jboss.interceptor.util.proxy.TargetInstanceProxyMethodHandler.invoke(TargetInstanceProxyMethodHandler.java:43) [jboss-interceptor-core-2.0.0.Final.jar:2.0.0.Final]</div><div>
        at org.jboss.weld.bean.proxy.TargetBeanInstance.invoke(TargetBeanInstance.java:88) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]</div><div>        at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:105) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]</div>
<div>        at org.jboss.aerogear.controller.router.DefaultRouteProcessor$Proxy$_$$_Weld$Proxy$.process(DefaultRouteProcessor$Proxy$_$$_Weld$Proxy$.java) [aerogear-controller-1.0.1.jar:1.0.1]</div>
<div>        at org.jboss.aerogear.controller.router.decorators.ResponseHandler.process(ResponseHandler.java:53) [aerogear-controller-1.0.1.jar:1.0.1]</div><div>
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_09]</div><div>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_09]</div>
<div>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_09]</div><div>        at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_09]</div>
<div>        at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:264) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]</div><div>
        at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]</div><div>        at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:137) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]</div>
<div>        at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:260) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]</div><div>
        at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:170) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]</div><div>        at org.jboss.weld.bean.proxy.DecoratorProxyMethodHandler.doInvoke(DecoratorProxyMethodHandler.java:78) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]</div>
<div>        at org.jboss.interceptor.util.proxy.TargetInstanceProxyMethodHandler.invoke(TargetInstanceProxyMethodHandler.java:43) [jboss-interceptor-core-2.0.0.Final.jar:2.0.0.Final]</div><div>
        at org.jboss.weld.bean.proxy.TargetBeanInstance.invoke(TargetBeanInstance.java:88) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]</div><div>        at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:105) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]</div>
<div>        at org.jboss.aerogear.controller.router.DefaultRouteProcessor$Proxy$_$$_Weld$Proxy$.process(DefaultRouteProcessor$Proxy$_$$_Weld$Proxy$.java) [aerogear-controller-1.0.1.jar:1.0.1]</div>
<div>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_09]</div><div>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_09]</div>
<div>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_09]</div><div>        at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_09]</div>
<div>        at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:264) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]</div><div>
        at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]</div><div>        at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:137) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]</div>
<div>        at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:260) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]</div><div>
        at org.jboss.weld.bean.proxy.CombinedInterceptorAndDecoratorStackMethodHandler.invoke(CombinedInterceptorAndDecoratorStackMethodHandler.java:59) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]</div><div>
        at org.jboss.aerogear.controller.router.DefaultRouteProcessor$Proxy$_$$_WeldSubclass.process(DefaultRouteProcessor$Proxy$_$$_WeldSubclass.java) [aerogear-controller-1.0.1.jar:1.0.1]</div><div>
        at org.jboss.aerogear.controller.router.DefaultRouter.dispatch(DefaultRouter.java:74) [aerogear-controller-1.0.1.jar:1.0.1]</div><div>        at org.jboss.aerogear.controller.router.DefaultRouter$Proxy$_$$_WeldSubclass.dispatch(DefaultRouter$Proxy$_$$_WeldSubclass.java) [aerogear-controller-1.0.1.jar:1.0.1]</div>
<div>        at org.jboss.aerogear.controller.router.decorators.cors.CorsHandler.dispatch(CorsHandler.java:72) [aerogear-controller-1.0.1.jar:1.0.1]</div><div>
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_09]</div><div>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_09]</div>
<div>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_09]</div><div>        at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_09]</div>
<div>        at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:264) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]</div><div>
        at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]</div><div>        at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:137) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]</div>
<div>        at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:260) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]</div><div>
        at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:170) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]</div><div>        at org.jboss.weld.bean.proxy.DecoratorProxyMethodHandler.doInvoke(DecoratorProxyMethodHandler.java:78) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]</div>
<div>        at org.jboss.interceptor.util.proxy.TargetInstanceProxyMethodHandler.invoke(TargetInstanceProxyMethodHandler.java:43) [jboss-interceptor-core-2.0.0.Final.jar:2.0.0.Final]</div><div>
        at org.jboss.weld.bean.proxy.TargetBeanInstance.invoke(TargetBeanInstance.java:88) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]</div><div>        at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:105) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]</div>
<div>        at org.jboss.aerogear.controller.router.DefaultRouter$Proxy$_$$_Weld$Proxy$.dispatch(DefaultRouter$Proxy$_$$_Weld$Proxy$.java) [aerogear-controller-1.0.1.jar:1.0.1]</div><div>
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_09]</div><div>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_09]</div>
<div>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_09]</div><div>        at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_09]</div>
<div>        at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:264) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]</div><div>
        at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]</div><div>        at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:137) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]</div>
<div>        at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:260) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]</div><div>
        at org.jboss.weld.bean.proxy.CombinedInterceptorAndDecoratorStackMethodHandler.invoke(CombinedInterceptorAndDecoratorStackMethodHandler.java:59) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]</div><div>
        at org.jboss.aerogear.controller.router.DefaultRouter$Proxy$_$$_WeldSubclass.dispatch(DefaultRouter$Proxy$_$$_WeldSubclass.java) [aerogear-controller-1.0.1.jar:1.0.1]</div><div>        at org.jboss.aerogear.controller.filter.AeroGear.doFilter(AeroGear.java:52) [aerogear-controller-1.0.1.jar:1.0.1]</div>
<div>        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]</div><div>
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]</div><div>        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]</div>
<div>        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]</div><div>        at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]</div>
<div>        at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]</div><div>
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]</div><div>        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]</div>
<div>        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]</div><div>        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]</div>
<div>        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]</div><div>        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]</div>
<div>        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]</div><div>        at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_09]</div>
</pre></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 18, 2013 at 6:14 AM, Daniel Bevenius <span dir="ltr"><<a href="mailto:daniel.bevenius@gmail.com" target="_blank">daniel.bevenius@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi, <div><br></div><div>this sounds like a bug that we found a while back:</div><div><a href="https://issues.jboss.org/browse/AEROGEAR-1085" target="_blank">https://issues.jboss.org/browse/AEROGEAR-1085</a><br>
</div>
<div><br></div><div>Perhaps you could try the staged version 1.0.1 that Bruno deployed yesterday:</div><div><a href="https://repository.jboss.org/nexus/content/repositories/jboss_releases_staging_profile-1085/" target="_blank">https://repository.jboss.org/nexus/content/repositories/jboss_releases_staging_profile-1085/</a></div>
<div><br></div><div>/Dan </div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On 18 June 2013 00:56, Sebastien Blanc <span dir="ltr"><<a href="mailto:scm.blanc@gmail.com" target="_blank">scm.blanc@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Corinne,<div>On a route you can set different consumers ( <a href="http://aerogear.org/docs/guides/aerogear-controller/mediatypes.html" target="_blank">http://aerogear.org/docs/guides/aerogear-controller/mediatypes.html</a> ) , I've updated the Route on Prodoctor and now it seems to work. I can not reproduce your ios example here on my fedora box but this curl works now :</div>
<div><br></div><div>curl -v -b cookies.txt -c cookies.txt -H "Accept: application/json" -H "Content-type: application/json; charset=utf-8" -X POST -d '{"loginName": "john", "password":"123"}' <a href="http://localhost:8080/prodoctor/login" target="_blank">http://localhost:8080/prodoctor/login</a><br>
</div><div><br></div><div>Update the repo and give it a try ! </div><div><br></div><div>Seb</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On Mon, Jun 17, 2013 at 10:47 PM, Corinne Krych <span dir="ltr"><<a href="mailto:corinnekrych@gmail.com" target="_blank">corinnekrych@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">
<p>Hello Guys</p><p>Writing code for ProDoctor demo, on client side, I'm using Xcode template for AGPush which is based on AFNetworking 121</p><p>When doing my login request in iOS I bumped into the issue of having content type set to "application/json; charset=utf-8" whereas on routes (backend) only "application/json" is set which causes this exception:</p>
<p>[application/json].': java.lang.RuntimeException: AG_CONTROLLER000012: No Consumer found for Parameter: 'Parameter[type=ENTITY, type=class org.aerogear.prodoctor.model.SaleAgent]'. The registered Consumers were: '[JsonConsumer[mediaType=application/json]]'. Please add a Consumer for one the media types supported by the route: [application/json].</p>
<p><span style="white-space:pre-wrap">        </span>at org.jboss.aerogear.controller.util.ParameterExtractor.getConsumer(ParameterExtractor.java:152) [aerogear-controller-1.0.1.jar:1.0.1]</p><p><span style="white-space:pre-wrap">        </span>at org.jboss.aerogear.controller.util.ParameterExtractor.extractArguments(ParameterExtractor.java:70) [aerogear-controller-1.0.1.jar:1.0.1]</p>
<p><br></p><p>I think we should support both "application/json; charset=utf-8" and "application/json". /shall we open a JIRA on AeroGear Controller to support both?</p><p><br>
</p><p>wdyt?</p><span><font color="#888888"><p><br></p><p>Corinne</p><p><br></p></font></span></div>
<br></div></div>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div><br></div>
<br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Matthias Wessendorf <br>
<br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
</div>