<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Yep<div>initially created&nbsp;<a href="https://issues.jboss.org/browse/AGIOS-49" target="_blank" style="font-family: arial, sans-serif; font-size: 13px; ">https://issues.jboss.org/browse/AGIOS-49</a></div><div>bu I guess it's in the wrong category</div><div><br><div><div>On Jul 24, 2013, at 6:10 PM, Bruno Oliveira &lt;<a href="mailto:bruno@abstractj.org">bruno@abstractj.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
        
                <meta http-equiv="content-type" content="text/html; charset=utf-8">
        
        <div dir="auto">
                <div>Do we have jiras for that?<br><br>-<br>abstractj<br></div>
                                <div><br>

On Jul 24, 2013, 7:37 PM, Corinne Krych wrote:

<br><br></div>
                <blockquote type="cite">
                        <div>
                                        
                                <div><div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hello all,</span><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Doing some testing on AeroDoc iOS client demo, I noticed that AeroDoc fails to broadcast when lead has been accepted. Stack trace is:</div>
<div style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:Arial,FreeSans,Helvetica,sans-serif;line-height:17px;background-color:rgb(224,240,255)">org.jboss.aerogear.connectivity.rest.sender.PushNotificationSenderEndpoint.broadcast(java.util.Map,javax.servlet.http.HttpServletRequest): javax.ejb.EJBException: java.lang.ClassCastException: java.util.LinkedHashMap cannot be cast to java.lang.String</span></div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">The root of the error is the String cast here:</div><div style="font-family:arial,sans-serif;font-size:13px">
<a href="https://github.com/aerogear/aerogear-unified-push-server/blob/master/src/main/java/org/jboss/aerogear/connectivity/service/sender/message/BroadcastMessage.java#L52" target="_blank">https://github.com/aerogear/aerogear-unified-push-server/blob/master/src/main/java/org/jboss/aerogear/connectivity/service/sender/message/BroadcastMessage.java#L52</a></div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">whereas in AeroDoc backend we feed a Map:</div><div style="font-family:arial,sans-serif;font-size:13px">
<a href="https://github.com/aerogear/aerogear-push-quickstart-backend/blob/master/src/main/java/org/jboss/aerogear/aerodoc/service/LeadSender.java#L63" target="_blank">https://github.com/aerogear/aerogear-push-quickstart-backend/blob/master/src/main/java/org/jboss/aerogear/aerodoc/service/LeadSender.java#L63</a></div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Which one is wrong?</div><div style="font-family:arial,sans-serif;font-size:13px">Not sure the cast into string is wright.</div>
<div style="font-family:arial,sans-serif;font-size:13px">I've open an iOS JIRA at first thinking this was a client issue</div><div style="font-family:arial,sans-serif;font-size:13px"><a href="https://issues.jboss.org/browse/AGIOS-49#comment-12792805" target="_blank">https://issues.jboss.org/browse/AGIOS-49#comment-12792805</a></div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">++</div><div style="font-family:arial,sans-serif;font-size:13px">Corinne</div></div></div>
                        </div>
                </blockquote>
        </div>
_______________________________________________<br>aerogear-dev mailing list<br><a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/aerogear-dev</blockquote></div><br></div></body></html>