<div dir="ltr">Thomas,<div><br></div><div>I can not reproduce the issue (running Java 1.7.0_65). Corinne is able to reproduce it, but she is currently running on an older Java version (1.7.0_15). She is updating to a newer (the latest) of Java7 and will rerun her tests.</div><div><br></div><div>In the meantime, what is your version?</div><div><br></div><div>Greetings,</div><div>Matthias</div>







</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 18, 2014 at 12:27 PM, Matthias Wessendorf <span dir="ltr">&lt;<a href="mailto:matzew@apache.org" target="_blank">matzew@apache.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Corinne shared her tokens, and using them, I get the same output:<span class=""><div><br></div><div><span style="font-family:arial,sans-serif;font-size:13px">::::::::::::::::::::::::::::::</span><span style="font-family:arial,sans-serif;font-size:13px">:::::::::::::::::::&gt;&gt;&gt;</span><span style="font-family:arial,sans-serif;font-size:13px">messageSent</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">::::::::::::::::::::::::::::::</span><span style="font-family:arial,sans-serif;font-size:13px">:::::::::::::::::::&gt;&gt;&gt;</span><span style="font-family:arial,sans-serif;font-size:13px">messageSent</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">::::::::::::::::::::::::::::::</span><span style="font-family:arial,sans-serif;font-size:13px">:::::::::::::::::::&gt;&gt;&gt;Closed: INVALID_TOKEN</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">::::::::::::::::::::::::::::::</span><span style="font-family:arial,sans-serif;font-size:13px">:::::::::::::::::::&gt;&gt;&gt;</span><span style="font-family:arial,sans-serif;font-size:13px">messageSendFailed[B@143f032d</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">::::::::::::::::::::::::::::::</span><span style="font-family:arial,sans-serif;font-size:13px">:::::::::::::::::::&gt;&gt;&gt;Retry: 0</span><br><div><br></div><div><br></div></div></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 18, 2014 at 12:02 PM, Matthias Wessendorf <span dir="ltr">&lt;<a href="mailto:matzew@apache.org" target="_blank">matzew@apache.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">what JDK version do you have ? <div><br></div><div>I am running on jdk1.7.0_65.jdk</div><div><br></div><div>I am unable to reproduce this behavior.... </div><div><br></div><div>I have a connection to prod-stage from APS:</div><div><br></div><div><br></div><div><br></div><div><div>.withCert(&quot;/Users/matzew/Desktop/PushCerts/prod.p12&quot;, &quot;XXXX&quot;).withProductionDestination()</div></div><div><br></div><div><br></div><div>and I give it too tokens:</div><div>iPodToken (production version of the &quot;net.wessendorf.prod&quot; app-id)</div><div>iPhoneToken (development version of the &quot;net.wessendorf.prod&quot; app-id) </div><div><br></div><div>Since connecting to the PROD, only the iPod is delivered. Also the ordering of the tokens does not matter .. </div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div> </div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 17, 2014 at 3:45 PM, Corinne Krych <span dir="ltr">&lt;<a href="mailto:corinnekrych@gmail.com" target="_blank">corinnekrych@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Adding a test as you suggested Matt<br>
see: <a href="https://github.com/corinnekrych/java-apns/blob/adding.test.with.mixed.variant.similation/src/test/java/com/notnoop/apns/APNSTest.java#L31" target="_blank">https://github.com/corinnekrych/java-apns/blob/adding.test.with.mixed.variant.similation/src/test/java/com/notnoop/apns/APNSTest.java#L31</a><br>
Where line 67 content valid prod certificate for simulated “prod mixed variant list” and line 68 content invalid dev certificate.<br>
<br>
the output is:<br>
:::::::::::::::::::::::::::::::::::::::::::::::::&gt;&gt;&gt;messageSent<br>
:::::::::::::::::::::::::::::::::::::::::::::::::&gt;&gt;&gt;messageSent<br>
:::::::::::::::::::::::::::::::::::::::::::::::::&gt;&gt;&gt;Closed: INVALID_TOKEN<br>
:::::::::::::::::::::::::::::::::::::::::::::::::&gt;&gt;&gt;messageSendFailed[B@143f032d<br>
:::::::::::::::::::::::::::::::::::::::::::::::::&gt;&gt;&gt;Retry: 0<br>
<br>
I case of error for the variant line68 we go on all callback: success, failure, retry etc..<br>
<br>
however when testing it with pan I do received the message for the valid token.<br>
<br>
@matthias does it help?<br>
<br>
++<br>
<span><font color="#888888">Corinne<br>
</font></span><div><div><br>
<br>
&gt; On 17 Nov 2014, at 13:27, Matthias Wessendorf &lt;<a href="mailto:matzew@apache.org" target="_blank">matzew@apache.org</a>&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Mon, Nov 17, 2014 at 12:55 PM, Matthias Wessendorf &lt;<a href="mailto:matzew@apache.org" target="_blank">matzew@apache.org</a>&gt; wrote:<br>
&gt; Hi Corrine,<br>
&gt;<br>
&gt; thanks for the detailed mail. To me this looks like a bug on java-apns...<br>
&gt; Can you try that, with the standalone code (and your scenarios, like mixing tokens).<br>
&gt;<br>
&gt; here is some code snippets:<br>
&gt; <a href="https://github.com/notnoop/java-apns#sample-code" target="_blank">https://github.com/notnoop/java-apns#sample-code</a><br>
&gt;<br>
&gt;<br>
&gt; perhaps like:<br>
&gt; <a href="https://gist.github.com/matzew/35b47c74f8eb6a8353de" target="_blank">https://gist.github.com/matzew/35b47c74f8eb6a8353de</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; I am currently on a train with a bad connection<br>
&gt;<br>
&gt;<br>
&gt; On Mon, Nov 17, 2014 at 12:45 PM, Corinne Krych &lt;<a href="mailto:corinnekrych@gmail.com" target="_blank">corinnekrych@gmail.com</a>&gt; wrote:<br>
&gt; Hello all<br>
&gt;<br>
&gt; Indeed I can reproduce the problem as described in AGPUSH-1087<br>
&gt;<br>
&gt; I have one variant: PROD with one installation on iPhone5S with Distribution certificate<br>
&gt;<br>
&gt; I have another variant: PRODMIX with 2 installations:<br>
&gt; - on iPad mimi with distribution certificate<br>
&gt; - on iPad2 with dev certificate<br>
&gt;<br>
&gt; When sending a notification to all variants, only the iPhone5S on the PROD variant received the notification.<br>
&gt;<br>
&gt; If I go to admin console and desactivate the iPad2 installation and sent again a Push message to all variants, now iPhone 5S and IPad mini received the notification<br>
&gt; =&gt; Therefore, it is indeed when one installtion has non valid certificate thta all installations of this corrupted variants will not received the notification. I also confirm that the work around does work.<br>
&gt;<br>
&gt; Looking on FINE grained logging, I noticed that this succeed callback is called:<br>
&gt; <a href="https://github.com/aerogear/aerogear-unifiedpush-server/blob/master/push/src/main/java/org/jboss/aerogear/unifiedpush/message/SenderServiceImpl.java#L140" target="_blank">https://github.com/aerogear/aerogear-unifiedpush-server/blob/master/push/src/main/java/org/jboss/aerogear/unifiedpush/message/SenderServiceImpl.java#L140</a><br>
&gt;<br>
&gt; The problem seem to be in deepsest level of code. I will install a UPS server locally to test further.<br>
&gt;<br>
&gt; ++<br>
&gt; Corinne<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; &gt; On 17 Nov 2014, at 11:36, Sebastien Blanc &lt;<a href="mailto:scm.blanc@gmail.com" target="_blank">scm.blanc@gmail.com</a>&gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt; Hi Thomas,<br>
&gt; &gt; You can browse your installations by clicking the blue number of &quot;x installations&quot; :<br>
&gt; &gt;<br>
&gt; &gt; &lt;installation.png&gt;<br>
&gt; &gt; ​<br>
&gt; &gt; From there, you can toggle installations on on/off.<br>
&gt; &gt;<br>
&gt; &gt; Sebi<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; On Mon, Nov 17, 2014 at 10:46 AM, Thomas Schweitzer &lt;<a href="mailto:thomers@me.com" target="_blank">thomers@me.com</a>&gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt; &gt; another option is: toggle them as disabled on the UI of the Admin UI ;-)<br>
&gt; &gt;<br>
&gt; &gt; Hmm, where do I see the device tokens and can disable them in the admin UI?<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; Aerogear-users mailing list<br>
&gt; &gt; <a href="mailto:Aerogear-users@lists.jboss.org" target="_blank">Aerogear-users@lists.jboss.org</a><br>
&gt; &gt; <a href="https://lists.jboss.org/mailman/listinfo/aerogear-users" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-users</a><br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; Aerogear-users mailing list<br>
&gt; &gt; <a href="mailto:Aerogear-users@lists.jboss.org" target="_blank">Aerogear-users@lists.jboss.org</a><br>
&gt; &gt; <a href="https://lists.jboss.org/mailman/listinfo/aerogear-users" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-users</a><br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Aerogear-users mailing list<br>
&gt; <a href="mailto:Aerogear-users@lists.jboss.org" target="_blank">Aerogear-users@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/aerogear-users" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-users</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Matthias Wessendorf<br>
&gt;<br>
&gt; blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>
&gt; sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
&gt; twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Matthias Wessendorf<br>
&gt;<br>
&gt; blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>
&gt; sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
&gt; twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a><br>
&gt; _______________________________________________<br>
&gt; Aerogear-users mailing list<br>
&gt; <a href="mailto:Aerogear-users@lists.jboss.org" target="_blank">Aerogear-users@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/aerogear-users" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-users</a><br>
<br>
<br>
_______________________________________________<br>
Aerogear-users mailing list<br>
<a href="mailto:Aerogear-users@lists.jboss.org" target="_blank">Aerogear-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-users" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-users</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>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>
</div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>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>
</div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">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>
</div>