From matzew at apache.org Thu Jun 11 07:21:42 2015 From: matzew at apache.org (Matthias Wessendorf) Date: Thu, 11 Jun 2015 13:21:42 +0200 Subject: [Aerogear-users] [ANN] UnifiedPush Server 1.1.0-beta.2 is out Message-ID: Folks, the AeroGear team is happy to announce the second beta release for the UPS 1.1.0! A list of highlights: * Keycloak 1.2.0 usage (and by default enabled direct access grant) * AngularJS 1.4 usage * UI improvements * Remove GCM iteration, due to JMS batching All content for this release is is visible here: https://issues.jboss.org/browse/AGPUSH/fixforversion/12326578 The items are downloadable on Github: https://github.com/aerogear/aerogear-unifiedpush-server/releases/tag/1.1.0-beta.2 And the maven central repos should be sync'd by tomorrow morning (EU) Have fun! -Matthias -- 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-users/attachments/20150611/8a415042/attachment.html From kelvin at qantel.com Thu Jun 11 21:05:38 2015 From: kelvin at qantel.com (Kelvin Lunsford) Date: Fri, 12 Jun 2015 01:05:38 +0000 Subject: [Aerogear-users] UPS load on startup Message-ID: I'm developing a mobile app and testing USP 1.0.2 on Wildfly 8.2.0. Runs great but I've noticed that when the server is restarted registration requests from my mobile app fail until I try to access the ag-push console with a browser and bring up a login page. Then registration works. Anyone noticed this? - Kelvin From matzew at apache.org Fri Jun 12 03:00:37 2015 From: matzew at apache.org (Matthias Wessendorf) Date: Fri, 12 Jun 2015 09:00:37 +0200 Subject: [Aerogear-users] UPS load on startup In-Reply-To: References: Message-ID: hrm, that's strange - not noticed so far. Any details on the error message ? Is that reproducable w/ something like curl ? On Fri, Jun 12, 2015 at 3:05 AM, Kelvin Lunsford wrote: > I'm developing a mobile app and testing USP 1.0.2 on Wildfly 8.2.0. > > Runs great but I've noticed that when the server is restarted registration > requests from my mobile app fail until I try to access the ag-push console > with a browser and bring up a login page. Then registration works. > > Anyone noticed this? > > - Kelvin > > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > -- 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-users/attachments/20150612/5fcb20d7/attachment.html From kelvin at qantel.com Fri Jun 12 18:45:51 2015 From: kelvin at qantel.com (Kelvin Lunsford) Date: Fri, 12 Jun 2015 22:45:51 +0000 Subject: [Aerogear-users] UPS load on startup In-Reply-To: References: Message-ID: I restarted Wildfly and I had to log into the UPS console to stop the registration errors. The error callback for the plugin push.register() function returns the message "The server returned the error code 500". - Kelvin --------------------------------------------------------------------------- From: aerogear-users-bounces at lists.jboss.org [mailto:aerogear-users-bounces at lists.jboss.org] On Behalf Of Matthias Wessendorf Sent: Friday, June 12, 2015 12:01 AM To: aerogear-users at lists.jboss.org Subject: Re: [Aerogear-users] UPS load on startup hrm, that's strange - not noticed so far. Any details on the error message ? Is that reproducable w/ something like curl ?? On Fri, Jun 12, 2015 at 3:05 AM, Kelvin Lunsford wrote: I'm developing a mobile app and testing USP 1.0.2 on Wildfly 8.2.0. Runs great but I've noticed that when the server is restarted registration requests from my mobile app fail until I try to access the ag-push console with a browser and bring up a login page.? Then registration works. Anyone noticed this? - Kelvin _______________________________________________ Aerogear-users mailing list Aerogear-users at lists.jboss.org https://lists.jboss.org/mailman/listinfo/aerogear-users -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf From matzew at apache.org Sat Jun 13 02:01:01 2015 From: matzew at apache.org (Matthias Wessendorf) Date: Sat, 13 Jun 2015 08:01:01 +0200 Subject: [Aerogear-users] UPS load on startup In-Reply-To: References: Message-ID: any chance of stack trace? On Saturday, June 13, 2015, Kelvin Lunsford wrote: > I restarted Wildfly and I had to log into the UPS console to stop the > registration errors. > > The error callback for the plugin push.register() function returns the > message "The server returned the error code 500". > > - Kelvin > > > > --------------------------------------------------------------------------- > > From: aerogear-users-bounces at lists.jboss.org [mailto: > aerogear-users-bounces at lists.jboss.org ] On Behalf Of > Matthias Wessendorf > Sent: Friday, June 12, 2015 12:01 AM > To: aerogear-users at lists.jboss.org > Subject: Re: [Aerogear-users] UPS load on startup > > hrm, > > that's strange - not noticed so far. > Any details on the error message ? Is that reproducable w/ something like > curl ? > > On Fri, Jun 12, 2015 at 3:05 AM, Kelvin Lunsford > wrote: > I'm developing a mobile app and testing USP 1.0.2 on Wildfly 8.2.0. > > Runs great but I've noticed that when the server is restarted registration > requests from my mobile app fail until I try to access the ag-push console > with a browser and bring up a login page. Then registration works. > > Anyone noticed this? > > - Kelvin > > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > > > > > -- > Matthias Wessendorf > > blog: http://matthiaswessendorf.wordpress.com/ > sessions: http://www.slideshare.net/mwessendorf > twitter: http://twitter.com/mwessendorf > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > -- Sent from Gmail Mobile -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150613/917ad213/attachment.html From alexandre.balleste at udl.cat Mon Jun 15 06:29:27 2015 From: alexandre.balleste at udl.cat (=?windows-1252?Q?Alex_Ballest=E9?=) Date: Mon, 15 Jun 2015 12:29:27 +0200 Subject: [Aerogear-users] UPS load on startup In-Reply-To: References: Message-ID: <557EA907.3090707@udl.cat> Hi, I noticed the same behaviour in my aerogear test server, but I thought that was something related with openshift. If service is not used for a while seems like it become suspended until you access again. I tried to reproduce restarting the server but I couldn't... Just found something in the logs this morning after 2 days without using it. (At 2:51 I sent the notification) Log was ----------------------------- 2015/06/13 00:00:00,109 INFO [GCMPushNotificationSender] (EJB default - 2) Deleting ['0'] outdated PushMessageInformation objects 2015/06/13 12:05:30,766 INFO [org.jboss.as.osgi] (MSC service thread 1-5) JBAS011942: Stopping OSGi Framework 2015/06/15 02:51:14,161 INFO [org.jboss.as.configadmin] (ServerService Thread Pool -- 35) JBAS016200: Activating ConfigAdmin Subsystem 2015/06/15 02:51:14,264 INFO [org.jboss.as.jacorb] (ServerService Thread Pool -- 41) JBAS016300: Activating JacORB Subsystem 2015/06/15 02:51:14,356 INFO [org.jboss.as.security] (ServerService Thread Pool -- 58) JBAS013101: Activating Security Subsystem 2015/06/15 02:51:14,258 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 40) JBAS010280: Activating Infinispan subsystem. ... ... ------------------------------------- It seem like on saturday 13 service was stopped. And started again on monday 16 at 2:51 (by my notification???) . I also got this error during the startup process -------------------------- 2015/06/15 02:51:46,443 INFO [org.keycloak.adapters.as7.KeycloakAuthenticatorValve] (MSC service thread 1-5) **** using /WEB-INF/keycloak.json 2015/06/15 02:51:46,760 INFO [JPAPushMessageInformationDao] (EJB default - 2) Deleting ['2'] outdated PushMessageInformation objects 2015/06/15 02:51:46,951 INFO [org.keycloak.services.resources.KeycloakApplication] (MSC service thread 1-1) Not importing realm aerogear from resource /WEB-INF/ups-realm.json. It already exists. 2015/06/15 02:51:46,954 INFO [JPAPushMessageInformationDao] (EJB default - 1) Deleting ['2'] outdated PushMessageInformation objects 2015/06/15 02:51:46,966 WARN [com.arjuna.ats.arjuna] (EJB default - 1) ARJUNA012125: TwoPhaseCoordinator.beforeCompletion - failed for SynchronizationImple< 0:ffff0a21a655:16c5d4f8:557e75e5:f, org.hibernate.engine.transaction.synchronization.internal.RegisteredSynchronization at d8bbe6 >: javax.persistence.OptimisticLockException: org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1 at org.hibernate.ejb.AbstractEntityManagerImpl.wrapStaleStateException(AbstractEntityManagerImpl.java:1402) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1308) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1289) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1295) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.ejb.AbstractEntityManagerImpl$CallbackExceptionMapperImpl.mapManagedFlushFailure(AbstractEntityManagerImpl.java:1481) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.engine.transaction.synchronization.internal.SynchronizationCallbackCoordinatorImpl.beforeCompletion(SynchronizationCallbackCoordinatorImpl.java:109) [hibernate-core-4.0.1.Final.jar:4.0.1.Final] at org.hibernate.engine.transaction.synchronization.internal.RegisteredSynchronization.beforeCompletion(RegisteredSynchronization.java:53) [hibernate-core-4.0.1.Final.jar:4.0.1.Final] ------------------------ Later another generated message at 2:57 was received an processed fine. I don't know if it's something related with hosting or with UPS. I'm running 1.0.2 too. Sorry if this information is not relevant Alex Ballest? El 13/06/15 a les 08:01, Matthias Wessendorf ha escrit: > any chance of stack trace? > > On Saturday, June 13, 2015, Kelvin Lunsford > wrote: > > I restarted Wildfly and I had to log into the UPS console to stop > the registration errors. > > The error callback for the plugin push.register() function returns > the message "The server returned the error code 500". > > - Kelvin > > > > --------------------------------------------------------------------------- > > From: aerogear-users-bounces at lists.jboss.org > [mailto:aerogear-users-bounces at lists.jboss.org ] On > Behalf Of Matthias Wessendorf > Sent: Friday, June 12, 2015 12:01 AM > To: aerogear-users at lists.jboss.org > Subject: Re: [Aerogear-users] UPS load on startup > > hrm, > > that's strange - not noticed so far. > Any details on the error message ? Is that reproducable w/ > something like curl ? > > On Fri, Jun 12, 2015 at 3:05 AM, Kelvin Lunsford > > wrote: > I'm developing a mobile app and testing USP 1.0.2 on Wildfly 8.2.0. > > Runs great but I've noticed that when the server is restarted > registration requests from my mobile app fail until I try to > access the ag-push console with a browser and bring up a login > page. Then registration works. > > Anyone noticed this? > > - Kelvin > > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > > > > > -- > Matthias Wessendorf > > blog: http://matthiaswessendorf.wordpress.com/ > sessions: http://www.slideshare.net/mwessendorf > twitter: http://twitter.com/mwessendorf > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > > > > -- > Sent from Gmail Mobile > > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users -- Alexandre Ballest? Crevill?n alexandre.balleste at udl.cat ==================== Universitat de Lleida ?rea de sistemes d'Informaci? i Comunicacions Analista/Programador University of Lleida Information and Communication Systems Service Tlf: +34 973 702148 Fax: +34 973 702130 ===================== Av?s legal/Aviso legal/Avertiment legal/Legal notice -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150615/99b78a85/attachment-0001.html From matzew at apache.org Mon Jun 15 07:09:51 2015 From: matzew at apache.org (Matthias Wessendorf) Date: Mon, 15 Jun 2015 13:09:51 +0200 Subject: [Aerogear-users] UPS load on startup In-Reply-To: <557EA907.3090707@udl.cat> References: <557EA907.3090707@udl.cat> Message-ID: Hi, yes, openshift gets susspended after 48 hours (I think) of inactivity - but I think your error is different to Kevin's Kevin any chance to get a log file / stack-trace from the 500 ? Is that just on Android/Cordova, or does that also reproduce w/ doing (test) registration w/ curl, like: https://aerogear.org/docs/specs/aerogear-unifiedpush-rest-1.0.x/registry/device/index.html#POST Thanks On Mon, Jun 15, 2015 at 12:29 PM, Alex Ballest? wrote: > Hi, I noticed the same behaviour in my aerogear test server, but I > thought that was something related with openshift. If service is not used > for a while seems like it become suspended until you access again. > > I tried to reproduce restarting the server but I couldn't... Just found > something in the logs this morning after 2 days without using it. (At 2:51 > I sent the notification) > > Log was > ----------------------------- > 2015/06/13 00:00:00,109 INFO [GCMPushNotificationSender] (EJB default - > 2) Deleting ['0'] outdated PushMessageInformation objects > 2015/06/13 12:05:30,766 INFO [org.jboss.as.osgi] (MSC service thread 1-5) > JBAS011942: Stopping OSGi Framework > 2015/06/15 02:51:14,161 INFO [org.jboss.as.configadmin] (ServerService > Thread Pool -- 35) JBAS016200: Activating ConfigAdmin Subsystem > 2015/06/15 02:51:14,264 INFO [org.jboss.as.jacorb] (ServerService Thread > Pool -- 41) JBAS016300: Activating JacORB Subsystem > 2015/06/15 02:51:14,356 INFO [org.jboss.as.security] (ServerService > Thread Pool -- 58) JBAS013101: Activating Security Subsystem > 2015/06/15 02:51:14,258 INFO [org.jboss.as.clustering.infinispan] > (ServerService Thread Pool -- 40) JBAS010280: Activating Infinispan > subsystem. > ... > ... > ------------------------------------- > > It seem like on saturday 13 service was stopped. And started again on > monday 16 at 2:51 (by my notification???) . I also got this error during > the startup process > > -------------------------- > 2015/06/15 02:51:46,443 INFO > [org.keycloak.adapters.as7.KeycloakAuthenticatorValve] (MSC service thread > 1-5) **** using /WEB-INF/keycloak.json > 2015/06/15 02:51:46,760 INFO [JPAPushMessageInformationDao] (EJB default > - 2) Deleting ['2'] outdated PushMessageInformation objects > 2015/06/15 02:51:46,951 INFO > [org.keycloak.services.resources.KeycloakApplication] (MSC service thread > 1-1) Not importing realm aerogear from resource /WEB-INF/ups-realm.json. > It already exists. > 2015/06/15 02:51:46,954 INFO [JPAPushMessageInformationDao] (EJB default > - 1) Deleting ['2'] outdated PushMessageInformation objects > 2015/06/15 02:51:46,966 WARN [com.arjuna.ats.arjuna] (EJB default - 1) > ARJUNA012125: TwoPhaseCoordinator.beforeCompletion - failed for > SynchronizationImple< 0:ffff0a21a655:16c5d4f8:557e75e5:f, > org.hibernate.engine.transaction.synchronization.internal.RegisteredSynchronization at d8bbe6 > >: javax.persistence.OptimisticLockException: > org.hibernate.StaleStateException: Batch update returned unexpected row > count from update [0]; actual row count: 0; expected: 1 > at > org.hibernate.ejb.AbstractEntityManagerImpl.wrapStaleStateException(AbstractEntityManagerImpl.java:1402) > [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final] > at > org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1308) > [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final] > at > org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1289) > [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final] > at > org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1295) > [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final] > at > org.hibernate.ejb.AbstractEntityManagerImpl$CallbackExceptionMapperImpl.mapManagedFlushFailure(AbstractEntityManagerImpl.java:1481) > [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final] > at > org.hibernate.engine.transaction.synchronization.internal.SynchronizationCallbackCoordinatorImpl.beforeCompletion(SynchronizationCallbackCoordinatorImpl.java:109) > [hibernate-core-4.0.1.Final.jar:4.0.1.Final] > at > org.hibernate.engine.transaction.synchronization.internal.RegisteredSynchronization.beforeCompletion(RegisteredSynchronization.java:53) > [hibernate-core-4.0.1.Final.jar:4.0.1.Final] > ------------------------ > > Later another generated message at 2:57 was received an processed fine. I > don't know if it's something related with hosting or with UPS. I'm running > 1.0.2 too. > > Sorry if this information is not relevant > > Alex Ballest? > > El 13/06/15 a les 08:01, Matthias Wessendorf ha escrit: > > any chance of stack trace? > > On Saturday, June 13, 2015, Kelvin Lunsford wrote: > >> I restarted Wildfly and I had to log into the UPS console to stop the >> registration errors. >> >> The error callback for the plugin push.register() function returns the >> message "The server returned the error code 500". >> >> - Kelvin >> >> >> >> >> --------------------------------------------------------------------------- >> >> From: aerogear-users-bounces at lists.jboss.org [mailto: >> aerogear-users-bounces at lists.jboss.org] On Behalf Of Matthias Wessendorf >> Sent: Friday, June 12, 2015 12:01 AM >> To: aerogear-users at lists.jboss.org >> Subject: Re: [Aerogear-users] UPS load on startup >> >> hrm, >> >> that's strange - not noticed so far. >> Any details on the error message ? Is that reproducable w/ something like >> curl ? >> >> On Fri, Jun 12, 2015 at 3:05 AM, Kelvin Lunsford >> wrote: >> I'm developing a mobile app and testing USP 1.0.2 on Wildfly 8.2.0. >> >> Runs great but I've noticed that when the server is restarted >> registration requests from my mobile app fail until I try to access the >> ag-push console with a browser and bring up a login page. Then >> registration works. >> >> Anyone noticed this? >> >> - Kelvin >> >> >> _______________________________________________ >> Aerogear-users mailing list >> Aerogear-users at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-users >> >> >> >> >> -- >> Matthias Wessendorf >> >> blog: http://matthiaswessendorf.wordpress.com/ >> sessions: http://www.slideshare.net/mwessendorf >> twitter: http://twitter.com/mwessendorf >> >> _______________________________________________ >> Aerogear-users mailing list >> Aerogear-users at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-users >> > > > -- > Sent from Gmail Mobile > > > _______________________________________________ > Aerogear-users mailing listAerogear-users at lists.jboss.orghttps://lists.jboss.org/mailman/listinfo/aerogear-users > > > > -- > > Alexandre Ballest? Crevill?n alexandre.balleste at udl.cat > ==================== > Universitat de Lleida > > ?rea de sistemes d'Informaci? i Comunicacions > > Analista/Programador > > University of Lleida > > Information and Communication Systems Service > > Tlf: +34 973 702148 > > Fax: +34 973 702130 > > ===================== > > Av?s legal/Aviso legal/Avertiment legal/Legal notice > > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > > -- 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-users/attachments/20150615/090cf97e/attachment.html From kelvin at qantel.com Tue Jun 16 21:31:21 2015 From: kelvin at qantel.com (Kelvin Lunsford) Date: Wed, 17 Jun 2015 01:31:21 +0000 Subject: [Aerogear-users] UPS load on startup In-Reply-To: References: <557EA907.3090707@udl.cat> Message-ID: <1a6c356e360541ccb02e88b7b2a92875@stantz.qantel.com> I tried to add UPS logging by following the instructions in the UPS user guide but couldn't get it working. This is what I see in the server.log file. ... 2015-06-16 15:49:52,284 INFO [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:9990/management 2015-06-16 15:49:52,284 INFO [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990 2015-06-16 15:49:52,284 INFO [org.jboss.as] (Controller Boot Thread) JBAS015874: WildFly 8.2.0.Final "Tweek" started in 13573ms - Started 579 of 637 services (101 services are lazy, passive or on-demand) 2015-06-16 15:50:27,011 ERROR [io.undertow.request] (default task-1) UT005023: Exception handling request to /ag-push/rest/registry/device: java.lang.RuntimeException: Unable to resolve realm public key remotely, status = 404 at org.keycloak.adapters.AdapterDeploymentContext.resolveRealmKey(AdapterDeploymentContext.java:69) [keycloak-adapter-core-1.0.4.Final.jar:] at org.keycloak.adapters.AdapterDeploymentContext.resolveDeployment(AdapterDeploymentContext.java:55) [keycloak-adapter-core-1.0.4.Final.jar:] at org.keycloak.adapters.undertow.ServletKeycloakAuthMech.authenticate(ServletKeycloakAuthMech.java:54) [keycloak-undertow-adapter-1.0.4.Final.jar:] at io.undertow.security.impl.SecurityContextImpl$AuthAttempter.transition(SecurityContextImpl.java:281) [undertow-core-1.1.0.Final.jar:1.1.0.Final] at io.undertow.security.impl.SecurityContextImpl$AuthAttempter.transition(SecurityContextImpl.java:298) [undertow-core-1.1.0.Final.jar:1.1.0.Final] at io.undertow.security.impl.SecurityContextImpl$AuthAttempter.access$100(SecurityContextImpl.java:268) [undertow-core-1.1.0.Final.jar:1.1.0.Final] at io.undertow.security.impl.SecurityContextImpl.attemptAuthentication(SecurityContextImpl.java:131) [undertow-core-1.1.0.Final.jar:1.1.0.Final] at io.undertow.security.impl.SecurityContextImpl.authTransition(SecurityContextImpl.java:106) [undertow-core-1.1.0.Final.jar:1.1.0.Final] at io.undertow.security.impl.SecurityContextImpl.authenticate(SecurityContextImpl.java:99) [undertow-core-1.1.0.Final.jar:1.1.0.Final] at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:54) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.1.0.Final.jar:1.1.0.Final] at io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:51) [undertow-core-1.1.0.Final.jar:1.1.0.Final] at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45) [undertow-core-1.1.0.Final.jar:1.1.0.Final] at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:63) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] at io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:56) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58) [undertow-core-1.1.0.Final.jar:1.1.0.Final] at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76) [undertow-core-1.1.0.Final.jar:1.1.0.Final] at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.1.0.Final.jar:1.1.0.Final] at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.1.0.Final.jar:1.1.0.Final] at org.keycloak.adapters.undertow.ServletPreAuthActionsHandler.handleRequest(ServletPreAuthActionsHandler.java:69) [keycloak-undertow-adapter-1.0.4.Final.jar:] at org.keycloak.adapters.undertow.ServletPreAuthActionsHandler.handleRequest(ServletPreAuthActionsHandler.java:69) [keycloak-undertow-adapter-1.0.4.Final.jar:] at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.1.0.Final.jar:1.1.0.Final] at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:261) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:247) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:76) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:166) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] at io.undertow.server.Connectors.executeRootHandler(Connectors.java:197) [undertow-core-1.1.0.Final.jar:1.1.0.Final] at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:759) [undertow-core-1.1.0.Final.jar:1.1.0.Final] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.7.0_71] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_71] at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_71] The error occurs each time I try to do a registration after server restart, until I log into the UPS console, then the errors stop. - Kelvin ---------------------------------------------------------------------------------- From: aerogear-users-bounces at lists.jboss.org [mailto:aerogear-users-bounces at lists.jboss.org] On Behalf Of Matthias Wessendorf Sent: Monday, June 15, 2015 4:10 AM To: aerogear-users at lists.jboss.org Subject: Re: [Aerogear-users] UPS load on startup Hi, yes, openshift gets susspended after 48 hours (I think) of inactivity - but I think your error is different to Kevin's? Kevin any chance to get a log file / stack-trace from the 500 ?? Is that just on Android/Cordova, or does that also reproduce w/ doing (test) registration w/ curl, like: https://aerogear.org/docs/specs/aerogear-unifiedpush-rest-1.0.x/registry/device/index.html#POST Thanks On Mon, Jun 15, 2015 at 12:29 PM, Alex Ballest? wrote: Hi, I noticed the same behaviour in my aerogear test server, but I thought that was something related with openshift. If service is not used for a while seems like it become suspended until you access again. I tried to reproduce restarting the server but I couldn't... Just found something in the logs this morning after 2 days without using it. (At 2:51 I sent the notification) Log was ----------------------------- 2015/06/13 00:00:00,109 INFO? [GCMPushNotificationSender] (EJB default - 2) Deleting ['0'] outdated PushMessageInformation objects 2015/06/13 12:05:30,766 INFO? [org.jboss.as.osgi] (MSC service thread 1-5) JBAS011942: Stopping OSGi Framework 2015/06/15 02:51:14,161 INFO? [org.jboss.as.configadmin] (ServerService Thread Pool -- 35) JBAS016200: Activating ConfigAdmin Subsystem 2015/06/15 02:51:14,264 INFO? [org.jboss.as.jacorb] (ServerService Thread Pool -- 41) JBAS016300: Activating JacORB Subsystem 2015/06/15 02:51:14,356 INFO? [org.jboss.as.security] (ServerService Thread Pool -- 58) JBAS013101: Activating Security Subsystem 2015/06/15 02:51:14,258 INFO? [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 40) JBAS010280: Activating Infinispan subsystem. ... ... ------------------------------------- ??? It seem like on saturday 13 service was stopped. And started again on monday 16 at 2:51 (by my notification???) . I also got this error during the startup process -------------------------- 2015/06/15 02:51:46,443 INFO? [org.keycloak.adapters.as7.KeycloakAuthenticatorValve] (MSC service thread 1-5) **** using /WEB-INF/keycloak.json 2015/06/15 02:51:46,760 INFO? [JPAPushMessageInformationDao] (EJB default - 2) Deleting ['2'] outdated PushMessageInformation objects 2015/06/15 02:51:46,951 INFO? [org.keycloak.services.resources.KeycloakApplication] (MSC service thread 1-1) Not importing realm aerogear from resource /WEB-INF/ups-realm.json.? It already exists. 2015/06/15 02:51:46,954 INFO? [JPAPushMessageInformationDao] (EJB default - 1) Deleting ['2'] outdated PushMessageInformation objects 2015/06/15 02:51:46,966 WARN? [com.arjuna.ats.arjuna] (EJB default - 1) ARJUNA012125: TwoPhaseCoordinator.beforeCompletion - failed for SynchronizationImple< 0:ffff0a21a655:16c5d4f8:557e75e5:f, org.hibernate.engine.transaction.synchronization.internal.RegisteredSynchronization at d8bbe6 >: javax.persistence.OptimisticLockException: org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1 ??? at org.hibernate.ejb.AbstractEntityManagerImpl.wrapStaleStateException(AbstractEntityManagerImpl.java:1402) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final] ??? at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1308) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final] ??? at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1289) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final] ??? at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1295) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final] ??? at org.hibernate.ejb.AbstractEntityManagerImpl$CallbackExceptionMapperImpl.mapManagedFlushFailure(AbstractEntityManagerImpl.java:1481) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final] ??? at org.hibernate.engine.transaction.synchronization.internal.SynchronizationCallbackCoordinatorImpl.beforeCompletion(SynchronizationCallbackCoordinatorImpl.java:109) [hibernate-core-4.0.1.Final.jar:4.0.1.Final] ??? at org.hibernate.engine.transaction.synchronization.internal.RegisteredSynchronization.beforeCompletion(RegisteredSynchronization.java:53) [hibernate-core-4.0.1.Final.jar:4.0.1.Final] ------------------------ Later another generated message at 2:57 was received an processed fine. I don't know if it's something related with hosting or with UPS. I'm running 1.0.2 too. Sorry if this information is not relevant Alex Ballest? El 13/06/15 a les 08:01, Matthias Wessendorf ha escrit: any chance of stack trace? On Saturday, June 13, 2015, Kelvin Lunsford wrote: I restarted Wildfly and I had to log into the UPS console to stop the registration errors. The error callback for the plugin push.register() function returns the message "The server returned the error code 500". - Kelvin --------------------------------------------------------------------------- From: aerogear-users-bounces at lists.jboss.org [mailto:aerogear-users-bounces at lists.jboss.org] On Behalf Of Matthias Wessendorf Sent: Friday, June 12, 2015 12:01 AM To: aerogear-users at lists.jboss.org Subject: Re: [Aerogear-users] UPS load on startup hrm, that's strange - not noticed so far. Any details on the error message ? Is that reproducable w/ something like curl ?? On Fri, Jun 12, 2015 at 3:05 AM, Kelvin Lunsford wrote: I'm developing a mobile app and testing USP 1.0.2 on Wildfly 8.2.0. Runs great but I've noticed that when the server is restarted registration requests from my mobile app fail until I try to access the ag-push console with a browser and bring up a login page.? Then registration works. Anyone noticed this? - Kelvin _______________________________________________ Aerogear-users mailing list Aerogear-users at lists.jboss.org https://lists.jboss.org/mailman/listinfo/aerogear-users -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf _______________________________________________ Aerogear-users mailing list Aerogear-users at lists.jboss.org https://lists.jboss.org/mailman/listinfo/aerogear-users -- Sent from Gmail Mobile _______________________________________________ Aerogear-users mailing list Aerogear-users at lists.jboss.org https://lists.jboss.org/mailman/listinfo/aerogear-users -- Alexandre Ballest? Crevill?n alexandre.balleste at udl.cat ==================== Universitat de Lleida ?rea de sistemes d'Informaci? i Comunicacions Analista/Programador University of Lleida Information and Communication Systems Service Tlf: +34 973 702148 Fax: +34 973 702130 ===================== Av?s legal/Aviso legal/Avertiment legal/Legal notice _______________________________________________ Aerogear-users mailing list Aerogear-users at lists.jboss.org https://lists.jboss.org/mailman/listinfo/aerogear-users -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf From matzew at apache.org Wed Jun 17 05:06:59 2015 From: matzew at apache.org (Matthias Wessendorf) Date: Wed, 17 Jun 2015 11:06:59 +0200 Subject: [Aerogear-users] UPS load on startup In-Reply-To: <1a6c356e360541ccb02e88b7b2a92875@stantz.qantel.com> References: <557EA907.3090707@udl.cat> <1a6c356e360541ccb02e88b7b2a92875@stantz.qantel.com> Message-ID: Hi Kevin, thanks for the feedback! Here is what I did to reproduce your issue (w/o success): * I have deployed UPS 1.0.2 into a (full profile) WF 8.2. * start the server (reset the admin password) * create app and (dummy) variant (for Android), and noted the variantID:secret * shutdown WF * start WF * did a curl agains the registration endpoint (got a 200) * logged in, and seeing one device is registered. Here is the CURL, I used (note the -u value ;-)) curl -u "variantID:secret" -v -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"deviceToken" : "a152f21a-d327-4303-99d-7118c353eca1a152f21a-d327-4303-989d-7118c353eca1a152f21a-d327-4303-989d-7118c353eca1a152f21a-d327-4303-989d-7118c353eca1a152f21a-d327-4303-989d-7118c353eca1"}' http://127.0.0.1:8080/ag-push/rest/registry/device That worked fine. My question is: does _this_ also generate you the 404 error? Or is that something you are "just" seeing from the AeroGear Registration SDK? (e.g. for Android/iOS or Cordova). PS: the same 'test' passes with the 1.1.0-Final-SNAPSHOT build I did locally Thanks! Matthias On Wed, Jun 17, 2015 at 3:31 AM, Kelvin Lunsford wrote: > I tried to add UPS logging by following the instructions in the UPS user > guide but couldn't get it working. > > This is what I see in the server.log file. > > ... > > 2015-06-16 15:49:52,284 INFO [org.jboss.as] (Controller Boot Thread) > JBAS015961: Http management interface listening on > http://127.0.0.1:9990/management > 2015-06-16 15:49:52,284 INFO [org.jboss.as] (Controller Boot Thread) > JBAS015951: Admin console listening on http://127.0.0.1:9990 > 2015-06-16 15:49:52,284 INFO [org.jboss.as] (Controller Boot Thread) > JBAS015874: WildFly 8.2.0.Final "Tweek" started in 13573ms - Started 579 of > 637 services (101 services are lazy, passive or on-demand) > 2015-06-16 15:50:27,011 ERROR [io.undertow.request] (default task-1) > UT005023: Exception handling request to /ag-push/rest/registry/device: > java.lang.RuntimeException: Unable to resolve realm public key remotely, > status = 404 > at > org.keycloak.adapters.AdapterDeploymentContext.resolveRealmKey(AdapterDeploymentContext.java:69) > [keycloak-adapter-core-1.0.4.Final.jar:] > at > org.keycloak.adapters.AdapterDeploymentContext.resolveDeployment(AdapterDeploymentContext.java:55) > [keycloak-adapter-core-1.0.4.Final.jar:] > at > org.keycloak.adapters.undertow.ServletKeycloakAuthMech.authenticate(ServletKeycloakAuthMech.java:54) > [keycloak-undertow-adapter-1.0.4.Final.jar:] > at > io.undertow.security.impl.SecurityContextImpl$AuthAttempter.transition(SecurityContextImpl.java:281) > [undertow-core-1.1.0.Final.jar:1.1.0.Final] > at > io.undertow.security.impl.SecurityContextImpl$AuthAttempter.transition(SecurityContextImpl.java:298) > [undertow-core-1.1.0.Final.jar:1.1.0.Final] > at > io.undertow.security.impl.SecurityContextImpl$AuthAttempter.access$100(SecurityContextImpl.java:268) > [undertow-core-1.1.0.Final.jar:1.1.0.Final] > at > io.undertow.security.impl.SecurityContextImpl.attemptAuthentication(SecurityContextImpl.java:131) > [undertow-core-1.1.0.Final.jar:1.1.0.Final] > at > io.undertow.security.impl.SecurityContextImpl.authTransition(SecurityContextImpl.java:106) > [undertow-core-1.1.0.Final.jar:1.1.0.Final] > at > io.undertow.security.impl.SecurityContextImpl.authenticate(SecurityContextImpl.java:99) > [undertow-core-1.1.0.Final.jar:1.1.0.Final] > at > io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:54) > [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] > at > io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) > [undertow-core-1.1.0.Final.jar:1.1.0.Final] > at > io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:51) > [undertow-core-1.1.0.Final.jar:1.1.0.Final] > at > io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45) > [undertow-core-1.1.0.Final.jar:1.1.0.Final] > at > io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:63) > [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] > at > io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:56) > [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] > at > io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58) > [undertow-core-1.1.0.Final.jar:1.1.0.Final] > at > io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70) > [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] > at > io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76) > [undertow-core-1.1.0.Final.jar:1.1.0.Final] > at > io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) > [undertow-core-1.1.0.Final.jar:1.1.0.Final] > at > org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61) > at > io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) > [undertow-core-1.1.0.Final.jar:1.1.0.Final] > at > org.keycloak.adapters.undertow.ServletPreAuthActionsHandler.handleRequest(ServletPreAuthActionsHandler.java:69) > [keycloak-undertow-adapter-1.0.4.Final.jar:] > at > org.keycloak.adapters.undertow.ServletPreAuthActionsHandler.handleRequest(ServletPreAuthActionsHandler.java:69) > [keycloak-undertow-adapter-1.0.4.Final.jar:] > at > io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) > [undertow-core-1.1.0.Final.jar:1.1.0.Final] > at > io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:261) > [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] > at > io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:247) > [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] > at > io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:76) > [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] > at > io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:166) > [undertow-servlet-1.1.0.Final.jar:1.1.0.Final] > at > io.undertow.server.Connectors.executeRootHandler(Connectors.java:197) > [undertow-core-1.1.0.Final.jar:1.1.0.Final] > at > io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:759) > [undertow-core-1.1.0.Final.jar:1.1.0.Final] > at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown > Source) [rt.jar:1.7.0_71] > at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown > Source) [rt.jar:1.7.0_71] > at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_71] > > > The error occurs each time I try to do a registration after server > restart, until I log into the UPS console, then the errors stop. > > - Kelvin > > > > > > ---------------------------------------------------------------------------------- > > From: aerogear-users-bounces at lists.jboss.org [mailto: > aerogear-users-bounces at lists.jboss.org] On Behalf Of Matthias Wessendorf > Sent: Monday, June 15, 2015 4:10 AM > To: aerogear-users at lists.jboss.org > Subject: Re: [Aerogear-users] UPS load on startup > > Hi, > > yes, openshift gets susspended after 48 hours (I think) of inactivity - > but I think your error is different to Kevin's > > Kevin any chance to get a log file / stack-trace from the 500 ? > > Is that just on Android/Cordova, or does that also reproduce w/ doing > (test) registration w/ curl, like: > > https://aerogear.org/docs/specs/aerogear-unifiedpush-rest-1.0.x/registry/device/index.html#POST > > Thanks > > On Mon, Jun 15, 2015 at 12:29 PM, Alex Ballest? < > alexandre.balleste at udl.cat> wrote: > Hi, I noticed the same behaviour in my aerogear test server, but I thought > that was something related with openshift. If service is not used for a > while seems like it become suspended until you access again. > > I tried to reproduce restarting the server but I couldn't... Just found > something in the logs this morning after 2 days without using it. (At 2:51 > I sent the notification) > > Log was > ----------------------------- > 2015/06/13 00:00:00,109 INFO [GCMPushNotificationSender] (EJB default - > 2) Deleting ['0'] outdated PushMessageInformation objects > 2015/06/13 12:05:30,766 INFO [org.jboss.as.osgi] (MSC service thread 1-5) > JBAS011942: Stopping OSGi Framework > 2015/06/15 02:51:14,161 INFO [org.jboss.as.configadmin] (ServerService > Thread Pool -- 35) JBAS016200: Activating ConfigAdmin Subsystem > 2015/06/15 02:51:14,264 INFO [org.jboss.as.jacorb] (ServerService Thread > Pool -- 41) JBAS016300: Activating JacORB Subsystem > 2015/06/15 02:51:14,356 INFO [org.jboss.as.security] (ServerService > Thread Pool -- 58) JBAS013101: Activating Security Subsystem > 2015/06/15 02:51:14,258 INFO [org.jboss.as.clustering.infinispan] > (ServerService Thread Pool -- 40) JBAS010280: Activating Infinispan > subsystem. > ... > ... > ------------------------------------- > > It seem like on saturday 13 service was stopped. And started again on > monday 16 at 2:51 (by my notification???) . I also got this error during > the startup process > > -------------------------- > 2015/06/15 02:51:46,443 INFO > [org.keycloak.adapters.as7.KeycloakAuthenticatorValve] (MSC service thread > 1-5) **** using /WEB-INF/keycloak.json > 2015/06/15 02:51:46,760 INFO [JPAPushMessageInformationDao] (EJB default > - 2) Deleting ['2'] outdated PushMessageInformation objects > 2015/06/15 02:51:46,951 INFO > [org.keycloak.services.resources.KeycloakApplication] (MSC service thread > 1-1) Not importing realm aerogear from resource /WEB-INF/ups-realm.json. > It already exists. > 2015/06/15 02:51:46,954 INFO [JPAPushMessageInformationDao] (EJB default > - 1) Deleting ['2'] outdated PushMessageInformation objects > 2015/06/15 02:51:46,966 WARN [com.arjuna.ats.arjuna] (EJB default - 1) > ARJUNA012125: TwoPhaseCoordinator.beforeCompletion - failed for > SynchronizationImple< 0:ffff0a21a655:16c5d4f8:557e75e5:f, > org.hibernate.engine.transaction.synchronization.internal.RegisteredSynchronization at d8bbe6 > >: javax.persistence.OptimisticLockException: > org.hibernate.StaleStateException: Batch update returned unexpected row > count from update [0]; actual row count: 0; expected: 1 > at > org.hibernate.ejb.AbstractEntityManagerImpl.wrapStaleStateException(AbstractEntityManagerImpl.java:1402) > [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final] > at > org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1308) > [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final] > at > org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1289) > [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final] > at > org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1295) > [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final] > at > org.hibernate.ejb.AbstractEntityManagerImpl$CallbackExceptionMapperImpl.mapManagedFlushFailure(AbstractEntityManagerImpl.java:1481) > [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final] > at > org.hibernate.engine.transaction.synchronization.internal.SynchronizationCallbackCoordinatorImpl.beforeCompletion(SynchronizationCallbackCoordinatorImpl.java:109) > [hibernate-core-4.0.1.Final.jar:4.0.1.Final] > at > org.hibernate.engine.transaction.synchronization.internal.RegisteredSynchronization.beforeCompletion(RegisteredSynchronization.java:53) > [hibernate-core-4.0.1.Final.jar:4.0.1.Final] > ------------------------ > > Later another generated message at 2:57 was received an processed fine. I > don't know if it's something related with hosting or with UPS. I'm running > 1.0.2 too. > > Sorry if this information is not relevant > > Alex Ballest? > > El 13/06/15 a les 08:01, Matthias Wessendorf ha escrit: > any chance of stack trace? > > On Saturday, June 13, 2015, Kelvin Lunsford wrote: > I restarted Wildfly and I had to log into the UPS console to stop the > registration errors. > > The error callback for the plugin push.register() function returns the > message "The server returned the error code 500". > > - Kelvin > > > > --------------------------------------------------------------------------- > > From: aerogear-users-bounces at lists.jboss.org [mailto: > aerogear-users-bounces at lists.jboss.org] On Behalf Of Matthias Wessendorf > Sent: Friday, June 12, 2015 12:01 AM > To: aerogear-users at lists.jboss.org > Subject: Re: [Aerogear-users] UPS load on startup > > hrm, > > that's strange - not noticed so far. > Any details on the error message ? Is that reproducable w/ something like > curl ? > > On Fri, Jun 12, 2015 at 3:05 AM, Kelvin Lunsford > wrote: > I'm developing a mobile app and testing USP 1.0.2 on Wildfly 8.2.0. > > Runs great but I've noticed that when the server is restarted registration > requests from my mobile app fail until I try to access the ag-push console > with a browser and bring up a login page. Then registration works. > > Anyone noticed this? > > - Kelvin > > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > > > > > -- > Matthias Wessendorf > > blog: http://matthiaswessendorf.wordpress.com/ > sessions: http://www.slideshare.net/mwessendorf > twitter: http://twitter.com/mwessendorf > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > > > -- > Sent from Gmail Mobile > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > > -- > Alexandre Ballest? Crevill?n alexandre.balleste at udl.cat > ==================== > Universitat de Lleida > ?rea de sistemes d'Informaci? i Comunicacions > Analista/Programador > > University of Lleida > Information and Communication Systems Service > > Tlf: +34 973 702148 > Fax: +34 973 702130 > ===================== > Av?s legal/Aviso legal/Avertiment legal/Legal notice > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > > > > > -- > Matthias Wessendorf > > blog: http://matthiaswessendorf.wordpress.com/ > sessions: http://www.slideshare.net/mwessendorf > twitter: http://twitter.com/mwessendorf > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > -- 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-users/attachments/20150617/ec4d3642/attachment-0001.html From niko at whitebox.one Wed Jun 17 09:06:11 2015 From: niko at whitebox.one (Niko - Whitebox.one) Date: Wed, 17 Jun 2015 16:06:11 +0300 Subject: [Aerogear-users] AeroGear Crypto API on iOS with AES-GCM Message-ID: <0bfd0ae971908219c3a6efeb7ba0f12a@neagee.net> Hi, I am interested in your crypto API specially on iOS and via the cordova plugin. The docs at https://aerogear.org/docs/specs/aerogear-crypto/ clearly state that on iOS the GCM mode for symmetric AES encryption is not supported (because iOS CommonCrypto itself does not provide it as a public interface) And reading the latest code in the corresponding cordova plugin tells me the same. Nevertheless, the docs of the cordova plugin at https://aerogear.org/docs/specs/aerogear-cordova/AeroGear.Crypto.html and https://github.com/edewit/aerogear-crypto-cordova/blob/master/README.md state the contrary: it seemslike GCM is supported both on iOS and android. So my 2 questions are: - Is GCM mode for AES encryption supported on iOS aerogear crypto module (and the cordova plugin) ? (my bet is no) - If not, how difficult would it be to use the private API in iOS CommonCrypto ? I didnt try it myself, i have just been reading the code.... Thanks in advance :) Niko -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150617/64f4b179/attachment.html From michi.oshima at gmail.com Wed Jun 17 13:14:12 2015 From: michi.oshima at gmail.com (mo) Date: Wed, 17 Jun 2015 10:14:12 -0700 (MST) Subject: [Aerogear-users] Default heap size and OOM Message-ID: <1434561252592-56.post@n5.nabble.com> Hi, We use the OpenShift cartridge to deploy AeroGear UnifiedPush server version 1.0.3. We deploy it on a medium gear. Am I expected to increase the maximum heap size for JVM, set by default to be 512m? We are getting OutOfMemoryError frequently. And it's often very easily reproducible by sending 10 or so consecutive messages from AeroGear's admin console. I can provide more details, but I wanted to see if I was supposed to increase the heap size. Thank you. -- View this message in context: http://aerogear-users.1116366.n5.nabble.com/Default-heap-size-and-OOM-tp56.html Sent from the aerogear-users mailing list archive at Nabble.com. From matzew at apache.org Thu Jun 18 04:30:46 2015 From: matzew at apache.org (Matthias Wessendorf) Date: Thu, 18 Jun 2015 10:30:46 +0200 Subject: [Aerogear-users] Default heap size and OOM In-Reply-To: <1434561252592-56.post@n5.nabble.com> References: <1434561252592-56.post@n5.nabble.com> Message-ID: Hi, Farah and I are looking to remove the JGroups subsystem. This has been a boost on other cartridges (that do not need clustering) as well. Will keep you updated On Wed, Jun 17, 2015 at 7:14 PM, mo wrote: > Hi, > > We use the OpenShift cartridge > > to > deploy AeroGear UnifiedPush server version 1.0.3. We deploy it on a medium > gear. > > Am I expected to increase the maximum heap size for JVM, set by default to > be 512m? > > We are getting OutOfMemoryError frequently. And it's often very easily > reproducible by sending 10 or so consecutive messages from AeroGear's admin > console. > > I can provide more details, but I wanted to see if I was supposed to > increase the heap size. > > Thank you. > > > > -- > View this message in context: > http://aerogear-users.1116366.n5.nabble.com/Default-heap-size-and-OOM-tp56.html > Sent from the aerogear-users mailing list archive at Nabble.com. > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > -- 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-users/attachments/20150618/3c78b928/attachment.html From michi.oshima at gmail.com Thu Jun 18 10:57:30 2015 From: michi.oshima at gmail.com (mo) Date: Thu, 18 Jun 2015 07:57:30 -0700 (MST) Subject: [Aerogear-users] Default heap size and OOM In-Reply-To: References: <1434561252592-56.post@n5.nabble.com> Message-ID: <1434639450383-58.post@n5.nabble.com> Thanks, Matthias. I take your reply to mean "No, one shouldn't have to increase JVM heap size." Let me list some more parameters, in the hope that you might spot something obvious that we can correct on our side. It's been difficult to troubleshoot this, because when the problem happens we can't even SSH into the server. I believe whatever the problem is, it's exhausting resources on the server. Parameters: 1. Deployed on OpenShift using the cartridge found here: https://github.com/aerogear/openshift-origin-cartridge-aerogear-push 2. AeroGear UnifiedPush Server 1.0.3 and WildFly, MySQL 5.5, Medium gear. 3. One application is defined with one variant (simple-push), 131 installations registered. 4. We are using all default settings. We haven't customized the JVM max heap size, for example. The server log tells me "-Xmx512m". Here are the reproduction steps. This happened reliably two days ago. We couldn't reproduce this yesterday after a fresh restart of AeroGear. 1. Logged into AeroGear as admin 2. Select "Send Push" 3. Select an application 4. Hit "Send Push Notification", multiple times one after another. About 10 consecutive messages would cause OutOfMemoryError on our server. Here's a relevant snippet of the server log: 17:03:29,511 INFO [PushNotificationSenderEndpoint] (default task-28) Message submitted to PushNetworks for further processing 17:03:29,513 INFO [JPAPushMessageInformationDao] (EJB default - 6) Processing send request with '[alert=, criteria=[aliases=null, deviceTypes=null, categories=null, variants=null], time-to-live=-1]' payload 17:03:29,837 ERROR [org.jboss.as.ejb3.invocation] (EJB default - 6) JBAS014134: EJB Invocation failed on component SenderServiceImpl for method public abstract void org.jboss.aerogear.unifiedpush.message.SenderService.send(org.jboss.aerogear.unifiedpush.api.PushApplication,org.jboss.aerogear.unifiedpush.message.UnifiedPushMessage): javax.ejb.EJBException: JBAS014580: Unexpected Error at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java:187) [wildfly-ejb3-8.1.0.Final.jar:8.1.0.Final] at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:275) [wildfly-ejb3-8.1.0.Final.jar:8.1.0.Final] . . . [wildfly-ejb3-8.1.0.Final.jar:8.1.0.Final] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_79] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_79] at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_79] at org.jboss.threads.JBossThread.run(JBossThread.java:122) Caused by: java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start0(Native Method) [rt.jar:1.7.0_79] at java.lang.Thread.start(Thread.java:714) [rt.jar:1.7.0_79] at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1056) [jsse.jar:1.7.0_79] at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1332) [jsse.jar:1.7.0_79] at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1359) [jsse.jar:1.7.0_79] . . . org.jboss.aerogear.unifiedpush.message.sender.SimplePushNotificationSender.put(SimplePushNotificationSender.java:111) [unifiedpush-push-1.0.3.jar:1.0.3] at org.jboss.aerogear.unifiedpush.message.sender.SimplePushNotificationSender.sendPushMessage(SimplePushNotificationSender.java:65) [unifiedpush-push-1.0.3.jar:1.0.3] at org.jboss.aerogear.unifiedpush.message.SenderServiceImpl.send(SenderServiceImpl.java:110) [unifiedpush-push-1.0.3.jar:1.0.3] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_79] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_79] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_79] at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_79] at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52) . . . at org.jboss.as.ejb3.component.interceptors.NonPooledEJBComponentInstanceAssociatingInterceptor.processInvocation(NonPooledEJBComponentInstanceAssociatingInterceptor.java:59) [wildfly-ejb3-8.1.0.Final.jar:8.1.0.Final] 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.Final.jar:8.1.0.Final] ... 38 more -- View this message in context: http://aerogear-users.1116366.n5.nabble.com/Default-heap-size-and-OOM-tp56p58.html Sent from the aerogear-users mailing list archive at Nabble.com. From matzew at apache.org Thu Jun 18 11:17:12 2015 From: matzew at apache.org (Matthias Wessendorf) Date: Thu, 18 Jun 2015 17:17:12 +0200 Subject: [Aerogear-users] Default heap size and OOM In-Reply-To: <1434639450383-58.post@n5.nabble.com> References: <1434561252592-56.post@n5.nabble.com> <1434639450383-58.post@n5.nabble.com> Message-ID: Hi , [1] https://github.com/aerogear/openshift-origin-cartridge-aerogear-push/pull/18 On Thu, Jun 18, 2015 at 4:57 PM, mo wrote: > Thanks, Matthias. I take your reply to mean "No, one shouldn't have to > increase JVM heap size." > yeah, if you really want to, you can try tweaking the jvm heap size (as long as you still use a function of the max memory available on the gear) But also please review the changes done in https://github.com/aerogear/openshift-origin-cartridge-aerogear-push/pull/18 You could port them over to your instance. Makes sense ? More coming soon. > > Let me list some more parameters, in the hope that you might spot something > obvious that we can correct on our side. It's been difficult to > troubleshoot this, because when the problem happens we can't even SSH into > the server. I believe whatever the problem is, it's exhausting resources > on > the server. > > Parameters: > > 1. Deployed on OpenShift using the cartridge found here: > https://github.com/aerogear/openshift-origin-cartridge-aerogear-push > > 2. AeroGear UnifiedPush Server 1.0.3 and WildFly, MySQL 5.5, Medium gear. > 3. One application is defined with one variant (simple-push), 131 > installations registered. > 4. We are using all default settings. We haven't customized the JVM max > heap size, for example. The server log tells me "-Xmx512m". > > Here are the reproduction steps. This happened reliably two days ago. We > couldn't reproduce this yesterday after a fresh restart of AeroGear. > > 1. Logged into AeroGear as admin > 2. Select "Send Push" > 3. Select an application > 4. Hit "Send Push Notification", multiple times one after another. About > 10 > consecutive messages would cause OutOfMemoryError on our server. > > Here's a relevant snippet of the server log: > > [0m [0m17:03:29,511 INFO [PushNotificationSenderEndpoint] (default > task-28) Message submitted to PushNetworks for further processing > [0m [0m17:03:29,513 INFO [JPAPushMessageInformationDao] (EJB default - 6) > Processing send request with '[alert=, criteria=[aliases=null, > deviceTypes=null, categories=null, variants=null], time-to-live=-1]' > payload > [0m [31m17:03:29,837 ERROR [org.jboss.as.ejb3.invocation] (EJB default - > 6) > JBAS014134: EJB Invocation failed on component SenderServiceImpl for method > public abstract void > > org.jboss.aerogear.unifiedpush.message.SenderService.send(org.jboss.aerogear.unifiedpush.api.PushApplication,org.jboss.aerogear.unifiedpush.message.UnifiedPushMessage): > javax.ejb.EJBException: JBAS014580: Unexpected Error > at > > org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java:187) > [wildfly-ejb3-8.1.0.Final.jar:8.1.0.Final] > at > > org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:275) > [wildfly-ejb3-8.1.0.Final.jar:8.1.0.Final] > > . > . > . > > [wildfly-ejb3-8.1.0.Final.jar:8.1.0.Final] > at > > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > [rt.jar:1.7.0_79] > at > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > [rt.jar:1.7.0_79] > at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_79] > at org.jboss.threads.JBossThread.run(JBossThread.java:122) > Caused by: java.lang.OutOfMemoryError: unable to create new native thread > at java.lang.Thread.start0(Native Method) [rt.jar:1.7.0_79] > at java.lang.Thread.start(Thread.java:714) [rt.jar:1.7.0_79] > at > sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1056) > [jsse.jar:1.7.0_79] > at > > sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1332) > [jsse.jar:1.7.0_79] > at > sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1359) > [jsse.jar:1.7.0_79] > . > . > . > > > org.jboss.aerogear.unifiedpush.message.sender.SimplePushNotificationSender.put(SimplePushNotificationSender.java:111) > [unifiedpush-push-1.0.3.jar:1.0.3] > at > > org.jboss.aerogear.unifiedpush.message.sender.SimplePushNotificationSender.sendPushMessage(SimplePushNotificationSender.java:65) > [unifiedpush-push-1.0.3.jar:1.0.3] > at > > org.jboss.aerogear.unifiedpush.message.SenderServiceImpl.send(SenderServiceImpl.java:110) > [unifiedpush-push-1.0.3.jar:1.0.3] > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > [rt.jar:1.7.0_79] > at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > [rt.jar:1.7.0_79] > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > [rt.jar:1.7.0_79] > at java.lang.reflect.Method.invoke(Method.java:606) > [rt.jar:1.7.0_79] > at > > org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52) > > . > . > . > > at > > org.jboss.as.ejb3.component.interceptors.NonPooledEJBComponentInstanceAssociatingInterceptor.processInvocation(NonPooledEJBComponentInstanceAssociatingInterceptor.java:59) > [wildfly-ejb3-8.1.0.Final.jar:8.1.0.Final] > 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.Final.jar:8.1.0.Final] > ... 38 more > > > > > -- > View this message in context: > http://aerogear-users.1116366.n5.nabble.com/Default-heap-size-and-OOM-tp56p58.html > Sent from the aerogear-users mailing list archive at Nabble.com. > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > -- 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-users/attachments/20150618/d8e1eca4/attachment-0001.html From edewit at redhat.com Fri Jun 19 04:28:17 2015 From: edewit at redhat.com (Erik Jan de Wit) Date: Fri, 19 Jun 2015 10:28:17 +0200 Subject: [Aerogear-users] AeroGear Crypto API on iOS with AES-GCM In-Reply-To: <0bfd0ae971908219c3a6efeb7ba0f12a@neagee.net> References: <0bfd0ae971908219c3a6efeb7ba0f12a@neagee.net> Message-ID: I did the plugin and I'm not sure about all the Implementation details, but on iOS the plugin calls this method https://github.com/aerogear/aerogear-crypto-ios/blob/master/crypto-sdk/AGCryptoBox.m#L40 so no GCM it seems this is only done on android. On iOS we have created a wrapper around NaCI and it seems that is able to do GCM, but we don't use it there because it's not the most common algorithm. On Wed, Jun 17, 2015 at 3:06 PM, Niko - Whitebox.one wrote: > Hi, > > I am interested in your crypto API specially on iOS and via the cordova > plugin. > > The docs at > > https://aerogear.org/docs/specs/aerogear-crypto/ > > clearly state that on iOS the GCM mode for symmetric AES encryption is not > supported (because iOS CommonCrypto itself does not provide it as a public > interface) > > And reading the latest code in the corresponding cordova plugin tells me the > same. > > Nevertheless, the docs of the cordova plugin at > > https://aerogear.org/docs/specs/aerogear-cordova/AeroGear.Crypto.html > > and > > https://github.com/edewit/aerogear-crypto-cordova/blob/master/README.md > > state the contrary: it seemslike GCM is supported both on iOS and android. > > So my 2 questions are: > > - Is GCM mode for AES encryption supported on iOS aerogear crypto module > (and the cordova plugin) ? (my bet is no) > > - If not, how difficult would it be to use the private API in iOS > CommonCrypto ? I didnt try it myself, i have just been reading the code.... > > Thanks in advance :) > > Niko > > > > > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > -- Cheers, Erik Jan From bruno at abstractj.org Fri Jun 19 06:54:07 2015 From: bruno at abstractj.org (abstractj) Date: Fri, 19 Jun 2015 03:54:07 -0700 (MST) Subject: [Aerogear-users] AeroGear Crypto API on iOS with AES-GCM In-Reply-To: <0bfd0ae971908219c3a6efeb7ba0f12a@neagee.net> References: <0bfd0ae971908219c3a6efeb7ba0f12a@neagee.net> Message-ID: <1434711247990-61.post@n5.nabble.com> Good morning Niko, I hope you're doing well. Please, notice that GCM mode support is not a limitation of AG iOS, but a restriction from Apple. If the document on https://github.com/edewit/aerogear-crypto-cordova/blob/master/README.md states that GCM is support, it pretty much relates to Android. If the senteces are not clear enough, feel free to file a Jira https://issues.jboss.org/browse/AGCORDOVA. Answering your questions: - Is GCM mode for AES encryption supported on iOS aerogear crypto module (and the cordova plugin) ? No. But, we are open for suggestions. In the future we plan to make aerogear-ios-crypto pluggable. Into this way you're free to go with CommonCrypto or whatever provider you want. - If not, how difficult would it be to use the private API in iOS CommonCrypto ? I didnt try it myself, i have just been reading the code.... I'd say, would take time and the only way I see today is plugging OpenSSL. The reason why NaCl was choosen, was not only the fact of CommonCrypto not supporting GCM, but also, because it's safer[1]. If you feel like, that should be reconsidered. Feel free to create a feature request against https://issues.jboss.org/browse/agios. I hope it helps. [1] - https://cryptojedi.org/papers/aesbs-20090616.pdf -- View this message in context: http://aerogear-users.1116366.n5.nabble.com/Aerogear-users-AeroGear-Crypto-API-on-iOS-with-AES-GCM-tp55p61.html Sent from the aerogear-users mailing list archive at Nabble.com. From niko at whitebox.one Fri Jun 19 14:06:25 2015 From: niko at whitebox.one (Niko - Whitebox.one) Date: Fri, 19 Jun 2015 21:06:25 +0300 Subject: [Aerogear-users] AeroGear Crypto API on iOS with AES-GCM In-Reply-To: <1434711247990-61.post@n5.nabble.com> References: <0bfd0ae971908219c3a6efeb7ba0f12a@neagee.net> <1434711247990-61.post@n5.nabble.com> Message-ID: Thanks Bruno and Erik Jan for the quick and detailed answers! I noticed indeed that you are using the Elliptic curves crypto of NaCl on iOS, which is a smart choice. And thanks for pointing out the timing attack (tables and cache) published in 2009. I am well aware of this kind of attack on AES and GCM when lookup tables are used, but since 2009, we got some improvements, on intel CPU (AES-NI) at least, which patches are already included in openssl (Gueron et al). But I agree with you that for ARM, we are a bit left behind. About the question if elliptic curves are safer than AES-GCM, i would say it is a question of trust.... ECC is way too young for me to trust it. I prefer plain old "modulo a prime" groups, with their caveats (longer keys, more cpu intensive) and their limitations (side-channel attacks) but that have benefited from a huge community of cryptographers, coders and debuggers for now 40 years. I believe that, if used correctly, RSA, AES, GCM, and DHE can be very efficient. And I am a bit afraid of the sudden euphoria for "magical" curves. Now if we come back to our subject of interest, which is ARM and iOS, i would say that the situation is tricky, but we can find a solution, and I am interested in helping. For ARMv7 we have NEON VMULL.P8 instructions (from iPhone 3GS and above, if i am not mistaken, ARM11 doesnt have VMULL.P8) For ARMv8 we have much more, including AES HW accel... (this is in iPhone 5S and above) You can have a look at : - About binary polynominal multiplication for GCM on ARMv7: "Fast Software Polynomial Multiplication on ARM Processors using the NEON Engine." Danilo Camara, Conrado P. L. Gouvea?, Julio Lopez and Ricardo Dahab. 2010/2013 [1] their code available here [2] hasn't made it into openssl (AFAIK) and - Implementing GCM on ARMv8. Conrado P. L. Gouv?a, Julio L?pez. 2015 [3] Which details also the ARMv7 case, and was presented at the RSA Conference 2015 in the US, 2 months ago. The paper is here [4]. The code is available here [5]. In addition: It seems that the openssl implementation benefits from NEON in the GHASH (coded by Polyakov) since march 2011 [6] which means GCM timing attack is not possible (no lookup tables). Also to be checked, is the AES timing resistant bitsliced implementation from Bernstein and Schwabe that Bruno referred to in the linked PDF. It is probable that the ARM version has been integrated into openssl, but I haven't double checked. If it is not there, then it most probably is present in [5]. So... I am quite interested in helping with having a fully secure AES-GCM stack on ARM, including on iOS. Let's see how to proceed, starting probably from [5] and then integrate it in OpenSSL? Any idea is welcomed. Finally, just a small comment: If AES-GCM is not as secure as ECC, then why are you still using it in the android implementation of your crypto box? (Dont get me wrong, i prefer AES-GCM over ECC!) Also, bouncy castle's implementation of AES-GCM is known to be slow, not accelerated at all (even on intel) and not even parallelized. What performances have you got on that? All the best, Niko. [1] http://conradoplg.cryptoland.net/files/2010/12/mocrysen13.pdf [2] http://conradoplg.cryptoland.net/software/ecc-and-ae-for-arm-neon/ [3] https://www.rsaconference.com/writable/presentations/file_upload/cryp-w01-secure-and-efficient-implementation-of-aes-based-cryptosystems.pdf [4] http://conradoplg.cryptoland.net/files/2010/12/gcm14.pdf [5] https://github.com/conradoplg/authenc [6] http://git.openssl.org/gitweb/?p=openssl.git;a=blob;f=crypto/modes/asm/ghash-armv4.pl;h=d91586ee2925bb695899b17bb8a7242aa3bf9150;hb=9575d1a91ad9dd6eb5c964365dfbb72dbd3d1333#l35 On 2015-06-19 13:54, abstractj wrote: > Good morning Niko, I hope you're doing well. Please, notice that GCM mode > support is not a limitation of AG iOS, but a restriction from Apple. > > If the document on > https://github.com/edewit/aerogear-crypto-cordova/blob/master/README.md [1] > states that GCM is support, it pretty much relates to Android. If the > senteces are not clear enough, feel free to file a Jira > https://issues.jboss.org/browse/AGCORDOVA [2]. > > Answering your questions: > > - Is GCM mode for AES encryption supported on iOS aerogear crypto module > (and the cordova plugin) ? > > No. But, we are open for suggestions. In the future we plan to make > aerogear-ios-crypto pluggable. Into this way you're free to go with > CommonCrypto or whatever provider you want. > > - If not, how difficult would it be to use the private API in iOS > CommonCrypto ? I didnt try it myself, i have just been reading the code.... > > I'd say, would take time and the only way I see today is plugging OpenSSL. > The reason why NaCl was choosen, was not only the fact of CommonCrypto not > supporting GCM, but also, because it's safer[1]. > > If you feel like, that should be reconsidered. Feel free to create a feature > request against https://issues.jboss.org/browse/agios [3]. I hope it helps. > > [1] - https://cryptojedi.org/papers/aesbs-20090616.pdf [4] > > -- > View this message in context: http://aerogear-users.1116366.n5.nabble.com/Aerogear-users-AeroGear-Crypto-API-on-iOS-with-AES-GCM-tp55p61.html [5] > Sent from the aerogear-users mailing list archive at Nabble.com. > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users [6] Links: ------ [1] https://github.com/edewit/aerogear-crypto-cordova/blob/master/README.md [2] https://issues.jboss.org/browse/AGCORDOVA [3] https://issues.jboss.org/browse/agios [4] https://cryptojedi.org/papers/aesbs-20090616.pdf [5] http://aerogear-users.1116366.n5.nabble.com/Aerogear-users-AeroGear-Crypto-API-on-iOS-with-AES-GCM-tp55p61.html [6] https://lists.jboss.org/mailman/listinfo/aerogear-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150619/3fe9886e/attachment.html From fabio.turizo at gmail.com Sun Jun 21 20:34:50 2015 From: fabio.turizo at gmail.com (Fabio Turizo) Date: Mon, 22 Jun 2015 00:34:50 +0000 Subject: [Aerogear-users] Cannot build cordova project with aerogear push plugin Message-ID: I haven't been capable of building a cordova project for android using the cordova aerogear plugin. First, the plugin is installed like this: *cordova plugin add https://github.com/aerogear/aerogear-pushplugin-cordova.git * And the plugin is installed succesfully: *Fetching plugin "https://github.com/aerogear/aerogear-pushplugin-cordova.git " via git clone* *Repository "https://github.com/aerogear/aerogear-pushplugin-cordova.git " checked out to git ref "master".* *Installing "org.jboss.aerogear.cordova.push" for android* *Fetching plugin "https://github.com/vstirbu/PromisesPlugin.git " via git clone* *Repository "https://github.com/vstirbu/PromisesPlugin.git " checked out to git ref "master".* However when building for Android i always get the following errors: *FAILURE: Build failed with an exception.* ** What went wrong:* *A problem occurred configuring root project 'android'.* *> Could not resolve all dependencies for configuration ':_debugCompile'.* * > Could not find any version that matches com.android.support:appcompat-v7:22.+.* * Searched in the following locations:* * https://repo1.maven.org/maven2/com/android/support/appcompat-v7/maven-metadata.xml * * https://repo1.maven.org/maven2/com/android/support/appcompat-v7/ * * Required by:* * :android:unspecified* * > Could not find org.jboss.aerogear:aerogear-android-core:2.2.0-SNAPSHOT.* * Searched in the following locations:* * https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-core/2.2.0-SNAPSHOT/maven-metadata.xml * * https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-core/2.2.0-SNAPSHOT/aerogear-android-core-2.2.0-SNAPSHOT.pom * * https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-core/2.2.0-SNAPSHOT/aerogear-android-core-2.2.0-SNAPSHOT.jar * * Required by:* * :android:unspecified* * > Could not find org.jboss.aerogear:aerogear-android-pipe:2.2.0-SNAPSHOT.* * Searched in the following locations:* * https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-pipe/2.2.0-SNAPSHOT/maven-metadata.xml * * https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-pipe/2.2.0-SNAPSHOT/aerogear-android-pipe-2.2.0-SNAPSHOT.pom * * https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-pipe/2.2.0-SNAPSHOT/aerogear-android-pipe-2.2.0-SNAPSHOT.jar * * Required by:* * :android:unspecified* * > Could not find org.jboss.aerogear:aerogear-android-push:2.2.0-SNAPSHOT.* * Searched in the following locations:* * https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-push/2.2.0-SNAPSHOT/maven-metadata.xml * * https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-push/2.2.0-SNAPSHOT/aerogear-android-push-2.2.0-SNAPSHOT.pom * * https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-push/2.2.0-SNAPSHOT/aerogear-android-push-2.2.0-SNAPSHOT.jar * * Required by:* * :android:unspecified* I tried unistalling cordova and npm, but to no avail i haven't been capable of building an app that uses AeroGear. Any assistance is gladly welcome. *P.S*: Using Cordova 5.1.1 for Android 5.1 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150622/3195c394/attachment-0001.html From scm.blanc at gmail.com Mon Jun 22 00:32:31 2015 From: scm.blanc at gmail.com (=?utf-8?Q?S=C3=A9bastien_Blanc?=) Date: Mon, 22 Jun 2015 06:32:31 +0200 Subject: [Aerogear-users] Cannot build cordova project with aerogear push plugin In-Reply-To: References: Message-ID: <04F91699-6783-40DC-8EB3-C86B3169C1E7@gmail.com> Hi ! The plugin from GitHub master relies on an aerogear android library with a snapshot version that is not on maven. The easiest way is to install the plugin from cordova's registry : cordova plugin add org.jboss.aerogear.cordova.push If you really need the master version of the plugi. You will need to build all the android lib locally. Sebi Envoy? de mon iPhone > Le 22 juin 2015 ? 02:34, Fabio Turizo a ?crit : > > I haven't been capable of building a cordova project for android using the cordova aerogear plugin. First, the plugin is installed like this: > > cordova plugin add https://github.com/aerogear/aerogear-pushplugin-cordova.git > > And the plugin is installed succesfully: > > Fetching plugin "https://github.com/aerogear/aerogear-pushplugin-cordova.git" via git clone > Repository "https://github.com/aerogear/aerogear-pushplugin-cordova.git" checked out to git ref "master". > Installing "org.jboss.aerogear.cordova.push" for android > Fetching plugin "https://github.com/vstirbu/PromisesPlugin.git" via git clone > Repository "https://github.com/vstirbu/PromisesPlugin.git" checked out to git ref "master". > > However when building for Android i always get the following errors: > > FAILURE: Build failed with an exception. > > * What went wrong: > A problem occurred configuring root project 'android'. > > Could not resolve all dependencies for configuration ':_debugCompile'. > > Could not find any version that matches com.android.support:appcompat-v7:22.+. > Searched in the following locations: > https://repo1.maven.org/maven2/com/android/support/appcompat-v7/maven-metadata.xml > https://repo1.maven.org/maven2/com/android/support/appcompat-v7/ > Required by: > :android:unspecified > > Could not find org.jboss.aerogear:aerogear-android-core:2.2.0-SNAPSHOT. > Searched in the following locations: > https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-core/2.2.0-SNAPSHOT/maven-metadata.xml > https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-core/2.2.0-SNAPSHOT/aerogear-android-core-2.2.0-SNAPSHOT.pom > https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-core/2.2.0-SNAPSHOT/aerogear-android-core-2.2.0-SNAPSHOT.jar > Required by: > :android:unspecified > > Could not find org.jboss.aerogear:aerogear-android-pipe:2.2.0-SNAPSHOT. > Searched in the following locations: > https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-pipe/2.2.0-SNAPSHOT/maven-metadata.xml > https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-pipe/2.2.0-SNAPSHOT/aerogear-android-pipe-2.2.0-SNAPSHOT.pom > https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-pipe/2.2.0-SNAPSHOT/aerogear-android-pipe-2.2.0-SNAPSHOT.jar > Required by: > :android:unspecified > > Could not find org.jboss.aerogear:aerogear-android-push:2.2.0-SNAPSHOT. > Searched in the following locations: > https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-push/2.2.0-SNAPSHOT/maven-metadata.xml > https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-push/2.2.0-SNAPSHOT/aerogear-android-push-2.2.0-SNAPSHOT.pom > https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-push/2.2.0-SNAPSHOT/aerogear-android-push-2.2.0-SNAPSHOT.jar > Required by: > :android:unspecified > > I tried unistalling cordova and npm, but to no avail i haven't been capable of building an app that uses AeroGear. > > Any assistance is gladly welcome. > > P.S: Using Cordova 5.1.1 for Android 5.1 > > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150622/2d8db219/attachment.html From fabio.turizo at gmail.com Mon Jun 22 09:26:59 2015 From: fabio.turizo at gmail.com (Fabio Turizo) Date: Mon, 22 Jun 2015 13:26:59 +0000 Subject: [Aerogear-users] Cannot build cordova project with aerogear push plugin In-Reply-To: <04F91699-6783-40DC-8EB3-C86B3169C1E7@gmail.com> References: <04F91699-6783-40DC-8EB3-C86B3169C1E7@gmail.com> Message-ID: I tried installing the plugin as you instructed, but i get the following error: *WARNING: org.jboss.aerogear.cordova.push has been renamed to aerogear-cordova-push. You may not be getting the latest version! We suggest you `cordova plugin rm org.jboss.aerogear.cordova.push` and `cordova plugin add aerogear-cordova-push`.* *Fetching plugin "org.jboss.aerogear.cordova.push" via cordova plugins registry* *npm http GET http://registry.cordova.io/org.jboss.aerogear.cordova.push * *npm http 304 http://registry.cordova.io/org.jboss.aerogear.cordova.push * *Installing "org.jboss.aerogear.cordova.push" for android* *Fetching plugin "https://github.com/vstirbu/PromisesPlugin.git " via git clone* *Repository "https://github.com/vstirbu/PromisesPlugin.git " checked out to git ref "master".* *Installing "com.vladstirbu.cordova.promise" for android* *Fetching plugin "https://github.com/MobileChromeApps/cordova-plugin-android-support-v4 " via git clone* *Failed to install 'org.jboss.aerogear.cordova.push':Error: C:\Program Files (x86)\Git\cmd\git.exe: Command failed with exit code 128 Error output:* *Cloning into 'C:\Users\fturizo\AppData\Local\Temp\git\1434978837894'...* *warning: Could not find remote branch 8670959210f07f5a483e40b7fbfdb8ca5a50d3f to clone.* *fatal: Remote branch 8670959210f07f5a483e40b7fbfdb8ca5a50d3f not found in upstream origin* *Unexpected end of command stream* * at ChildProcess.whenDone (C:\Users\fturizo\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:134:23)* * at ChildProcess.emit (events.js:110:17)* * at maybeClose (child_process.js:1015:16)* * at Process.ChildProcess._handle.onexit (child_process.js:1087:5)* *Error: C:\Program Files (x86)\Git\cmd\git.exe: Command failed with exit code 128 Error output:* *Cloning into 'C:\Users\fturizo\AppData\Local\Temp\git\1434978837894'...* *warning: Could not find remote branch 8670959210f07f5a483e40b7fbfdb8ca5a50d3f to clone.* *fatal: Remote branch 8670959210f07f5a483e40b7fbfdb8ca5a50d3f not found in upstream origin* *Unexpected end of command stream* * at ChildProcess.whenDone (C:\Users\fturizo\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:134:23)* * at ChildProcess.emit (events.js:110:17)* * at maybeClose (child_process.js:1015:16)* * at Process.ChildProcess._handle.onexit (child_process.js:1087:5)* I'm getting this error in multiple workstations, so i'm assuming the plugin installation has issues. El dom., 21 de jun. de 2015 a la(s) 11:32 p. m., S?bastien Blanc < scm.blanc at gmail.com> escribi?: > Hi ! > The plugin from GitHub master relies on an aerogear android library with a > snapshot version that is not on maven. > The easiest way is to install the plugin from cordova's registry : > > cordova plugin add org.jboss.aerogear.cordova.push > > If you really need the master version of the plugi. You will need to build > all the android lib locally. > Sebi > > > Envoy? de mon iPhone > > Le 22 juin 2015 ? 02:34, Fabio Turizo a ?crit : > > I haven't been capable of building a cordova project for android using the > cordova aerogear plugin. First, the plugin is installed like this: > > *cordova plugin add > https://github.com/aerogear/aerogear-pushplugin-cordova.git > * > > And the plugin is installed succesfully: > > *Fetching plugin > "https://github.com/aerogear/aerogear-pushplugin-cordova.git > " via git > clone* > *Repository "https://github.com/aerogear/aerogear-pushplugin-cordova.git > " checked out > to git ref "master".* > *Installing "org.jboss.aerogear.cordova.push" for android* > *Fetching plugin "https://github.com/vstirbu/PromisesPlugin.git > " via git clone* > *Repository "https://github.com/vstirbu/PromisesPlugin.git > " checked out to git ref > "master".* > > However when building for Android i always get the following errors: > > *FAILURE: Build failed with an exception.* > > ** What went wrong:* > *A problem occurred configuring root project 'android'.* > *> Could not resolve all dependencies for configuration ':_debugCompile'.* > * > Could not find any version that matches > com.android.support:appcompat-v7:22.+.* > * Searched in the following locations:* > * > https://repo1.maven.org/maven2/com/android/support/appcompat-v7/maven-metadata.xml > * > * https://repo1.maven.org/maven2/com/android/support/appcompat-v7/ > * > * Required by:* > * :android:unspecified* > * > Could not find > org.jboss.aerogear:aerogear-android-core:2.2.0-SNAPSHOT.* > * Searched in the following locations:* > * > https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-core/2.2.0-SNAPSHOT/maven-metadata.xml > * > * > https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-core/2.2.0-SNAPSHOT/aerogear-android-core-2.2.0-SNAPSHOT.pom > * > * > https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-core/2.2.0-SNAPSHOT/aerogear-android-core-2.2.0-SNAPSHOT.jar > * > * Required by:* > * :android:unspecified* > * > Could not find > org.jboss.aerogear:aerogear-android-pipe:2.2.0-SNAPSHOT.* > * Searched in the following locations:* > * > https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-pipe/2.2.0-SNAPSHOT/maven-metadata.xml > * > * > https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-pipe/2.2.0-SNAPSHOT/aerogear-android-pipe-2.2.0-SNAPSHOT.pom > * > * > https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-pipe/2.2.0-SNAPSHOT/aerogear-android-pipe-2.2.0-SNAPSHOT.jar > * > * Required by:* > * :android:unspecified* > * > Could not find > org.jboss.aerogear:aerogear-android-push:2.2.0-SNAPSHOT.* > * Searched in the following locations:* > * > https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-push/2.2.0-SNAPSHOT/maven-metadata.xml > * > * > https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-push/2.2.0-SNAPSHOT/aerogear-android-push-2.2.0-SNAPSHOT.pom > * > * > https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-push/2.2.0-SNAPSHOT/aerogear-android-push-2.2.0-SNAPSHOT.jar > * > * Required by:* > * :android:unspecified* > > I tried unistalling cordova and npm, but to no avail i haven't been > capable of building an app that uses AeroGear. > > Any assistance is gladly welcome. > > *P.S*: Using Cordova 5.1.1 for Android 5.1 > > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150622/1e5d80f8/attachment-0001.html From scm.blanc at gmail.com Mon Jun 22 09:52:26 2015 From: scm.blanc at gmail.com (Sebastien Blanc) Date: Mon, 22 Jun 2015 15:52:26 +0200 Subject: [Aerogear-users] Cannot build cordova project with aerogear push plugin In-Reply-To: References: <04F91699-6783-40DC-8EB3-C86B3169C1E7@gmail.com> Message-ID: Did you do what they suggested you in the error mesage : " *We suggest you `cordova plugin rm org.jboss.aerogear.cordova.push` and `cordova plugin add aerogear-cordova-push`.* *" * *? * On Mon, Jun 22, 2015 at 3:26 PM, Fabio Turizo wrote: > I tried installing the plugin as you instructed, but i get the following > error: > > *WARNING: org.jboss.aerogear.cordova.push has been renamed to > aerogear-cordova-push. You may not be getting the latest version! We > suggest you `cordova plugin rm org.jboss.aerogear.cordova.push` and > `cordova plugin add aerogear-cordova-push`.* > *Fetching plugin "org.jboss.aerogear.cordova.push" via cordova plugins > registry* > *npm http GET http://registry.cordova.io/org.jboss.aerogear.cordova.push > * > *npm http 304 http://registry.cordova.io/org.jboss.aerogear.cordova.push > * > *Installing "org.jboss.aerogear.cordova.push" for android* > *Fetching plugin "https://github.com/vstirbu/PromisesPlugin.git > " via git clone* > *Repository "https://github.com/vstirbu/PromisesPlugin.git > " checked out to git ref > "master".* > *Installing "com.vladstirbu.cordova.promise" for android* > *Fetching plugin > "https://github.com/MobileChromeApps/cordova-plugin-android-support-v4 > " > via git clone* > *Failed to install 'org.jboss.aerogear.cordova.push':Error: C:\Program > Files (x86)\Git\cmd\git.exe: Command failed with exit code 128 Error > output:* > *Cloning into 'C:\Users\fturizo\AppData\Local\Temp\git\1434978837894'...* > *warning: Could not find remote branch > 8670959210f07f5a483e40b7fbfdb8ca5a50d3f to clone.* > *fatal: Remote branch 8670959210f07f5a483e40b7fbfdb8ca5a50d3f not found in > upstream origin* > *Unexpected end of command stream* > * at ChildProcess.whenDone > (C:\Users\fturizo\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:134:23)* > * at ChildProcess.emit (events.js:110:17)* > * at maybeClose (child_process.js:1015:16)* > * at Process.ChildProcess._handle.onexit (child_process.js:1087:5)* > *Error: C:\Program Files (x86)\Git\cmd\git.exe: Command failed with exit > code 128 Error output:* > *Cloning into 'C:\Users\fturizo\AppData\Local\Temp\git\1434978837894'...* > *warning: Could not find remote branch > 8670959210f07f5a483e40b7fbfdb8ca5a50d3f to clone.* > *fatal: Remote branch 8670959210f07f5a483e40b7fbfdb8ca5a50d3f not found in > upstream origin* > *Unexpected end of command stream* > * at ChildProcess.whenDone > (C:\Users\fturizo\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:134:23)* > * at ChildProcess.emit (events.js:110:17)* > * at maybeClose (child_process.js:1015:16)* > * at Process.ChildProcess._handle.onexit (child_process.js:1087:5)* > > I'm getting this error in multiple workstations, so i'm assuming the > plugin installation has issues. > > El dom., 21 de jun. de 2015 a la(s) 11:32 p. m., S?bastien Blanc < > scm.blanc at gmail.com> escribi?: > >> Hi ! >> The plugin from GitHub master relies on an aerogear android library with >> a snapshot version that is not on maven. >> The easiest way is to install the plugin from cordova's registry : >> >> cordova plugin add org.jboss.aerogear.cordova.push >> >> If you really need the master version of the plugi. You will need to >> build all the android lib locally. >> Sebi >> >> >> Envoy? de mon iPhone >> >> Le 22 juin 2015 ? 02:34, Fabio Turizo a ?crit : >> >> I haven't been capable of building a cordova project for android using >> the cordova aerogear plugin. First, the plugin is installed like this: >> >> *cordova plugin add >> https://github.com/aerogear/aerogear-pushplugin-cordova.git >> * >> >> And the plugin is installed succesfully: >> >> *Fetching plugin >> "https://github.com/aerogear/aerogear-pushplugin-cordova.git >> " via git >> clone* >> *Repository "https://github.com/aerogear/aerogear-pushplugin-cordova.git >> " checked out >> to git ref "master".* >> *Installing "org.jboss.aerogear.cordova.push" for android* >> *Fetching plugin "https://github.com/vstirbu/PromisesPlugin.git >> " via git clone* >> *Repository "https://github.com/vstirbu/PromisesPlugin.git >> " checked out to git ref >> "master".* >> >> However when building for Android i always get the following errors: >> >> *FAILURE: Build failed with an exception.* >> >> ** What went wrong:* >> *A problem occurred configuring root project 'android'.* >> *> Could not resolve all dependencies for configuration ':_debugCompile'.* >> * > Could not find any version that matches >> com.android.support:appcompat-v7:22.+.* >> * Searched in the following locations:* >> * >> https://repo1.maven.org/maven2/com/android/support/appcompat-v7/maven-metadata.xml >> * >> * >> https://repo1.maven.org/maven2/com/android/support/appcompat-v7/ >> * >> * Required by:* >> * :android:unspecified* >> * > Could not find >> org.jboss.aerogear:aerogear-android-core:2.2.0-SNAPSHOT.* >> * Searched in the following locations:* >> * >> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-core/2.2.0-SNAPSHOT/maven-metadata.xml >> * >> * >> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-core/2.2.0-SNAPSHOT/aerogear-android-core-2.2.0-SNAPSHOT.pom >> * >> * >> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-core/2.2.0-SNAPSHOT/aerogear-android-core-2.2.0-SNAPSHOT.jar >> * >> * Required by:* >> * :android:unspecified* >> * > Could not find >> org.jboss.aerogear:aerogear-android-pipe:2.2.0-SNAPSHOT.* >> * Searched in the following locations:* >> * >> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-pipe/2.2.0-SNAPSHOT/maven-metadata.xml >> * >> * >> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-pipe/2.2.0-SNAPSHOT/aerogear-android-pipe-2.2.0-SNAPSHOT.pom >> * >> * >> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-pipe/2.2.0-SNAPSHOT/aerogear-android-pipe-2.2.0-SNAPSHOT.jar >> * >> * Required by:* >> * :android:unspecified* >> * > Could not find >> org.jboss.aerogear:aerogear-android-push:2.2.0-SNAPSHOT.* >> * Searched in the following locations:* >> * >> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-push/2.2.0-SNAPSHOT/maven-metadata.xml >> * >> * >> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-push/2.2.0-SNAPSHOT/aerogear-android-push-2.2.0-SNAPSHOT.pom >> * >> * >> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-push/2.2.0-SNAPSHOT/aerogear-android-push-2.2.0-SNAPSHOT.jar >> * >> * Required by:* >> * :android:unspecified* >> >> I tried unistalling cordova and npm, but to no avail i haven't been >> capable of building an app that uses AeroGear. >> >> Any assistance is gladly welcome. >> >> *P.S*: Using Cordova 5.1.1 for Android 5.1 >> >> >> _______________________________________________ >> Aerogear-users mailing list >> Aerogear-users at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-users >> >> _______________________________________________ >> Aerogear-users mailing list >> Aerogear-users at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-users >> > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150622/49255ac5/attachment.html From fabio.turizo at gmail.com Mon Jun 22 10:03:46 2015 From: fabio.turizo at gmail.com (Fabio Turizo) Date: Mon, 22 Jun 2015 14:03:46 +0000 Subject: [Aerogear-users] Cannot build cordova project with aerogear push plugin In-Reply-To: References: <04F91699-6783-40DC-8EB3-C86B3169C1E7@gmail.com> Message-ID: I also tried to install it on another workstation with cordova v4.3.0, and it worked: *Fetching plugin "org.jboss.aerogear.cordova.push" via plugin registry* *Installing "org.jboss.aerogear.cordova.push" for android* *Fetching plugin "https://github.com/vstirbu/PromisesPlugin.git " via git clone* *Installing "com.vladstirbu.cordova.promise" for android* *Installing "android.support.v4" for android* *Installing "com.google.playservices" for android* Checking the plugin list: *org.jboss.aerogear.cordova.push 1.0.2 "* * AeroGear PushPlugin* * "* El lun., 22 de jun. de 2015 a la(s) 8:24 a. m., Fabio Turizo < fabio.turizo at gmail.com> escribi?: > I tried installing the plugin as you instructed, but i get the following > error: > > *WARNING: org.jboss.aerogear.cordova.push has been renamed to > aerogear-cordova-push. You may not be getting the latest version! We > suggest you `cordova plugin rm org.jboss.aerogear.cordova.push` and > `cordova plugin add aerogear-cordova-push`.* > *Fetching plugin "org.jboss.aerogear.cordova.push" via cordova plugins > registry* > *npm http GET http://registry.cordova.io/org.jboss.aerogear.cordova.push > * > *npm http 304 http://registry.cordova.io/org.jboss.aerogear.cordova.push > * > *Installing "org.jboss.aerogear.cordova.push" for android* > *Fetching plugin "https://github.com/vstirbu/PromisesPlugin.git > " via git clone* > *Repository "https://github.com/vstirbu/PromisesPlugin.git > " checked out to git ref > "master".* > *Installing "com.vladstirbu.cordova.promise" for android* > *Fetching plugin > "https://github.com/MobileChromeApps/cordova-plugin-android-support-v4 > " > via git clone* > *Failed to install 'org.jboss.aerogear.cordova.push':Error: C:\Program > Files (x86)\Git\cmd\git.exe: Command failed with exit code 128 Error > output:* > *Cloning into 'C:\Users\fturizo\AppData\Local\Temp\git\1434978837894'...* > *warning: Could not find remote branch > 8670959210f07f5a483e40b7fbfdb8ca5a50d3f to clone.* > *fatal: Remote branch 8670959210f07f5a483e40b7fbfdb8ca5a50d3f not found in > upstream origin* > *Unexpected end of command stream* > * at ChildProcess.whenDone > (C:\Users\fturizo\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:134:23)* > * at ChildProcess.emit (events.js:110:17)* > * at maybeClose (child_process.js:1015:16)* > * at Process.ChildProcess._handle.onexit (child_process.js:1087:5)* > *Error: C:\Program Files (x86)\Git\cmd\git.exe: Command failed with exit > code 128 Error output:* > *Cloning into 'C:\Users\fturizo\AppData\Local\Temp\git\1434978837894'...* > *warning: Could not find remote branch > 8670959210f07f5a483e40b7fbfdb8ca5a50d3f to clone.* > *fatal: Remote branch 8670959210f07f5a483e40b7fbfdb8ca5a50d3f not found in > upstream origin* > *Unexpected end of command stream* > * at ChildProcess.whenDone > (C:\Users\fturizo\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:134:23)* > * at ChildProcess.emit (events.js:110:17)* > * at maybeClose (child_process.js:1015:16)* > * at Process.ChildProcess._handle.onexit (child_process.js:1087:5)* > > I'm getting this error in multiple workstations, so i'm assuming the > plugin installation has issues. > > El dom., 21 de jun. de 2015 a la(s) 11:32 p. m., S?bastien Blanc < > scm.blanc at gmail.com> escribi?: > >> Hi ! >> The plugin from GitHub master relies on an aerogear android library with >> a snapshot version that is not on maven. >> The easiest way is to install the plugin from cordova's registry : >> >> cordova plugin add org.jboss.aerogear.cordova.push >> >> If you really need the master version of the plugi. You will need to >> build all the android lib locally. >> Sebi >> >> >> Envoy? de mon iPhone >> >> Le 22 juin 2015 ? 02:34, Fabio Turizo a ?crit : >> >> I haven't been capable of building a cordova project for android using >> the cordova aerogear plugin. First, the plugin is installed like this: >> >> *cordova plugin add >> https://github.com/aerogear/aerogear-pushplugin-cordova.git >> * >> >> And the plugin is installed succesfully: >> >> *Fetching plugin >> "https://github.com/aerogear/aerogear-pushplugin-cordova.git >> " via git >> clone* >> *Repository "https://github.com/aerogear/aerogear-pushplugin-cordova.git >> " checked out >> to git ref "master".* >> *Installing "org.jboss.aerogear.cordova.push" for android* >> *Fetching plugin "https://github.com/vstirbu/PromisesPlugin.git >> " via git clone* >> *Repository "https://github.com/vstirbu/PromisesPlugin.git >> " checked out to git ref >> "master".* >> >> However when building for Android i always get the following errors: >> >> *FAILURE: Build failed with an exception.* >> >> ** What went wrong:* >> *A problem occurred configuring root project 'android'.* >> *> Could not resolve all dependencies for configuration ':_debugCompile'.* >> * > Could not find any version that matches >> com.android.support:appcompat-v7:22.+.* >> * Searched in the following locations:* >> * >> https://repo1.maven.org/maven2/com/android/support/appcompat-v7/maven-metadata.xml >> * >> * >> https://repo1.maven.org/maven2/com/android/support/appcompat-v7/ >> * >> * Required by:* >> * :android:unspecified* >> * > Could not find >> org.jboss.aerogear:aerogear-android-core:2.2.0-SNAPSHOT.* >> * Searched in the following locations:* >> * >> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-core/2.2.0-SNAPSHOT/maven-metadata.xml >> * >> * >> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-core/2.2.0-SNAPSHOT/aerogear-android-core-2.2.0-SNAPSHOT.pom >> * >> * >> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-core/2.2.0-SNAPSHOT/aerogear-android-core-2.2.0-SNAPSHOT.jar >> * >> * Required by:* >> * :android:unspecified* >> * > Could not find >> org.jboss.aerogear:aerogear-android-pipe:2.2.0-SNAPSHOT.* >> * Searched in the following locations:* >> * >> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-pipe/2.2.0-SNAPSHOT/maven-metadata.xml >> * >> * >> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-pipe/2.2.0-SNAPSHOT/aerogear-android-pipe-2.2.0-SNAPSHOT.pom >> * >> * >> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-pipe/2.2.0-SNAPSHOT/aerogear-android-pipe-2.2.0-SNAPSHOT.jar >> * >> * Required by:* >> * :android:unspecified* >> * > Could not find >> org.jboss.aerogear:aerogear-android-push:2.2.0-SNAPSHOT.* >> * Searched in the following locations:* >> * >> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-push/2.2.0-SNAPSHOT/maven-metadata.xml >> * >> * >> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-push/2.2.0-SNAPSHOT/aerogear-android-push-2.2.0-SNAPSHOT.pom >> * >> * >> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-push/2.2.0-SNAPSHOT/aerogear-android-push-2.2.0-SNAPSHOT.jar >> * >> * Required by:* >> * :android:unspecified* >> >> I tried unistalling cordova and npm, but to no avail i haven't been >> capable of building an app that uses AeroGear. >> >> Any assistance is gladly welcome. >> >> *P.S*: Using Cordova 5.1.1 for Android 5.1 >> >> >> _______________________________________________ >> Aerogear-users mailing list >> Aerogear-users at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-users >> >> _______________________________________________ >> Aerogear-users mailing list >> Aerogear-users at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-users >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150622/5457f12f/attachment-0001.html From fabio.turizo at gmail.com Mon Jun 22 10:04:59 2015 From: fabio.turizo at gmail.com (Fabio Turizo) Date: Mon, 22 Jun 2015 14:04:59 +0000 Subject: [Aerogear-users] Cannot build cordova project with aerogear push plugin In-Reply-To: References: <04F91699-6783-40DC-8EB3-C86B3169C1E7@gmail.com> Message-ID: Tried the instruction in the warning, same result: *Fetching plugin "aerogear-cordova-push" via npm* *npm http GET https://registry.npmjs.org/aerogear-cordova-push * *npm http 304 https://registry.npmjs.org/aerogear-cordova-push * *Installing "org.jboss.aerogear.cordova.push" for android* *Fetching plugin "https://github.com/MobileChromeApps/cordova-plugin-android-support-v4 " via git clone* *Failed to install 'org.jboss.aerogear.cordova.push':Error: C:\Program Files (x86)\Git\cmd\git.exe: Command failed with exit code 128 Error output:* *Cloning into 'C:\Users\fturizo\AppData\Local\Temp\git\1434981713451'...* *warning: Could not find remote branch 8670959210f07f5a483e40b7fbfdb8ca5a50d3f to clone.* *fatal: Remote branch 8670959210f07f5a483e40b7fbfdb8ca5a50d3f not found in upstream origin* *Unexpected end of command stream* * at ChildProcess.whenDone (C:\Users\fturizo\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:134:23)* * at ChildProcess.emit (events.js:110:17)* * at maybeClose (child_process.js:1015:16)* * at Process.ChildProcess._handle.onexit (child_process.js:1087:5)* *Error: C:\Program Files (x86)\Git\cmd\git.exe: Command failed with exit code 128 Error output:* *Cloning into 'C:\Users\fturizo\AppData\Local\Temp\git\1434981713451'...* *warning: Could not find remote branch 8670959210f07f5a483e40b7fbfdb8ca5a50d3f to clone.* *fatal: Remote branch 8670959210f07f5a483e40b7fbfdb8ca5a50d3f not found in upstream origin* *Unexpected end of command stream* * at ChildProcess.whenDone (C:\Users\fturizo\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:134:23)* * at ChildProcess.emit (events.js:110:17)* * at maybeClose (child_process.js:1015:16)* * at Process.ChildProcess._handle.onexit (child_process.js:1087:5)* El lun., 22 de jun. de 2015 a la(s) 9:01 a. m., Fabio Turizo < fabio.turizo at gmail.com> escribi?: > I also tried to install it on another workstation with cordova v4.3.0, and > it worked: > > > *Fetching plugin "org.jboss.aerogear.cordova.push" via plugin registry* > *Installing "org.jboss.aerogear.cordova.push" for android* > *Fetching plugin "https://github.com/vstirbu/PromisesPlugin.git > " via git clone* > *Installing "com.vladstirbu.cordova.promise" for android* > *Installing "android.support.v4" for android* > *Installing "com.google.playservices" for android* > > Checking the plugin list: > > *org.jboss.aerogear.cordova.push 1.0.2 "* > * AeroGear PushPlugin* > * "* > > El lun., 22 de jun. de 2015 a la(s) 8:24 a. m., Fabio Turizo < > fabio.turizo at gmail.com> escribi?: > >> I tried installing the plugin as you instructed, but i get the following >> error: >> >> *WARNING: org.jboss.aerogear.cordova.push has been renamed to >> aerogear-cordova-push. You may not be getting the latest version! We >> suggest you `cordova plugin rm org.jboss.aerogear.cordova.push` and >> `cordova plugin add aerogear-cordova-push`.* >> *Fetching plugin "org.jboss.aerogear.cordova.push" via cordova plugins >> registry* >> *npm http GET http://registry.cordova.io/org.jboss.aerogear.cordova.push >> * >> *npm http 304 http://registry.cordova.io/org.jboss.aerogear.cordova.push >> * >> *Installing "org.jboss.aerogear.cordova.push" for android* >> *Fetching plugin "https://github.com/vstirbu/PromisesPlugin.git >> " via git clone* >> *Repository "https://github.com/vstirbu/PromisesPlugin.git >> " checked out to git ref >> "master".* >> *Installing "com.vladstirbu.cordova.promise" for android* >> *Fetching plugin >> "https://github.com/MobileChromeApps/cordova-plugin-android-support-v4 >> " >> via git clone* >> *Failed to install 'org.jboss.aerogear.cordova.push':Error: C:\Program >> Files (x86)\Git\cmd\git.exe: Command failed with exit code 128 Error >> output:* >> *Cloning into 'C:\Users\fturizo\AppData\Local\Temp\git\1434978837894'...* >> *warning: Could not find remote branch >> 8670959210f07f5a483e40b7fbfdb8ca5a50d3f to clone.* >> *fatal: Remote branch 8670959210f07f5a483e40b7fbfdb8ca5a50d3f not found >> in upstream origin* >> *Unexpected end of command stream* >> * at ChildProcess.whenDone >> (C:\Users\fturizo\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:134:23)* >> * at ChildProcess.emit (events.js:110:17)* >> * at maybeClose (child_process.js:1015:16)* >> * at Process.ChildProcess._handle.onexit (child_process.js:1087:5)* >> *Error: C:\Program Files (x86)\Git\cmd\git.exe: Command failed with exit >> code 128 Error output:* >> *Cloning into 'C:\Users\fturizo\AppData\Local\Temp\git\1434978837894'...* >> *warning: Could not find remote branch >> 8670959210f07f5a483e40b7fbfdb8ca5a50d3f to clone.* >> *fatal: Remote branch 8670959210f07f5a483e40b7fbfdb8ca5a50d3f not found >> in upstream origin* >> *Unexpected end of command stream* >> * at ChildProcess.whenDone >> (C:\Users\fturizo\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:134:23)* >> * at ChildProcess.emit (events.js:110:17)* >> * at maybeClose (child_process.js:1015:16)* >> * at Process.ChildProcess._handle.onexit (child_process.js:1087:5)* >> >> I'm getting this error in multiple workstations, so i'm assuming the >> plugin installation has issues. >> >> El dom., 21 de jun. de 2015 a la(s) 11:32 p. m., S?bastien Blanc < >> scm.blanc at gmail.com> escribi?: >> >>> Hi ! >>> The plugin from GitHub master relies on an aerogear android library with >>> a snapshot version that is not on maven. >>> The easiest way is to install the plugin from cordova's registry : >>> >>> cordova plugin add org.jboss.aerogear.cordova.push >>> >>> If you really need the master version of the plugi. You will need to >>> build all the android lib locally. >>> Sebi >>> >>> >>> Envoy? de mon iPhone >>> >>> Le 22 juin 2015 ? 02:34, Fabio Turizo a ?crit : >>> >>> I haven't been capable of building a cordova project for android using >>> the cordova aerogear plugin. First, the plugin is installed like this: >>> >>> *cordova plugin add >>> https://github.com/aerogear/aerogear-pushplugin-cordova.git >>> * >>> >>> And the plugin is installed succesfully: >>> >>> *Fetching plugin >>> "https://github.com/aerogear/aerogear-pushplugin-cordova.git >>> " via git >>> clone* >>> *Repository "https://github.com/aerogear/aerogear-pushplugin-cordova.git >>> " checked out >>> to git ref "master".* >>> *Installing "org.jboss.aerogear.cordova.push" for android* >>> *Fetching plugin "https://github.com/vstirbu/PromisesPlugin.git >>> " via git clone* >>> *Repository "https://github.com/vstirbu/PromisesPlugin.git >>> " checked out to git ref >>> "master".* >>> >>> However when building for Android i always get the following errors: >>> >>> *FAILURE: Build failed with an exception.* >>> >>> ** What went wrong:* >>> *A problem occurred configuring root project 'android'.* >>> *> Could not resolve all dependencies for configuration >>> ':_debugCompile'.* >>> * > Could not find any version that matches >>> com.android.support:appcompat-v7:22.+.* >>> * Searched in the following locations:* >>> * >>> https://repo1.maven.org/maven2/com/android/support/appcompat-v7/maven-metadata.xml >>> * >>> * >>> https://repo1.maven.org/maven2/com/android/support/appcompat-v7/ >>> * >>> * Required by:* >>> * :android:unspecified* >>> * > Could not find >>> org.jboss.aerogear:aerogear-android-core:2.2.0-SNAPSHOT.* >>> * Searched in the following locations:* >>> * >>> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-core/2.2.0-SNAPSHOT/maven-metadata.xml >>> * >>> * >>> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-core/2.2.0-SNAPSHOT/aerogear-android-core-2.2.0-SNAPSHOT.pom >>> * >>> * >>> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-core/2.2.0-SNAPSHOT/aerogear-android-core-2.2.0-SNAPSHOT.jar >>> * >>> * Required by:* >>> * :android:unspecified* >>> * > Could not find >>> org.jboss.aerogear:aerogear-android-pipe:2.2.0-SNAPSHOT.* >>> * Searched in the following locations:* >>> * >>> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-pipe/2.2.0-SNAPSHOT/maven-metadata.xml >>> * >>> * >>> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-pipe/2.2.0-SNAPSHOT/aerogear-android-pipe-2.2.0-SNAPSHOT.pom >>> * >>> * >>> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-pipe/2.2.0-SNAPSHOT/aerogear-android-pipe-2.2.0-SNAPSHOT.jar >>> * >>> * Required by:* >>> * :android:unspecified* >>> * > Could not find >>> org.jboss.aerogear:aerogear-android-push:2.2.0-SNAPSHOT.* >>> * Searched in the following locations:* >>> * >>> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-push/2.2.0-SNAPSHOT/maven-metadata.xml >>> * >>> * >>> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-push/2.2.0-SNAPSHOT/aerogear-android-push-2.2.0-SNAPSHOT.pom >>> * >>> * >>> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-push/2.2.0-SNAPSHOT/aerogear-android-push-2.2.0-SNAPSHOT.jar >>> * >>> * Required by:* >>> * :android:unspecified* >>> >>> I tried unistalling cordova and npm, but to no avail i haven't been >>> capable of building an app that uses AeroGear. >>> >>> Any assistance is gladly welcome. >>> >>> *P.S*: Using Cordova 5.1.1 for Android 5.1 >>> >>> >>> _______________________________________________ >>> Aerogear-users mailing list >>> Aerogear-users at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>> >>> _______________________________________________ >>> Aerogear-users mailing list >>> Aerogear-users at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150622/35b86090/attachment-0001.html From scm.blanc at gmail.com Mon Jun 22 11:29:28 2015 From: scm.blanc at gmail.com (Sebastien Blanc) Date: Mon, 22 Jun 2015 17:29:28 +0200 Subject: [Aerogear-users] Cannot build cordova project with aerogear push plugin In-Reply-To: References: <04F91699-6783-40DC-8EB3-C86B3169C1E7@gmail.com> Message-ID: Hum, so looks like we have an issue wiuth corova 5.x , could you open a jira here : https://issues.jboss.org/browse/AGCORDOVA ? I'm sure Erik will be able to help you but is out now for conferences this week. On Mon, Jun 22, 2015 at 4:04 PM, Fabio Turizo wrote: > Tried the instruction in the warning, same result: > > *Fetching plugin "aerogear-cordova-push" via npm* > *npm http GET https://registry.npmjs.org/aerogear-cordova-push > * > *npm http 304 https://registry.npmjs.org/aerogear-cordova-push > * > *Installing "org.jboss.aerogear.cordova.push" for android* > *Fetching plugin > "https://github.com/MobileChromeApps/cordova-plugin-android-support-v4 > " > via git clone* > *Failed to install 'org.jboss.aerogear.cordova.push':Error: C:\Program > Files (x86)\Git\cmd\git.exe: Command failed with exit code 128 Error > output:* > *Cloning into 'C:\Users\fturizo\AppData\Local\Temp\git\1434981713451'...* > *warning: Could not find remote branch > 8670959210f07f5a483e40b7fbfdb8ca5a50d3f to clone.* > *fatal: Remote branch 8670959210f07f5a483e40b7fbfdb8ca5a50d3f not found in > upstream origin* > *Unexpected end of command stream* > * at ChildProcess.whenDone > (C:\Users\fturizo\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:134:23)* > * at ChildProcess.emit (events.js:110:17)* > * at maybeClose (child_process.js:1015:16)* > * at Process.ChildProcess._handle.onexit (child_process.js:1087:5)* > *Error: C:\Program Files (x86)\Git\cmd\git.exe: Command failed with exit > code 128 Error output:* > *Cloning into 'C:\Users\fturizo\AppData\Local\Temp\git\1434981713451'...* > *warning: Could not find remote branch > 8670959210f07f5a483e40b7fbfdb8ca5a50d3f to clone.* > *fatal: Remote branch 8670959210f07f5a483e40b7fbfdb8ca5a50d3f not found in > upstream origin* > *Unexpected end of command stream* > * at ChildProcess.whenDone > (C:\Users\fturizo\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:134:23)* > * at ChildProcess.emit (events.js:110:17)* > * at maybeClose (child_process.js:1015:16)* > * at Process.ChildProcess._handle.onexit (child_process.js:1087:5)* > > > El lun., 22 de jun. de 2015 a la(s) 9:01 a. m., Fabio Turizo < > fabio.turizo at gmail.com> escribi?: > >> I also tried to install it on another workstation with cordova v4.3.0, >> and it worked: >> >> >> *Fetching plugin "org.jboss.aerogear.cordova.push" via plugin registry* >> *Installing "org.jboss.aerogear.cordova.push" for android* >> *Fetching plugin "https://github.com/vstirbu/PromisesPlugin.git >> " via git clone* >> *Installing "com.vladstirbu.cordova.promise" for android* >> *Installing "android.support.v4" for android* >> *Installing "com.google.playservices" for android* >> >> Checking the plugin list: >> >> *org.jboss.aerogear.cordova.push 1.0.2 "* >> * AeroGear PushPlugin* >> * "* >> >> El lun., 22 de jun. de 2015 a la(s) 8:24 a. m., Fabio Turizo < >> fabio.turizo at gmail.com> escribi?: >> >>> I tried installing the plugin as you instructed, but i get the following >>> error: >>> >>> *WARNING: org.jboss.aerogear.cordova.push has been renamed to >>> aerogear-cordova-push. You may not be getting the latest version! We >>> suggest you `cordova plugin rm org.jboss.aerogear.cordova.push` and >>> `cordova plugin add aerogear-cordova-push`.* >>> *Fetching plugin "org.jboss.aerogear.cordova.push" via cordova plugins >>> registry* >>> *npm http GET http://registry.cordova.io/org.jboss.aerogear.cordova.push >>> * >>> *npm http 304 http://registry.cordova.io/org.jboss.aerogear.cordova.push >>> * >>> *Installing "org.jboss.aerogear.cordova.push" for android* >>> *Fetching plugin "https://github.com/vstirbu/PromisesPlugin.git >>> " via git clone* >>> *Repository "https://github.com/vstirbu/PromisesPlugin.git >>> " checked out to git ref >>> "master".* >>> *Installing "com.vladstirbu.cordova.promise" for android* >>> *Fetching plugin >>> "https://github.com/MobileChromeApps/cordova-plugin-android-support-v4 >>> " >>> via git clone* >>> *Failed to install 'org.jboss.aerogear.cordova.push':Error: C:\Program >>> Files (x86)\Git\cmd\git.exe: Command failed with exit code 128 Error >>> output:* >>> *Cloning into 'C:\Users\fturizo\AppData\Local\Temp\git\1434978837894'...* >>> *warning: Could not find remote branch >>> 8670959210f07f5a483e40b7fbfdb8ca5a50d3f to clone.* >>> *fatal: Remote branch 8670959210f07f5a483e40b7fbfdb8ca5a50d3f not found >>> in upstream origin* >>> *Unexpected end of command stream* >>> * at ChildProcess.whenDone >>> (C:\Users\fturizo\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:134:23)* >>> * at ChildProcess.emit (events.js:110:17)* >>> * at maybeClose (child_process.js:1015:16)* >>> * at Process.ChildProcess._handle.onexit (child_process.js:1087:5)* >>> *Error: C:\Program Files (x86)\Git\cmd\git.exe: Command failed with exit >>> code 128 Error output:* >>> *Cloning into 'C:\Users\fturizo\AppData\Local\Temp\git\1434978837894'...* >>> *warning: Could not find remote branch >>> 8670959210f07f5a483e40b7fbfdb8ca5a50d3f to clone.* >>> *fatal: Remote branch 8670959210f07f5a483e40b7fbfdb8ca5a50d3f not found >>> in upstream origin* >>> *Unexpected end of command stream* >>> * at ChildProcess.whenDone >>> (C:\Users\fturizo\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:134:23)* >>> * at ChildProcess.emit (events.js:110:17)* >>> * at maybeClose (child_process.js:1015:16)* >>> * at Process.ChildProcess._handle.onexit (child_process.js:1087:5)* >>> >>> I'm getting this error in multiple workstations, so i'm assuming the >>> plugin installation has issues. >>> >>> El dom., 21 de jun. de 2015 a la(s) 11:32 p. m., S?bastien Blanc < >>> scm.blanc at gmail.com> escribi?: >>> >>>> Hi ! >>>> The plugin from GitHub master relies on an aerogear android library >>>> with a snapshot version that is not on maven. >>>> The easiest way is to install the plugin from cordova's registry : >>>> >>>> cordova plugin add org.jboss.aerogear.cordova.push >>>> >>>> If you really need the master version of the plugi. You will need to >>>> build all the android lib locally. >>>> Sebi >>>> >>>> >>>> Envoy? de mon iPhone >>>> >>>> Le 22 juin 2015 ? 02:34, Fabio Turizo a >>>> ?crit : >>>> >>>> I haven't been capable of building a cordova project for android using >>>> the cordova aerogear plugin. First, the plugin is installed like this: >>>> >>>> *cordova plugin add >>>> https://github.com/aerogear/aerogear-pushplugin-cordova.git >>>> * >>>> >>>> And the plugin is installed succesfully: >>>> >>>> *Fetching plugin >>>> "https://github.com/aerogear/aerogear-pushplugin-cordova.git >>>> " via git >>>> clone* >>>> *Repository >>>> "https://github.com/aerogear/aerogear-pushplugin-cordova.git >>>> " checked out >>>> to git ref "master".* >>>> *Installing "org.jboss.aerogear.cordova.push" for android* >>>> *Fetching plugin "https://github.com/vstirbu/PromisesPlugin.git >>>> " via git clone* >>>> *Repository "https://github.com/vstirbu/PromisesPlugin.git >>>> " checked out to git ref >>>> "master".* >>>> >>>> However when building for Android i always get the following errors: >>>> >>>> *FAILURE: Build failed with an exception.* >>>> >>>> ** What went wrong:* >>>> *A problem occurred configuring root project 'android'.* >>>> *> Could not resolve all dependencies for configuration >>>> ':_debugCompile'.* >>>> * > Could not find any version that matches >>>> com.android.support:appcompat-v7:22.+.* >>>> * Searched in the following locations:* >>>> * >>>> https://repo1.maven.org/maven2/com/android/support/appcompat-v7/maven-metadata.xml >>>> * >>>> * >>>> https://repo1.maven.org/maven2/com/android/support/appcompat-v7/ >>>> * >>>> * Required by:* >>>> * :android:unspecified* >>>> * > Could not find >>>> org.jboss.aerogear:aerogear-android-core:2.2.0-SNAPSHOT.* >>>> * Searched in the following locations:* >>>> * >>>> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-core/2.2.0-SNAPSHOT/maven-metadata.xml >>>> * >>>> * >>>> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-core/2.2.0-SNAPSHOT/aerogear-android-core-2.2.0-SNAPSHOT.pom >>>> * >>>> * >>>> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-core/2.2.0-SNAPSHOT/aerogear-android-core-2.2.0-SNAPSHOT.jar >>>> * >>>> * Required by:* >>>> * :android:unspecified* >>>> * > Could not find >>>> org.jboss.aerogear:aerogear-android-pipe:2.2.0-SNAPSHOT.* >>>> * Searched in the following locations:* >>>> * >>>> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-pipe/2.2.0-SNAPSHOT/maven-metadata.xml >>>> * >>>> * >>>> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-pipe/2.2.0-SNAPSHOT/aerogear-android-pipe-2.2.0-SNAPSHOT.pom >>>> * >>>> * >>>> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-pipe/2.2.0-SNAPSHOT/aerogear-android-pipe-2.2.0-SNAPSHOT.jar >>>> * >>>> * Required by:* >>>> * :android:unspecified* >>>> * > Could not find >>>> org.jboss.aerogear:aerogear-android-push:2.2.0-SNAPSHOT.* >>>> * Searched in the following locations:* >>>> * >>>> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-push/2.2.0-SNAPSHOT/maven-metadata.xml >>>> * >>>> * >>>> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-push/2.2.0-SNAPSHOT/aerogear-android-push-2.2.0-SNAPSHOT.pom >>>> * >>>> * >>>> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-push/2.2.0-SNAPSHOT/aerogear-android-push-2.2.0-SNAPSHOT.jar >>>> * >>>> * Required by:* >>>> * :android:unspecified* >>>> >>>> I tried unistalling cordova and npm, but to no avail i haven't been >>>> capable of building an app that uses AeroGear. >>>> >>>> Any assistance is gladly welcome. >>>> >>>> *P.S*: Using Cordova 5.1.1 for Android 5.1 >>>> >>>> >>>> _______________________________________________ >>>> Aerogear-users mailing list >>>> Aerogear-users at lists.jboss.org >>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>> >>>> _______________________________________________ >>>> Aerogear-users mailing list >>>> Aerogear-users at lists.jboss.org >>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>> >>> > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150622/66a05612/attachment-0001.html From fabio.turizo at gmail.com Mon Jun 22 11:47:56 2015 From: fabio.turizo at gmail.com (Fabio Turizo) Date: Mon, 22 Jun 2015 15:47:56 +0000 Subject: [Aerogear-users] Cannot build cordova project with aerogear push plugin In-Reply-To: References: <04F91699-6783-40DC-8EB3-C86B3169C1E7@gmail.com> Message-ID: Ok, done it. Reported it in this issue: https://issues.jboss.org/browse/AGCORDOVA-107 El lun., 22 de jun. de 2015 a la(s) 10:29 a. m., Sebastien Blanc < scm.blanc at gmail.com> escribi?: > Hum, so looks like we have an issue wiuth corova 5.x , could you open a > jira here : https://issues.jboss.org/browse/AGCORDOVA ? > I'm sure Erik will be able to help you but is out now for conferences this > week. > > > On Mon, Jun 22, 2015 at 4:04 PM, Fabio Turizo > wrote: > >> Tried the instruction in the warning, same result: >> >> *Fetching plugin "aerogear-cordova-push" via npm* >> *npm http GET https://registry.npmjs.org/aerogear-cordova-push >> * >> *npm http 304 https://registry.npmjs.org/aerogear-cordova-push >> * >> *Installing "org.jboss.aerogear.cordova.push" for android* >> *Fetching plugin >> "https://github.com/MobileChromeApps/cordova-plugin-android-support-v4 >> " >> via git clone* >> *Failed to install 'org.jboss.aerogear.cordova.push':Error: C:\Program >> Files (x86)\Git\cmd\git.exe: Command failed with exit code 128 Error >> output:* >> *Cloning into 'C:\Users\fturizo\AppData\Local\Temp\git\1434981713451'...* >> *warning: Could not find remote branch >> 8670959210f07f5a483e40b7fbfdb8ca5a50d3f to clone.* >> *fatal: Remote branch 8670959210f07f5a483e40b7fbfdb8ca5a50d3f not found >> in upstream origin* >> *Unexpected end of command stream* >> * at ChildProcess.whenDone >> (C:\Users\fturizo\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:134:23)* >> * at ChildProcess.emit (events.js:110:17)* >> * at maybeClose (child_process.js:1015:16)* >> * at Process.ChildProcess._handle.onexit (child_process.js:1087:5)* >> *Error: C:\Program Files (x86)\Git\cmd\git.exe: Command failed with exit >> code 128 Error output:* >> *Cloning into 'C:\Users\fturizo\AppData\Local\Temp\git\1434981713451'...* >> *warning: Could not find remote branch >> 8670959210f07f5a483e40b7fbfdb8ca5a50d3f to clone.* >> *fatal: Remote branch 8670959210f07f5a483e40b7fbfdb8ca5a50d3f not found >> in upstream origin* >> *Unexpected end of command stream* >> * at ChildProcess.whenDone >> (C:\Users\fturizo\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:134:23)* >> * at ChildProcess.emit (events.js:110:17)* >> * at maybeClose (child_process.js:1015:16)* >> * at Process.ChildProcess._handle.onexit (child_process.js:1087:5)* >> >> >> El lun., 22 de jun. de 2015 a la(s) 9:01 a. m., Fabio Turizo < >> fabio.turizo at gmail.com> escribi?: >> >>> I also tried to install it on another workstation with cordova v4.3.0, >>> and it worked: >>> >>> >>> *Fetching plugin "org.jboss.aerogear.cordova.push" via plugin registry* >>> *Installing "org.jboss.aerogear.cordova.push" for android* >>> *Fetching plugin "https://github.com/vstirbu/PromisesPlugin.git >>> " via git clone* >>> *Installing "com.vladstirbu.cordova.promise" for android* >>> *Installing "android.support.v4" for android* >>> *Installing "com.google.playservices" for android* >>> >>> Checking the plugin list: >>> >>> *org.jboss.aerogear.cordova.push 1.0.2 "* >>> * AeroGear PushPlugin* >>> * "* >>> >>> El lun., 22 de jun. de 2015 a la(s) 8:24 a. m., Fabio Turizo < >>> fabio.turizo at gmail.com> escribi?: >>> >>>> I tried installing the plugin as you instructed, but i get the >>>> following error: >>>> >>>> *WARNING: org.jboss.aerogear.cordova.push has been renamed to >>>> aerogear-cordova-push. You may not be getting the latest version! We >>>> suggest you `cordova plugin rm org.jboss.aerogear.cordova.push` and >>>> `cordova plugin add aerogear-cordova-push`.* >>>> *Fetching plugin "org.jboss.aerogear.cordova.push" via cordova plugins >>>> registry* >>>> *npm http GET >>>> http://registry.cordova.io/org.jboss.aerogear.cordova.push >>>> * >>>> *npm http 304 >>>> http://registry.cordova.io/org.jboss.aerogear.cordova.push >>>> * >>>> *Installing "org.jboss.aerogear.cordova.push" for android* >>>> *Fetching plugin "https://github.com/vstirbu/PromisesPlugin.git >>>> " via git clone* >>>> *Repository "https://github.com/vstirbu/PromisesPlugin.git >>>> " checked out to git ref >>>> "master".* >>>> *Installing "com.vladstirbu.cordova.promise" for android* >>>> *Fetching plugin >>>> "https://github.com/MobileChromeApps/cordova-plugin-android-support-v4 >>>> " >>>> via git clone* >>>> *Failed to install 'org.jboss.aerogear.cordova.push':Error: C:\Program >>>> Files (x86)\Git\cmd\git.exe: Command failed with exit code 128 Error >>>> output:* >>>> *Cloning into >>>> 'C:\Users\fturizo\AppData\Local\Temp\git\1434978837894'...* >>>> *warning: Could not find remote branch >>>> 8670959210f07f5a483e40b7fbfdb8ca5a50d3f to clone.* >>>> *fatal: Remote branch 8670959210f07f5a483e40b7fbfdb8ca5a50d3f not found >>>> in upstream origin* >>>> *Unexpected end of command stream* >>>> * at ChildProcess.whenDone >>>> (C:\Users\fturizo\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:134:23)* >>>> * at ChildProcess.emit (events.js:110:17)* >>>> * at maybeClose (child_process.js:1015:16)* >>>> * at Process.ChildProcess._handle.onexit (child_process.js:1087:5)* >>>> *Error: C:\Program Files (x86)\Git\cmd\git.exe: Command failed with >>>> exit code 128 Error output:* >>>> *Cloning into >>>> 'C:\Users\fturizo\AppData\Local\Temp\git\1434978837894'...* >>>> *warning: Could not find remote branch >>>> 8670959210f07f5a483e40b7fbfdb8ca5a50d3f to clone.* >>>> *fatal: Remote branch 8670959210f07f5a483e40b7fbfdb8ca5a50d3f not found >>>> in upstream origin* >>>> *Unexpected end of command stream* >>>> * at ChildProcess.whenDone >>>> (C:\Users\fturizo\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:134:23)* >>>> * at ChildProcess.emit (events.js:110:17)* >>>> * at maybeClose (child_process.js:1015:16)* >>>> * at Process.ChildProcess._handle.onexit (child_process.js:1087:5)* >>>> >>>> I'm getting this error in multiple workstations, so i'm assuming the >>>> plugin installation has issues. >>>> >>>> El dom., 21 de jun. de 2015 a la(s) 11:32 p. m., S?bastien Blanc < >>>> scm.blanc at gmail.com> escribi?: >>>> >>>>> Hi ! >>>>> The plugin from GitHub master relies on an aerogear android library >>>>> with a snapshot version that is not on maven. >>>>> The easiest way is to install the plugin from cordova's registry : >>>>> >>>>> cordova plugin add org.jboss.aerogear.cordova.push >>>>> >>>>> If you really need the master version of the plugi. You will need to >>>>> build all the android lib locally. >>>>> Sebi >>>>> >>>>> >>>>> Envoy? de mon iPhone >>>>> >>>>> Le 22 juin 2015 ? 02:34, Fabio Turizo a >>>>> ?crit : >>>>> >>>>> I haven't been capable of building a cordova project for android using >>>>> the cordova aerogear plugin. First, the plugin is installed like this: >>>>> >>>>> *cordova plugin add >>>>> https://github.com/aerogear/aerogear-pushplugin-cordova.git >>>>> * >>>>> >>>>> And the plugin is installed succesfully: >>>>> >>>>> *Fetching plugin >>>>> "https://github.com/aerogear/aerogear-pushplugin-cordova.git >>>>> " via git >>>>> clone* >>>>> *Repository >>>>> "https://github.com/aerogear/aerogear-pushplugin-cordova.git >>>>> " checked out >>>>> to git ref "master".* >>>>> *Installing "org.jboss.aerogear.cordova.push" for android* >>>>> *Fetching plugin "https://github.com/vstirbu/PromisesPlugin.git >>>>> " via git clone* >>>>> *Repository "https://github.com/vstirbu/PromisesPlugin.git >>>>> " checked out to git ref >>>>> "master".* >>>>> >>>>> However when building for Android i always get the following errors: >>>>> >>>>> *FAILURE: Build failed with an exception.* >>>>> >>>>> ** What went wrong:* >>>>> *A problem occurred configuring root project 'android'.* >>>>> *> Could not resolve all dependencies for configuration >>>>> ':_debugCompile'.* >>>>> * > Could not find any version that matches >>>>> com.android.support:appcompat-v7:22.+.* >>>>> * Searched in the following locations:* >>>>> * >>>>> https://repo1.maven.org/maven2/com/android/support/appcompat-v7/maven-metadata.xml >>>>> * >>>>> * >>>>> https://repo1.maven.org/maven2/com/android/support/appcompat-v7/ >>>>> * >>>>> * Required by:* >>>>> * :android:unspecified* >>>>> * > Could not find >>>>> org.jboss.aerogear:aerogear-android-core:2.2.0-SNAPSHOT.* >>>>> * Searched in the following locations:* >>>>> * >>>>> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-core/2.2.0-SNAPSHOT/maven-metadata.xml >>>>> * >>>>> * >>>>> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-core/2.2.0-SNAPSHOT/aerogear-android-core-2.2.0-SNAPSHOT.pom >>>>> * >>>>> * >>>>> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-core/2.2.0-SNAPSHOT/aerogear-android-core-2.2.0-SNAPSHOT.jar >>>>> * >>>>> * Required by:* >>>>> * :android:unspecified* >>>>> * > Could not find >>>>> org.jboss.aerogear:aerogear-android-pipe:2.2.0-SNAPSHOT.* >>>>> * Searched in the following locations:* >>>>> * >>>>> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-pipe/2.2.0-SNAPSHOT/maven-metadata.xml >>>>> * >>>>> * >>>>> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-pipe/2.2.0-SNAPSHOT/aerogear-android-pipe-2.2.0-SNAPSHOT.pom >>>>> * >>>>> * >>>>> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-pipe/2.2.0-SNAPSHOT/aerogear-android-pipe-2.2.0-SNAPSHOT.jar >>>>> * >>>>> * Required by:* >>>>> * :android:unspecified* >>>>> * > Could not find >>>>> org.jboss.aerogear:aerogear-android-push:2.2.0-SNAPSHOT.* >>>>> * Searched in the following locations:* >>>>> * >>>>> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-push/2.2.0-SNAPSHOT/maven-metadata.xml >>>>> * >>>>> * >>>>> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-push/2.2.0-SNAPSHOT/aerogear-android-push-2.2.0-SNAPSHOT.pom >>>>> * >>>>> * >>>>> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-push/2.2.0-SNAPSHOT/aerogear-android-push-2.2.0-SNAPSHOT.jar >>>>> * >>>>> * Required by:* >>>>> * :android:unspecified* >>>>> >>>>> I tried unistalling cordova and npm, but to no avail i haven't been >>>>> capable of building an app that uses AeroGear. >>>>> >>>>> Any assistance is gladly welcome. >>>>> >>>>> *P.S*: Using Cordova 5.1.1 for Android 5.1 >>>>> >>>>> >>>>> _______________________________________________ >>>>> Aerogear-users mailing list >>>>> Aerogear-users at lists.jboss.org >>>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>>> >>>>> _______________________________________________ >>>>> Aerogear-users mailing list >>>>> Aerogear-users at lists.jboss.org >>>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>>> >>>> >> _______________________________________________ >> Aerogear-users mailing list >> Aerogear-users at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-users >> >> > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150622/ffdf84e1/attachment-0001.html From matzew at apache.org Tue Jun 23 01:07:08 2015 From: matzew at apache.org (Matthias Wessendorf) Date: Tue, 23 Jun 2015 07:07:08 +0200 Subject: [Aerogear-users] What's new in AeroGear? Message-ID: Hi all, here is a community update *Android We fixed the bug Matthias found last week and staged the AeroGear Android Push 2.2.0 again: http://aerogear-dev.1069024.n5.nabble.com/aerogear-dev-AeroGear-Android-Push-2-2-0-tp11781p11813.html * iOS lovers, Last week we released aerogear-ios-push in its Swift and Objc version, see by yourself: https://github.com/aerogear/aerogear-ios-push/tree/1.1.0-beta.2 https://github.com/aerogear/aerogear-ios-push/tree/1.1.0-beta.2-swift This new version include an enhance config file management, you can now have your serverURL, varianID, vareiantSecret read from config file. This week we'll work on moving aerogear-ios-http and aerogear-ios-oauth2 to Swift 2.0. Watch out for a swift2.0 branch, coming soon. * Push The UnifiedPush Server is working towards 1.1.0.Final - Internally we will be also using the latest release of Keycloak (1.3.1): https://github.com/aerogear/aerogear-unifiedpush-server/pull/601 On the WebPush side, our GSoC student Idel is continuing to make improvements to our server and console. Worth to visit the repo: https://github.com/aerogear/aerogear-webpush-server For the UPS cartridge, we are looking to improve memory and based on a suggestion by the awesome Farah, we are removing JGroups subsystem https://github.com/aerogear/openshift-origin-cartridge-aerogear-push/pull/18 A few releases have been produced over the last week * SimplePush client release (0.2.0) * java-mpns release (0.2.0) * aerogear-parent release (0.2.16) Have fun! -- 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-users/attachments/20150623/46d06e75/attachment.html From edewit at redhat.com Tue Jun 23 04:15:14 2015 From: edewit at redhat.com (Erik Jan de Wit) Date: Tue, 23 Jun 2015 10:15:14 +0200 Subject: [Aerogear-users] Cannot build cordova project with aerogear push plugin In-Reply-To: References: <04F91699-6783-40DC-8EB3-C86B3169C1E7@gmail.com> Message-ID: seems that it can't get one of the plugin dependencies with git (cordova-plugin-android-support-v4) we depend on this plugin with a fixed commit because it doesn't have any tags or releases. Now it seems that the commit we depend on is no longer there. We need to release another version of the plugin to fix this. On Mon, Jun 22, 2015 at 3:26 PM, Fabio Turizo wrote: > I tried installing the plugin as you instructed, but i get the following > error: > > WARNING: org.jboss.aerogear.cordova.push has been renamed to > aerogear-cordova-push. You may not be getting the latest version! We suggest > you `cordova plugin rm org.jboss.aerogear.cordova.push` and `cordova plugin > add aerogear-cordova-push`. > Fetching plugin "org.jboss.aerogear.cordova.push" via cordova plugins > registry > npm http GET http://registry.cordova.io/org.jboss.aerogear.cordova.push > npm http 304 http://registry.cordova.io/org.jboss.aerogear.cordova.push > Installing "org.jboss.aerogear.cordova.push" for android > Fetching plugin "https://github.com/vstirbu/PromisesPlugin.git" via git > clone > Repository "https://github.com/vstirbu/PromisesPlugin.git" checked out to > git ref "master". > Installing "com.vladstirbu.cordova.promise" for android > Fetching plugin > "https://github.com/MobileChromeApps/cordova-plugin-android-support-v4" via > git clone > Failed to install 'org.jboss.aerogear.cordova.push':Error: C:\Program Files > (x86)\Git\cmd\git.exe: Command failed with exit code 128 Error output: > Cloning into 'C:\Users\fturizo\AppData\Local\Temp\git\1434978837894'... > warning: Could not find remote branch > 8670959210f07f5a483e40b7fbfdb8ca5a50d3f to clone. > fatal: Remote branch 8670959210f07f5a483e40b7fbfdb8ca5a50d3f not found in > upstream origin > Unexpected end of command stream > at ChildProcess.whenDone > (C:\Users\fturizo\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:134:23) > at ChildProcess.emit (events.js:110:17) > at maybeClose (child_process.js:1015:16) > at Process.ChildProcess._handle.onexit (child_process.js:1087:5) > Error: C:\Program Files (x86)\Git\cmd\git.exe: Command failed with exit code > 128 Error output: > Cloning into 'C:\Users\fturizo\AppData\Local\Temp\git\1434978837894'... > warning: Could not find remote branch > 8670959210f07f5a483e40b7fbfdb8ca5a50d3f to clone. > fatal: Remote branch 8670959210f07f5a483e40b7fbfdb8ca5a50d3f not found in > upstream origin > Unexpected end of command stream > at ChildProcess.whenDone > (C:\Users\fturizo\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:134:23) > at ChildProcess.emit (events.js:110:17) > at maybeClose (child_process.js:1015:16) > at Process.ChildProcess._handle.onexit (child_process.js:1087:5) > > I'm getting this error in multiple workstations, so i'm assuming the plugin > installation has issues. > > El dom., 21 de jun. de 2015 a la(s) 11:32 p. m., S?bastien Blanc > escribi?: >> >> Hi ! >> The plugin from GitHub master relies on an aerogear android library with a >> snapshot version that is not on maven. >> The easiest way is to install the plugin from cordova's registry : >> >> cordova plugin add org.jboss.aerogear.cordova.push >> >> If you really need the master version of the plugi. You will need to build >> all the android lib locally. >> Sebi >> >> >> Envoy? de mon iPhone >> >> Le 22 juin 2015 ? 02:34, Fabio Turizo a ?crit : >> >> I haven't been capable of building a cordova project for android using the >> cordova aerogear plugin. First, the plugin is installed like this: >> >> cordova plugin add >> https://github.com/aerogear/aerogear-pushplugin-cordova.git >> >> And the plugin is installed succesfully: >> >> Fetching plugin >> "https://github.com/aerogear/aerogear-pushplugin-cordova.git" via git clone >> Repository "https://github.com/aerogear/aerogear-pushplugin-cordova.git" >> checked out to git ref "master". >> Installing "org.jboss.aerogear.cordova.push" for android >> Fetching plugin "https://github.com/vstirbu/PromisesPlugin.git" via git >> clone >> Repository "https://github.com/vstirbu/PromisesPlugin.git" checked out to >> git ref "master". >> >> However when building for Android i always get the following errors: >> >> FAILURE: Build failed with an exception. >> >> * What went wrong: >> A problem occurred configuring root project 'android'. >> > Could not resolve all dependencies for configuration ':_debugCompile'. >> > Could not find any version that matches >> com.android.support:appcompat-v7:22.+. >> Searched in the following locations: >> >> https://repo1.maven.org/maven2/com/android/support/appcompat-v7/maven-metadata.xml >> https://repo1.maven.org/maven2/com/android/support/appcompat-v7/ >> Required by: >> :android:unspecified >> > Could not find >> org.jboss.aerogear:aerogear-android-core:2.2.0-SNAPSHOT. >> Searched in the following locations: >> >> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-core/2.2.0-SNAPSHOT/maven-metadata.xml >> >> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-core/2.2.0-SNAPSHOT/aerogear-android-core-2.2.0-SNAPSHOT.pom >> >> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-core/2.2.0-SNAPSHOT/aerogear-android-core-2.2.0-SNAPSHOT.jar >> Required by: >> :android:unspecified >> > Could not find >> org.jboss.aerogear:aerogear-android-pipe:2.2.0-SNAPSHOT. >> Searched in the following locations: >> >> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-pipe/2.2.0-SNAPSHOT/maven-metadata.xml >> >> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-pipe/2.2.0-SNAPSHOT/aerogear-android-pipe-2.2.0-SNAPSHOT.pom >> >> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-pipe/2.2.0-SNAPSHOT/aerogear-android-pipe-2.2.0-SNAPSHOT.jar >> Required by: >> :android:unspecified >> > Could not find >> org.jboss.aerogear:aerogear-android-push:2.2.0-SNAPSHOT. >> Searched in the following locations: >> >> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-push/2.2.0-SNAPSHOT/maven-metadata.xml >> >> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-push/2.2.0-SNAPSHOT/aerogear-android-push-2.2.0-SNAPSHOT.pom >> >> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-push/2.2.0-SNAPSHOT/aerogear-android-push-2.2.0-SNAPSHOT.jar >> Required by: >> :android:unspecified >> >> I tried unistalling cordova and npm, but to no avail i haven't been >> capable of building an app that uses AeroGear. >> >> Any assistance is gladly welcome. >> >> P.S: Using Cordova 5.1.1 for Android 5.1 >> >> >> _______________________________________________ >> Aerogear-users mailing list >> Aerogear-users at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-users >> >> _______________________________________________ >> Aerogear-users mailing list >> Aerogear-users at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-users > > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > -- Cheers, Erik Jan From matzew at apache.org Tue Jun 23 09:06:19 2015 From: matzew at apache.org (Matthias Wessendorf) Date: Tue, 23 Jun 2015 15:06:19 +0200 Subject: [Aerogear-users] Default heap size and OOM In-Reply-To: References: <1434561252592-56.post@n5.nabble.com> <1434639450383-58.post@n5.nabble.com> Message-ID: Hi Mo, the PR has been merged, and it should improve the situation a bit PS: next will be removing SimplePush from the cartridge On Thu, Jun 18, 2015 at 5:17 PM, Matthias Wessendorf wrote: > Hi , > > > > [1] > https://github.com/aerogear/openshift-origin-cartridge-aerogear-push/pull/18 > > On Thu, Jun 18, 2015 at 4:57 PM, mo wrote: > >> Thanks, Matthias. I take your reply to mean "No, one shouldn't have to >> increase JVM heap size." >> > > yeah, if you really want to, you can try tweaking the jvm heap size (as > long as you still use a function of the max memory available on the gear) > > > But also please review the changes done in > > https://github.com/aerogear/openshift-origin-cartridge-aerogear-push/pull/18 > > You could port them over to your instance. Makes sense ? > > More coming soon. > > > >> >> Let me list some more parameters, in the hope that you might spot >> something >> obvious that we can correct on our side. It's been difficult to >> troubleshoot this, because when the problem happens we can't even SSH into >> the server. I believe whatever the problem is, it's exhausting resources >> on >> the server. >> >> Parameters: >> >> 1. Deployed on OpenShift using the cartridge found here: >> https://github.com/aerogear/openshift-origin-cartridge-aerogear-push >> >> 2. AeroGear UnifiedPush Server 1.0.3 and WildFly, MySQL 5.5, Medium gear. >> 3. One application is defined with one variant (simple-push), 131 >> installations registered. >> 4. We are using all default settings. We haven't customized the JVM max >> heap size, for example. The server log tells me "-Xmx512m". >> >> Here are the reproduction steps. This happened reliably two days ago. We >> couldn't reproduce this yesterday after a fresh restart of AeroGear. >> >> 1. Logged into AeroGear as admin >> 2. Select "Send Push" >> 3. Select an application >> 4. Hit "Send Push Notification", multiple times one after another. About >> 10 >> consecutive messages would cause OutOfMemoryError on our server. >> >> Here's a relevant snippet of the server log: >> >> [0m [0m17:03:29,511 INFO [PushNotificationSenderEndpoint] (default >> task-28) Message submitted to PushNetworks for further processing >> [0m [0m17:03:29,513 INFO [JPAPushMessageInformationDao] (EJB default - >> 6) >> Processing send request with '[alert=, criteria=[aliases=null, >> deviceTypes=null, categories=null, variants=null], time-to-live=-1]' >> payload >> [0m [31m17:03:29,837 ERROR [org.jboss.as.ejb3.invocation] (EJB default - >> 6) >> JBAS014134: EJB Invocation failed on component SenderServiceImpl for >> method >> public abstract void >> >> org.jboss.aerogear.unifiedpush.message.SenderService.send(org.jboss.aerogear.unifiedpush.api.PushApplication,org.jboss.aerogear.unifiedpush.message.UnifiedPushMessage): >> javax.ejb.EJBException: JBAS014580: Unexpected Error >> at >> >> org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java:187) >> [wildfly-ejb3-8.1.0.Final.jar:8.1.0.Final] >> at >> >> org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:275) >> [wildfly-ejb3-8.1.0.Final.jar:8.1.0.Final] >> >> . >> . >> . >> >> [wildfly-ejb3-8.1.0.Final.jar:8.1.0.Final] >> at >> >> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) >> [rt.jar:1.7.0_79] >> at >> >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) >> [rt.jar:1.7.0_79] >> at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_79] >> at org.jboss.threads.JBossThread.run(JBossThread.java:122) >> Caused by: java.lang.OutOfMemoryError: unable to create new native thread >> at java.lang.Thread.start0(Native Method) [rt.jar:1.7.0_79] >> at java.lang.Thread.start(Thread.java:714) [rt.jar:1.7.0_79] >> at >> sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1056) >> [jsse.jar:1.7.0_79] >> at >> >> sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1332) >> [jsse.jar:1.7.0_79] >> at >> sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1359) >> [jsse.jar:1.7.0_79] >> . >> . >> . >> >> >> org.jboss.aerogear.unifiedpush.message.sender.SimplePushNotificationSender.put(SimplePushNotificationSender.java:111) >> [unifiedpush-push-1.0.3.jar:1.0.3] >> at >> >> org.jboss.aerogear.unifiedpush.message.sender.SimplePushNotificationSender.sendPushMessage(SimplePushNotificationSender.java:65) >> [unifiedpush-push-1.0.3.jar:1.0.3] >> at >> >> org.jboss.aerogear.unifiedpush.message.SenderServiceImpl.send(SenderServiceImpl.java:110) >> [unifiedpush-push-1.0.3.jar:1.0.3] >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> [rt.jar:1.7.0_79] >> at >> >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) >> [rt.jar:1.7.0_79] >> at >> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >> [rt.jar:1.7.0_79] >> at java.lang.reflect.Method.invoke(Method.java:606) >> [rt.jar:1.7.0_79] >> at >> >> org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52) >> >> . >> . >> . >> >> at >> >> org.jboss.as.ejb3.component.interceptors.NonPooledEJBComponentInstanceAssociatingInterceptor.processInvocation(NonPooledEJBComponentInstanceAssociatingInterceptor.java:59) >> [wildfly-ejb3-8.1.0.Final.jar:8.1.0.Final] >> 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.Final.jar:8.1.0.Final] >> ... 38 more >> >> >> >> >> -- >> View this message in context: >> http://aerogear-users.1116366.n5.nabble.com/Default-heap-size-and-OOM-tp56p58.html >> Sent from the aerogear-users mailing list archive at Nabble.com. >> >> _______________________________________________ >> Aerogear-users mailing list >> Aerogear-users at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-users >> > > > > -- > Matthias Wessendorf > > blog: http://matthiaswessendorf.wordpress.com/ > sessions: http://www.slideshare.net/mwessendorf > twitter: http://twitter.com/mwessendorf > -- 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-users/attachments/20150623/cbbd75c6/attachment-0001.html From michi.oshima at gmail.com Tue Jun 23 10:09:46 2015 From: michi.oshima at gmail.com (mo) Date: Tue, 23 Jun 2015 07:09:46 -0700 (MST) Subject: [Aerogear-users] Default heap size and OOM In-Reply-To: References: <1434561252592-56.post@n5.nabble.com> <1434639450383-58.post@n5.nabble.com> Message-ID: <1435068586124-76.post@n5.nabble.com> Awesome. Thank you, Matthias. I'm currently revising our client side code, as it is likely contributing to wasted resources on the server side. I will post a report after the revision and testing. -- View this message in context: http://aerogear-users.1116366.n5.nabble.com/Default-heap-size-and-OOM-tp56p76.html Sent from the aerogear-users mailing list archive at Nabble.com. From fabio.turizo at gmail.com Tue Jun 23 10:17:54 2015 From: fabio.turizo at gmail.com (Fabio Turizo) Date: Tue, 23 Jun 2015 14:17:54 +0000 Subject: [Aerogear-users] Cannot build cordova project with aerogear push plugin In-Reply-To: References: <04F91699-6783-40DC-8EB3-C86B3169C1E7@gmail.com> Message-ID: Do you have an estimate when this new version would be released? El mar., 23 de jun. de 2015 a la(s) 3:15 a. m., Erik Jan de Wit < edewit at redhat.com> escribi?: > seems that it can't get one of the plugin dependencies with git > (cordova-plugin-android-support-v4) we depend on this plugin with a > fixed commit because it doesn't have any tags or releases. Now it > seems that the commit we depend on is no longer there. We need to > release another version of the plugin to fix this. > > On Mon, Jun 22, 2015 at 3:26 PM, Fabio Turizo > wrote: > > I tried installing the plugin as you instructed, but i get the following > > error: > > > > WARNING: org.jboss.aerogear.cordova.push has been renamed to > > aerogear-cordova-push. You may not be getting the latest version! We > suggest > > you `cordova plugin rm org.jboss.aerogear.cordova.push` and `cordova > plugin > > add aerogear-cordova-push`. > > Fetching plugin "org.jboss.aerogear.cordova.push" via cordova plugins > > registry > > npm http GET http://registry.cordova.io/org.jboss.aerogear.cordova.push > > npm http 304 http://registry.cordova.io/org.jboss.aerogear.cordova.push > > Installing "org.jboss.aerogear.cordova.push" for android > > Fetching plugin "https://github.com/vstirbu/PromisesPlugin.git" via git > > clone > > Repository "https://github.com/vstirbu/PromisesPlugin.git" checked out > to > > git ref "master". > > Installing "com.vladstirbu.cordova.promise" for android > > Fetching plugin > > "https://github.com/MobileChromeApps/cordova-plugin-android-support-v4" > via > > git clone > > Failed to install 'org.jboss.aerogear.cordova.push':Error: C:\Program > Files > > (x86)\Git\cmd\git.exe: Command failed with exit code 128 Error output: > > Cloning into 'C:\Users\fturizo\AppData\Local\Temp\git\1434978837894'... > > warning: Could not find remote branch > > 8670959210f07f5a483e40b7fbfdb8ca5a50d3f to clone. > > fatal: Remote branch 8670959210f07f5a483e40b7fbfdb8ca5a50d3f not found in > > upstream origin > > Unexpected end of command stream > > at ChildProcess.whenDone > > > (C:\Users\fturizo\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:134:23) > > at ChildProcess.emit (events.js:110:17) > > at maybeClose (child_process.js:1015:16) > > at Process.ChildProcess._handle.onexit (child_process.js:1087:5) > > Error: C:\Program Files (x86)\Git\cmd\git.exe: Command failed with exit > code > > 128 Error output: > > Cloning into 'C:\Users\fturizo\AppData\Local\Temp\git\1434978837894'... > > warning: Could not find remote branch > > 8670959210f07f5a483e40b7fbfdb8ca5a50d3f to clone. > > fatal: Remote branch 8670959210f07f5a483e40b7fbfdb8ca5a50d3f not found in > > upstream origin > > Unexpected end of command stream > > at ChildProcess.whenDone > > > (C:\Users\fturizo\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:134:23) > > at ChildProcess.emit (events.js:110:17) > > at maybeClose (child_process.js:1015:16) > > at Process.ChildProcess._handle.onexit (child_process.js:1087:5) > > > > I'm getting this error in multiple workstations, so i'm assuming the > plugin > > installation has issues. > > > > El dom., 21 de jun. de 2015 a la(s) 11:32 p. m., S?bastien Blanc > > escribi?: > >> > >> Hi ! > >> The plugin from GitHub master relies on an aerogear android library > with a > >> snapshot version that is not on maven. > >> The easiest way is to install the plugin from cordova's registry : > >> > >> cordova plugin add org.jboss.aerogear.cordova.push > >> > >> If you really need the master version of the plugi. You will need to > build > >> all the android lib locally. > >> Sebi > >> > >> > >> Envoy? de mon iPhone > >> > >> Le 22 juin 2015 ? 02:34, Fabio Turizo a ?crit > : > >> > >> I haven't been capable of building a cordova project for android using > the > >> cordova aerogear plugin. First, the plugin is installed like this: > >> > >> cordova plugin add > >> https://github.com/aerogear/aerogear-pushplugin-cordova.git > >> > >> And the plugin is installed succesfully: > >> > >> Fetching plugin > >> "https://github.com/aerogear/aerogear-pushplugin-cordova.git" via git > clone > >> Repository "https://github.com/aerogear/aerogear-pushplugin-cordova.git > " > >> checked out to git ref "master". > >> Installing "org.jboss.aerogear.cordova.push" for android > >> Fetching plugin "https://github.com/vstirbu/PromisesPlugin.git" via git > >> clone > >> Repository "https://github.com/vstirbu/PromisesPlugin.git" checked out > to > >> git ref "master". > >> > >> However when building for Android i always get the following errors: > >> > >> FAILURE: Build failed with an exception. > >> > >> * What went wrong: > >> A problem occurred configuring root project 'android'. > >> > Could not resolve all dependencies for configuration ':_debugCompile'. > >> > Could not find any version that matches > >> com.android.support:appcompat-v7:22.+. > >> Searched in the following locations: > >> > >> > https://repo1.maven.org/maven2/com/android/support/appcompat-v7/maven-metadata.xml > >> > https://repo1.maven.org/maven2/com/android/support/appcompat-v7/ > >> Required by: > >> :android:unspecified > >> > Could not find > >> org.jboss.aerogear:aerogear-android-core:2.2.0-SNAPSHOT. > >> Searched in the following locations: > >> > >> > https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-core/2.2.0-SNAPSHOT/maven-metadata.xml > >> > >> > https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-core/2.2.0-SNAPSHOT/aerogear-android-core-2.2.0-SNAPSHOT.pom > >> > >> > https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-core/2.2.0-SNAPSHOT/aerogear-android-core-2.2.0-SNAPSHOT.jar > >> Required by: > >> :android:unspecified > >> > Could not find > >> org.jboss.aerogear:aerogear-android-pipe:2.2.0-SNAPSHOT. > >> Searched in the following locations: > >> > >> > https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-pipe/2.2.0-SNAPSHOT/maven-metadata.xml > >> > >> > https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-pipe/2.2.0-SNAPSHOT/aerogear-android-pipe-2.2.0-SNAPSHOT.pom > >> > >> > https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-pipe/2.2.0-SNAPSHOT/aerogear-android-pipe-2.2.0-SNAPSHOT.jar > >> Required by: > >> :android:unspecified > >> > Could not find > >> org.jboss.aerogear:aerogear-android-push:2.2.0-SNAPSHOT. > >> Searched in the following locations: > >> > >> > https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-push/2.2.0-SNAPSHOT/maven-metadata.xml > >> > >> > https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-push/2.2.0-SNAPSHOT/aerogear-android-push-2.2.0-SNAPSHOT.pom > >> > >> > https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-push/2.2.0-SNAPSHOT/aerogear-android-push-2.2.0-SNAPSHOT.jar > >> Required by: > >> :android:unspecified > >> > >> I tried unistalling cordova and npm, but to no avail i haven't been > >> capable of building an app that uses AeroGear. > >> > >> Any assistance is gladly welcome. > >> > >> P.S: Using Cordova 5.1.1 for Android 5.1 > >> > >> > >> _______________________________________________ > >> Aerogear-users mailing list > >> Aerogear-users at lists.jboss.org > >> https://lists.jboss.org/mailman/listinfo/aerogear-users > >> > >> _______________________________________________ > >> Aerogear-users mailing list > >> Aerogear-users at lists.jboss.org > >> https://lists.jboss.org/mailman/listinfo/aerogear-users > > > > > > _______________________________________________ > > Aerogear-users mailing list > > Aerogear-users at lists.jboss.org > > https://lists.jboss.org/mailman/listinfo/aerogear-users > > > > > > -- > Cheers, > Erik Jan > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150623/97ad7bdc/attachment.html From edewit at redhat.com Tue Jun 23 10:35:43 2015 From: edewit at redhat.com (Erik Jan de Wit) Date: Tue, 23 Jun 2015 16:35:43 +0200 Subject: [Aerogear-users] Cannot build cordova project with aerogear push plugin In-Reply-To: References: <04F91699-6783-40DC-8EB3-C86B3169C1E7@gmail.com> Message-ID: Yeah tomorrow On Tue, Jun 23, 2015 at 4:17 PM, Fabio Turizo wrote: > Do you have an estimate when this new version would be released? > > El mar., 23 de jun. de 2015 a la(s) 3:15 a. m., Erik Jan de Wit > escribi?: >> >> seems that it can't get one of the plugin dependencies with git >> (cordova-plugin-android-support-v4) we depend on this plugin with a >> fixed commit because it doesn't have any tags or releases. Now it >> seems that the commit we depend on is no longer there. We need to >> release another version of the plugin to fix this. >> >> On Mon, Jun 22, 2015 at 3:26 PM, Fabio Turizo >> wrote: >> > I tried installing the plugin as you instructed, but i get the following >> > error: >> > >> > WARNING: org.jboss.aerogear.cordova.push has been renamed to >> > aerogear-cordova-push. You may not be getting the latest version! We >> > suggest >> > you `cordova plugin rm org.jboss.aerogear.cordova.push` and `cordova >> > plugin >> > add aerogear-cordova-push`. >> > Fetching plugin "org.jboss.aerogear.cordova.push" via cordova plugins >> > registry >> > npm http GET http://registry.cordova.io/org.jboss.aerogear.cordova.push >> > npm http 304 http://registry.cordova.io/org.jboss.aerogear.cordova.push >> > Installing "org.jboss.aerogear.cordova.push" for android >> > Fetching plugin "https://github.com/vstirbu/PromisesPlugin.git" via git >> > clone >> > Repository "https://github.com/vstirbu/PromisesPlugin.git" checked out >> > to >> > git ref "master". >> > Installing "com.vladstirbu.cordova.promise" for android >> > Fetching plugin >> > "https://github.com/MobileChromeApps/cordova-plugin-android-support-v4" >> > via >> > git clone >> > Failed to install 'org.jboss.aerogear.cordova.push':Error: C:\Program >> > Files >> > (x86)\Git\cmd\git.exe: Command failed with exit code 128 Error output: >> > Cloning into 'C:\Users\fturizo\AppData\Local\Temp\git\1434978837894'... >> > warning: Could not find remote branch >> > 8670959210f07f5a483e40b7fbfdb8ca5a50d3f to clone. >> > fatal: Remote branch 8670959210f07f5a483e40b7fbfdb8ca5a50d3f not found >> > in >> > upstream origin >> > Unexpected end of command stream >> > at ChildProcess.whenDone >> > >> > (C:\Users\fturizo\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:134:23) >> > at ChildProcess.emit (events.js:110:17) >> > at maybeClose (child_process.js:1015:16) >> > at Process.ChildProcess._handle.onexit (child_process.js:1087:5) >> > Error: C:\Program Files (x86)\Git\cmd\git.exe: Command failed with exit >> > code >> > 128 Error output: >> > Cloning into 'C:\Users\fturizo\AppData\Local\Temp\git\1434978837894'... >> > warning: Could not find remote branch >> > 8670959210f07f5a483e40b7fbfdb8ca5a50d3f to clone. >> > fatal: Remote branch 8670959210f07f5a483e40b7fbfdb8ca5a50d3f not found >> > in >> > upstream origin >> > Unexpected end of command stream >> > at ChildProcess.whenDone >> > >> > (C:\Users\fturizo\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:134:23) >> > at ChildProcess.emit (events.js:110:17) >> > at maybeClose (child_process.js:1015:16) >> > at Process.ChildProcess._handle.onexit (child_process.js:1087:5) >> > >> > I'm getting this error in multiple workstations, so i'm assuming the >> > plugin >> > installation has issues. >> > >> > El dom., 21 de jun. de 2015 a la(s) 11:32 p. m., S?bastien Blanc >> > escribi?: >> >> >> >> Hi ! >> >> The plugin from GitHub master relies on an aerogear android library >> >> with a >> >> snapshot version that is not on maven. >> >> The easiest way is to install the plugin from cordova's registry : >> >> >> >> cordova plugin add org.jboss.aerogear.cordova.push >> >> >> >> If you really need the master version of the plugi. You will need to >> >> build >> >> all the android lib locally. >> >> Sebi >> >> >> >> >> >> Envoy? de mon iPhone >> >> >> >> Le 22 juin 2015 ? 02:34, Fabio Turizo a ?crit >> >> : >> >> >> >> I haven't been capable of building a cordova project for android using >> >> the >> >> cordova aerogear plugin. First, the plugin is installed like this: >> >> >> >> cordova plugin add >> >> https://github.com/aerogear/aerogear-pushplugin-cordova.git >> >> >> >> And the plugin is installed succesfully: >> >> >> >> Fetching plugin >> >> "https://github.com/aerogear/aerogear-pushplugin-cordova.git" via git >> >> clone >> >> Repository >> >> "https://github.com/aerogear/aerogear-pushplugin-cordova.git" >> >> checked out to git ref "master". >> >> Installing "org.jboss.aerogear.cordova.push" for android >> >> Fetching plugin "https://github.com/vstirbu/PromisesPlugin.git" via git >> >> clone >> >> Repository "https://github.com/vstirbu/PromisesPlugin.git" checked out >> >> to >> >> git ref "master". >> >> >> >> However when building for Android i always get the following errors: >> >> >> >> FAILURE: Build failed with an exception. >> >> >> >> * What went wrong: >> >> A problem occurred configuring root project 'android'. >> >> > Could not resolve all dependencies for configuration >> >> > ':_debugCompile'. >> >> > Could not find any version that matches >> >> com.android.support:appcompat-v7:22.+. >> >> Searched in the following locations: >> >> >> >> >> >> https://repo1.maven.org/maven2/com/android/support/appcompat-v7/maven-metadata.xml >> >> >> >> https://repo1.maven.org/maven2/com/android/support/appcompat-v7/ >> >> Required by: >> >> :android:unspecified >> >> > Could not find >> >> org.jboss.aerogear:aerogear-android-core:2.2.0-SNAPSHOT. >> >> Searched in the following locations: >> >> >> >> >> >> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-core/2.2.0-SNAPSHOT/maven-metadata.xml >> >> >> >> >> >> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-core/2.2.0-SNAPSHOT/aerogear-android-core-2.2.0-SNAPSHOT.pom >> >> >> >> >> >> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-core/2.2.0-SNAPSHOT/aerogear-android-core-2.2.0-SNAPSHOT.jar >> >> Required by: >> >> :android:unspecified >> >> > Could not find >> >> org.jboss.aerogear:aerogear-android-pipe:2.2.0-SNAPSHOT. >> >> Searched in the following locations: >> >> >> >> >> >> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-pipe/2.2.0-SNAPSHOT/maven-metadata.xml >> >> >> >> >> >> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-pipe/2.2.0-SNAPSHOT/aerogear-android-pipe-2.2.0-SNAPSHOT.pom >> >> >> >> >> >> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-pipe/2.2.0-SNAPSHOT/aerogear-android-pipe-2.2.0-SNAPSHOT.jar >> >> Required by: >> >> :android:unspecified >> >> > Could not find >> >> org.jboss.aerogear:aerogear-android-push:2.2.0-SNAPSHOT. >> >> Searched in the following locations: >> >> >> >> >> >> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-push/2.2.0-SNAPSHOT/maven-metadata.xml >> >> >> >> >> >> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-push/2.2.0-SNAPSHOT/aerogear-android-push-2.2.0-SNAPSHOT.pom >> >> >> >> >> >> https://repo1.maven.org/maven2/org/jboss/aerogear/aerogear-android-push/2.2.0-SNAPSHOT/aerogear-android-push-2.2.0-SNAPSHOT.jar >> >> Required by: >> >> :android:unspecified >> >> >> >> I tried unistalling cordova and npm, but to no avail i haven't been >> >> capable of building an app that uses AeroGear. >> >> >> >> Any assistance is gladly welcome. >> >> >> >> P.S: Using Cordova 5.1.1 for Android 5.1 >> >> >> >> >> >> _______________________________________________ >> >> Aerogear-users mailing list >> >> Aerogear-users at lists.jboss.org >> >> https://lists.jboss.org/mailman/listinfo/aerogear-users >> >> >> >> _______________________________________________ >> >> Aerogear-users mailing list >> >> Aerogear-users at lists.jboss.org >> >> https://lists.jboss.org/mailman/listinfo/aerogear-users >> > >> > >> > _______________________________________________ >> > Aerogear-users mailing list >> > Aerogear-users at lists.jboss.org >> > https://lists.jboss.org/mailman/listinfo/aerogear-users >> > >> >> >> >> -- >> Cheers, >> Erik Jan >> >> _______________________________________________ >> Aerogear-users mailing list >> Aerogear-users at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-users > > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > -- Cheers, Erik Jan From edewit at redhat.com Tue Jun 23 10:39:34 2015 From: edewit at redhat.com (Erik Jan de Wit) Date: Tue, 23 Jun 2015 16:39:34 +0200 Subject: [Aerogear-users] Release cordova push plugin Message-ID: Because we have a critical issue[1] with the current push plugin we are going to release the new plugin that adds support for sending metrics and uses the new android 2.0 libs you can test it by using the master branch. [1] https://issues.jboss.org/browse/AGCORDOVA-107 -- Cheers, Erik Jan From matzew at apache.org Tue Jun 23 10:44:04 2015 From: matzew at apache.org (Matthias Wessendorf) Date: Tue, 23 Jun 2015 16:44:04 +0200 Subject: [Aerogear-users] Release cordova push plugin In-Reply-To: References: Message-ID: On Tue, Jun 23, 2015 at 4:39 PM, Erik Jan de Wit wrote: > Because we have a critical issue[1] with the current push plugin we > are going to release the new plugin that adds support for sending > metrics and uses the new android 2.0 libs you mean 2.2.0 ? http://lists.jboss.org/pipermail/aerogear-dev/2015-June/011714.html If yes, I will do a quick sanity test on this version later tonight, so that passos can move forward w/ its release > you can test it by using the > master branch. > > [1] https://issues.jboss.org/browse/AGCORDOVA-107 > -- > Cheers, > Erik Jan > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > -- 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-users/attachments/20150623/2b23692c/attachment.html From edewit at redhat.com Tue Jun 23 12:01:51 2015 From: edewit at redhat.com (Erik Jan de Wit) Date: Tue, 23 Jun 2015 18:01:51 +0200 Subject: [Aerogear-users] Release cordova push plugin In-Reply-To: References: Message-ID: yes I meant 2.2.0 and we can already test with the snapshot version On Tue, Jun 23, 2015 at 4:44 PM, Matthias Wessendorf wrote: > > > On Tue, Jun 23, 2015 at 4:39 PM, Erik Jan de Wit wrote: >> >> Because we have a critical issue[1] with the current push plugin we >> are going to release the new plugin that adds support for sending >> metrics and uses the new android 2.0 libs > > > you mean 2.2.0 ? > http://lists.jboss.org/pipermail/aerogear-dev/2015-June/011714.html > > If yes, I will do a quick sanity test on this version later tonight, so that > passos can move forward w/ its release > > >> >> you can test it by using the >> master branch. >> >> [1] https://issues.jboss.org/browse/AGCORDOVA-107 >> -- >> Cheers, >> Erik Jan >> _______________________________________________ >> Aerogear-users mailing list >> Aerogear-users at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-users > > > > > -- > Matthias Wessendorf > > blog: http://matthiaswessendorf.wordpress.com/ > sessions: http://www.slideshare.net/mwessendorf > twitter: http://twitter.com/mwessendorf > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > -- Cheers, Erik Jan From bruno at abstractj.org Wed Jun 24 10:05:28 2015 From: bruno at abstractj.org (Bruno Oliveira) Date: Wed, 24 Jun 2015 10:05:28 -0400 Subject: [Aerogear-users] AeroGear Crypto API on iOS with AES-GCM In-Reply-To: References: <0bfd0ae971908219c3a6efeb7ba0f12a@neagee.net> <1434711247990-61.post@n5.nabble.com> Message-ID: Good morning Niko, sorry about the late response. Answers inline. On Fri, Jun 19, 2015 at 2:06 PM, Niko - Whitebox.one wrote: > Thanks Bruno and Erik Jan for the quick and detailed answers! > > I noticed indeed that you are using the Elliptic curves crypto of NaCl on > iOS, which is a smart choice. > > And thanks for pointing out the timing attack (tables and cache) published > in 2009. > > I am well aware of this kind of attack on AES and GCM when lookup tables > are used, but since 2009, we got some improvements, on intel CPU (AES-NI) > at least, which patches are already included in openssl (Gueron et al). But > I agree with you that for ARM, we are a bit left behind. > > About the question if elliptic curves are safer than AES-GCM, i would say > it is a question of trust.... ECC is way too young for me to trust it. I > prefer plain old "modulo a prime" groups, with their caveats (longer keys, > more cpu intensive) and their limitations (side-channel attacks) but that > have benefited from a huge community of cryptographers, coders and > debuggers for now 40 years. > I think we might be talking about different things here. AES-GCM is regularly used for symmetric encryption, ECC for public key encryption. > I believe that, if used correctly, RSA, AES, GCM, and DHE can be very > efficient. And I am a bit afraid of the sudden euphoria for "magical" > curves. > At least in our project, there's no euphoria, but pretty much common sense and a technical decision. We decided to use ECC for public key encryption, AES-GCM as our prefered choice for symmetric encryption. For platforms that we do not have the port yet for NaCl. > Now if we come back to our subject of interest, which is ARM and iOS, i > would say that the situation is tricky, but we can find a solution, and I > am interested in helping. > You are more than welcome to help. > For ARMv7 we have NEON VMULL.P8 instructions (from iPhone 3GS and above, > if i am not mistaken, ARM11 doesnt have VMULL.P8) > > For ARMv8 we have much more, including AES HW accel... (this is in iPhone > 5S and above) > > You can have a look at : > > - About binary polynominal multiplication for GCM on ARMv7: "Fast Software > Polynomial Multiplication on ARM Processors using the NEON Engine." Danilo > Camara, Conrado P. L. Gouvea?, Julio Lopez and Ricardo Dahab. 2010/2013 [1] > their code available here [2] hasn't made it into openssl (AFAIK) > > and > > - Implementing GCM on ARMv8. Conrado P. L. Gouv?a, Julio L?pez. 2015 [3] > Which details also the ARMv7 case, and was presented at the RSA Conference > 2015 in the US, 2 months ago. > The paper is here [4]. > The code is available here [5]. > > In addition: > > It seems that the openssl implementation benefits from NEON in the GHASH > (coded by Polyakov) since march 2011 [6] which means GCM timing attack is > not possible (no lookup tables). > > Also to be checked, is the AES timing resistant bitsliced implementation > from Bernstein and Schwabe that Bruno referred to in the linked PDF. It is > probable that the ARM version has been integrated into openssl, but I > haven't double checked. If it is not there, then it most probably is > present in [5]. > > So... I am quite interested in helping with having a fully secure AES-GCM > stack on ARM, including on iOS. Let's see how to proceed, starting probably > from [5] and then integrate it in OpenSSL? Any idea is welcomed. > My idea around the crypto libraries for AeroGear is not to be tied to any providers; i.e OpenSSL, NaCL or CommonCrypto. Today we only support NaCL, but the goal is to let people choose whatever they want. > Finally, just a small comment: If AES-GCM is not as secure as ECC, then > why are you still using it in the android implementation of your crypto > box? (Dont get me wrong, i prefer AES-GCM over ECC!) > I feel like we're comparing apples and oranges here. GCM is the mode of operation for symmetric encryption, ECC for public encryption, the alternative to ECC would be RSA. Btw I didn't mean that GCM was not secure, but NaCl was the safer option for iOS. For Android, we decided to stick with ECC over RSA for public key encryption and AES-GCM as our default mode of operation for symmetric encryption. Why? We wanted to provide a simple library on top of BouncyCastle. Also, due to the timeframe, the Java implementation of NaCl for Android was postponed. > Also, bouncy castle's implementation of AES-GCM is known to be slow, not > accelerated at all (even on intel) and not even parallelized. What > performances have you got on that? > I haven't got any performances. But if you have other alternatives to BC, I'm open to listen. Also, if you see performance issues, let us know. > All the best, > Niko. > > [1] http://conradoplg.cryptoland.net/files/2010/12/mocrysen13.pdf > > [2] http://conradoplg.cryptoland.net/software/ecc-and-ae-for-arm-neon/ > > [3] > https://www.rsaconference.com/writable/presentations/file_upload/cryp-w01-secure-and-efficient-implementation-of-aes-based-cryptosystems.pdf > > [4] http://conradoplg.cryptoland.net/files/2010/12/gcm14.pdf > > [5] https://github.com/conradoplg/authenc > > [6] > http://git.openssl.org/gitweb/?p=openssl.git;a=blob;f=crypto/modes/asm/ghash-armv4.pl;h=d91586ee2925bb695899b17bb8a7242aa3bf9150;hb=9575d1a91ad9dd6eb5c964365dfbb72dbd3d1333#l35 > > On 2015-06-19 13:54, abstractj wrote: > > Good morning Niko, I hope you're doing well. Please, notice that GCM mode > support is not a limitation of AG iOS, but a restriction from Apple. > > If the document onhttps://github.com/edewit/aerogear-crypto-cordova/blob/master/README.md > states that GCM is support, it pretty much relates to Android. If the > senteces are not clear enough, feel free to file a Jirahttps://issues.jboss.org/browse/AGCORDOVA. > > Answering your questions: > > - Is GCM mode for AES encryption supported on iOS aerogear crypto module > (and the cordova plugin) ? > > No. But, we are open for suggestions. In the future we plan to make > aerogear-ios-crypto pluggable. Into this way you're free to go with > CommonCrypto or whatever provider you want. > > - If not, how difficult would it be to use the private API in iOS > CommonCrypto ? I didnt try it myself, i have just been reading the code.... > > I'd say, would take time and the only way I see today is plugging OpenSSL. > The reason why NaCl was choosen, was not only the fact of CommonCrypto not > supporting GCM, but also, because it's safer[1]. > > If you feel like, that should be reconsidered. Feel free to create a feature > request against https://issues.jboss.org/browse/agios. I hope it helps. > > [1] - https://cryptojedi.org/papers/aesbs-20090616.pdf > > > > -- > View this message in context: http://aerogear-users.1116366.n5.nabble.com/Aerogear-users-AeroGear-Crypto-API-on-iOS-with-AES-GCM-tp55p61.html > Sent from the aerogear-users mailing list archive at Nabble.com. > _______________________________________________ > Aerogear-users mailing listAerogear-users at lists.jboss.orghttps://lists.jboss.org/mailman/listinfo/aerogear-users > > > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > > -- -- "The measure of a man is what he does with power" - Plato - @abstractj - Volenti Nihil Difficile -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150624/97b1a943/attachment-0001.html From edewit at redhat.com Fri Jun 26 09:18:04 2015 From: edewit at redhat.com (Erik Jan de Wit) Date: Fri, 26 Jun 2015 15:18:04 +0200 Subject: [Aerogear-users] Cordova plush plugin release Message-ID: We are pleased to announce that version 2.0.0 of the cordova push plugin has been release. Here is what has been updated: Bug - [AGCORDOVA-36 ] - Make Push Plugin work again with Android < 4.4 - [AGCORDOVA-38 ] - Authorisation error iOS is to big - [AGCORDOVA-43 ] - cordova android app in the background crashes when a notification arrives - [AGCORDOVA-47 ] - Windows push registration done called to soon - [AGCORDOVA-48 ] - No alert in notification area when app is in background - [AGCORDOVA-53 ] - New push channel id on windows throws exception - [AGCORDOVA-94 ] - Foreground is always true on Android Enhancement - [AGCORDOVA-92 ] - Remove use of deprecated sendJavascript method Feature Request - [AGCORDOVA-24 ] - Windows/WNS support for cordova-push library - [AGCORDOVA-83 ] - Change plugins namespace to include AG - [AGCORDOVA-103 ] - Push Plugin Doc does not talk about JSON config file - [AGCORDOVA-106 ] - with iOS 8.0 the 'alert' no longer just a string -- Cheers, Erik Jan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150626/2bdfdadb/attachment.html From supittma at redhat.com Fri Jun 26 09:50:52 2015 From: supittma at redhat.com (Summers Pittman) Date: Fri, 26 Jun 2015 09:50:52 -0400 Subject: [Aerogear-users] Cordova plush plugin release In-Reply-To: References: Message-ID: W00t! On Fri, Jun 26, 2015 at 9:18 AM, Erik Jan de Wit wrote: > We are pleased to announce that version 2.0.0 of the cordova push plugin > has been release. Here is what has been updated: > > Bug > > - [AGCORDOVA-36 ] - Make > Push Plugin work again with Android < 4.4 > - [AGCORDOVA-38 ] - > Authorisation error iOS is to big > - [AGCORDOVA-43 ] - > cordova android app in the background crashes when a notification arrives > - [AGCORDOVA-47 ] - > Windows push registration done called to soon > - [AGCORDOVA-48 ] - No > alert in notification area when app is in background > - [AGCORDOVA-53 ] - New > push channel id on windows throws exception > - [AGCORDOVA-94 ] - > Foreground is always true on Android > > Enhancement > > - [AGCORDOVA-92 ] - > Remove use of deprecated sendJavascript method > > Feature Request > > - [AGCORDOVA-24 ] - > Windows/WNS support for cordova-push library > - [AGCORDOVA-83 ] - > Change plugins namespace to include AG > - [AGCORDOVA-103 ] - > Push Plugin Doc does not talk about JSON config file > - [AGCORDOVA-106 ] - > with iOS 8.0 the 'alert' no longer just a string > > > -- > Cheers, > Erik Jan > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150626/20ace779/attachment.html From matzew at apache.org Mon Jun 29 13:42:35 2015 From: matzew at apache.org (Matthias Wessendorf) Date: Mon, 29 Jun 2015 19:42:35 +0200 Subject: [Aerogear-users] This week in AeroGear Message-ID: Hello folks! here is another issue of our weekly updates! *Android In Android land we have a new release of the Push 2.2.0 library: http://aerogear-dev.1069024.n5.nabble.com/aerogear-dev-AeroGear-Android-Push-2-2-0-tp11781p11813.html Very soon the team will be looking into GCM 3.0 support ! *iOS The Swift2 train started for our own AeroGear iOS library. The aerogear-ios-http has already been migrated to it: https://github.com/aerogear/aerogear-ios-http/tree/swift-2.0 AeroGear iOS 2.4 is moving its release date to September. Its main focus will be Swift2 and iOS9 support. Just in time for the big Swift-OpenSource-release ;-) Apache Cordova Another push related release has been created, this time for our Cordova library, moving up its version to 2.0.0: https://issues.jboss.org/browse/AGCORDOVA/fixforversion/12325960/ AeroGear Push For our WebPush project we have Idel working on it, for his GSoC project. A few days ago he sent out a nice little summary http://lists.jboss.org/pipermail/aerogear-dev/2015-June/011745.html And later this week we plan to do code-freeze for the 1.1.0.Final version of our UnifiedPush Server. The team hopes you are enjoying the news! Have a nice week, all! -Matthias -- 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-users/attachments/20150629/6511fc9c/attachment.html From michi.oshima at gmail.com Tue Jun 30 13:30:07 2015 From: michi.oshima at gmail.com (mo) Date: Tue, 30 Jun 2015 10:30:07 -0700 (MST) Subject: [Aerogear-users] Registering and unregistering from Simple Push and Unified Push Message-ID: <1435685407987-86.post@n5.nabble.com> Hi, We use OpenShift AeroGear Push Server Cartridge . I've decided to register with simple-push and unified-push every time the user logs into our application. Also to unregister from both unified-push and simple-push when they log out or browser closes. Is this a good idea or bad idea? Also, I've always wondered about the following comment in a sample code: "if it is the first registration, need to register the 'pushEndpoint' with the UnifiedPush server." Can somebody explain what is meant by the comment? For example, what would count as a registration that's not the first? Thank you. -- View this message in context: http://aerogear-users.1116366.n5.nabble.com/Registering-and-unregistering-from-Simple-Push-and-Unified-Push-tp86.html Sent from the aerogear-users mailing list archive at Nabble.com. From michi.oshima at gmail.com Tue Jun 30 13:45:19 2015 From: michi.oshima at gmail.com (mo) Date: Tue, 30 Jun 2015 10:45:19 -0700 (MST) Subject: [Aerogear-users] Deleting the installation and categories Message-ID: <1435686319196-87.post@n5.nabble.com> Hi, We use OpenShift AeroGear Push Server Cartridge . I was instructed to delete existing installations and their categories. What exactly do I need to do? Would I simply truncate some DB tables? If so, which ones? I believe deleting installations and categories is something I should do periodically. What do you think? I'm thinking server cannot rely on clients to unregister their installations. Therefore stale installations would accumulate over time on the server. Am I over-thinking this? Would there be anything to be periodically cleaned out on the side of simple-push server? Thanks. -- View this message in context: http://aerogear-users.1116366.n5.nabble.com/Deleting-the-installation-and-categories-tp87.html Sent from the aerogear-users mailing list archive at Nabble.com. From michi.oshima at gmail.com Tue Jun 30 13:46:48 2015 From: michi.oshima at gmail.com (mo) Date: Tue, 30 Jun 2015 10:46:48 -0700 (MST) Subject: [Aerogear-users] Typo Message-ID: <1435686408825-88.post@n5.nabble.com> Hi, I just noticed a typo: * https://github.com/aerogear/aerogear-js-cookbook/blob/master/simplepush-unifiedpush-example/js/unifiedpush.js#L46 I think there is a typo in the above line. The '.then' should be a '.catch'? Thanks. -- View this message in context: http://aerogear-users.1116366.n5.nabble.com/Typo-tp88.html Sent from the aerogear-users mailing list archive at Nabble.com. From lholmqui at redhat.com Tue Jun 30 15:33:39 2015 From: lholmqui at redhat.com (Luke Holmquist) Date: Tue, 30 Jun 2015 15:33:39 -0400 Subject: [Aerogear-users] Typo In-Reply-To: <1435686408825-88.post@n5.nabble.com> References: <1435686408825-88.post@n5.nabble.com> Message-ID: On Tue, Jun 30, 2015 at 1:46 PM, mo wrote: > Hi, > > I just noticed a typo: > > * > > https://github.com/aerogear/aerogear-js-cookbook/blob/master/simplepush-unifiedpush-example/js/unifiedpush.js#L46 > > I think there is a typo in the above line. The '.then' should be a > '.catch'? > catch is syntactic sugar for then(null, func) > > Thanks. > > > > -- > View this message in context: > http://aerogear-users.1116366.n5.nabble.com/Typo-tp88.html > Sent from the aerogear-users mailing list archive at Nabble.com. > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150630/8149657a/attachment-0001.html