[aerogear-dev] [aerogear-unified-push-server] Problem with ProdCerts branch iOS variant addition

Matthias Wessendorf matzew at apache.org
Thu Jul 11 02:33:23 EDT 2013


We are talking about a "Distribution Provisioning Profile", right ?


On Wed, Jul 10, 2013 at 8:57 PM, Yavuz Selim YILMAZ <yavuzsel at buffalo.edu>wrote:

> Hi,
>
> yes, the app ID matches with the provisioning profile, and the app
> installs and functions correctly on the device.
>
> regards,
>
> ---
> Yavuz Selim Yilmaz
> SUNY at Buffalo
> Computer Science and Engineering
> PhD Candidate
>
> On Jul 10, 2013, at 2:46 PM, Matthias Wessendorf <matzew at apache.org>
> wrote:
>
>
>
>
> On Wed, Jul 10, 2013 at 8:29 PM, Yavuz Selim YILMAZ <yavuzsel at buffalo.edu>wrote:
>
>> Thanks you. Now here is the scenario:
>>
>> Deploy with development setup, and send push message. Server logs the
>> following and the message is DELIVERED to the device:
>>
>> 14:23:01,518 INFO
>> [org.jboss.aerogear.connectivity.rest.registry.instances.MobileVariantInstanceEndpoint]
>> (http--0.0.0.0-8080-1) Updating received metadata for MobileVariantInstance
>> 14:23:21,618 INFO
>> [org.jboss.aerogear.connectivity.rest.sender.PushNotificationSenderEndpoint]
>> (http--0.0.0.0-8080-2) Message submitted to PushNetworks
>> 14:23:21,620 SEVERE
>> [org.jboss.aerogear.connectivity.message.sender.APNsPushNotificationSender]
>> (EJB default - 7) No certificate for 'development' was found.
>> Could not send messages to APNs
>>
>>
>> Now, deploy with production setup, and send push message. Server logs the
>> following and the message is NOT DELIVERED to the device:
>>
>> 14:22:14,433 INFO
>> [org.jboss.aerogear.connectivity.rest.registry.instances.MobileVariantInstanceEndpoint]
>> (http--0.0.0.0-8080-1) Updating received metadata for MobileVariantInstance
>> 14:22:25,493 INFO
>> [org.jboss.aerogear.connectivity.rest.sender.PushNotificationSenderEndpoint]
>> (http--0.0.0.0-8080-2) Message submitted to PushNetworks
>> 14:22:25,497 SEVERE
>> [org.jboss.aerogear.connectivity.message.sender.APNsPushNotificationSender]
>> (EJB default - 6) No certificate for 'production' was found.
>> Could not send messages to APNs
>>
>>
>>  I pulled the repo changes, but did not recreate my application. Though I
>> tried adding the variant with production certificate again, nothing changed
>> from the above case. Do you have any other suggestion for me to try?
>>
>
> device correct ? e.g. does it contain the right provisioning profile
> (matching the right apple app ID? With the configured Prod Cert?)
>
>
> Regardless, I will check as well
>
>
>
>
>>
>> Kind regards,
>>
>> ---
>> Yavuz Selim Yilmaz
>> SUNY at Buffalo
>> Computer Science and Engineering
>> PhD Candidate
>>
>> On Jul 10, 2013, at 2:05 PM, Matthias Wessendorf <matzew at apache.org>
>> wrote:
>>
>> Doh!,
>>
>> yes - here is the fix:
>>
>> https://github.com/aerogear/aerogear-unified-push-server/commit/ca704190c8d1880cd8fd7c62afaf8ce3d3f157f5
>>
>> can u pull latest changes and redeploy ?  (No need to erase the database
>> this time)
>>
>> -Matthias
>>
>>
>> On Wed, Jul 10, 2013 at 7:54 PM, Yavuz Selim YILMAZ <yavuzsel at buffalo.edu
>> > wrote:
>>
>>> Hi Matthias,
>>>
>>> Thanks for the reply. It worked smoothly and I could add my variants.
>>> When I deploy my app with development certificate and set staging to
>>> development, message is delivered. However, when I change my setup to
>>> production, although I am getting "Job Submitted" response from my push
>>> server, the server logs the following errors and no message is delivered to
>>> the device:
>>>
>>> 13:46:19,462 INFO
>>> [org.jboss.aerogear.connectivity.rest.sender.PushNotificationSenderEndpoint]
>>> (http--0.0.0.0-8080-1) Message submitted to PushNetworks
>>> 13:46:19,465 ERROR [org.jboss.weld.Bean] (EJB default - 5) WELD-000019
>>> Error destroying an instance Managed Bean [class
>>> org.jboss.aerogear.connectivity.jpa.dao.impl.MobileVariantInstanceDaoImpl]
>>> with qualifiers [@Any @Default] of
>>> org.jboss.aerogear.connectivity.jpa.dao.impl.MobileVariantInstanceDaoImpl at 5afd0eb7
>>> 13:46:19,467 ERROR [org.jboss.ejb3.invocation] (EJB default - 5)
>>> JBAS014134: EJB Invocation failed on component SenderServiceImpl for method
>>> public abstract void
>>> org.jboss.aerogear.connectivity.service.sender.SenderService.broadcast(org.jboss.aerogear.connectivity.model.PushApplication,org.jboss.aerogear.connectivity.service.sender.message.BroadcastMessage):
>>> javax.ejb.EJBException: java.lang.NullPointerException
>>>  at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInOurTx(
>>> CMTTxInterceptor.java:166) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
>>>  at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(
>>> CMTTxInterceptor.java:230) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
>>>  at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(
>>> CMTTxInterceptor.java:304) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
>>>  at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(
>>> CMTTxInterceptor.java:190) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
>>>  at org.jboss.invocation.InterceptorContext.proceed(
>>> InterceptorContext.java:288)
>>> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>>  at
>>> org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(
>>> CurrentInvocationContextInterceptor.java:41)
>>> [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
>>>  at org.jboss.invocation.InterceptorContext.proceed(
>>> InterceptorContext.java:288)
>>> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>>  at
>>> org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(
>>> LoggingInterceptor.java:59) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
>>>  at org.jboss.invocation.InterceptorContext.proceed(
>>> InterceptorContext.java:288)
>>> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>>  at
>>> org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(
>>> NamespaceContextInterceptor.java:50)
>>> [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
>>>  at org.jboss.invocation.InterceptorContext.proceed(
>>> InterceptorContext.java:288)
>>> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>>  at
>>> org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(
>>> AdditionalSetupInterceptor.java:43)
>>> [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
>>>  at org.jboss.invocation.InterceptorContext.proceed(
>>> InterceptorContext.java:288)
>>> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>>  at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(
>>> TCCLInterceptor.java:45) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
>>>  at org.jboss.invocation.InterceptorContext.proceed(
>>> InterceptorContext.java:288)
>>> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>>  at org.jboss.invocation.ChainedInterceptor.processInvocation(
>>> ChainedInterceptor.java:61)
>>> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>>  at org.jboss.as.ee.component.ViewService$View.invoke(
>>> ViewService.java:165) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
>>>  at org.jboss.as.ee.component.ViewDescription$1.processInvocation(
>>> ViewDescription.java:173) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
>>>  at org.jboss.invocation.InterceptorContext.proceed(
>>> InterceptorContext.java:288)
>>> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>>  at
>>> org.jboss.as.ejb3.component.interceptors.AsyncVoidInterceptorFactory$Task.run(
>>> AsyncVoidInterceptorFactory.java:75)
>>> [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
>>>  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
>>> ThreadPoolExecutor.java:895) [classes.jar:1.6.0_51]
>>>  at java.util.concurrent.ThreadPoolExecutor$Worker.run(
>>> ThreadPoolExecutor.java:918) [classes.jar:1.6.0_51]
>>>  at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_51]
>>>  at org.jboss.threads.JBossThread.run(JBossThread.java:122)
>>> Caused by: java.lang.NullPointerException
>>>  at java.io.ByteArrayInputStream.<init>(ByteArrayInputStream.java:89)
>>> [classes.jar:1.6.0_51]
>>>  at
>>> org.jboss.aerogear.connectivity.message.cache.APNsCache.getProductionService(
>>> APNsCache.java:69) [classes:]
>>>  at
>>> org.jboss.aerogear.connectivity.message.cache.APNsCache$Proxy$_$$_WeldClientProxy.getProductionService(APNsCache$Proxy$_$$_WeldClientProxy.java)
>>> [classes:]
>>>  at
>>> org.jboss.aerogear.connectivity.message.sender.APNsPushNotificationSender.lookupApnsService(
>>> APNsPushNotificationSender.java:82) [classes:]
>>>  at
>>> org.jboss.aerogear.connectivity.message.sender.APNsPushNotificationSender.sendPushMessage(
>>> APNsPushNotificationSender.java:55) [classes:]
>>>  at
>>> org.jboss.aerogear.connectivity.service.sender.impl.SenderServiceImpl.broadcast(
>>> SenderServiceImpl.java:116) [classes:]
>>>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> [classes.jar:1.6.0_51]
>>>  at sun.reflect.NativeMethodAccessorImpl.invoke(
>>> NativeMethodAccessorImpl.java:39) [classes.jar:1.6.0_51]
>>>  at sun.reflect.DelegatingMethodAccessorImpl.invoke(
>>> DelegatingMethodAccessorImpl.java:25) [classes.jar:1.6.0_51]
>>>  at java.lang.reflect.Method.invoke(Method.java:597)
>>> [classes.jar:1.6.0_51]
>>>  at
>>> org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(
>>> ManagedReferenceMethodInterceptorFactory.java:72)
>>> [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
>>>  at org.jboss.invocation.InterceptorContext.proceed(
>>> InterceptorContext.java:288)
>>> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>>  at org.jboss.invocation.InterceptorContext$Invocation.proceed(
>>> InterceptorContext.java:374)
>>> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>>  at
>>> org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(
>>> Jsr299BindingsInterceptor.java:127)
>>> [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]
>>>  at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(
>>> Jsr299BindingsInterceptor.java:135)
>>> [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]
>>>  at
>>> org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(
>>> UserInterceptorFactory.java:36)
>>> [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
>>>  at org.jboss.invocation.InterceptorContext.proceed(
>>> InterceptorContext.java:288)
>>> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>>  at org.jboss.invocation.WeavedInterceptor.processInvocation(
>>> WeavedInterceptor.java:53)
>>> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>>  at
>>> org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(
>>> UserInterceptorFactory.java:36)
>>> [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
>>>  at org.jboss.invocation.InterceptorContext.proceed(
>>> InterceptorContext.java:288)
>>> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>>  at
>>> org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(
>>> SBInvocationInterceptor.java:47)
>>> [jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]
>>>  at org.jboss.invocation.InterceptorContext.proceed(
>>> InterceptorContext.java:288)
>>> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>>  at
>>> org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(
>>> EjbRequestScopeActivationInterceptor.java:101)
>>> [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]
>>>  at org.jboss.invocation.InterceptorContext.proceed(
>>> InterceptorContext.java:288)
>>> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>>  at org.jboss.invocation.InitialInterceptor.processInvocation(
>>> InitialInterceptor.java:21)
>>> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>>  at org.jboss.invocation.InterceptorContext.proceed(
>>> InterceptorContext.java:288)
>>> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>>  at org.jboss.invocation.ChainedInterceptor.processInvocation(
>>> ChainedInterceptor.java:61)
>>> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>>  at
>>> org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(
>>> ComponentDispatcherInterceptor.java:53)
>>> [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
>>>  at org.jboss.invocation.InterceptorContext.proceed(
>>> InterceptorContext.java:288)
>>> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>>  at
>>> org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(
>>> PooledInstanceInterceptor.java:51)
>>> [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
>>>  at org.jboss.invocation.InterceptorContext.proceed(
>>> InterceptorContext.java:288)
>>> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>>  at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(
>>> CMTTxInterceptor.java:228) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
>>>  ... 22 more
>>>
>>> 13:46:19,491 ERROR [org.jboss.as.ejb3] (EJB default - 5) JBAS014102:
>>> Asynchronous invocation failed: javax.ejb.EJBException:
>>> java.lang.NullPointerException
>>>  at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInOurTx(
>>> CMTTxInterceptor.java:166) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
>>>  at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(
>>> CMTTxInterceptor.java:230) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
>>>  at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(
>>> CMTTxInterceptor.java:304) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
>>>  at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(
>>> CMTTxInterceptor.java:190) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
>>>  at org.jboss.invocation.InterceptorContext.proceed(
>>> InterceptorContext.java:288)
>>> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>>  at
>>> org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(
>>> CurrentInvocationContextInterceptor.java:41)
>>> [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
>>>  at org.jboss.invocation.InterceptorContext.proceed(
>>> InterceptorContext.java:288)
>>> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>>  at
>>> org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(
>>> LoggingInterceptor.java:59) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
>>>  at org.jboss.invocation.InterceptorContext.proceed(
>>> InterceptorContext.java:288)
>>> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>>  at
>>> org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(
>>> NamespaceContextInterceptor.java:50)
>>> [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
>>>  at org.jboss.invocation.InterceptorContext.proceed(
>>> InterceptorContext.java:288)
>>> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>>  at
>>> org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(
>>> AdditionalSetupInterceptor.java:43)
>>> [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
>>>  at org.jboss.invocation.InterceptorContext.proceed(
>>> InterceptorContext.java:288)
>>> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>>  at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(
>>> TCCLInterceptor.java:45) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
>>>  at org.jboss.invocation.InterceptorContext.proceed(
>>> InterceptorContext.java:288)
>>> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>>  at org.jboss.invocation.ChainedInterceptor.processInvocation(
>>> ChainedInterceptor.java:61)
>>> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>>  at org.jboss.as.ee.component.ViewService$View.invoke(
>>> ViewService.java:165) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
>>>  at org.jboss.as.ee.component.ViewDescription$1.processInvocation(
>>> ViewDescription.java:173) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
>>>  at org.jboss.invocation.InterceptorContext.proceed(
>>> InterceptorContext.java:288)
>>> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>>  at
>>> org.jboss.as.ejb3.component.interceptors.AsyncVoidInterceptorFactory$Task.run(
>>> AsyncVoidInterceptorFactory.java:75)
>>> [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
>>>  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
>>> ThreadPoolExecutor.java:895) [classes.jar:1.6.0_51]
>>>  at java.util.concurrent.ThreadPoolExecutor$Worker.run(
>>> ThreadPoolExecutor.java:918) [classes.jar:1.6.0_51]
>>>  at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_51]
>>>  at org.jboss.threads.JBossThread.run(JBossThread.java:122)
>>> Caused by: java.lang.NullPointerException
>>>  at java.io.ByteArrayInputStream.<init>(ByteArrayInputStream.java:89)
>>> [classes.jar:1.6.0_51]
>>>  at
>>> org.jboss.aerogear.connectivity.message.cache.APNsCache.getProductionService(
>>> APNsCache.java:69) [classes:]
>>>  at
>>> org.jboss.aerogear.connectivity.message.cache.APNsCache$Proxy$_$$_WeldClientProxy.getProductionService(APNsCache$Proxy$_$$_WeldClientProxy.java)
>>> [classes:]
>>>  at
>>> org.jboss.aerogear.connectivity.message.sender.APNsPushNotificationSender.lookupApnsService(
>>> APNsPushNotificationSender.java:82) [classes:]
>>>  at
>>> org.jboss.aerogear.connectivity.message.sender.APNsPushNotificationSender.sendPushMessage(
>>> APNsPushNotificationSender.java:55) [classes:]
>>>  at
>>> org.jboss.aerogear.connectivity.service.sender.impl.SenderServiceImpl.broadcast(
>>> SenderServiceImpl.java:116) [classes:]
>>>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> [classes.jar:1.6.0_51]
>>>  at sun.reflect.NativeMethodAccessorImpl.invoke(
>>> NativeMethodAccessorImpl.java:39) [classes.jar:1.6.0_51]
>>>  at sun.reflect.DelegatingMethodAccessorImpl.invoke(
>>> DelegatingMethodAccessorImpl.java:25) [classes.jar:1.6.0_51]
>>>  at java.lang.reflect.Method.invoke(Method.java:597)
>>> [classes.jar:1.6.0_51]
>>>  at
>>> org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(
>>> ManagedReferenceMethodInterceptorFactory.java:72)
>>> [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
>>>  at org.jboss.invocation.InterceptorContext.proceed(
>>> InterceptorContext.java:288)
>>> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>>  at org.jboss.invocation.InterceptorContext$Invocation.proceed(
>>> InterceptorContext.java:374)
>>> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>>  at
>>> org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(
>>> Jsr299BindingsInterceptor.java:127)
>>> [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]
>>>  at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(
>>> Jsr299BindingsInterceptor.java:135)
>>> [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]
>>>  at
>>> org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(
>>> UserInterceptorFactory.java:36)
>>> [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
>>>  at org.jboss.invocation.InterceptorContext.proceed(
>>> InterceptorContext.java:288)
>>> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>>  at org.jboss.invocation.WeavedInterceptor.processInvocation(
>>> WeavedInterceptor.java:53)
>>> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>>  at
>>> org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(
>>> UserInterceptorFactory.java:36)
>>> [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
>>>  at org.jboss.invocation.InterceptorContext.proceed(
>>> InterceptorContext.java:288)
>>> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>>  at
>>> org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(
>>> SBInvocationInterceptor.java:47)
>>> [jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]
>>>  at org.jboss.invocation.InterceptorContext.proceed(
>>> InterceptorContext.java:288)
>>> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>>  at
>>> org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(
>>> EjbRequestScopeActivationInterceptor.java:101)
>>> [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]
>>>  at org.jboss.invocation.InterceptorContext.proceed(
>>> InterceptorContext.java:288)
>>> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>>  at org.jboss.invocation.InitialInterceptor.processInvocation(
>>> InitialInterceptor.java:21)
>>> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>>  at org.jboss.invocation.InterceptorContext.proceed(
>>> InterceptorContext.java:288)
>>> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>>  at org.jboss.invocation.ChainedInterceptor.processInvocation(
>>> ChainedInterceptor.java:61)
>>> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>>  at
>>> org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(
>>> ComponentDispatcherInterceptor.java:53)
>>> [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
>>>  at org.jboss.invocation.InterceptorContext.proceed(
>>> InterceptorContext.java:288)
>>> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>>  at
>>> org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(
>>> PooledInstanceInterceptor.java:51)
>>> [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
>>>  at org.jboss.invocation.InterceptorContext.proceed(
>>> InterceptorContext.java:288)
>>> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
>>>  at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(
>>> CMTTxInterceptor.java:228) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
>>>  ... 22 more
>>>
>>>
>>> Any idea on what might be the cause?
>>>
>>> Best regards,
>>>
>>> ---
>>> Yavuz Selim Yilmaz
>>> SUNY at Buffalo
>>> Computer Science and Engineering
>>> PhD Candidate
>>>
>>> On Jul 10, 2013, at 12:41 PM, Matthias Wessendorf <matzew at apache.org>
>>> wrote:
>>>
>>> Hello Yavuz,
>>>
>>>
>>> thanks for trying the branch.   Your CURL seems to be correct (the one
>>> with the developmentCertificate and developmentPassphrase).
>>>
>>>
>>> However, since we changed the model, I think you need to erase your
>>> local database :-) I remember running into that as well, when testing the
>>> things.
>>>
>>> the DB is stored on the filesystem.  Please try the following steps:
>>> * stop the JBoss
>>> * Kill the DB: do "rm ~/pushee.*"
>>> * start JBoss again
>>>
>>> Now, you need to login, and create a PushApp and than, use the above
>>> CURL for adding the developmentCert...
>>>
>>>
>>>
>>> BTW. a PRODUCTION :) cert is added like this:
>>> curl -v -b cookies.txt -c cookies.txt -i -H "Accept: application/json"
>>> -H "Content-type: multipart/form-data" -F
>>> "productionCertificate=@/Users/matzew/Desktop/PushCerts/PushTest.p12" -F
>>> "productionPassphrase=TopSecret" -X POST
>>> http://localhost:8080/ag-push/rest/applications/{pushApplicationID}/iOS
>>>
>>>
>>> AND :)  You can also upload both certs, initially:
>>>
>>> curl -v -b cookies.txt -c cookies.txt -i -H "Accept: application/json"
>>> -H "Content-type: multipart/form-data" -F "developmentCertificate=@/
>>> Users/yavuz/Documents/Certificates.p12" -F "developmentPassphrase=pass" -F
>>> "productionCertificate=@/Users/matzew/Desktop/PushCerts/PushTest.p12" -F
>>> "productionPassphrase=TopSecret" -X POST
>>> http://localhost:8080/ag-push/rest/applications/{pushApplicationID}/iOS
>>>
>>>
>>>
>>> Hope that helps
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> On Wed, Jul 10, 2013 at 6:24 PM, Yavuz Selim YILMAZ <
>>> yavuzsel at buffalo.edu> wrote:
>>>
>>>> Hi all,
>>>>
>>>> I'm trying out the ProdCerts branch on aerogear-unified-push-server to
>>>> enable AeroGear powered push notifications on my production iOS application.
>>>>
>>>> When I am trying to add an iOS variant, I am getting:
>>>>
>>>> HTTP/1.1 400 Bad Request
>>>>>>>> The request sent by the client was syntactically incorrect ().
>>>>>>>>
>>>> The curl command I am using is here:
>>>>
>>>> $curl -i -b cookies.txt -c cookies.txt -H "Accept: application/json" -H
>>>> "Content-type: multipart/form-data" -F
>>>> "developmentCertificate=@/Users/yavuz/Documents/Certificates.p12" -F
>>>> "developmentPassphrase=pass" -X POST
>>>> http://localhost:8080/ag-push/rest/applications/8055d0a9-ed30-463c-9ac3-baf8cee39ebc/iOS
>>>>
>>>> As far as I could see, Bad Request is returned if
>>>> developmentCertificate and/or developmentPassphrase is null (in my case,
>>>> productionCertificate/Passphrase are already null). Therefore, in order to
>>>> make sure my Certificates.p12 does not read null , I switched to master
>>>> branch, and executed the following command successfully and add my variant:
>>>>
>>>> $curl -i -b cookies.txt -c cookies.txt -H "Accept: application/json" -H
>>>> "Content-type: multipart/form-data" -F
>>>> "certificate=@/Users/yavuz/Documents/Certificates.p12" -F "passphrase=pass"
>>>> -X POST
>>>> http://localhost:8080/ag-push/rest/applications/688d0fe1-4cc2-4606-ab10-09660620b483/iOS
>>>>
>>>> Any ideas why I might be getting this error, or any
>>>> suggestions/directions are most appreciated.
>>>>
>>>> Kind regards,
>>>>
>>>> ---
>>>> Yavuz Selim Yilmaz
>>>> SUNY at Buffalo
>>>> Computer Science and Engineering
>>>> PhD Candidate
>>>>
>>>>
>>>> _______________________________________________
>>>> aerogear-dev mailing list
>>>> aerogear-dev at lists.jboss.org
>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>>>>
>>>
>>>
>>>
>>> --
>>> Matthias Wessendorf
>>>
>>> blog: http://matthiaswessendorf.wordpress.com/
>>> sessions: http://www.slideshare.net/mwessendorf
>>> twitter: http://twitter.com/mwessendorf
>>> _______________________________________________
>>> aerogear-dev mailing list
>>> aerogear-dev at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>>>
>>>
>>>
>>> _______________________________________________
>>> aerogear-dev mailing list
>>> aerogear-dev at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>>>
>>
>>
>>
>> --
>> Matthias Wessendorf
>>
>> blog: http://matthiaswessendorf.wordpress.com/
>> sessions: http://www.slideshare.net/mwessendorf
>> twitter: http://twitter.com/mwessendorf
>> _______________________________________________
>> aerogear-dev mailing list
>> aerogear-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>>
>>
>>
>> _______________________________________________
>> aerogear-dev mailing list
>> aerogear-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>>
>
>
>
> --
> Matthias Wessendorf
>
> blog: http://matthiaswessendorf.wordpress.com/
> sessions: http://www.slideshare.net/mwessendorf
> twitter: http://twitter.com/mwessendorf
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
>
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>



-- 
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20130711/d685e268/attachment-0001.html 


More information about the aerogear-dev mailing list