System.NullReferenceException in AndroidPush

I'm in the process of setting up the Verivo Push Service. I have installed the service, created and configured proper polling, subscription and destination screens etc. I can see multiple records in tmpsys_PushChange and tmpsys_PushUserStatus. However in tmpsys_PushLog I can see that stage 3 fails giving the following error log entry.

ERROR: Exception in Stage 3 Android processing: Object reference not set to an instance of an object. System.NullReferenceException: Object reference not set to an instance of an object.     at AndroidPushLib.AuthenticateAccount.GetAuthToken(String password)     at AndroidPushLib.PushManager..ctor(String account, String password, mPLogger mppslog, mPDB mpdb)     at mPPSlib.mPPSlib.AndroidPush(EventLog lgPushEvent, mPPSLogger mppslog, mPDB mpdb, PushManager& androidPushManager)     at mPPSlib.mPPSlib.mPPSRunStage3(NotificationService& APNService, PushManager& androidPushManager)

Immediately afterwards there's another entry stating

ERROR: The remote server returned an error: (407) Proxy Authentication Required.

How can I fix this? No proxies are specified for the data source in AppStudio or in system.

Have more questions? Submit a request

8 Comments

  • 0
    Avatar
    hathulathmudali

    P.S. I'm using AppStudio/Push Service v7.3.10

  • 0
    Avatar
    smilliken

    Hi Hemal,

    In App Studio, you also have to supply a Google Account and password as well. If you click on the Push icon on your main toolbar and select the checkbox for Android you will see the two fields that are required to set this up.

    Thanks,

    Scott

  • 0
    Avatar
    hathulathmudali

    Hi Scott, thanks for the reply. However the problem persists.

    I have already entered the correct google credentials. Is the cause for the NullReferenceException invalid google credentials? I have double checked them and they seem to be fine.

    The same configuration successfully pushes notifications to Blackberry without issues. Please see attached screenshot. The App Server also works fine in the same machine and does not throw any "Proxy Authentication Required." error.




    PushException.JPG
  • 0
    Avatar
    smilliken

    Hi Hemal,

    Has the google account been registered for push notifications? You should receive an email back from google confirming if the account was registered for push notifications. The error message looks like there is an issue with the authorization token that is accepted by the Google Push Server.

  • 0
    Avatar
    hathulathmudali

    Hi Scott,

    Thank you for your reply. No I did not do anything other than simply creating the google account. Can you please share the link where I have to register the account for push notifications in google? I'm sure mentioning it here will help a lot of others too. I will do a bit of googling to find out in the meantime.

  • 0
    Avatar
    hathulathmudali

    Ok I found out that I have to signup for C2DM here  https://developers.google.com/android/c2dm/signup which leaves me with another question. The page in that link prompts for a package name. i.e. com.mycompany.myapp. Since we are still in the development phase and have not packaged anything for deployment yet,

    1. Does this mean we cannot yet test android push? i.e. using a standard pyxisNoSkin build

    2. If we can, then what should we mention as the package name there in order to register?

    3. If we specify some name for the above and register, can we change it at a later time? Can a single google account be used to register multiple apps?

  • 0
    Avatar
    smilliken

    Hi Hemal,

    1.) You can begin testing almost as soon as you submit the request. You will receive a confirmation email from google that will give you an initial production-level messaging quota which can be described here:

    http://code.google.com/android/c2dm/quotas.html

    2.) I have to look more into this but I believe this has to be the name of the Application as it would appear in the Android market. I will get some more information on this.

    3.) You cannot change the name but it is very easy to register another application name. You can use the same single google account to register multiple applications.

     

    Thanks,
    Scott

  • 0
    Avatar
    hathulathmudali

    Thanks Scott,

    I was successfully able to implement Push for Android. I was able to get the package name of the pyxNoSkin.apk using the aapt command in Android sdk as follows: aapt dump badging pyxNoSkin.apk

Please sign in to leave a comment.
Powered by Zendesk