Uploaded image for project: 'Mobile App'
  1. Mobile App
  2. MOBILEAPP-10

set-push-expo-token : error 500

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Blocker Blocker
    • 1.0.0
    • 1.0.0
    • None
    • None
    • 4.4 M5

      I get an error

      Caused by: java.lang.NullPointerException
      	at org.apache.xml.serializer.ToStream.writeAttrString(ToStream.java:2105)
      	at org.apache.xml.serializer.ToStream.processAttributes(ToStream.java:2085)
      	at org.apache.xml.serializer.ToStream.closeStartTag(ToStream.java:2643)
      	at org.apache.xml.serializer.ToStream.characters(ToStream.java:1409)
      	at org.apache.xalan.transformer.TransformerIdentityImpl.characters(TransformerIdentityImpl.java:1126)
      	at org.apache.cocoon.xml.XMLUtils.data(XMLUtils.java:324)
      	at org.apache.cocoon.xml.XMLUtils.createElement(XMLUtils.java:527)
      	at org.ametys.plugins.core.impl.userpref.JdbcXmlUserPreferencesStorage._getPreferencesXmlBytes(JdbcXmlUserPreferencesStorage.java:386)
      	at org.ametys.plugins.core.impl.userpref.JdbcXmlUserPreferencesStorage.setUserPreferences(JdbcXmlUserPreferencesStorage.java:218)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      	at org.ametys.runtime.plugin.component.PluginsComponentManager$ComponentInvocationHandler.invoke(PluginsComponentManager.java:177)
      	at com.sun.proxy.$Proxy36.setUserPreferences(Unknown Source)
      	at org.ametys.core.userpref.UserPreferencesManager.setUserPreferences(UserPreferencesManager.java:213)
      	at org.ametys.plugins.mobileapp.UserPreferencesHelper.setNotificationSettings(UserPreferencesHelper.java:321)
      	at org.ametys.plugins.mobileapp.UserPreferencesHelper.addNotificationToken(UserPreferencesHelper.java:211)
      	at org.ametys.plugins.mobileapp.UserPreferencesHelper.addNotificationToken(UserPreferencesHelper.java:185)
      	at org.ametys.plugins.mobileapp.action.SetPushTokenAction.doAction(SetPushTokenAction.java:51)
      	at org.ametys.plugins.mobileapp.action.AbstractLoggedAction.act(AbstractLoggedAction.java:54)
      	at org.ametys.plugins.mobileapp.action.SetPushTokenAction.act(SetPushTokenAction.java:31)
      	at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:125)
      	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
      	at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
      	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
      	at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
      	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
      	at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
      	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:236)
      	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:178)
      	at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254)
      	at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118)
      	... 78 more
      

      The request is :

      http://mstlucemobileapp-site.ironman.anyware.corp/_plugins/mobileapp/1/intranet/set-push-expo-token?token=dXRpbGlzYXRldXJzI2ZyYXZldGllciNjMlptZUNtbXBYRWREdklpQ0R2dFZSTUc5aUdqRkRVWm1JWjI1VlV1V3l3cFBLc2tMcm9xTnBkUVg2a1pWVk5q

      with the body

      {
        "token": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
      }

            Unassigned Unassigned
            fravetier Frederic Ravetier (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: