Seems to be a NullPointer:

Caused by: java.lang.NullPointerException
at org.jboss.quickstarts.wfk.contacts.customer.ContactRESTService.updateContact(ContactRESTService.java:192) [classes:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_55]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_55]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_55]
at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_55]
at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:407)
at org.jboss.as.weld.ejb.DelegatingInterceptorInvocationContext.proceed(DelegatingInterceptorInvocationContext.java:87) [wildfly-weld-8.1.0.CR1.jar:8.1.0.CR1]
at org.apache.deltaspike.security.impl.extension.DefaultSecurityStrategy.execute(DefaultSecurityStrategy.java:61) [deltaspike-security-module-impl-0.5.jar:0.5]
at org.apache.deltaspike.security.impl.extension.SecurityInterceptor.filterDeniedInvocations(SecurityInterceptor.java:44) [deltaspike-security-module-impl-0.5.jar:0.5]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_55]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_55]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_55]
at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_55]
at org.jboss.weld.interceptor.proxy.SimpleMethodInvocation.invoke(SimpleMethodInvocation.java:30) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.interceptor.chain.AbstractInterceptionChain.invokeNext(AbstractInterceptionChain.java:103) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.interceptor.chain.AbstractInterceptionChain.invokeNextInterceptor(AbstractInterceptionChain.java:81) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.weld.bean.InterceptorImpl.intercept(InterceptorImpl.java:105) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.as.weld.ejb.DelegatingInterceptorInvocationContext.proceed(DelegatingInterceptorInvocationContext.java:77) [wildfly-weld-8.1.0.CR1.jar:8.1.0.CR1]
at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.delegateInterception(Jsr299BindingsInterceptor.java:68) [wildfly-weld-8.1.0.CR1.jar:8.1.0.CR1]
at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:80) [wildfly-weld-8.1.0.CR1.jar:8.1.0.CR1]
at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:93) [wildfly-weld-8.1.0.CR1.jar:8.1.0.CR1]
at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43) [wildfly-ejb3-8.1.0.CR1.jar:8.1.0.CR1]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47) [wildfly-jpa-8.1.0.CR1.jar:8.1.0.CR1]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:407)
at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:46) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:83) [wildfly-weld-8.1.0.CR1.jar:8.1.0.CR1]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45) [wildfly-ee-8.1.0.CR1.jar:8.1.0.CR1]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
at org.jboss.as.ejb3.component.interceptors.NonPooledEJBComponentInstanceAssociatingInterceptor.processInvocation(NonPooledEJBComponentInstanceAssociatingInterceptor.java:59) [wildfly-ejb3-8.1.0.CR1.jar:8.1.0.CR1]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:273) [wildfly-ejb3-8.1.0.CR1.jar:8.1.0.CR1]
... 81 more

And that means the contact Id is null:

https://github.com/edewit/jboss-wfk-quickstarts/blob/push/contacts-mobile-picketlink-secured/src/main/java/org/jboss/quickstarts/wfk/contacts/customer/ContactRESTService.java#L192

So your data should also contain the same id as the id in the url

 -d '{"firstName":"Davey","lastName":"Jones","phoneNumber":"1(212)555-3333","email":"davey.jones@locker.com","birthDate":"1996-08-07","id”:"7"}'


On 2 Jun,2014, at 14:10 , Sebastien Blanc <scm.blanc@gmail.com> wrote:

Your request look good but without having the application server log it's hard to tell what is going on exactly. You could ask Erik to check the log or deploy the backend locally. 



On Mon, Jun 2, 2014 at 2:07 PM, Daniel Passos <daniel@passos.me> wrote:

Sorry,

Yes, I am try updating a contact and the server responded w/ status code 500


* Adding handle: conn: 0x7ff159003000 
* Adding handle: send: 0 
* Adding handle: recv: 0 
* Curl_addHandleToPipeline: length: 1 
* - Conn 0 (0x7ff159003000) send_pipe: 1, recv_pipe: 0 
* About to connect() to quickstarts-edewit.rhcloud.com port 80 (#0) 
*   Trying 50.16.176.239... 
* Connected to quickstarts-edewit.rhcloud.com (50.16.176.239) port 80 (#0) 
> PUT /rest/contacts/7 HTTP/1.1 
> User-Agent: curl/7.30.0 
> Host: quickstarts-edewit.rhcloud.com 
> Cookie: JSESSIONID=zugucP2LNHLbCNNOwBrD3mx6.quickstarts-edewit.rhcloud.com 
> Accept: application/json 
> Content-type: application/json 
> Content-Length: 120 
>  
* upload completely sent off: 120 out of 120 bytes 
< HTTP/1.1 500 Internal Server Error 
< Date: Mon, 02 Jun 2014 12:04:59 GMT 
< Content-Type: text/html;charset=ISO-8859-1 
< Content-Length: 80 
< Connection: close 
<  
* Closing connection 0 
<html><head><title>Error</title></head><body>Internal Server Error</body></html>


On Mon, Jun 2, 2014 at 4:39 AM, Sebastien Blanc <scm.blanc@gmail.com> wrote:
What is the issue you are having and what are you trying to do (issue just with the update?) ? 



On Fri, May 30, 2014 at 8:48 PM, Daniel Passos <daniel@passos.me> wrote:

Someone know that I am doing wrong?

Login

curl -v -b cookies.txt -c cookies.txt \
     -H "Accept: application/json" \
     -H "Content-type: application/json" \
     -u "myuser:mypass" \
     -X GET http://quickstarts-edewit.rhcloud.com/rest/security/user/info

Update Contact

curl -v -b cookies.txt -c cookies.txt \
     -H "Accept: application/json" \
     -H "Content-type: application/json" \
     -X PUT \
     -d '{"firstName":"fname","lastName":"lname","phoneNumber":"1234567","email":"example@example.com", "birthDate":"2001-03-24"}' \
      http://quickstarts-edewit.rhcloud.com/rest/contacts/7

— Passos



On Tue, May 20, 2014 at 3:13 PM, Sebastien Blanc <scm.blanc@gmail.com> wrote:
Since we changed the use case for the Push part (now we broadcast) , passing a alias to UPS is not relevant anymore. For the login it's indeed "loginName" to be passed in the auth header along with the password.
 


On Tue, May 20, 2014 at 7:34 PM, Daniel Passos <daniel@passos.me> wrote:
To register I send "userName" and the login response "loginName"?
-- Passos



On Thu, Apr 17, 2014 at 6:07 PM, Sebastien Blanc <scm.blanc@gmail.com> wrote:
Sure !
This is just a version to ease the client development.
I will ask PL team and Joshua their plans around HSTS and HTTPS.
In the mean time we can track all of this with https://issues.jboss.org/browse/AGPUSH-596

Thx for the comment !
Sebi


On Thu, Apr 17, 2014 at 9:48 PM, Bruno Oliveira <bruno@abstractj.org> wrote:
If your idea is to be secure, please make sure to use HTTPS and enforce
users to be redirected. We did it in the past with HSTS on AG Security,
might not be hard to copy & paste.

Sebastien Blanc wrote:
> And because I love you, I deployed on OpenShift a version of this secured
> backend to ease the development of the clients !
>
> If you browse to http://contacts-sblanc.rhcloud.com/ you will even see the
> mobile web client. This deployed version contains also the Push Message
> endpoint.

_______________________________________________
aerogear-dev mailing list
aerogear-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-dev


_______________________________________________
aerogear-dev mailing list
aerogear-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-dev


_______________________________________________
aerogear-dev mailing list
aerogear-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-dev


_______________________________________________
aerogear-dev mailing list
aerogear-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-dev


_______________________________________________
aerogear-dev mailing list
aerogear-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-dev

_______________________________________________
aerogear-dev mailing list
aerogear-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-dev