SSL connection to the server on the Internet on the BIS to Airtel plan

Dear experts,

I am a newbie in the development of BlackBerry and have developed an application that requires users to register via the BlackBerry https connection.

I test the app on BlackBerry 9000 "BOLD" with an upgrade of the OS to version 5.0 provided by Airtel carrier.

I searched the many posts here and tried to use the ConnectionFactory to check that I have selected the right access point for the network. Recording works fine on WiFi.

However, im using a BIS plan and when I try to record OTA it fails

Based pointers to the code below and the application event log would be really useful.

int[] preferredTransportTypes = {TransportInfo.TRANSPORT_TCP_WIFI,
                TransportInfo.TRANSPORT_MDS,
                TransportInfo.TRANSPORT_WAP2,
                TransportInfo.TRANSPORT_TCP_CELLULAR,
                TransportInfo.TRANSPORT_BIS_B
                };

        ConnectionDescriptor conDescriptor = factory.getConnection(req.getUrl());
        HttpsConnection request=null;

        if ( conDescriptor != null ) {

            // connection suceeded
            int transportUsed = conDescriptor.getTransportDescriptor().getTransportType();

            Logger.log("Using transport type:" + transportUsed);

            // using the connection
            request = (HttpsConnection) conDescriptor.getConnection();
        }
        else
        {
            ServerResponse response = new ServerResponse();
            response.setErrorMessage("No connectivity to Server!");
            response.setStatusCode(-1);
            return response;
        }

        addHeaderParams(request, req);

        switch (req.getReqType()) {
        case RequestType.GET: {
            request.setRequestMethod(HttpConnection.GET);

            break;
        }
        case RequestType.POST:
        case RequestType.PUT: {
            request.setRequestMethod(HttpConnection.POST);
            addBodyParams(request, req);
            break;
        }

        }
        return executeRequest(request);

}

private static ServerResponse executeRequest(HttpsConnection request)
            throws Exception {

        ServerResponse resp = new ServerResponse();

        resp.setStatusCode(request.getResponseCode());

        if (request.getResponseCode() != HttpConnection.HTTP_OK) {
            resp.setErrorMessage(request.getResponseMessage());
        } else {
            InputStream is=null;
            try
            {
                is = request.openInputStream();

                int len = (int) request.getLength();
                if (len > 0) {
                    int actual = 0;
                    int read = 0;
                    byte[] data = new byte[len];
                    while ((read != len) && (actual != -1)) {
                        actual = is.read(data, read, len - read);
                        read += actual;
                    }

                    resp.setBody(new String(data).toString());
                }
                else if (len == -1)
                {
                    StringBuffer out = new StringBuffer();
                    byte[] b = new byte[4096];
                    for (int n; (n = is.read(b)) != -1;) {
                        out.append(new String(b, 0, n));
                    }

                    resp.setBody(out.toString());

                }
            }catch(Exception e)
            {
                Logger.log(e);
            }
            finally
            {
                if (is!=null)
                    is.close();
            }

        }

        return resp;

    }

Here is the log of the events of the connection failed

I have net.rim.networkapi - net.rim.device.cldc.io.ssl of the FATF.

It is indeed a good question.  I suspect the answer may depend on your provider, in this case Airtel.  Their package allows port 443 over WAP?

The only way I know, tests, that it is to create a small program of socket based and do try port 60, who must work, and then port 443.  But it is probably easier to contact Airtel and ask.

Tags: BlackBerry Developers

Similar Questions

  • Change the SSL connection on the Server VMware - what customers?

    Hello

    I currently have Mirage Horizon 4.2.3 installed and I use NO SSL. Server is available only for users within the local network.

    I would change it and this server on the internet for the users will be able to backup data during a move and I'll be able to get diapers for them.

    All guests of Mirage are pointing to the internal address of Mirage.

    My questions are:

    -If I change server settings will be I lost the connection to the LAN clients or I'll go 'extra' access via https?

    -is it possible to make clients to use SSL connection without re-installing the agent of Mirage?

    -I can do it without full re-synchronization of data?

    [Thanks for the replies and suggestions:]

    Once you have changed the configuration of SSL for a server of Mirage, customers also has need to use SSL for connects to the server, otherwise the connection will not be established.

    You can change the settings of the Mirage customer without reinstallation:

    -In Windows, the tray icon, open the status of Mirage, CTRL + ALT + S, a new window to set up the client must open and then check the Option 'use SSL Transport'

    OR

    -Edit the Wanova.Desktop.service.exe.config file and change the 'useSslTransport' for real 'touch' and then restart the service Wanova Mirage

    Full re-synchronization of data should not be necessary, as endpoint and always the same agent

  • Nighthawk 7000 activate https / ssl connection to the internal administration

    Dear community,

    I want to change the administration page to browser http to https (port 443). The only thing I found is the ability to open https for external administration.

    I want to stop sending the admin to the router plaintext password in my home network. Is it possible to configure https for administration?

    If there is no safe way for the router configuration using wlan how to configure you there safely (with the direct help of cable attached to the router)?

    Best regards

    Mark

    As far as I KNOW, there is no way to activate https for internal administration. The assumption is that you have a reasonable control over devices in your network.

    The way only I can think of to manage your router must turn off the radio by using the physical button on the Wi - Fi connection and disconnect all devices wired the R7000 except for a wired computer.

  • Creating a key for ssl connection without the clear text password

    I followed the link below to activate the SSL protocol.

    http://www.gemstone.com/docs/HTML/GemFire/6.0.0/SystemAdministratorsGuide/security.6.33.html

    As metnioned on this link, it is risky to specifying the truststorepassword and keystorepassword in plain text. It is advisable to use PKCS, but when I generate a PKCS key, he asks me again for keystorepassword.  For authentication, where I authenticator, it can still work as I can generate key and password that I can later set in:

    Security-cipherpass-filepath

    Security-cipherkey-filepath

    But how to configure SSL communication to use the files encrypted?

    It's your choice how store and protect your security credentials. In the case of ssh, for example, which stores the credentials in a file .ssh in the home folder of the user, the credentials are protected using the appropriate file permissions: private keys must have read and write permissions set for the owner (600) only, and the public key are allowed to be readable by everyone. You can also use the file permissions to protect your credentials instead of encrypt.

    In addition, in GemFire 7.0 all security-* properties can be stored in a separate file, called gfsecurity.properties, which can then be protected using file permissions.

  • There was an error trying to connect to the View Composer.

    Like most others, I try to get 4.5 view running

    I have Vcenter 4.1 and 4.5 seen installed on Windows 2008 R2 VMs 2.

    I installed view composer 2.5 on the Vcenter server on the default port 18443.

    I have disabled the firewall on both machines to make sure can communicate.

    But when I try to connect to the server to connect to the composer I get only error while trying to connect to View Composer.

    I am at a loss at this stage,

    The only thing I can find in the case of the newspapers is lower, it shows the same time I did install it.

    There is no information identifying the appropriate default server on this system. This will prevent server applications that expect to use the credentials of the system default to accept SSL connections. The directory server is an example of such a request. Applications that manage their own credentials, such as internet information server, are not affected hereby.

    I think that stuff VM manages its own credentials.

    Any ideas?

    Have you checked that the composer function is running on your vCenter Server? Nothing in Event Viewer related to the composer?

  • Tunnel to establish an SSL connection inside a SSL connection

    I have an application that establishes a SSL30Connection with a web proxy server. This connection is opened using the ConnectionFactory. To enable HTTPS through proxy web, trying to create an SSL connection to a website (for example google.com) that uses the proxy server of SSL connection as its "subConnection" (see javadocs for SSL30Connection). When I try to do, I find myself with an EOFException or a ConnectionClosedException.

    I am aware of the workaround described here and have tried to use it, but still, the SSL connection to the remote server does not.

    Does anyone know if this kind of functionality is supported by the BB? Is there a 3rd party API that could achieve this?

    I open a topic in the RIM developer Issue Tracker as well:

    https://www.BlackBerry.com/jira/browse/JAVAAPI-2179

    Thank you.

    It turns out that several things went wrong.

    (1) the proxy has been close the connection after I read the response HTTP CONNECT. The fix for this consisted of two parts:

    ++ By adding a "Proxy-Connection: keep-alive" header.

    + Changing the way I read the answer. Before, I read the inputStream in 256 b pieces until Ihit-1. I changed it to simply read until I touched a line return character as the CONNECTION response is onlyone linelong.

    After you make these changes, I was able to make a socket: / / connection to the proxy and then do a ssl: / / to the remote server with the proxy as subConnection of ssl connection. However, when I tried to do a ssl: / / connection to the server, I always got the EOFException at the opening of the ssl: / / connection to the remote server. Then, like Santa himself immersed in to give me a Christmas gift at the beginning... I remembered that I had met problems with ssl: / / connections before; specifically, to write data to an ssl: / / OutputStream of connection REQUIRES a call to OutputStream.flush (). If you don't flush, data is never written (or the buffer is really big... anyway, adding that a function flush() suits). Remember this problem led me to the last part of the solution to this problem.

    (2) I wrapped the proxy ssl connection and its already open input and output stream in a class that looks like this:

    public class ProxyStreamConnectionWrapper implements StreamConnection {
    
        private StreamConnection stream;
        private DataInputStream inputStream;
        private DataOutputStream outputStream;
    
        public ProxyStreamConnectionWrapper(StreamConnection stream, DataInputStream dataInputStream, DataOutputStream dataOutputStream) {
    
            this.stream = stream;
            this.inputStream = dataInputStream;
            this.outputStream = dataOutputStream;
        }
    
        public DataInputStream openDataInputStream() throws IOException {
    
            return inputStream;
        }
    
        public InputStream openInputStream() throws IOException {
    
            return inputStream;
        }
    
        public void close() throws IOException {
    
            stream.close();
        }
    
        public DataOutputStream openDataOutputStream() throws IOException {
    
            return new DataOutputStream( openOutputStream() );
        }
    
        public OutputStream openOutputStream() throws IOException {
    
            return new OutputStream() {
    
                public void write( byte[] b, int off, int len ) throws IOException {
    
                    outputStream.write( b, off, len );
                    outputStream.flush();
                }
    
                public void write( byte[] b ) throws IOException {
    
                    outputStream.write( b );
                    outputStream.flush();
                }
    
                public void write( int b ) throws IOException {
    
                    outputStream.write( b );
                    outputStream.flush();
                }
            };
    }
    

    I got the idea of this wrapper from a previous post I already linked to above. The solution is in the openOutputStream() method. Adding the function flush() after each write the ssl handshake forces given the connection to the remote server ssl proxy server offline.

    Merry Christmas!

  • After the launch of an updated Firefox tries to connect to the server to update for hours, but can't, even if I am connected to the internet. How can I update in this case?

    I get requests to update for firefox 7.01: if I try Firefox shows me a screen in which it tries to connect to the server to update (during business hours) even if I am connected to the internet: I am able to browse with firefox. I also downloaded firefox 9 but first I can't open it: "there is already a version of firefox open. Second: This version also asked me to update, but still the same problem. I'm new with mac, please help...

    Greetz

    If he has problems with the update or the permissions then simpler is to download the full version and trash the version currently installed to do a clean install of the new version.

    Download a new copy of the Firefox program and save the file on the desktop disk image (dmg)

    • Trash the present application Firefox to do a clean (re-) install
    • Install the new version you downloaded

    Your profile data is stored in the Firefox profile folder, so you will not lose your bookmarks and other personal data if you uninstall and (re) install Firefox.

  • On the screen that it says "the proxy server refuses connections" Firefox is configured to use a proxy server refusing connections. The result is no internet.

    the proxy server refuses connections"Firefox is configured to use a proxy server refusing connections. The result is no internet

    You are welcome

  • BRAVIA internet video link does not connect to the server

    I have a KDL-32xbr6 (Yes, it has a DMEX button on the remote control). Just buy a DMX - NV1. Connection is "by the book". The wireless bridge is a NetGear 3001 bought a month ago. This Wireless Bridge works fine when connected to a computer and has no trouble at all a link to my 4G version jetpack. This device has abundant speed and is used by other Bravia owners to access the internet. Yet, when it is connected to the DMX - NV1, the system cannot connect to the 'server' (some server that can be). I spent about 4 hours, spread over 3 days exceeding this ad nauseum with the online chat. And we continue to go right on the same things over and over again. DMX has so much power and network illumintated lights green. When accessing the network, the Green Network flashing. So, it IS out in the network. But after the timeout, it always comes with a message "configuration failed due to the delay" on the TV screen. (Which is exactly what it says - I don't remember the exact job right now). Instrumentation in settiings presents the new appropriate icons (internet video settings, etc.). So that part is OK. I did a system reset several times on television and DMX. I did the cold repowering (unplug, wait a minute, reconnect) of all devices several times. I even tried to delete the security on the router/modem encryption and went 'none' for a test, just in case there was some sort of encryption confusion. The system seems to be absolutely spot on, but when we try to make his connection to the 'server' it can do. And don't suggest even trying out an online software update, you must first be able to connect to 'server '. Has anyone experience this problem? It is quite a haruumpher. Driving me crazy. I'm sure it's something simple. But what is it? Thanks in advance for any help in this matter.

    Can you please answer back with the MAC address of the DMX - NV1. I would need to check the activity of the unit to try to find out what's wrong.

    Thank you.

  • lost internet access after the connection to the server

    Have had this problem in the past and in the hope that a workaround is available.

    MAC OS X El Capitan worm 10.11.2 runs and loses the Internet when connected to a server/sharedrive(on Microsoft Windows environment).

    You asked the same thing, or a similar, issue in October 2014. What happened after that?

  • Unable to connect to the Internet after connecting to a VPN server.

    As soon as I connect to the VPN, I can't access the Web or e-mail.

    An article published by Microsoft Support to http://support.microsoft.com/kb/317025 seems to refer to the same problem. However, it is for Win 2000 and NT platforms, not XP. The problem seems to be due to the VPN connection (being configured) to use the default gateway on the remote network.

    Issues related to the:

    1. The problem indeed because the VPN connection is configured to use the default gateway on the remote network?
    2. If so, a) how can I know if it's like my VPN connection is configured and b) how I set up so I can use VPN to the network remotely and still being able to use internet locally?

    Thank you.

    Realize that the VPN is intended to establish a secure connection to a remote network via a public internet.  Allowing a client computer at the same time secure access that a secure network and a public network may pose a risk to data leaks out of the network security in the public internet.  If "split tunneling" VPN server controls is allowed on a client computer.  If allowed by the side of the VPN server, the client computer accesses the VPN and the internet by unchecking the 'use Gateway on the remote network' box.  For more information:

    "Split Tunneling for concurrent access to the Internet and an Intranet"
      <>http://TechNet.Microsoft.com/en-us/library/bb878117.aspx >

    HTH,
    JW

  • I get an error "the server does not support an SSL connection" with a code of error 0x800CCC7D in Outlook express.

    I followed Bruce Hagen and still cannot send to the OE section. Reception is no problem. When I try to send I got the following error msg: "the server does not support an SSL connection. "Account: 'pop.att.yahoo.com', server: 'smtp.att.yahoo.com', Protocol: SMTP, server response: ' 250 8BITMIME ', Port: 25, secure (SSL): Yes, Server error: 250, error number: 0x800CCC7D. I tried to change the port for outgoing to 456. When I do so I get this error msg: failed to connect to the server. Account: 'pop.att.yahoo.com', server: 'smtp.att.yahoo.com', Protocol: SMTP, Port: 456, secure (SSL): Yes, Socket error: 10060, error number: 0x800CCC0E.  Is there a cure for this. He just started two days or at least that's when I noticed I cud not send. If you can help me I will appreciate it more. Thank you.

    JP banks

    Original title: cannot send using OE 6. Reception Ok.

    Hi JPBANKS,

     

    Thanks for keeping us posted and share this information with us.

    Glad to know that the problem is solved. Do not hesitate to contact Microsoft Windows Forums for issues related to Windows in the future.

  • Hit to the broad area when the server is connected to the internet

    We have a new server running windows standard server 2008R2. When the server is connected to the internet, the computers on the domain are faced with offshore and they receive the error message saying "Unable to connect to the database". How we solve this problem?

    Hello

    I suggest you according to the question in this forum and check if that helps:

    http://social.technet.Microsoft.com/forums/en-us/category/WindowsServer

    It will be useful.

  • After the removal of a virus, I can't connect to the internet, is looking for an IP address, and the RPC server is unavailable, said

    My netbook has a virus so I did a scan and remove infected files and a program which the virus attached itself to.  Now, I can not connect to the internet.  He is looking for an IP address, and he also says that the RPC server is unavailable.  Any ideas?  Help

    Hello

    Step 1: Start your computer in safe mode, and then try to start the Remote Procedure Call (RPC) services and start the computer in a clean boot
    a. Click Start, type services.msc and press to enter.
    b. in the list of services, double-click Remote Procedure Call services.
    c. change the startup type to automatic, and then click Start.
    d. click ok to apply the changes.

    Reference: http://windows.microsoft.com/en-US/windows7/what-is-safe-mode

  • Error message: "unable to connect to the RPC Server" and no internet connection.

    Original title: recently installed a program of pc cleaner. Seemed to really speed up my laptop that is running Windows XP.

    After two days I try to connect to the internet and no connection lie. Uninstalled the pc cleaner without problem but the problem continues to exist. All tests, etc., result in "unable to connect to the RPC server. Slide short drive and reinstall XP, are there any other things to try?

    Hi Wantamustang,

    You can try the following steps and check.

    You can set the remote procedure (RPC) call Service to start automatically:

    a. clickStart, point to settings, clickControl Paneland then double-clickServices.

    b. in theservices list, click the remote procedure (RPC) call Serviceand then clickStartup.

    c. underStartup Type, click Automaticand then click OK.

    d. restart your computer.

    You can also consult the following article:

    Windows wireless and wired network connection problems

Maybe you are looking for