Ex http connector

httpConnection = (HttpConnection) Connector.open (url);                                                                                                                                                                           inputStream = httpConnection.openDataInputStream ();

When I use this connection on some of the features of his throws exception and some of the features it need very big time for the flow of data (each sound Simulator work well) what the problem

Our carriers here have a low bandwidth so sometimes when users switch to other WIFI WIFI they got connection erros. Well you must write an exception code good for catching these problems.

Check out this page http://www.versatilemonkey.com/blog/index.php/2009/06/24/networking-helper-class/

Tags: BlackBerry Developers

Similar Questions

  • Facebook Graph API HTTP connector

    Hi, has anyone tried using the HTTP connector to read the data of the Facebook graph API? I have provided credentials in the 'OAuth Consumer key' and the 'Secret OAuth Consumer"but I get the following error message {'error': {'message':" wait 1 '.' in the hallway between the postcard and the load useful ',' type': 'OAuthException', 'code': 1 "}}

    10022162,

    Facebook authorization uses OAuth 2.0 to access their APIs. This can be accomplished via Integrator but requires little java code to manage the transaction. We hope to have native support for this in a future release.

    Ryan S - EID PM

  • HTTP Mode SSL connector configuration

    What are the configuration changes I need to do at the stage of HTTP connector to connect to the short server that is configured in SSL mode.

    I do error below when executing the ExportViewDefinition.grf as the HTTP connector

    Component [HTTP connector: HTTP_CONNECTOR0] finished with ERROR status.

    peer not authenticated

    When you export views of a short protected by SSL server, try using the WEB_SERVICE_CLIENT component instead of the HTTP_CONNECTOR component.  See my review of wiki https://wikis.oracle.com/display/endecainformationdiscovery/EID+3.1+Export+View+Configuration?focusedCommentId=62423284&#comment-62423284

  • OLT can be configured to use HTTPS?

    We are in the process of restructuring and have an obligation to host at least one agent of load on a part of our secure local network (to access a particular application). So that we could accommodate the controller it too, we probably access them only over http. There's a possibility https access?

    < edit >

    Perhaps a better approach would be to keep the OLT controller "like what" and simply a separate instance of the agent to host on our secure network loading. Probably it just would be a case of opening port 9001 to allow BTA to 'see' the secure LAN agent?

    < / Change >

    Edited by: IHodgetts may 6, 2009 14:20

    Hi Ian

    You can configure Oracle for Web Applications load tests uses the SSL (Secure Sockets Layer) Protocol. The procedure consists of the following steps:

    1. create the certificate key file.
    2. edit the server.xml file to use SSL.

    Note: It is recommended to save the server.xml file before you start this procedure.
    Create the certificate key file

    1. stop the server.
    2. open a command shell window.
    3. navigate to EmpAppServer\jre\bin in load tests of Oracle for the installation of Web Applications directory.
    4. Enter the following command sequence:
    keytool - genkey-alias tomcat - keyalg RSA - keystore \tomcat.keystore
    5. enter a password when you are prompted. The default password used by Tomcat is changeit, all lowercase. If you do not use the default value, then the required password in the SSL/HTTPS connector keystorePass attribute in the server.xml file.
    6. enter information about the certificate that you are prompted. This information is displayed to users who attempt to access a secure in your application page.
    7. Enter the password for this certificate-specific key. You must use the same password that was used for the keystore password itself. Press the button automatically.
    8 copy tomcat.keystore to EmpAppServer\server\default\conf, located in load tests of Oracle for the installation of Web Applications directory.

    Edit the server.xml file

    To change the file server.xml to use SSL as well as the certificate that you created:

    1. open the EmpAppServer\server\default\deploy\jbossweb-tomcat55.sar\server.xml file in load tests of Oracle for the installation of Web Applications directory in Notepad or any other text editor.
    2. Locate the following section of the XML file:


    Address = "${JBoss.bind.Address}" "
    Son of Max minSpareThreads = "100" = "5" maxSpareThreads = "15".
    scheme = "https" secure = "true" client = "false".
    keystore File="${jboss.server.home.dir}/conf/tomcat.keystore.
    keystorePass = "changeit" sslProtocolol = "TLS" / >
    -->

    If you entered one password other than changeit when you generated the certificate, change the value of keystorePass to match the entered password.

    If you want to change the default HTTPS in the default value of 8433 port, change the value in EmpAppServer\server\default\conf\oracle.properties in load tests of Oracle for the installation of Web Applications directory.

    If you have disabled the HTTP connector or expect much use the HTTPS connector, copy the parameter values per thread (maxThreads, minSpareThreads and maxSpareThreads) of the HTTP connector configuration in the HTTPS connector.
    3. remove this attribute.
    4. If you do not want open access to load testing Oracle for Web Applications for the general public on port 8088, comment out the following item:



    Address = "${JBoss.bind.Address}" "
    maxThreads = '150' minSpareThreads = "25" maxSpareThreads = "75".
    enableLookups = "false" redirectPort = "${oracle.port.https}" acceptCount = "100" "
    connectionTimeout = "20000" disableUploadTimeout = "true" URIEncoding = "UTF-8" / >

  • Error display (from different threads)

    Hello

    I have a program that downloads an xml file.

    An error is encountered when I by specifying a non-existent URL in the Http connector (in order to produce an error).  I want to display the error on a pop-up message, however, the Simulator gives me an error when I try to view the message.

    My code looks like this (short form):

    1.  A Button Pressed
    2.  Connection thread executed
    
    ...
    
    private class Search extends Thread {
      public Search() {
        super();
      }
    
      public void run() {
    
         try {
         ...
         code for downloading and parsing file -- works just fine
         ...
         } catch (Exception e) {
    String error = e.toString();
    System.out.println(e.toString());
    
    //remove the currently displayed "Please wait..." PopupScreen
    synchronized (UiApplication.getEventLock()) {
    UiApplication.getUiApplication().popScreen(
    UiApplication.getUiApplication().getActiveScreen());
                    }
    
    //display a new screen with the error               UiApplication.getUiApplication().pushScreen( new WaitScreen(error));
    }
    

    An error is thrown in the last line "UiApplication.getUiApplication () .pushScreen (new WaitScreen (error));'.  I know this because when the line is removed, the program works fine (except for the fact that the file is not downloaded).

    When the URL does exist, there is no problem - the file is downloaded and the program does what I want it to do.  So, the problem is when I try to view a popup that says details about the error.

    Someone has any ideas why this might be the case?

    Thank you!

    UiApplication.getUiApplication().invokeLater(new Runnable()
       public void run() {
    
    Status.show(error, 2000);
                   }
    });
    

    Found a solution to my problem:

    I was not correctly process the son.

  • Browser works but not apps

    I use a bb bold 9700 to test my application and I can not connect via the http connector class. Only the built-in browser works. Other applications, such as twitter, unable to connect either. Curiously, the integrated application of pandora plays music very well via wifi.

    I have the wifi active only, no data plan. Code works fine on the Simulator.

    Any ideas?

    I managed to do work, but the results are not compatible. I also got a new error, tunnel downwards.

    I found one problem was that I was using http instead of https for the facebook api url, then operator error here.

    Yet, it is strange that other applications like twitter could not connect through wifi, but I think it might have something to do with problems of http exception across the system. I don't know, just guessing.

    I know that at some point the embedded browsers and the internal browser worked so that the apps cannot connect by themselves. I seem to have gotten past that somehow, so I'll close this thread.

    Hypothesis of solution:

    Simply run my test code and see what you can find on the status of the wifi adapter and striking http test applications. Joanie helps you.

  • Patch for WebLogic and partner patch Java - anyone done previously?

    On the FSCM 9.1 | Tools 8.53.04 | Windows Server 2008 | PS DBA Consultant working on a site of the Government of the County of public sector.

    We had problems on our outdoor Production eSupplier portal and Oracle recommended a patch for WebLogic to WLS WLS 10.3.6.0.0 10.3.6.0.11

    Also in Java patch 21494055 had to . We have applied the patches to our DEV server and it seems to be OK, however, it is difficult to test because there is charge of the user very little in DEV.

    We are concerned of applying it to the Prod, in case it goes south and wonder if anyone has done this before and who knows if there is a procedure to regularize if it caused problems with Prod because this server is very high profile!

    Thank you

    Allen

    You can go to Weblogic 10.3.6.0.11 safely in the production, I see every day.  There is only one question, you must be aware of which seems to be popping up in environments that are consuming a WebService (WSDL).  I would go ahead and add the workaround solution, because it comes to production and someone will most likely add a url to Web service somewhere:

    E - IB: using TLS over HTTP connectors SSL communication fails after short period of time with SSLHandshakeException Due to Cipher Suite Order (Doc ID 1946641.1)
  • Is it possible to use a Type of personalized content for the REST service operation messages?

    I try to POST to the third party, documentum of EMC, REST service using service broker in 8.53 peopletools integration operations. Unfortunately, the third party only accepts a content type of 'application/vnd.emc.documentum+json', which I could not send PeopleSoft and use a message definition at the same time.

    In my service operation, if I do NOT fill the request message I can POST to the URI with the such custom content type defined in the property page of the connector in the routing. I have not found a way to do it and also present JSON content on demand, since there is no message associated with the operation. Is it possible to include in this type of message content without using a request message?

    If I DO not fill the request message I can't POST successfully because the message content-type of "application/json" gets passed as the content-type instead of the value in the property page of the connector from the routing. Is it possible to change the content type during the use of a message definition?

    Thank you

    Paul

    Hi Paul - you can turn on tracing by using the on demand connection as follows:

    1. on the routing set detail header and detail "journal".

    2. Main Menu > PeopleTools > Integration Broker > Service Operations Monitor > Administration > control installation Options

    -Enable logging of the bridge

    -On the registration of demand = 5 (to enable detailed logging)

    Note: On request connection only works for the outgoing synchronous Services. In this case, we should be fine. You will find the by transaction log file on your gateway web server... / applications/peoplesoft/PSIGW.war/WEB-INF/.

    I did it for one of the REST service operations my test (I'm on 8.52.22). I have my content type of message the value application/json to the operation of the service page. On the routing page, I added a connector property content-type=application/vnd.emc.documentum+json.

    Here are the results on the integration gateway logs:

    Message-ID:<-.................@nowhere>

    MIME-Version: 1.0

    Content-Type: multipart/related; Boundary = "Integration_Server_MIME_Boundary."

    Content-ID: PeopleSoft-internal-Mime-Message

    PeopleSoft-ToolsRelease: 8.52

    -Integration_Server_MIME_Boundary

    Content-Type: text/plain; Charset = UTF-8

    Content-Transfer-Encoding: 8 bit

    Content-ID: IBInfo

    Content-Disposition: inline

    Sync There ... * deleted for security purposes *... ContentSection0text/plainN

    CREATE5000000000000

    -Integration_Server_MIME_Boundary

    Content-Type: text/json

    Content-Transfer-Encoding: 8 bit

    Content-ID: ContentSection0

    Content-Disposition: inline

    username = * collected for security purposes * & password = * deleted for security purposes *.

    -Integration_Server_MIME_Boundary-

    The Content-Type of the delivery is sent as HTTP Connector of the target and the content of the message (text/json) Type property is always persistent (see the text in bold above). You can compare logs between your two scenarios (with and without the message in the POST) and see if you find something interesting.

    I even tried the following code to see if that helps, but I get the same results.

    & MSG. IBInfo.LoadRESTHeaders ();

    / * Adds additional headers not defined on the route * /.

    REM & MSG. IBInfo.ConnectorOverride = True;

    bRet = & MSG. IBInfo.IBConnectorInfo.AddConnectorProperties ("Content-Type", "application/vnd.emc.documentum+json", % Httpentete);

    & RESP = IntBroker.SyncRequest % (&MSG);)

    I'm working on a similar project at this moment where I'm integrating perceptual Nolij Web RESTful API (Document Management System). I had to resort to using a http client base (common of apache) java instead of broker of integration because of the similar frustrations with REST (cookies are lost, unable to deal with raw binary data in a response message, etc.).

    Benefits: Java provides total flexibility.

    Cons: As we are bypassing framework Integration Broker, we need everything (error handlng, logging, etc.) do it ourselves.

  • In VRA7 Kerberos authentication configuration

    Hello

    I'm trying to configure Kerberos authentication in my environment VRA7. I followed the instructions of the reference documentation. I have install the connector, workers and Kerberos authentication providers... and can connect with my domain user name and password via the password authentication provider.

    However, when you try to login, I get the following error message: access.policy.auth.methods.not.valid.

    Access denied because no valid authentication methods have been found 404

    Screenshot 2016-02-06 12.29.22.png

    When I try the test URL: https://connector-instance.domain.host/authenticate , I got a HTTP 404 status - / authenticate error message.

    Any ideas?

    Best

    Guido

    Solved: all accounts that are synchronized with the Identity Manager must have a name, surname and email configured.

  • Web page does not load VCD

    Hello!

    After installation and configuration of VCD, I start the service, but the site shows a gray background, nothing else.

    In the log file, I found the following:

    Application installation: start

    All system properties required are present

    All the required properties of the local configuration is present

    Been linked to the network port: 80 on host address: 10.100.11.77

    Been linked to the network port: 443 on host address: 10.100.11.77

    All the required properties of the local configuration is present

    Has been initialized successfully Cryptography system

    Successfully configured the SSL certificate store HTTP connector: / opt/vmware/vcloud-director/etc/certificates

    Console Proxy SSL certificate store connector successfully configured: / opt/vmware/vcloud-director/etc/proxycertificates

    Current locale "in" verified successfully.

    Application installation: complete

    The application startup event: waiting for subsystem 'com.vmware.vcloud.common.core '.

    The application startup event: complete subsystem "com.vmware.vcloud.common.core".

    Start the application starts: 27/07/15 15:50

    Connected to the database: jdbc:jtds:sqlserver://10.100.11.151:1433 / vcloud; socketTimeout = 90; instance = sqlexpress3

    Has been initialized successfully Cryptography system

    Untrapped exception. Native Threading: thread [bootstrap-application-1, 5, main]. Message: Error creating bean with name 'conversationFactoryInitializer' defined in URL [bundleentry://138.fwk395728785/META-INF/spring/common-persist-context.xml]: cannot resolve a reference to bean "globalConversationFactory" setting bean property "arguments" with the [0] key. nested exception is org.springframework.beans.factory.BeanCreationException: error creating bean with name 'globalConversationFactory' defined in URL [bundleentry://138.fwk395728785/META-INF/spring/common-persist-context.xml]: cannot resolve the reference to the "globalSessionFactory" bean, while setting the bean "sessionFactory" property nested exception is org.springframework.beans.factory.BeanCreationException: error creating bean with name 'globalSessionFactory' defined in URL [bundleentry://138.fwk395728785/META-INF/spring/common-persist-context.xml]: cannot create the inner bean "com.vmware.vcloud.common.persist.MetadataEntityDeletionInterceptor #2bb1d0aa" [com.vmware.vcloud.common.persist.MetadataEntityDeletionInterceptor] type while setting the property "entityInterceptor" bean nested exception is org.springframework.beans.factory.BeanCreationException: error creating bean with name ' com.vmware.vcloud.common.persist.MetadataEntityDeletionInterceptor #2bb1d0aa "defined in URL [bundleentry://138.fwk395728785/META-INF/spring/common-persist-context.xml]: cannot resolve a reference to 'cellLivenessStatusService' of the bean while setting the property"cellLivenessStatusService"bean nested exception is org.springframework.beans.factory.BeanCreationException: error creating bean with name 'cellLivenessStatusService' defined in URL [bundleentry://138.fwk395728785/META-INF/spring/common-persist-context.xml]: cannot resolve a reference to bean "jobScheduler" while setting the property bean "scheduler"; nested exception is org.springframework.beans.factory.BeanCreationException: error creating bean with name "jobScheduler" defined in URL [bundleentry://138.fwk395728785/META-INF/spring/common-concurrent-bundle-context.xml]: instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: factory method [public static org.quartz.Scheduler com.vmware.vcloud.scheduler.impl.QuartzSchedulerFactory.createScheduler (com.vmware.vcloud.common.configuration.ConfigurationService) survey org.quartz.SchedulerException] has thrown the exception; nested exception is java.lang.IllegalStateException: cannot run without instance id.

    Can someone help me to what is the problem? I do not really understand what these error codes mean in the end.

    Thank you

    Daniel

    When you run the hostname command, is it returns "vcloud"?

    org.quartz.SchedulerException: could not get the hostname! [See nested exception: java.net.UnknownHostException: vcloud: vcloud: temporary failure in name resolution]

    you still have problems with name resolution.

    Make sure that your local host name is vcloud.mycompany.com when you run hostname... or resolve.conf can solve vcloud-> vcloud.mycompany.com

  • Cannot connect as Admin user in a new installation of the workspace 2.0

    I was hitting my head on my desk and I was wondering if I lack just something. I'll put in space 2.0 using EGGS and when I set up the username admin and the password that I can not make it unique. In fact, it uses my newspaper AD in when I don't even have these setting again. If someone could just tell me how to change that, it would be great. Thank you!

    Jared

    Hi Jared,

    Thanks for the clarification. The user name on the license key cannot be changed, it is hardcoded to "admin". You can use this user name and password to connect to the ISU following Admin

    https://Configurator-VA.domain.com

    https://connector-VA.domain.com/HC/Admin/

    https://gateway-VA.domain.com/SaaS/login/0

    If you want to connect to the admin of https://gateway-va.domain.com or https://gateway-va.domain.com/as an administrator, you must log on as a user you specified as the Bind DN.

    https://gateway-va.domain.com/SAAS/login/0 and https://gateway-VA.domain.com/ admin that both take you to the same functionality. The only difference is that the former allows you to connect as a user no AD.

  • SOGo connector for Thunderbird

    Hi all

    First of all, I hope that this question was not asked again; I'm sorry if this is the case.

    In fact, after Zindus reached its end of life a year ago, I'm looking for a new way to sync my contacts, managed by Zimbra with Thunderbird.
    In this context, I would like to know what the community Thunderbird SOGo connector for TB (http://www.sogo.nu/fr/downloads/frontends.html). In particular, why is this add-on not installable via interface of Thunderbird?

    Thank you very much in advance for your help,.

    See you soon,.

    Neirda

    Safety is always a difficult question to answer. Certainly the stuff to Add - ons.mozilla.org (AMO) go through a process of code by the moderators control it. But source code is everywhere and the review is effective to the person conducting the review the day. SOGO is an established project open source, so if security is really something to worry about, you can always hire someone to browse the source code. That's what AMO. On a personal note I don't have a lot of concerns about the safety of SOGO simply because it is open source, the code can be examined and it would be a brave project hat would mess in their own nest with malware etc in their package.

    However, the connector is only a part of the package of SoGo, a tool to connect to their server of groupware software. A live demo which can be accessed here http://www.sogo.nu/tour/online_demo.html the fact, that it can be used for other things is really just a bonus for the community as a by-product of them use standards based protocols.

    On a practical level several antivirus editors insert anti-solutions modules Thunderbird when you install packages. Here's what your informal appeal as well (they are not on AMO). Given that many of them intercept and decode encrypted SSL communications, I'd be more concerned that they have a backdoor to three letter agencies and I would be on the sogo connector. My trust in the internet privacy died a long time ago! but I still trust free unless there is some reason not, simply because the source code is available.

  • Connector MagSafe 2 no connection &amp; heaters

    I recently bought a replacement authentic (with connector MagSafe 2) 60W MagSafe power adapter for my MacBook Pro (retina, 13 inches, end 2013) of Apple, after my original power supply frayed and is become a little dangerous.

    I have the new adapter to power for a long time, but I was starting to have problems.

    First of all, it takes about 5 or if the attempts of connection and disconnection of the latter before the light orange light / my Macbook will start loading. I Googled it and I tried to reset the system without result management controller.

    It's embarrassing, but this isn't necessarily the main issue. The big problem is that the charge connector is getting very hot. Too hot to touch (and probably elsewhere Regulation!) after it is been connected for some time. In an attempt to stop this, I cleaned the connector and the port, but once more, it didn't stop him.

    If you have solutions, I'd love to hear and thanks in advance!

    Portable Apple computers: Troubleshooting MagSafe adapters - Apple Support

    Try resetting the SMC http://support.apple.com/kb/ht3964 if have you not sort your question that I'd take in.

    In or out of warranty you can get for free a 'Apple Service Diagnostics' OTC test

    Genius of booking http://www.apple.com/retail/geniusbar/

    Online https://getsupport.apple.com/GetproductgroupList.action

    check the warranty https://selfsolve.apple.com/agreementWarrantyDynamic.do

  • I can't get my keyboard connector cable to go into the slot

    I am trying to replace my Macbook Pro 17 "keyboard of the computer after a most unfortunate incident of beef broth. I installed the new keyboard but cannot get the keyboard connector Ribbon to enter the bus connector. I lifted the barrier of pinching the back connector and others, but when I try to move the Ribbon connector will not ride in any fair and other kinks in the opening. Rather than throw across the room as I am currently considering is anyway to run the cable into the connector, so I can lock the bar top and finished the replacement?

    It of a disassembly of your MacBook, look there:

    https://www.iFixit.com/teardown/MacBook+Pro+17-inch+unibody+teardown/618

  • iPod Touch 5 Gen - iOS 9.3.1 lightning connector issues - with accessories

    Has anyone seen a problem using iOS 9.3.1 on an iPod Touch 5th generation with lightning connector devices?  Specifically, I use the iPod in a cradle of scanner which connects via the connector of the lightning, until iOS 9.3.1 the cradle was visible to the application, but once it has been updated the scanner loses communication to the iOS device and application.  IPod charge and connect to iTunes, no problem, but refuses to see the cradle, I have another iPod on an older version of iOS, which connects to the cradle even without problem.

    To try to find, I've updated the iOS to 9.3.2 beta fault from the site of the developer, this problem has now fixed the issue with the cradle.  I can't that assume Apple broke the connection in iOS 9.3.1?

    Sometimes an iOS update breaks compatibility with accessories. Since then, he has worked with next beta which seems to be the cause.

    All yo can do is to continue using the beta until the version is rejected in the pubis.

    Have reported the problem to Apple to ensure that the beta version is not yet revised to cause the same problem?

    https://www.Apple.com/feedback/iPodTouch.html

Maybe you are looking for