<div dir="ltr">Oh, good point, Stefan<div><br></div><div>our latest guide is here:</div><div><a href="http://staging.aerogear.org/docs/unifiedpush/GetStartedwithJavaSender/">http://staging.aerogear.org/docs/unifiedpush/GetStartedwithJavaSender/</a><br>
</div><div><br></div><div>(has been relocated)</div><div><br></div><div>-M</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Aug 11, 2014 at 3:42 PM, Stefan Miklosovic <span dir="ltr"><<a href="mailto:smikloso@redhat.com" target="_blank">smikloso@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
maybe it is unrelated and you already have it like that, but do you have the latest version<br>
of sender? It aerogear docs you have linked, Maven dependency is of version 0.6.0 but there<br>
is 0.8.0 in central already. Try to upgrade that version first. Sorry for noise if you have<br>
already done that.<br>
<br>
Stefan Miklosovic<br>
Red Hat Brno - JBoss Mobile Platform<br>
<br>
e-mail: <a href="mailto:smikloso@redhat.com">smikloso@redhat.com</a><br>
irc: smikloso<br>
<div class="HOEnZb"><div class="h5"><br>
----- Original Message -----<br>
> Hi team<br>
><br>
> I can successfully send a UPS message from the console to my device. So I'm<br>
> trying to play around with the JavaSender. Following the docs here [1], I<br>
> wrote my standalone client, the main bit you can see here [2], which I had<br>
> to change a little as the API has changed since [1] was written I guess.<br>
><br>
> Now, I use the same ApplicationID and masterSecret in the console and<br>
> standalone client - however, with the standalone client I get a 401 response<br>
> and the console works.<br>
><br>
> Aug 11, 2014 12:45:14 PM org.jboss.aerogear.unifiedpush.SenderClient<br>
> submitPayload<br>
> INFO: HTTP Response code from UnifiedPush Server: 401<br>
><br>
> So why would it not be authorized? How can I find out what's happening?<br>
><br>
> Finally, this is a good point for me to ask perhaps how I can get some deeper<br>
> level debug logging on the UPS to try and track down what might be happening<br>
> in these sort of issues. I have TRACE level logging set up but all I see is<br>
> FINE level logging such as<br>
> [org.jboss.aerogear.unifiedpush.message.sender.GCMPushNotificationSender].<br>
><br>
> Also, the WARN and INFO logs from resteasy and keycloak respectively are kind<br>
> of a lot in the server.log. These seem to be internal to UPS so not sure if<br>
> we need to raise an issue with KC/UPS to get rid of these or change them<br>
> over to DEBUG level. There's a lot of them everytime to do something with<br>
> the console and I'm not sure it's necessary.<br>
><br>
> So, when ever you have time to take a look at the above queries I'd be<br>
> grateful.<br>
><br>
> Regards<br>
> Mus<br>
><br>
> [1] <a href="http://aerogear.org/docs/guides/GetStartedwithJavaSender/" target="_blank">http://aerogear.org/docs/guides/GetStartedwithJavaSender/</a><br>
> [2] <a href="http://pastebin.com/7U667RDU" target="_blank">http://pastebin.com/7U667RDU</a><br>
> --------------<br>
> Mustafa Musaji<br>
> Software Maintenance Engineer<br>
> Red Hat UK Ltd<br>
> 200 Fowler Avenue, Farnborough Business Park, Farnborough, Hants GU14 7JP<br>
><br>
> Registered in England and Wales under Company Registration No. <a href="tel:03798903" value="+493798903">03798903</a><br>
> Directors: Michael Cunningham (USA), Matt Parson (USA), Charles Peters (USA),<br>
> Michael O'Neill(Ireland)<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>
><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>
</div></div></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>