<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">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. <br>
      <br>
      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)<br>
      <br>
      Log was<br>
      -----------------------------<br>
      2015/06/13 00:00:00,109 INFO  [GCMPushNotificationSender] (EJB
      default - 2) Deleting [&amp;apos;0&amp;apos;] outdated
      PushMessageInformation objects<br>
      2015/06/13 12:05:30,766 INFO  [org.jboss.as.osgi] (MSC service
      thread 1-5) JBAS011942: Stopping OSGi Framework<br>
      2015/06/15 02:51:14,161 INFO  [org.jboss.as.configadmin]
      (ServerService Thread Pool -- 35) JBAS016200: Activating
      ConfigAdmin Subsystem<br>
      2015/06/15 02:51:14,264 INFO  [org.jboss.as.jacorb] (ServerService
      Thread Pool -- 41) JBAS016300: Activating JacORB Subsystem<br>
      2015/06/15 02:51:14,356 INFO  [org.jboss.as.security]
      (ServerService Thread Pool -- 58) JBAS013101: Activating Security
      Subsystem<br>
      2015/06/15 02:51:14,258 INFO  [org.jboss.as.clustering.infinispan]
      (ServerService Thread Pool -- 40) JBAS010280: Activating
      Infinispan subsystem.<br>
      ...<br>
      ...<br>
      -------------------------------------<br>
          <br>
      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<br>
      <br>
      --------------------------<br>
      2015/06/15 02:51:46,443 INFO 
      [org.keycloak.adapters.as7.KeycloakAuthenticatorValve] (MSC
      service thread 1-5) **** using /WEB-INF/keycloak.json<br>
      2015/06/15 02:51:46,760 INFO  [JPAPushMessageInformationDao] (EJB
      default - 2) Deleting [&amp;apos;2&amp;apos;] outdated
      PushMessageInformation objects<br>
      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.<br>
      2015/06/15 02:51:46,954 INFO  [JPAPushMessageInformationDao] (EJB
      default - 1) Deleting [&amp;apos;2&amp;apos;] outdated
      PushMessageInformation objects<br>
      2015/06/15 02:51:46,966 WARN  [com.arjuna.ats.arjuna] (EJB default
      - 1) ARJUNA012125: TwoPhaseCoordinator.beforeCompletion - failed
      for SynchronizationImple&lt; 0:ffff0a21a655:16c5d4f8:557e75e5:f,
      org.hibernate.engine.transaction.synchronization.internal.RegisteredSynchronization@d8bbe6
      &gt;: javax.persistence.OptimisticLockException:
      org.hibernate.StaleStateException: Batch update returned
      unexpected row count from update [0]; actual row count: 0;
      expected: 1<br>
          at
      org.hibernate.ejb.AbstractEntityManagerImpl.wrapStaleStateException(AbstractEntityManagerImpl.java:1402)
      [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]<br>
          at
      org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1308)
      [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]<br>
          at
      org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1289)
      [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]<br>
          at
      org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1295)
      [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]<br>
          at
      org.hibernate.ejb.AbstractEntityManagerImpl$CallbackExceptionMapperImpl.mapManagedFlushFailure(AbstractEntityManagerImpl.java:1481)
      [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]<br>
          at
      org.hibernate.engine.transaction.synchronization.internal.SynchronizationCallbackCoordinatorImpl.beforeCompletion(SynchronizationCallbackCoordinatorImpl.java:109)
      [hibernate-core-4.0.1.Final.jar:4.0.1.Final]<br>
          at
      org.hibernate.engine.transaction.synchronization.internal.RegisteredSynchronization.beforeCompletion(RegisteredSynchronization.java:53)
      [hibernate-core-4.0.1.Final.jar:4.0.1.Final]<br>
      ------------------------<br>
      <br>
      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. <br>
      <br>
      Sorry if this information is not relevant<br>
      <br>
      Alex Ballesté<br>
      <br>
      El 13/06/15 a les 08:01, Matthias Wessendorf ha escrit:<br>
    </div>
    <blockquote
cite="mid:CAAg5f2TmFuWEOuOy+WP9zYzc7ju8d6B6z7ChfKNtf0zz3tBnyg@mail.gmail.com"
      type="cite">any chance of stack trace?<span></span><br>
      <br>
      On Saturday, June 13, 2015, Kelvin Lunsford &lt;<a
        moz-do-not-send="true" href="mailto:kelvin@qantel.com">kelvin@qantel.com</a>&gt;
      wrote:<br>
      <blockquote class="gmail_quote" style="margin:0 0 0
        .8ex;border-left:1px #ccc solid;padding-left:1ex">I restarted
        Wildfly and I had to log into the UPS console to stop the
        registration errors.<br>
        <br>
        The error callback for the plugin push.register() function
        returns the message "The server returned the error code 500".<br>
        <br>
        - Kelvin<br>
        <br>
        <br>
        <br>
---------------------------------------------------------------------------<br>
        <br>
        From: <a moz-do-not-send="true" href="javascript:;"
          onclick="_e(event, 'cvml',
          'aerogear-users-bounces@lists.jboss.org')">aerogear-users-bounces@lists.jboss.org</a>
        [mailto:<a moz-do-not-send="true" href="javascript:;"
          onclick="_e(event, 'cvml',
          'aerogear-users-bounces@lists.jboss.org')">aerogear-users-bounces@lists.jboss.org</a>]
        On Behalf Of Matthias Wessendorf<br>
        Sent: Friday, June 12, 2015 12:01 AM<br>
        To: <a moz-do-not-send="true" href="javascript:;"
          onclick="_e(event, 'cvml', 'aerogear-users@lists.jboss.org')">aerogear-users@lists.jboss.org</a><br>
        Subject: Re: [Aerogear-users] UPS load on startup<br>
        <br>
        hrm,<br>
        <br>
        that's strange - not noticed so far.<br>
        Any details on the error message ? Is that reproducable w/
        something like curl ? <br>
        <br>
        On Fri, Jun 12, 2015 at 3:05 AM, Kelvin Lunsford &lt;<a
          moz-do-not-send="true" href="javascript:;" onclick="_e(event,
          'cvml', 'kelvin@qantel.com')">kelvin@qantel.com</a>&gt; wrote:<br>
        I'm developing a mobile app and testing USP 1.0.2 on Wildfly
        8.2.0.<br>
        <br>
        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.<br>
        <br>
        Anyone noticed this?<br>
        <br>
        - Kelvin<br>
        <br>
        <br>
        _______________________________________________<br>
        Aerogear-users mailing list<br>
        <a moz-do-not-send="true" href="javascript:;" onclick="_e(event,
          'cvml', 'Aerogear-users@lists.jboss.org')">Aerogear-users@lists.jboss.org</a><br>
        <a moz-do-not-send="true"
          href="https://lists.jboss.org/mailman/listinfo/aerogear-users"
          target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-users</a><br>
        <br>
        <br>
        <br>
        <br>
        --<br>
        Matthias Wessendorf<br>
        <br>
        blog: <a moz-do-not-send="true"
          href="http://matthiaswessendorf.wordpress.com/"
          target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>
        sessions: <a moz-do-not-send="true"
          href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
        twitter: <a moz-do-not-send="true"
          href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a><br>
        <br>
        _______________________________________________<br>
        Aerogear-users mailing list<br>
        <a moz-do-not-send="true" href="javascript:;" onclick="_e(event,
          'cvml', 'Aerogear-users@lists.jboss.org')">Aerogear-users@lists.jboss.org</a><br>
        <a moz-do-not-send="true"
          href="https://lists.jboss.org/mailman/listinfo/aerogear-users"
          target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-users</a><br>
      </blockquote>
      <br>
      <br>
      -- <br>
      Sent from Gmail Mobile<br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Aerogear-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Aerogear-users@lists.jboss.org">Aerogear-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/aerogear-users">https://lists.jboss.org/mailman/listinfo/aerogear-users</a>
</pre>
    </blockquote>
    <br>
    <br>
    <div class="moz-signature">-- <br>
      <p>Alexandre Ballesté Crevillén alexandre.balleste at udl.cat<br>
        ====================<br>
        Universitat de Lleida<br>
      </p>
      <p>Àrea de sistemes d'Informació i Comunicacions</p>
      <p>Analista/Programador</p>
      <br>
      <p>University of Lleida</p>
      <p>Information and Communication Systems Service</p>
      <br>
      <p>Tlf: +34 973 702148</p>
      <p>Fax: +34 973 702130</p>
      <p>=====================</p>
      <p>
        <a href="http://www.imatge.udl.cat/avis_legal_lopd.html">Avís
          legal/Aviso legal/Avertiment legal/Legal notice</a>
      </p>
    </div>
  </body>
</html>