<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>I am diving deeper into the problem. The client sent this:</p>
<p>{"message":{"alert":"Hello from Java Sender
API!","sound":null,"badge":-1,"priority":"normal","consolidationKey":null,"windows":{"type":null,"duration":null,"badge":null,"tileType":null,"toastType":null,"images":[],"textFields":[],"page":null},"apns":{"title":null,"action":null,"action-category":null,"localized-key":null,"localized-arguments":null,"localized-title-key":null,"localized-title-arguments":null,"url-args":null,"content-available":false},"user-data":{},"simple-push":null},"criteria":{"categories":null,"variants":null,"alias":null,"deviceType":null},"config":{"ttl":-1}}<br>
</p>
<p>Perhaps someone can tell me why the error is this:</p>
<p>Unrecognized field "priority" (Class
org.jboss.aerogear.unifiedpush.message.Message), not marked as
ignorable<br>
at [Source:
io.undertow.servlet.spec.ServletInputStreamImpl@1579f57; line: 1,
column: 87] (through reference chain:
org.jboss.aerogear.unifiedpush.message.InternalUnifiedPushMessage["message"]->org.jboss.aerogear.unifiedpush.message.Message["priority"])<br>
</p>
<p><br>
</p>
<p>Is it a version issue? I used the pom.xml from version 1.1.0
with maven to build the client.<br>
</p>
<div class="moz-signature"><br>
<table rules="none" border="0">
<tbody>
<tr>
<td><font size="-1">Christopher Fahey<br>
DealerRewards, Inc.<br>
Maryland Branch Office<br>
(410) 924-3185<br>
</font>
</td>
</tr>
<tr>
<td colspan="2">
<font size="-1">
<hr>
This electronic message transmission contains
information from DealerRewards Inc. This message is
confidential. It may also be privileged or otherwise
protected by work-product immunity or other legal rules.
If you have received it by mistake, please let us know
by email reply and delete it from your system; you may
not copy this message or disclose its contents to
anyone.<br>
DISCLAIMER: Since 2006, the U.S. Government has been
monitoring all internet communications. If you have
information that you do not wish to have monitored,
please send it using regular postal services to the
address listed on our website.
<hr>
</font>
</td>
</tr>
</tbody>
</table>
</div>
<div class="moz-cite-prefix">On 8/18/2016 5:04 AM, Sebastien Blanc
wrote:<br>
</div>
<blockquote
cite="mid:CAD_dpu38V91vEdi3MCDOvtO2i4_80kZdmSiak5pBjjOt2WYVOg@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<div dir="ltr">Did you solved it ?
<div>Because I just tried your CURL and it worked.</div>
<div><br>
</div>
<div>You should also renew you secret. </div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Aug 17, 2016 at 10:07 PM,
Christopher Fahey <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:chris@dealerrewards.net" target="_blank">chris@dealerrewards.net</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<p>Anyone? I went to the sender API tab on the variants
screen and copied the CURL UPS Rest command and ran it.<span><span></span></span></p>
<div>It failed. So clearly not a problem with the java
client software I wrote. Clearly a problem with the
push server. Does this function even work? Does
anyone have it working? Why would it fail? Could it be
that the settings are wrong in the server?<br>
<span><span><br>
</span></span>
<pre><span><span>curl </span></span><span><span>-</span></span><span><span>u </span></span><span><span>"48f23d56-75a5-4a7f-a097-<wbr>a62404e5a6e0:221a9e9f-a040-<wbr>4111-96b1-1d1983576f56"</span></span><span><span> \
</span></span><span><span>-</span></span><span><span>v </span></span><span><span>-</span></span><span><span>H </span></span><span><span>"Accept: application/json"</span></span><span><span> </span></span><span><span>-</span></span><span><span>H </span></span><span><span>"Content-type: application/json"</span></span><span><span> \
</span></span><span><span>-</span></span><span><span>X POST </span></span><span><span>-</span></span><span><span>d \
</span></span><span><span>'{
"message": {
"alert": "Hello from the curl HTTP Sender!",
"sound": "default"
}
}'</span></span><span><span> \
https</span></span><span><span>:</span></span><span><span>//<a moz-do-not-send="true" href="http://www.dealerrewards.com:8986/ag-push/rest/sender" target="_blank">www.dealerrewards.com:<wbr>8986/ag-push/rest/sender</a>
</span></span></pre>
Note: Unnecessary use of -X or --request, POST is already
inferred.
* Trying 173.166.153.1...
* Connected to <a moz-do-not-send="true" href="http://www.dealerrewards.com" target="_blank">www.dealerrewards.com</a> (173.166.153.1) port 8986
(#0)
* ALPN, offering http/1.1
* Cipher selection:
ALL:!EXPORT:!EXPORT40:!<wbr>EXPORT56:!aNULL:!LOW:!RC4:@<wbr>STRENGTH
* successfully set certificate verify locations:
* CAfile:
C:\Users\Chris\AppData\Local\<wbr>Apps\cURL\bin\curl-ca-bundle.<wbr>crt
CApath: none
* TLSv1.2 (OUT), TLS header, Certificate Status (22):
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Client hello (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS change cipher, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-SHA256
* ALPN, server did not agree to a protocol
* Server certificate:
* subject: OU=Domain Control Validated; OU=Free SSL;
CN=<a moz-do-not-send="true" href="http://www.dealerrewards.com" target="_blank">www.dealerrewards.com</a>
* start date: Aug 16 00:00:00 2016 GMT
* expire date: Nov 14 23:59:59 2016 GMT
* subjectAltName: <a moz-do-not-send="true" href="http://www.dealerrewards.com" target="_blank">www.dealerrewards.com</a> matched
* issuer: C=GB; ST=Greater Manchester; L=Salford; O=COMODO
CA Limited; CN=COMODO RSA Domain Validation Secure Server CA
* SSL certificate verify ok.
* Server auth using Basic with user
'48f23d56-75a5-4a7f-a097-<wbr>a62404e5a6e0'
> POST /ag-push/rest/sender HTTP/1.1
> Host: <a moz-do-not-send="true" href="http://www.dealerrewards.com:8986" target="_blank">www.dealerrewards.com:8986</a>
> Authorization: Basic
NDhmMjNkNTYtNzVhNS00YTdmLWEwOT<wbr>ctYTYyNDA0ZTVhNmUwOjIyMWE5ZTlm<wbr>LWEwNDAtNDExMS05NmIxLTFkMTk4Mz<wbr>U3NmY1Ng==
> User-Agent: curl/7.46.0
> Accept: */*
> Accept : application/json
> Content-type : application/json
> Content-Length: 25
> Content-Type: application/x-www-form-<wbr>urlencoded
>
* upload completely sent off: 25 out of 25 bytes
< HTTP/1.1 400 Bad Request
< Connection: keep-alive
< X-Powered-By: Undertow/1
< Server: WildFly/8
< Content-Type: text/html;charset=UTF-8
< Content-Length: 70
< Date: Wed, 17 Aug 2016 19:17:21 GMT
<
<html><head><title>Error</<wbr>title></head><body>Bad
Request</body></html>* Connection #0 to host
<a moz-do-not-send="true" href="http://www.dealerrewards.com" target="_blank">www.dealerrewards.com</a> left intact<span class="">
<table rules="none" border="0">
<tbody>
<tr>
<td><font size="-1">Christopher Fahey
DealerRewards, Inc.
Maryland Branch Office
<a moz-do-not-send="true" href="tel:%28410%29%20924-3185" value="+14109243185" target="_blank">(410) 924-3185</a>
</font>
</td>
</tr>
<tr>
<td colspan="2">
<font size="-1">
<hr>
This electronic message transmission contains
information from DealerRewards Inc. This message is
confidential. It may also be privileged or otherwise
protected by work-product immunity or other legal rules.
If you have received it by mistake, please let us know
by email reply and delete it from your system; you may
not copy this message or disclose its contents to
anyone.
DISCLAIMER: Since 2006, the U.S. Government has been
monitoring all internet communications. If you have
information that you do not wish to have monitored,
please send it using regular postal services to the
address listed on our website.
<hr>
</font>
</td>
</tr>
</tbody>
</table>
</span></div><div><div class="h5">
<div>On 8/17/2016 8:33 AM, Christopher Fahey
wrote:
</div>
<blockquote type="cite">
<p>I am using java client 1.1.0-final with UPS 1.1.1-final.
</p>
<div>I don't mean to be a constant thorn but
I just keep running into these issues and never can find any
solution to them.
I have everything compiled and running. I have created an
application within UPS with an android variant. I have my
mobile app installed on my android phone. I can successfully
send a notification using the UPS admin console to my app. The
last part of the puzzle is to get the UPS java client working so
I can integrate my server with UPS. I have written a small test
program to test it but I receive the following error:
Aug 17, 2016 8:17:10 AM
org.jboss.aerogear.<wbr>unifiedpush.DefaultPushSender submitPayload
SEVERE: The Unified Push Server returned status code: 400
Why am I receiving this error?
There is no indication in the Wildfly logs that it even handled
the connection or why it rejected it. Here is the code:
String notifyURL = <a moz-do-not-send="true" href="https://www.dealerrewards.com:8080/ag-push" target="_blank">"https://www.dealerrewards.<wbr>com:8080/ag-push"</a>;
String appId = "3c726feb-52ce-52ce-52ce-<wbr>f08e9993c715";
String appSecret =
"11ba55f6-52ce-52ce-52ce-<wbr>06a9672db6ae";
PushSender defaultPushSender =
DefaultPushSender.<wbr>withRootServerURL( notifyURL )
.pushApplicationId( appId )
.masterSecret( appSecret )
.build();
UnifiedMessage unifiedMessage =
UnifiedMessage.withMessage()
.alert("test")
.criteria().aliases("mike")
.build();
defaultPushSender.send( unifiedMessage, new
MessageResponseCallback( )
{
@Override
public void onComplete( )
{
// TODO Auto-generated method stub
}
} );
<table rules="none" border="0">
<tbody>
<tr>
<td><font size="-1">Christopher Fahey
DealerRewards, Inc.
Maryland Branch Office
<a moz-do-not-send="true" href="tel:%28410%29%20924-3185" value="+14109243185" target="_blank">(410) 924-3185</a>
</font> </td>
</tr>
<tr>
<td colspan="2"> <font size="-1">
<hr> This electronic message transmission contains
information from DealerRewards Inc. This message is
confidential. It may also be privileged or otherwise
protected by work-product immunity or other legal
rules. If you have received it by mistake, please let
us know by email reply and delete it from your system;
you may not copy this message or disclose its contents
to anyone.
DISCLAIMER: Since 2006, the U.S. Government has been
monitoring all internet communications. If you have
information that you do not wish to have monitored,
please send it using regular postal services to the
address listed on our website.
<hr> </font> </td>
</tr>
</tbody>
</table>
</div>
<div>On 8/16/2016 8:09 PM, Matthias
Wessendorf wrote:
</div>
<blockquote type="cite">
<div dir="ltr">Their dependency is declared here:
<div><a moz-do-not-send="true" href="https://github.com/aerogear/aerogear-unifiedpush-java-client/blob/master/pom.xml#L85-L89" target="_blank">https://github.com/aerogear/<wbr>aerogear-unifiedpush-java-<wbr>client/blob/master/pom.xml#<wbr>L85-L89</a>
</div>
<div>
</div>
<div>Note, that master branch onf the java-client is requiring
1.2.0- version of the UPS,</div>
<div>
</div>
<div>while the 1.1.0 version of the java-client is supposed to
work w/ UPS 1.1.x</div>
<div>
</div>
<div>
</div>
</div>
<div class="gmail_extra">
<div class="gmail_quote">On Wed, Aug 17, 2016 at 12:16 AM,
Daniel Passos <span dir="ltr"><<a moz-do-not-send="true" href="mailto:dpassos@redhat.com" target="_blank">dpassos@redhat.com</a>></span>
wrote:
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div>Hi Christopher,
</div>
Those files are in <a moz-do-not-send="true" href="https://github.com/aerogear/aerogear-unifiedpush-server/" target="_blank">aerogear-unifiedpush-server</a> repo
<div>
<div>
<div class="gmail_extra">
<div class="gmail_quote"><span>On Tue,
Aug 16, 2016 at 5:58 PM, Christopher Fahey <span dir="ltr"><<a moz-do-not-send="true" href="mailto:chris@dealerrewards.net" target="_blank">chris@dealerrewards.net</a>></span>
wrote:
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<p>Speaking of other things, can anyone
tell me where I can find the following
branch files:</p>
<p> <span>org.jboss.aerogear.unifiedpush<wbr>.message.apns.*</span></p>
</div>
</blockquote>
</span>
<div>
<a moz-do-not-send="true" href="https://github.com/aerogear/aerogear-unifiedpush-server/tree/master/push/model/src/main/java/org/jboss/aerogear/unifiedpush/message/apns" target="_blank">https://github.com/aerogear/ae<wbr>rogear-unifiedpush-server/tree<wbr>/master/push/model/src/main/<wbr>java/org/jboss/aerogear/unifie<wbr>dpush/message/apns</a>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<p><span>org.jboss.aerogear.unifiedpush<wbr>.message.windows.*</span></p>
</div>
</blockquote>
<div><a moz-do-not-send="true" href="https://github.com/aerogear/aerogear-unifiedpush-server/tree/master/push/model/src/main/java/org/jboss/aerogear/unifiedpush/message/windows" target="_blank">https://github.com/aerogear/ae<wbr>rogear-unifiedpush-server/tree<wbr>/master/push/model/src/main/<wbr>java/org/jboss/aerogear/unifie<wbr>dpush/message/windows</a>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span>
<div bgcolor="#FFFFFF" text="#000000">
<p><span>The files are not in the git
repository.</span></p>
<p><span><a moz-do-not-send="true" href="https://github.com/aerogear/aerogear-unifiedpush-java-client/tree/master/src/main/java/org/jboss/aerogear/unifiedpush" target="_blank">https://github.com/aerogear/ae<wbr>rogear-unifiedpush-java-client<wbr>/tree/master/src/main/java/org<wbr>/jboss/aerogear/unifiedpush</a><span><font color="#888888">
</font></span></span></p>
<span><font color="#888888">
<div>
<table rules="none" border="0">
<tbody>
<tr>
<td><font size="-1">Christopher
Fahey
DealerRewards, Inc.
Maryland Branch Office
<a moz-do-not-send="true" href="tel:%28410%29%20924-3185" value="+14109243185" target="_blank">(410)
924-3185</a>
</font> </td>
</tr>
<tr>
<td colspan="2"> <font size="-1">
<hr> This electronic
message transmission
contains information from
DealerRewards Inc. This
message is confidential.
It may also be privileged
or otherwise protected by
work-product immunity or
other legal rules. If you
have received it by
mistake, please let us
know by email reply and
delete it from your
system; you may not copy
this message or disclose
its contents to anyone.
DISCLAIMER: Since 2006,
the U.S. Government has
been monitoring all
internet communications.
If you have information
that you do not wish to
have monitored, please
send it using regular
postal services to the
address listed on our
website.
<hr> </font> </td>
</tr>
</tbody>
</table>
</div>
</font></span></div>
</span>______________________________<wbr>_________________
Aerogear-users mailing list
<a moz-do-not-send="true" href="mailto:Aerogear-users@lists.jboss.org" target="_blank">Aerogear-users@lists.jboss.org</a>
<a moz-do-not-send="true" href="https://lists.jboss.org/mailman/listinfo/aerogear-users" rel="noreferrer" target="_blank">https://lists.jboss.org/mailma<wbr>n/listinfo/aerogear-users</a>
</blockquote>
</div>
<span><font color="#888888">
--
<div data-smartmail="gmail_signature">
<div dir="ltr">-- Passos
</div>
</div>
</font></span></div>
</div>
</div>
</div>
______________________________<wbr>_________________
Aerogear-users mailing list
<a moz-do-not-send="true" href="mailto:Aerogear-users@lists.jboss.org" target="_blank">Aerogear-users@lists.jboss.org</a>
<a moz-do-not-send="true" href="https://lists.jboss.org/mailman/listinfo/aerogear-users" rel="noreferrer" target="_blank">https://lists.jboss.org/mailma<wbr>n/listinfo/aerogear-users</a>
</blockquote>
</div>
<div>
</div>
--
<div data-smartmail="gmail_signature">
<div dir="ltr">
<div>Matthias Wessendorf
blog: <a moz-do-not-send="true" href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.<wbr>wordpress.com/</a>
twitter: <a moz-do-not-send="true" href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a></div>
</div>
</div>
</div>
<fieldset></fieldset>
<pre>______________________________<wbr>_________________
Aerogear-users mailing list
<a moz-do-not-send="true" href="mailto:Aerogear-users@lists.jboss.org" target="_blank">Aerogear-users@lists.jboss.org</a>
<a moz-do-not-send="true" href="https://lists.jboss.org/mailman/listinfo/aerogear-users" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/aerogear-<wbr>users</a>
</pre>
</blockquote>
<fieldset></fieldset>
<pre>______________________________<wbr>_________________
Aerogear-users mailing list
<a moz-do-not-send="true" href="mailto:Aerogear-users@lists.jboss.org" target="_blank">Aerogear-users@lists.jboss.org</a>
<a moz-do-not-send="true" href="https://lists.jboss.org/mailman/listinfo/aerogear-users" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/aerogear-<wbr>users</a>
</pre>
</blockquote>
</div></div></div>
______________________________<wbr>_________________
Aerogear-users mailing list
<a moz-do-not-send="true" href="mailto:Aerogear-users@lists.jboss.org">Aerogear-users@lists.jboss.org</a>
<a moz-do-not-send="true" href="https://lists.jboss.org/mailman/listinfo/aerogear-users" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/aerogear-<wbr>users</a>
</blockquote></div>
</div>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre wrap="">_______________________________________________
Aerogear-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Aerogear-users@lists.jboss.org">Aerogear-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/aerogear-users">https://lists.jboss.org/mailman/listinfo/aerogear-users</a>
</pre>
</blockquote>
</body></html>