Registration of the Client Push BlackBerry rejected by the server

Hi all

Successfully, I registered for the blackberry push service assessment and received the appropriate credentials.

However, whenever I try to save my client push service, I have developed with the help of a real device, I get a "rejected by Server error."

I've only got my credentials 5 days ago, so I don't think that it has expired.

I use a blackberry 9700 OS 6 to test this.

The Client I wrote is a variant of the client Push service example.

Here is the registration code.

public void register() throws Exception {
        ApplicationDescriptor ad = ApplicationDescriptor.currentApplicationDescriptor();
        //byte serverType = PushApplicationDescriptor.SERVER_TYPE_BPAS;
        PushApplicationDescriptor pad = new PushApplicationDescriptor( PushConfig.APP_ID, PushConfig.PORT,
                PushConfig.REG_URL, PushApplicationDescriptor.SERVER_TYPE_BPAS, ad );
        // check whether already registered or registration pending
        PushApplicationStatus pushApplicationStatus = PushApplicationRegistry.getStatus( pad );
        byte pasStatus = pushApplicationStatus.getStatus();
        System.out.println("Starting Registration");
        if( pasStatus == PushApplicationStatus.STATUS_ACTIVE ) {
            Subscriber subscriber = new Subscriber();
            subscriber.subscribe();//register again but don't block.
            System.out.println("successful registration");
            return;

        } else if( pasStatus == PushApplicationStatus.STATUS_PENDING ) {
            // we already scheduled registration, wait for its result
            print("Registration pending");
        } else {
            // not registered yet, register
            System.out.println("not registered yet");
            PushApplicationRegistry.registerApplication( pad );
        }
        parseRegistrationResult();
    }

In the onStatusChange(), I have this:

public void onStatusChange(PushApplicationStatus pushAppStatus) {
        byte bpsStatus = pushAppStatus.getStatus();
        byte regReason = pushAppStatus.getReason();
        String error = pushAppStatus.getError();

        boolean simChanged = false;
        _regStatus = bpsStatus;

        switch( bpsStatus ) {
            case PushApplicationStatus.STATUS_ACTIVE:
                Subscriber subscriber = new Subscriber();
                String result = "";

                subscriber.subscribe(); //initiate subscription
                result = subscriber.getResult();
                print("result is "+ result);
                if(result == "s") {
                    print("Whoop!")
                } else {
                    print("we failed");
                }
                break;
            case PushApplicationStatus.STATUS_FAILED:
                print("registration failed");
                displayMessage("registration failed");
            case PushApplicationStatus.STATUS_NOT_REGISTERED:
                switch( regReason ) {
                    case PushApplicationStatus.REASON_SIM_CHANGE:
                        simChanged = true;
                        break;
                    case PushApplicationStatus.REASON_REJECTED_BY_SERVER:
                        print("Rejected By server");
                        displayMessage("Rejected by server " + error);
                        break;
                    case PushApplicationStatus.REASON_NETWORK_ERROR:
                        print("network error");
                        displayMessage("Network error");
                    case PushApplicationStatus.REASON_INVALID_PARAMETERS:
                        // registration failed
                        break;
                }
                break;
            case PushApplicationStatus.STATUS_PENDING:
                print("still pending");
                displayMessage("still pending");
                break;
        }

    }

Please, what am I doing wrong?

is it possible that the server eval is evil?

Problems solved now

Tags: BlackBerry Developers

Similar Questions

  • The use and the importance of pushing blackBerry SDK

    Hello

    As far as the Service of Blackberry Push has been revealed, I studied the documentation about this feature and fell on several issues:

    1 BB Push SDK. Is it correct to say that the main purpose of this framework is to help you efficiently create game server side of your app to push. There are certain requirements to the development environment as described in the docs (container servlet, RDBMS, java). But what happens if I run a .net Server, for example? Or other than those of java technology. Does that mean that I could not be able to use the SDK?

    2 the party push SDK is required to write the push application? Or I can write and manage https post request from PPG (BlackBerry Infrastructure) on mine?

    Could someone tell me please those moments!

    Thanks in advance.

    Of Push BlackBerry SDK is provided as a way to help a developer to create the game apply to push server-side.  If you use the SDK to push, the application server-side will have to be created in Java.

    However, you can create the server of a request to push in any language you like if you're using another IDE side.

  • Registration of a client device in a java application with BES/MDS

    Hi all

    I put this thread here that my application is a java application, but it could have also listed under the section development push as well.

    I have a part of my application that needs to connect to the BES to a certain company to receive push messages. The app works fine establishment of a listener and receiving thrusts by the MDS Simulator, and I also added more code to register the device with the BIS (BPA) from BIS example of Simon Hain.

    Initially I thought that the he had to register with the BES, just like how register us with the BIS except change some settings, as do not add an app ID etc. I have created a basic application of the Z10 push and remember that coding is the same for the BIS and BES except that the application ID and address BIS have been left blank. But now, after some research, I think with Blackberry 6/7, to onboard with a BES connection (unless a middleware program requires us to send some data onboarding) to receive a Push message, we just open a connector to the port number using the deviceside = false setting and wait for help to arrive.

    I looked on the net and forums to directly answer this question but can't seem to find one, that's why I'm asking here confirm.

    Quite simply, taking example of Simon for base, if I plug a client device to a BES (where the server application didn't need any onboarding of the device, its function is to, just send a message to the JSON style to the MDS with the device PIN to the device) would need to register the client with BES/MDS device, as Simon does with its function of registerWithBpas() to register with BIS/BPA , or could I just go directly to opening a connection to a port with the parameter; deviceside = attached false and wait for a Push message to arrive.

    Of course the devic has already been saved in the BES with its ID, e-mail address of the person using this device, etc.

    Simon if you get a chance to personally respond to it, that would be great!

    Thank you all for your time and your help.

    Rob

    Do not enter the unit, simply push the spindle for the MDS and push message will appear on the device.  As you rightly point out, the device is already on the BES and must use the MDS to access the internet in any case.

  • Registration of the MIDlets with the PushRegistry

    Mark & anyone else who can help.

    I am trying to run the example of DynamicPushRegistry found here:

    How - to register a moped with the PushRegistry
    Article number: DB-00390

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800429/How_To _...

    However, when I compile this and try to run it on my BlackBerry 8310, I get the following error:

    "javax.microedition.ConnectionNotFoundException: socket: / /: 5000 does not support push it."

    I tried to change the Protocol of

    "PushRegistry.registerConnection (" socket: / /: 5000... "to"... PushRegistry.registerConnection("sms://:5000). and got the error following different displayed on my BlackBerry:

    "java.lang.ClassNotFoundException: Midlet"text.javax.microedition.midlet.DynamicPushRegistry"is not in the current series.

    Related to this, I'm interested in trying the static PushRegistry example and read the following text:

    How - to create a MIDlet to auto-start using the PushRegistry
    Article number: DB-00385

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800429/How_To _...

    It is said: "After her last updated the JAD file has been added to the project, the COD file must be recompiled for self-registration with the PushRegistry to apply to the MIDlet." Pardon my ignorance, but how is a "recompile" cod file in the JDE without changing the JAD file that comes to be changed? I must be missing something. I am running a 4.2.2.170 BlackBerry version. Help with these questions would be greatly appreciated. Thank you.

    Concerning the socket error, this BlackBerry has been implemented on a BlackBerry Enterprise Server (required for push connections)?

    The ClassNotFoundException is probably caused by specifying an incorrect package name and/or class.  Please check the name you typed in the JAD file.

    Please make sure that the JAD file has been added to the project.  This ensures that it is not changed when the application is built.

  • Push BlackBerry: Application accessories server-side

    Hi all

    I want to know the application requirements on the server side.

    1. I have a few Notifications in my application.
    2. My application to retrieve some webservices data after a specific interval or manual traction (update).
    3. These data are in the form of JSON, I have to analyze and then use it to display the notification to my application.
    4. Now, if I change the 'Blackberry Push Notifications' draw, what changes should I make to the coast server.
    5. If I'm right, I'll have to make an application Java server-side. Besides, this application will contact My Web services to extract the required data. After obtaining the data, this application will push data (along the device PIN who need push Notification to be sent) PPG by configuring Push service SDK.

    "Please erase me if I'm wrong.."


    Uptill I did :

    1. I'm registered for Push Notification by completing the evaluation form to push Blackberry. And waiting for response from the RIM.
    2. Downloaded the SDK of Service Push v1.1.0 and installed successfully.

    as I have already said, push a short message and allow the client to remove the data.
    Push is to inform, not necessarily to put all the data on the device.

  • MSDS for the dissemination of the Server + client to client

    Just want to check - if I had to create a chat application in Flex - where new messages are "pushed" to the customers, this would require SDSS.

    Using SDS would be much easier to implement a chat application.

    Theoretically, you can implement a chat without FDS application with each client to ask the server for messages new messages for the customer using HTTPService or WebService.

    You can also do "push data of the poor", using a query HTTP long duration - in this model, each client publishes an HTTP request that is not expected and immediate to - when the server has a message for the client is sends the response (perhaps a long time later). In the event of the customer for the response, the client publishes another application (so that the server has a way to "push" data to the customer). This is how type e-mail Blackberry works in Windows Mobile (in the absence of a suitable Protocol for data push).

    Introduction of Sean Neville to the Flex Message Service is a good example of how to write a chat application in the SDS.

    Graeme Harker's Flex.NET blog

  • How can I tell the mail client to search for new mail on the server?

    How can I tell the mail client to search for new mail on the server?

    Within the Mail app and display the Inbox you can pull down on the list of e-mail using your finger and you should see a small reel spinning gear. Which indicates that his check new email.

    You can also go into the settings of e-mail and calendars Contacts and view the settings there. Examine the settings of "search for new data. If the Push is enabled, then messages will be pushed to you if the email provider supports this feature. You can also set your accounts to use Fetch and set the frequency, he's going to go out and look for new e-mail messages.

  • Mailbox unavailable. The response from the server is: 5.7.1 error: content rejected

    I have an application that sends emails when running. Off late a user when he tries to send a mail it receives the following error message...

    "System.Net.Mail.SmtpException: unavailable mailbox." "The response from the server is: 5.7.1 error: content rejected '...

    Note that this happens when he tries to send mail to itself and not otherwise. Can someone here on which could mean the error? Thanks in advance... :))

    Error code is generated in the back-end.

    'System.Net.Mail.

    to System.Net.Mail.

    to System.Net.Mail.

    to System.Net.Mail.

    to System.Net.ClosableStream.

    to System.Net.Mail.MailWriter.

    to System.Net.Mail.SmtpClient.

    Hi guys,.

    Thanks for the reply!

    I contacted my sources by taking care of the servers and realized that the user was an id in which the address of the server was not set up with our servers in domain. He used to connect to our servers using the VPN client. This is why he could not send mails to id field not (in this case itself).

  • Every time I have get or send emails I get an error "the message could not be sent because one of the recipients was rejected by the server. 0x800CCC79.

    The message error message could not be sent because one of the recipients was rejected by the server.  No, Server error: 450, error number: 0x800CCC79 but the message is not in the sent box to remove.   I know that I used the wrong email address.   Error message is popping up every time I'm looking for or send emails.  Help

    Hello

     
    1. What on the computer email client do you use?
    2. who is your provider of mail Service?

    You can perform the methods provided for in article knowledge base provided if the problem is when you send mail in outlook.
    Troubleshooting error messages that you receive when you try to send and receive e-mail in Outlook and Outlook Express
    http://support.Microsoft.com/kb/813514

    If it's a hotmail issue, it would be better suited to the Windows Live community. Then I suggest you visit the link that will provide the best support.
    http://www.windowslivehelp.com/product.aspx?ProductID=1

  • Select the option to leave emails on the server after they go to my blackberry

    installed on blackberry email address now I need to select the option of my email client to leave emails on the server. don't know where to go in tools to access that.

    If you are using Windows Mail:

    http://www.Vistax64.com/Vista-mail/13120-leave-copy-messages-server.html

    "It's in the properties of the account, even that OE." In Windows Mail, choose Tools >
    Accounts, click the account name, click Properties, click the Advanced tab. »

    There is a box to check it relative to the delivery of a copy.

    See you soon. Mick Murphy - Microsoft partner

  • How to receive the http on the BlackBerry itself as a server request

    Hi all

    I make a request which I must do a http called through SOAP web services and wish to receive this request http to my Blackberry itself (suppose that, by default, port). that is, I use the BlackBerry device as a client and the server.

    Please suggest me if RIM provides APIs of java application server server or someone has an idea about this.

    I use devic BB: BB 8900 OS v5.0

    Thanks in advance!

    Hello ashutoshg,

    Unfortunately the best I can give is that localhost and 127.0.0.1 simply don't are not supported with regard to a BlackBerry network connection.

    The following forum thread discusses two methods of obtaining the IP address of your device when it is connected via WiFi and I saw the success of these approaches in the past:

    http://supportforums.BlackBerry.com/T5/Java-development/WiFi-IP-address/TD-p/374272

    The only thing to note is that this kind of HTTP communication will travel through the WiFi network and back to the equipment; rather than work around the network via the loopback address infrastructure.

    Erik Oros

    BlackBerry Development Advisor

  • E-mail from Q10 peripheral blackBerry control the Server - / unread and delete!

    My problem is that my BB Hub seems to have complete control over my web mail server.  In other words, whenever I delete an email in my Inbox BB Hub, it removes the enamel on my server as well.  It is a huge problem for me, with regard to the last ten years, I was in the habit of deleting e-mails on my device once I read them and then to remedy later in my office, where messages were also pulled down by Outlook (or, when I travel, I can go online and see the messages online through my web server directly).  It is more than a mere preference: it is essential to be able to read some emails on a normal sized screen.  The small screen of a phone just doesn't cut it sometimes.

    Another problem I have is that my BB Hub inbox marks all messages as "read", before even that I read them.  And, when I mark not 'read', it makes them pop back up on my server.  It is also more than a minor annoyance: when you get 300-500 emails per day, it's really hard to keep track of what you've read and what you do not have when all of them are marked as 'read '.

    Is it possible to divorce my server online ordering of the Q10?  Put on 'manual' and 'push' sync will not work.

    If you are unable to use Outlook and BB10 and yet messages come not "read" for your device, then that adds a major drawback.  Maybe I'm not fairly warned with Outlook, but I don't think that it will allow you to pull down messages from the server and let them still "no read" on this server.  You can leave a copy of the original message on the server, but you can't leave it in a State "unread".  This will prevent the Z/Q10 have unread messages on its screen (if you use Outlook on your desktop).

    And you're on the dangerous territory to be able to permanently delete the messages from the server, removing them from your device.  The BB has always been an additional tool, not a replacement for the desktop environment.  If I can no longer delete messages I've read the until I'm sure that they have been pulled down from the server and saved by Outlook, this will result in a much more crowded Inbox on a daily basis and so more time it cleaning at the end of each day.  BB was supposed to add for convenience, not diminish it.

    Hello

    BB10 is nothing like inheritance, so expect that it would work as legacy is for the disappointment. Legacy devices used BIS, which provided all the functions you mention. BB10 doesn't use BIS and instead has a client full email on the device, which works the way it is designed.

    It is clear from everything you describe, WAD - works as expected. The mailbox on the device and the server are supposed to now be images of mirror each other... whatever you do one account to another. There is no way to replace it, since it's WAD.

    Workarounds exist using the server folders to move things rather than delete them. Workarounds are heavy, but they are what they are. The design of the device, it's what it is.

    Many hope that future updates can bring some of these features to the BB10 platform, but no one can say if/when this will happen. For now, it is what it is.

    Good luck!

  • BlackBerry Smartphones blackberry 9000 mds on server and the device (mds control center)

    Hello

    I have the following problem. We use the SDM Service on the server to push the software programmed on a few blackberrys (e.g. 8800). All Blackberrys are saved on the server in the list of mds.

    The new Blackberry 9000 does not appear in the lists of mds. And after the activation of the SDM control center is not on the device. the control center of mds push automatically by group policies. but I can't found on the device. How can I make the blakcberry 9000 working with SDM on the Enterprise Server BES services?

    We use the 4.1.4.15 version.

    I'm sorry for my English. IM German.

    Thank you.

    !! UPDATE!

    I had a contact with level 2 Support T-Mobile. They told me to download the latest firmware to the updatecenter of t-mobile (has not heard of so far), then install this software on a PC and install the MDS Runtime of this package to the devices.

    After the url of the download location, where I found the firmware:

    http://updateservice.t-mobile.NET/BlackBerry/download/download.do?ref=%2Fservices%2Fftp%2Fproftp%2FS...

    --> Download

    --> Installation for PC

    --> Start the Desktop Manager

    --> Connect Blackberry "BOLD"

    --> uninstall all the "fragments" of MDS duration of unit

    --> restart the Blackberry device

    --> Install MDS DURATION & MDS default Launcher (V 4.6.0.13)

    --> Restart device

    You're good...

    The "BOLD" today BBlackberry is a device registered and within seconds all of our MDS applications when pushed to the device and work perfectly.

    I hope this will help you too.

  • More questions about registration of the plugin on a Production Server package

    I tried to review other messages (as well as the documentation for VMware) regarding the plugins installation/registration on [the customer] production servers.  Specifically, I was looking at this recent announcement:

    https://communities.VMware.com/message/2292717

    The following response was a very good point, but I was looking for a little more in detail about how other developers are doing this installation/registration:

    laurentsd: as a plugin developer, you are responsible to write an installer that customers will run to register your plugin package. You do not want to treat to run a java program directly :-)  The installation program should be easy to use.

    I was curious to know how many people have their customers to install a Web Client plugin.

    The States of doc SDK - Tutorial.html in the 'record of your plugin...» "article for the mode of production (step 1), you can:"

    Use a script program or installer to create the object of Extension data programmatically and enter this data object using the ExtensionManager.registerExtension method

    This means that the .zip file must be placed on a server access with HTTPS access.

    [Variant 1]: are most of the people having the client stores the .zip file in a HTTPS server in the customer environment?  If Yes, then I guess that the installer prompts the user to specify the URL to the zip file, which is then rolled into the Extension data' things "programmatically.

    [Variant 2]: or, most people hold their own on their own server HTTPS .zip file by using an installation program with hard coded URL value in the .zip file, and having the user simply launch the installer without entering any additional data?

    Or maybe there is an Option of [3] that I have not yet thought?

    It seems that [option2] is obviously easier for the customer, but makes it harder to make a plugin that everyone has access to.  [Variant 1] requires a bit of work for the customer, but allows the developer to restrict access to the plugin for customers who have paid for the product.  Certainly the installer can block based on the license key, but anyone with some knowledge of vSphere Client Web plugins as well as documentation 'Save your plugin package' could take a plugin .zip file and install it manually without an official Installer (when the .zip is hosted to the public).

    You must take the URL of the ZIP file as an input for your script so that all options can be supported. If the zip file is hosted in the customer environment, then the URL should point to that. If you host the zip file on your own server, then the URL should point to your server.

    You should code hard not URL that you have mentioned in the #2 option, because there are several companies and agencies Government which do not allow to connect outside of their network.

  • Local error-1200 creation push certificates on the server. Any idea?

    In the Application Server

    When you try to renew or create a certificate to push comes up with the error "Certificates to push creation local error - 1200" on the server. Any idea? »

    I'm having the same problem with 10.7.5 server. (two of them)

    At the time of renewal, I was looking at the Console and I think the Apple Server SSL certificate is therefore more reliable.

    (or server versions are low)

    August 15 at 10:23:08 login.* * servermgrd [23349]: received the connection error: error domain = NSURLErrorDomain Code =-1200 "error SSL and a connection to the server cannot be made. UserInfo = 0x7fb8f5aab9a0 {NSUnderlyingError = 0x7fb8f15af450 "error SSL and a connection to the server cannot be made.", NSErrorFailingURLStringKey =https://identity.apple.com/pushcert/caservice/renew, NSErrorFailingURLKey =https://identity.apple.com/pushcert/caservice/renew, NSLocalizedRecoverySuggestion = you want to connect to the server anyway?, NSLocalizedDescription = SSL an error has occurred and a connection to the server cannot be made.}

    August 15 at 10:23:08 login.* * servermgrd [23349]: certificate request to push failed: reason = Local, error code = - 1200, error = error Domain = NSURLErrorDomain Code =-1200 "error SSL and a connection to the server cannot be made. UserInfo = 0x7fb8f5aab9a0 {NSUnderlyingError = 0x7fb8f15af450 "error SSL and a connection to the server cannot be made.", NSErrorFailingURLStringKey =https://identity.apple.com/pushcert/caservice/renew, NSErrorFailingURLKey =https://identity.apple.com/pushcert/caservice/renew, NSLocalizedRecoverySuggestion = you want to connect to the server anyway?, NSLocalizedDescription = SSL an error has occurred and a connection to the server cannot be made.}

    So not yet an idea, but hopefully with these console outputs happen to something?

Maybe you are looking for