Problem with HTTPS on Simulator

Hello.

I try to run my application on the Simulator and a certain problem.

My app works with the Dropbox service. In the attempt of the call to the service according to the HTTPS protocol, application reports any breach in SSL dialog box. I tried to appeal to a service site via the browser (also on HTTPS). The browser has offered to accept the certificate. After acceptance of the certificate the new browser trying to address of a site, but is closed in a few seconds.

How to solve this problem? If there is such a problem on the BlackBerry Playbook device?

Hello idiom.

use the https protocol, you must set the SSL configuration on your application before you send it. For example...

        QSslConfiguration config = request.sslConfiguration();
        config.setPeerVerifyMode(QSslSocket::VerifyNone);
        config.setProtocol(QSsl::TlsV1);
        request.setSslConfiguration(config);

See you soon

Swann

Tags: BlackBerry Developers

Similar Questions

  • Problems with HTTPS access site after upgrading to FireFox 30.0

    I have problems to access our HTTPS Corporate sites after upgrade to FireFox 30.0 of the Mavericks MAC or receive an error message "user not authorized" or the page does not load. I was able to access Web sites mentioned above when you use 29,0 FF. I have read and tried all the items on support to clear the cache and cookies, remove and reinstall the software, trying to change the SSL level & remove the cert8.db and cookie files in the profile.

    Internal just to validate that it was not a problem with our Web site, I tried and was able to access these sites via Safari for MAC Mavericks. I'm looking for what anyone help possible.

    Thank you
    Jim

    Many issues of the site can be caused by corrupted cookies or cache.

    • Clear the Cache

    Press < Alt > or < F10 > to display the toolbar.
    Followed;

    Windows; Tools > Options
    Linux; Edit > Preferences
    Mac; name of the application > Preferences

    Then Advanced > network > content caching Web: clear now

    and

    • Delete Cookies

    Press < Alt > or < F10 > to display the toolbar.
    Followed;

    Windows; Tools > Options
    Linux; Edit > Preferences
    Mac; name of the application > Preferences

    Then confidentiality.
    Under historical, select Firefox will use the custom settings.
    There is a button on the right side, called View the Cookies.

    If there is still a problem,
    Start Firefox in Safe Mode {web link}
    While you are in safe mode;
    Press < Alt > or < F10 > to display the toolbar.
    Followed;

    Windows; Tools > Options
    Linux; Edit > Preferences
    Mac; name of the application > Preferences

    Then Advanced > General.
    Find and stop using hardware acceleration.

    Dig safe web sites and see if there is still a problem. Then restart.

  • problems with my application Simulator in Builder 4.6

    Hello

    I just all of a sudden on a problem that I can't seem to understand.  I can build a Release version of my application without problem, but try to do some tests on the Simulator annoys me instant app closes with 8 error on the Simulator and this message in flash builder:

    Failure of deployment: Info: request shipment: launch
    Info: Action: launch
    Info: Launch of com.babware.CribbageCompanion.debug.testDev_anion_debugcffb4b91...
    result::failed
    Info: done

    In most of my research, it has had problems with Debug chips, but I have regenerated and made sure they are all valid on my device and in Flash Builder.  Any other ideas?

    problem was the Simulator. Tried to hang my PB appear as a target and everything works fine. * shrug *.

  • Problem with deployment on Simulator ("program file does not exist")

    Hello

    I currently have a problem with a project, I can't deploy it more in the Simulator: I always get an error "the file does not exist.

    The project itself can be compiled without any isse. I can also deploy the application on my phone without problem. But when I'm trying to deploy on the virtual machine, it says:

    Program file does not exist
    /Users/..../HFR10/arm/o.le-v7-g/HFR10 not found
    /Users/..../HFR10/arm/o.le-v7-g/HFR10 not found
    /Users/..../HFR10/arm/o.le-v7-g/HFR10 not found
    

    # the application is called, HFR10...

    What is strange, is that it looks at the folder "arm", which does not exist when I compile for the virtual machine since the architecture should be "x 86"... ".

    In the x 86 folder, I can find the compiled application...

    I tried to update the descriptor of bar:

        
           armle-v7
           HFR10
        
        
           Qnx/Cascades
           armle-v7
           HFR10.so
        
        
           armle-v7
           HFR10
        
        
           x86
           HFR10
        
    

    And modified the Simulator-Debug field that used to point to the folder 'arm '...

    but after a cleaning + reconstruction, I line have the same error, and he always looks inside the arm folder...

    No idea of what the problem is? This problem appeared when I moved from momentic 2.0 to the 2.1 beta...

    But I guess that he changed something in the configuration file, because even if I go back to momentic 2.0, I still have it exactly the same problem...

    Thank you!

    UM... In the dialog box "edit configuration", I spend 'use the workspace settings' to "Enable auto build" and it works to restarted...

    It's strange, the application was already built and available in the x 86 folder...

    In any case... Perhaps it would be useful for someone else...

  • Problems with HTTPS and javascript widgets

    My HTTP site works fine, but when I switch to HTTPS, I get the following error...

    MuseJSAssert: Error calling the function switch: TypeError: E.split is not a function

    I have even tried to create a simple page with nothing else than a javascript widget, and I still get the error when you use the HTTPS version.

    FYI - I upload my pages using the 'upload to the FTP host.

    Muse and HTTPS is not compatible?

    It is more likely a problem with your server as a problem of cross-site script because the HTTPS protocol uses a folder or a different domain and browser security mechanisms as long as the server itself remove access to the script so. If there is a specific secure folder on the server, import is your files, otherwise, you will need to set an option in the web interface to allow HTTPs and normal HTTP access to your folder.

    Mylenium

  • stagewebview problem with https and invalid certificate

    Hello

    I use StageWebView to display a HTML with https and an invalid certificate, and I find a very strange error. It works well when I install the app on my iPad, but if I force to close the application, and then I open it again, the html page cannot load even if I close and open the application (do not force this time)


    Can someone help me please?


    Thank you

    I solved it with a valid certificate.

    I think that apple does not support the invalid certificate.

    Thank you

  • Huge problem with Microsoft Flight Simulator Gold Edition

    Hello

    I just tried installed FSX on my computer running Windows 7, and everything looks great except for one thing. Most of the aircraft when displayed in flight, when you travel in reality or in cut scenes are completely'm. Which means that there is no wings, the fuselage is glued on the front of the plane face down in the ground, or the wheels are attached to the top of the aircraft. So pretty, it is a metal band which is glued together.
    After reading many forums I might have SP 1 SP 2 could help my problem, but apparently the Acceleration package includes those so I installed this one rather than service packs. After installing it fixed my problem, the planes look perfect now. However, several other issue was raised. First of all, the multiplayer option in the menu disappeared, so I can't play multiplayer (least of my worries for the moment). In addition, I can play 30 minutes! No matter if I do the Missions or free flight, I can play 30 minutes or a message appears saying that I need to enable to play longer. What I did for FSX, but the acceleration pack never asked me for an activation key. Also when FSX starts a message pop up to say that it was a mistake to activation, blah blah.
    I want you to know that I got two keys with the game: Flight Sim X Pro and Flight Simulator X XP. Is there a difference? I used one.
    I also tried some method to remedy such as inserting the CD and repair, uninstall and reinstall and download a crack provided to someone else in another forum.
    As well, though I'm stuck. I can play 30 minutes or play with my pasted body in by propeller and my tires glued to my glass roof/ceiling.
    Help, please! Thank you.

    Hello

    Please visit the following link:

    You receive an activation message after you play Flight Simulator X for 30 minutes

    I ask you to Support teams of contact on the following link Flight Simulator, for assistance:
    http://www.Microsoft.com/products/games/FSInsider/tips/pages/ContactingTechnicalSupport.aspx

    Please contact us if you have any other questions about Windows operating systems.

  • Problem with MS flight Simulator & acceleration. __Problem signature: problem event name: BlueScreen__ OS Version: 6.1.7600.2.0.0.768.3__ locale ID: 1033

    Signature of the problem:
    Problem event name: BlueScreen
    OS version: 6.1.7600.2.0.0.768.3
    Locale ID: 1033

    More information about the problem:
    BCCode: d1
    BCP1: FFFFF80003BA6F4A
    BCP2: 0000000000000002
    BCP3: 0000000000000008
    BCP4: FFFFF80003BA6F4A
    OS version: 6_1_7600
    Service Pack: 0_0
    Product: 768_1

    Files helping to describe the problem:
    C:\Windows\Minidump\061410-12448-01.dmp
    C:\Users\Joseph\AppData\Local\Temp\WER-21777-0.SysData.XML

    Read our privacy statement online:
    http://go.Microsoft.com/fwlink/?LinkId=104...MP;clcid=0x0409

    If the online privacy statement is not available, please read our offline privacy statement:
    C:\Windows\system32\en-US\erofflps.txt

    Joseph Blair

    System Specs:
    Mobo: Asus P6x58d Premium
    Processor: Refrigerated by an Intel i7 980 x (4.5 oc) liquid
    6 GB of DD3 RAM
    Intel SSD boot drive 40 GB W7 Home
    2 x 300 GB WD Velociraptor (dedicated FSX drive)
    HIS ATI Radeon 5870 GPU (oc of factory)
    PSU Corsair TX950W (7 fans)
    NZXT fan controller
    Corsair 800 d case

    Hi Joseph,.

    (a) when exactly you get this error message?

    (b) was your game works well before?

    Error messages on blue screen are normally related to the material, the following steps are worth a try:

    Step 1: Disconnect all external devices (printers, scanner, USB(universal serial bus) readers, etc...) Except the keyboard and mouse, then do a test

    Step 2: Put the computer to clean and test start

    Follow step 1 in the link below,

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135

    Important: n ' forget not the computer to start normal follow step 7 in the link.

    If the problem persists, please download the dump on Sky Drive file and share the link with us for analysis

    SkyDrive.live.com

    Available at the location file

    C:\Windows\Minidump\061410-12448-01.dmp

    You might want to know

    How read partial memory dump files that Windows creates for debugging

    http://support.Microsoft.com/kb/315263

    Thank you, and in what concerns:

    Ajay K

    Microsoft Answers Support Engineer

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Problems with HTTP and BrowserField response Code

    Hello everyone!

    I have a problem.

    I need to know the CODE of RESP HTTP after each query browserField. I studied the API and have not found a way directly (or even indirectly) to get the code from a RESP.

    Even if the page I'm asking returns me a 401, it calls the method documentLoaded of the listener instead of documentError for an example. Also, I implemented a BrowserFieldErrorHandler to see if any of it's method is called when an error occurs, but no! He'll never call them and he will call directly on documentLoaded... And, this method receives an instance document (dom) and the browserField.

    Then... the question... HOW the HTTP RESP. TO GET the code on a request of browserField

    All ideas

    Thanks a bunch already!

    Cheers... FCavalcant

    Well, I got it...

    I read http://supportforums.blackberry.com/t5/Java-Development/How-to-enable-HTTP-Authentication-in-your-Br...

    and it provide me with an indirect way of crazy for the code of httpResponse = /.

    Thank you all!

    FCavalcanti

  • Problems with HTTP connections in 7.0

    Hi all

    HTTP connections in my work of fine application with 5.0 and 6.0, but they do not work with 7.0.  Enough actually, they work with 7.0 when the device is connected with WiFi, but not with 3G (Sprint) mobile network.  Connections are also running smoothly on the Simulator.  When the application tries to perform an HTTP request, it seems to open the connection, but the connection hangs just until it expires in a minute later.

    I'm unable to debug applications with the SDK 6.0 and 7.0 in Eclipse.  The debug mode is always suspended my environment.

    Can someone speculate as to why this might be the case?  For added convenience, my code is below:

    public class HttpRequest extends Thread {
        private String method; // GET or POST
        private RequestResults screen;
        private String url;
        private Loader loader;
    
        public HttpRequest(String url, String method, RequestResults screen) {
            this.url = url;
            this.method = method;
            this.screen = screen;
        }
    
        private void connection() {
            // The following code will only build under JDE 4.5 and later
            ByteArrayOutputStream out = null;
            HttpConnection conn = null;
            InputStream in = null;
    
            try {
    
                conn = (HttpConnection) Connector.open(url
                        + ConnectionParams.getConnection());
                conn.setRequestMethod(method);
    
                int responseCode = conn.getResponseCode();
    
                // Check for both 200 AND 201
                if (responseCode != 200 && responseCode != 201) {
    
                    loader.stop();
    
                    Notify.inform(Constants.CONNECTION_LOST);
    
                    conn.close();
                    return;
                }
    
                out = new ByteArrayOutputStream();
    
                in = conn.openInputStream();
                byte[] buffer = new byte[20000];
                int bytesRead = 0;
                while ((bytesRead = in.read(buffer)) > 0) {
                    out.write(buffer, 0, bytesRead);
                }
    
                screen.requestSucceeded(new String(out.toByteArray()));
                loader.stop();
    
            } catch (IOException ex) {
                Notify.inform(Constants.CONNECTION_LOST);
                loader.stop();
            } finally {
                if (in != null) {
                    try {
                        in.close();
                    } catch (IOException e) {
                    }
                }
                if (out != null) {
                    try {
                        out.close();
                    } catch (IOException e) {
                    }
                }
                if (conn != null) {
                    try {
                        conn.close();
                    } catch (IOException e) {
                    }
                }
            }
    
        }
    
        public void run() {
    
            if (NetworkCheck.radioCheck() || NetworkCheck.wifiCheck()) {
    
                loader = LoaderStore.orderLoader();
                loader.start();
                connection();
    
            } else {
                Notify.inform(Constants.NETWORK_ERROR);
            }
    
        }
    
    public class ConnectionParams {
    
        /**
         * The getConnection() method will retrieve the available connection, and is
         * prioritized fastest to slowest connections.
         *
         * @return The connection parameters string to be appended to the HTTP
         *         connection
         */
        public static String getConnection() {
            String connectionParameters = "";
    
            if (WLANInfo.getWLANState() == WLANInfo.WLAN_STATE_CONNECTED) {
                // Connected to a WiFi access point
                connectionParameters = ";ConnectionTimeout=10000;interface=wifi";
            } else {
                int coverageStatus = CoverageInfo.getCoverageStatus();
                ServiceRecord record = getWAP2ServiceRecord();
                if (record != null
                        && (coverageStatus & CoverageInfo.COVERAGE_DIRECT) == CoverageInfo.COVERAGE_DIRECT) {
                    // Have network coverage and a WAP 2.0 service book record
                    connectionParameters = ";ConnectionTimeout=10000;deviceside=true;ConnectionUID="
                            + record.getUid();
                } else if ((coverageStatus & CoverageInfo.COVERAGE_MDS) == CoverageInfo.COVERAGE_MDS) {
                    // Have an MDS service book and network coverage
                    connectionParameters = ";ConnectionTimeout=10000;deviceside=false";
                } else if ((coverageStatus & CoverageInfo.COVERAGE_DIRECT) == CoverageInfo.COVERAGE_DIRECT) {
                    // Have network coverage but no WAP 2.0 service book record
                    connectionParameters = ";ConnectionTimeout=10000;deviceside=true";
                }
            }
            return connectionParameters;
    
        }
    
        private static ServiceRecord getWAP2ServiceRecord() {
            ServiceBook sb = ServiceBook.getSB();
            ServiceRecord[] records = sb.getRecords();
    
            for (int i = 0; i < records.length; i++) {
                String cid = records[i].getCid().toLowerCase();
                String uid = records[i].getUid().toLowerCase();
                if (cid.indexOf("wptcp") != -1 && uid.indexOf("wifi") == -1
                        && uid.indexOf("mms") == -1) {
                    return records[i];
                }
            }
    
            return null;
        }
    }
    

    The culprit seems to be adding the line

    ConnectionUID = record.getUid ();

    for my URL when you set the connection settings:

    if (record != null && (coverageStatus & CoverageInfo.COVERAGE_DIRECT) == CoverageInfo.COVERAGE_DIRECT) {
    // Have network coverage and a WAP 2.0 service book record
        connectionParameters = ";ConnectionTimeout=10000;deviceside=true;ConnectionUID="
        + record.getUid();
    }
    

    Once I have remove this, it works fine...

  • Are there problems with the 9700 Simulator?

    Details

    I usually run the mds Simulator, OS device, but do not know if that changes anything.

    If the Simulator can use the browser to display a Web page, it uses the MDS.

    There is no 'known issues' of this type that a Simulator may not use network at all.

    I use the Simulator to 9700 all the time with all sorts of networks.

  • Problems with setTextofLayer positioning

    I worked on an update of a friends Web site.  I used a model of PVII - but I tried to follow its basic format she had before. Here is a link to the page that I have problems with: http://www.coastalskincare.net/facials.php.

    It contained a setTextofLayer that she wanted to stay so you can see that every time you click on one of the links to the various treatments of the face on the appropriate layer/description page appears below the table with the links it contains.  The problem is that when you scroll to see the link, and then click a different link, the page jumps back to the top and you have to scroll again.  Is - this here anyway to get the page not jumping to the top, but remain in an inferior position, so you don't have to scroll again?  I don't know if I Express it correctly - I can't think of any other way to say it!

    I was helped before in the past of this forum and I really enjoyed.  If you can point me to a few other references or can help me with this, I would be very grateful.

    Thank you!

    Glen

    In any case, change this-

    Mini facial

    on this subject.

    ;return false">Mini facial

  • Is there a problem with the server of Combat Flight Simulator 3?

    Is there a problem with the server of Combat Flight Simulator 3? I can play online because I can connect to the internet.

    I have READ 651,2 Kbps. someone helpme?

    Hi Roy sanchez,

    Thank you for using Vista answers Forum.

    What happens when you try to play?

    Here is a link to a few known issues with Combat Flight Sim:

    http://support.Microsoft.com/kb/331570

    I'm not sure of CFS, but most of the game servers are hosted by the players.
    You can check with your preferred server host to see if they are experiencing problems.

    Please let us know if that helps.

    Chris
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • invalidate the problem with 9700 (OS 6.0.0) Simulator

    I work with a PaneManagerView, and I extended in order to call the invalidate() protected method.  When I run my program on a physical device, painted correctly screen each pane that I move from one tab to the tab.

    However on the Simulator both flaps and tabs often not repaint, even if I call invalidate.

    Then I discovered this - with the simulator at a time where the screen is bad, because it does not repaint, I cover the window Simulator with another window (such as Notepad).  Can I move the other window, exposing the Simulator window.  Display of the Simulator is now correct.  In other words, the Act of covering and uncovering it forced to repaint.

    Moreover, I also saw problems with the screen, when you simply browse around the Ribbon.  My code does not for the moment, while the problems are clearly in the Simulator.  When I use the PC keyboard to move to the right (for example) sometimes the ribbon icon does not get the highest point.  Move to the right, once again and now the 2 during the last icon highlighted icon gets the highest point.  Clear the display did not update.

    I saw this problem with the Ribbon in the 9650 and 9800 simulators as well as the 9700 Simulator.

    Is there a work around for this bug in simulators?

    Paul

    Take a look at this article:

    Artifacts of the screen when you use the BlackBerry Smartphone Simulator

    http://supportforums.BlackBerry.com/T5/testing-and-deployment/screen-artifacts-when-using-the-BlackB...

  • What is the problem with my http code?

    I have a problem with the following code on the Bold 9700.  The code works on the Simulator and other devices, but some users have problems.  It seems that nothing is returned when getting the html page.

        static String get_page(String url)
        {
    
            StreamConnection s = null;
            InputStream input = null;
    
            try
            {
    
                s = (StreamConnection)Connector.open(url);
    
                input = s.openInputStream();
                byte[] data = new byte[4096];
                int len;
                StringBuffer raw = new StringBuffer();
                long startTime = System.currentTimeMillis();
    
                while ( -1 != (len = input.read(data)) )
                {
    
                    if (len > 0) {
                        raw.append(new String(data, 0, len));
                    }
    
                    // check for timeout waiting for server; or
                    // what if page never closes...
                    if (System.currentTimeMillis() - startTime >  30000)
                    {
                        s.close();
                        return("ERR2");
                    }
                }
                s.close();
    
                return(raw.toString());
            }
            catch (Exception e)
            {
                return("ERR3");
            }
    
            finally
            {
                try
                {
                    if (input != null)
                        input.close();
                }
                catch (Exception e)
                {
                }
            }
        }
    

    Y does it have that none of the Options application settings must be defined? for example: TCP/IP

    The Thread I pointed you to and the various "required reading" material, describes how the different network paths are selected by changing the suffix of the URL used connection.  The standard demo does not add a suffix, by default, choose BES connection, so will be.  Unless of course, the carrier has provided a different default value for a feature not BIS, for example, I understand that Vodafone UK will send it via WAP.

    According to the treatment of suffix / default connection, the request will be routed through a number of "gateways" like BES/MDS or the carrier's WAP gateway.  If any of them could give the 500.

    Assuming that it makes actually to your server (I assume this is a URL that you control), then the 500 from the treatment of your Web.  For example, this could be because your processing wait some headers in the http request which are not provided.  Or, that demand has been sent by a gateway changing the headers in a way that is not pregnant with your web server.

    With same URL work on the browser is unfortunately not much of a test as it can be routed through a method of communication that you do not use (for example, on Vodafone BIS devices I think the default browser will use BIS - B) and, in addition, it could provide some headers for the http connection that you do not provide.

    The point really is that there are many places that could break this code.  And there are number of variables, including what method of connection is used (and in the case of Vodafone, effectively forced to use), which carrier is used and which headers were provided.

    But I think the first thing we do is to know who is giving you the 500.  If you can follow the application to your own server, so much the better.  If you can not, in the headers that come back with 500, you should some server information.  The dump out., empty the suffix of connection you use and if possible, get the log records from at the time this was done (which confirms the method of connection actually used).

    I also search this forum for more information on issues people have had with the carriers.  I know that there is some information on Vodafone UK.  According to me, that there is still something at least another carrier.

    Sorry, comms on the BB is not as simple as that...

Maybe you are looking for