<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Follow up question - could the “INVALID_TOKEN” problem also result from a production token from another app?</div><div><br></div><div>The reason I’m asking is that I deleted all the development tokens from the DB, but still couldnt receive a push message on a device.</div><div><br></div><div>But I know that I’m sending push registrations to the production variant not just from the “Free” version of my app (using the correct “Free” variant ID and key), but also from the “Paid” version (incorrectly using the “Free" variant ID and key). Since I do not know the tokens sent from the “Paid” version, I cannot disable them. Could this be the reason why I’m not receiving pushes?</div><div><br></div><div>Since I’m using the OpenShift cartridge - what’s the best way how to proceed? Can I change the “<span style="background-color: rgba(0, 0, 0, 0.0392157);"><font color="#333333" face="Consolas, Liberation Mono, Menlo, Courier, monospace">withNoErrorDetection”&nbsp;</font></span>of&nbsp;<span style="background-color: rgba(0, 0, 0, 0.0392157); color: rgb(51, 51, 51); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace;">ApnsService&nbsp;</span>somehow?</div><div><br></div><div>Thanks,</div><div>Thomas</div><div><br></div><div><br></div><div><br></div><div><br><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">On 18.11.2014, at 17:04, Matthias Wessendorf &lt;<a href="mailto:matzew@apache.org">matzew@apache.org</a>&gt; wrote:<br><div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hi thomas,<div><br></div><div>here is an update on the actual issue:</div><div><a href="https://github.com/notnoop/java-apns/issues/124#issuecomment-63493965">https://github.com/notnoop/java-apns/issues/124#issuecomment-63493965</a><br></div><div><br></div><div>I will file a PR for that</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 18, 2014 at 5:02 PM, Thomas Schweitzer <span dir="ltr">&lt;<a href="mailto:thomers@me.com" target="_blank">thomers@me.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi Matthias,<div><br></div><div>java version "1.7.0_71"</div><div><div>OpenJDK Runtime Environment (rhel-2.5.3.1.el6-i386 u71-b14)</div><div>OpenJDK Server VM (build 24.65-b04, mixed mode)</div><div><br></div><div>(I assume this is the default version installed by OpenShift, since I didn’t configure anything specific).</div><div><br></div><div>Cheers,</div><div>T</div><div><div class="h5"><div><br></div><div><br></div><div><div>On 18.11.2014, at 14:57, Matthias Wessendorf &lt;<a href="mailto:matzew@apache.org" target="_blank">matzew@apache.org</a>&gt; wrote:</div><br><blockquote type="cite"><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><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><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 ?&nbsp;<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....&nbsp;</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>.withCert("/Users/matzew/Desktop/PushCerts/prod.p12", "XXXX").withProductionDestination()</div><div><br></div><div><br></div><div>and I give it too tokens:</div><div>iPodToken (production version of the "net.wessendorf.prod" app-id)</div><div>iPhoneToken&nbsp;(development version of the "net.wessendorf.prod" app-id)&nbsp;</div><div><br></div><div>Since connecting to the PROD, only the iPod is delivered. Also the ordering of the tokens does not matter ..&nbsp;</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>&nbsp;</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><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 "x installations" :<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></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></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></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>
_______________________________________________<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></blockquote></div><br></div></div></div></div><br>_______________________________________________<br>
Aerogear-users mailing list<br>
<a href="mailto:Aerogear-users@lists.jboss.org">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>
<br></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>
_______________________________________________<br>Aerogear-users mailing list<br><a href="mailto:Aerogear-users@lists.jboss.org">Aerogear-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/aerogear-users">https://lists.jboss.org/mailman/listinfo/aerogear-users</a><br></blockquote></div><br></div></blockquote></div><br></body></html>