Http connection check

a simple program:
import java.io.IOException;
import org.cyberneko.html.parsers.DOMParser;
import org.apache.xerces.dom.DocumentImpl;
import org.xml.sax.SAXException;
public class Web
    public static void main(String [] args)
        DOMParser parser = new DOMParser();
        try {
            parser.parse("http://www.something.com");
            DocumentImpl doc = (DocumentImpl)parser.getDocument();
            System.out.println(doc);
        } catch (SAXException ex) {
            ex.printStackTrace();
        } catch (IOException ex) {
            ex.printStackTrace();
}when i try to run it, i get [#document: null] in the console, is there any way to check whether the DOMreader is connecting to the website? it should return a value of "This is something".
i've tried the HTMLParser project but for longer websites it gave me tags that wern't in the source code! can anyone recomend a reliable and simple HTML parser where i dont have to extend SAX classes, etc to get it to work? thanks
Richard.

http://jtidy.sourceforge.net/

Similar Messages

  • How to cancel a http connection mid-way

    Hi,
    I would like to cancel a http connection mid-way.
    For example, I may make a connection to a web server and the midlet will display a wait screen with a Gauge showing the status of the connection. The screen also has a Cancel button to allow the user to cancel the connection.
    I have written a method to cancel the connection (as below), but it doesn't work. The connection continues to be processed.
    public void cancel () {
          try {
          if (httpconn != null) httpconn.close();
          if (instrm!=null) instrm.close();
          if (outstrm!=null) outstrm.close();
          if (bStrm!=null) bStrm.close();
          } catch (Exception e) { logger.addLog("cancel "+e.toString()); }
    }Has anyone successfully tried to cancel a http connection mid-way?
    Thanks.

    Hi,
    I was also facing such problem but i got a solution for it.Method in which your are making HTTP Connection check a boolean variable after every line if
    boolean variable is true than terminate connection otherwise continue connection. And set boolean variable true when cancel method is called.

  • Function Module or class  to Check RFC HTTP Connection

    Hi All,
    Please can u tell me the FM or CLASS used to check the connection of an RFC HTTP Connection.
    Regards
    Srinivas

    Have a look at function module HTTP_GET_FILE,  view the source of this function, there is a call to FORM  check_http_destination.  Double click this routine.   Notice the call to function RFC_READ_TCPIP_DESTINATION, maybe this function will help you.
    Regards,
    Rich Heilman

  • Error trying to create https connection from Web Dynpro

    Hi experts!!
    I am trying to create a WD view with an actionButton and a form template, when the user fills the data in the form and presses the button, i want to create an Https connect and post some parameters to the URL.
    HttpsURLConnection cannot be resolved,
    com.sun.net.ssl.internal.ssl.Provider() does't not exist in the package com.sun.net.ssl.internal.ssl.Provider()
    do i need to add any jars?? I've already added the jsse.jar
    The code i use is the following.
    private void sendHttp(){
          String response = "";
          HttpsURLConnection connection = null;
          try {
                      System.setProperty("java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol");
                      java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
                      URL url = new URL(<your_url>);
                      connection = (HttpsURLConnection) url.openConnection();
                      connection.setDoInput(true);
                      connection.setDoOutput(true);
                      connection.setAllowUserInteraction(true);
                      connection.setUseCaches(false);
                }     catch(Exception e) {
                      response = response +  "Error in getting connection: " ;
                      response = response +  e ;
                if (connection != null){
                      try {
                            connection.setRequestMethod("POST");
                            connection.setFollowRedirects(true);
                            //build all the parameters into 1 string
                            String query = "parameter1name=" + URLEncoder.encode(parameter1value);
                                  query += "&";
                                  query += "parameter2name=" + URLEncoder.encode(parameter2value);
                            connection.setRequestProperty("Content-length",String.valueOf (query.length()));
                            connection.setRequestProperty("Content-Type","application/x-www- form-urlencoded");
                            connection.setRequestProperty("User-Agent", "Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)");
                            // open up the output stream of the connection
                            DataOutputStream output = new DataOutputStream( connection.getOutputStream() );
                            // write out the data
                            int queryLength = query.length();
                            output.writeBytes( query );
                            output.close();
                            //if responsecode <> 200 you should stop: should always be 200
                            String responsecode = connection.getResponseCode();
                            if (responsecode.equalsIgnoreCase("200")){
                                  String inputLine;
                                  StringBuffer input = new StringBuffer();
                                  BufferedReader in =     new BufferedReader(     new InputStreamReader(connection.getInputStream()));
                                                                                    //Get site response
                                  while ((inputLine = in.readLine()) != null) {
                                        input.append(inputLine);
                                  in.close();
                                  response = response + input.toString();
                      }     catch(Exception e) {
                          response = response +  "Error in using connection: " ;
                          response = response +  e ;
              wdContext.currentContextElement().setResponse(response);

    Hai ,
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/526bd490-0201-0010-038e-d3ff7eb1d16e
    please check above link .
    application server u have take load balancing click on next  there u take click on radio button of Msg server .
    Regards ,
    venkat

  • Opening an https connection from within a Servlet.

    I am having problems trying to establish an HTTPS connection to a servlet from within a different servlet.
    I get the java.net.MalformedURLException: unknown protocol: https. SSL is setup for the web server. Direct connections from the browser to a servlet work fine with SSL, but a connection from one servlet to another servlet fails. I'm stumped. Is there a separate SSL install/configuration required for the servlet engine? Could anyone explain?

    When you set up SSL enabled web server, you should be getting a trust cert file that knows the hand shake protocol to talk to that server. Once you have that file, you can load that file from that servlet using System.load and then you would be able to talk to anything that runs on that SSL enabled Web server.
    Also you must have JSSE jar files installed in your system .
    Check out this url:
    http://java.sun.com/products/jsse/INSTALL.html
    Let me know if you still have problems

  • How do i use an alredy open HTTP connection belong to aother class

    When my apps logs in the User by checking that the username and password are correct against the server then there has been a connection opened to perform this task.
    Then the user is returned to the Main Menu.
    After that they can send some data to the server.
    Class 1 handles the sending of Username and Password.
    And has already opened a HTTP connection.
    Class 2 that will send more data to the server will need to open a connection if there is not one already open.
    How do i check if there is an open connection?
    Do i need to check?
    Can both classes use the same connection? As its to the same server and same php script.
    Thanks for you help on this (once again :-/ )
    Brian

    endPointURL = "http://www.druidev.com/php/verification_script.php";
    try
                        c = (HttpConnection)Connector.open(endPointURL);
                        c.setRequestMethod(HttpConnection.POST);
                        c.setRequestProperty("IF-Modified-Since", "20 Jan 2001 16:19:14 GMT");
                        c.setRequestProperty("User-Agent","Profile/MIDP-1.0 Configuration/CLDC-1.0");
                        c.setRequestProperty("Content-Language", "en-CA");
                              c.setRequestProperty("Content-Type","application/x-www-form-urlencoded");
                        os = c.openOutputStream();
                   String name = "string=name=";
                   String password_tmp = "#password=";
                   String end ="#";
                   String num_origin ="#num_origin=";
                   String num_destination= "#num_destination=";
                   String t1 = name.concat(Start.current_Username);                                                                  String t2 = password_tmp.concat(Start.current_Password);
                   String t3 = t1.concat(t2);     
                   String t4 = t3.concat(num_origin);
                   String t5 = t4.concat(phoneNum1);     
                   String t6 = t5.concat(num_destination);
                   String t7 = t6.concat(phoneNum2);
                   String Final_str = t7.concat(end);                              
                        byte postmsg[] = Final_str.getBytes();
                        for(int i=0;i<postmsg.length;i++)
                               os.write(postmsg);
              is = c.openDataInputStream();
              int ch;
              while ((ch = is.read()) != -1)
              b.append((char) ch);
    I am not using flush etc.
    I need to update a phone book that is downloaded to the phone(MIDlet) once the User is verified.
    The user can edit the phonebook on the phone then each change needs to be sent back to the php script on the server.
    Can i have a loop for the number of updates i need to do then just loop through the code?
    Or will i need to repeat the whole above operation for every update i need to make.
    E.g. 5 edits?

  • HTTP connectivity error while using Blackberry MDS and JDE 5.0.0

    Hello,
    I am using BB MDS simulator 4.1.2 and BB JDE 5.0.0 for testing sample Oracle ADF Mobile client apps that I have developed.
    My app tries to access webservices via HTTP.
    Here is where I am encountering a HTTP connectivity issue.
    1. For instance, while trying to test HTTP using Blackberry browser, I see the error : "Unknown host mobile.blackberry.com:80"
    2. The sample I tried to run to test webservices - accepts a word from the user and gets it translated in to a desired language, using a webservice provided on the internet.
    Here, I have tried to translate the word 'madam' from English to French.
    I have encountered a HTTP/1.0 400 Bad Request.
    Kindly have a look at the MDS Trace as below (related entries in bold) and suggest if I am missing something from the configuration perspective.
    PS : I have tried various options from the blackberry forums but they were not very helpful.
    <2010-05-24 17:48:16.000 IST>:[215]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Device connections: AVG latency (msecs)0>
    <2010-05-24 17:48:16.000 IST>:[216]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = RemovedReceivingQueue, DEVICEPIN:CONNECT
    IONID = 2100000a:771975383, ReceivingQueueSize = 0>
    <2010-05-24 17:48:16.343 IST>:[217]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = Notification, TAG = 36110347, STATE = DE
    LIVERED>
    <2010-05-24 17:48:19.046 IST>:[218]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = RemovedSendingQueue, DEVICEPIN = 2100000
    a>
    <2010-05-24 17:49:57.437 IST>:[219]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = Receiving, TAG = 371769629, DEVICEPIN =
    2100000a, VERSION = 16, CONNECTIONID = 771975384, SEQUENCE = 0, TYPE = CONNECTION-REQUEST, CONNECTIONHANDLER = httpc, PR
    OTOCOL = TCP, PARAMETERS = [www.webservicex.net:80], SIZE = 121>
    <2010-05-24 17:49:57.437 IST>:[220]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = CreatedReceivingQueue, DEVICEPIN:CONNECT
    IONID = 2100000a:771975384, ReceivingQueueSize = 1>
    <2010-05-24 17:49:57.437 IST>:[221]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = StartExecuting, TAG = 371769629, DEVICEP
    IN = 2100000a, VERSION = 16, CONNECTIONID = 771975384, SEQUENCE = 0, TYPE = CONNECTION-REQUEST, CONNECTIONHANDLER = http
    c, PROTOCOL = TCP, PARAMETERS = [www.webservicex.net:80], SIZE = 121>
    <2010-05-24 17:49:57.437 IST>:[222]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = EndExecuting, TAG = 371769629, DEVICEPIN
    = 2100000a, VERSION = 16, CONNECTIONID = 771975384, SEQUENCE = 0, TYPE = CONNECTION-REQUEST, CONNECTIONHANDLER = httpc,
    PROTOCOL = TCP, PARAMETERS = [www.webservicex.net:80], SIZE = 121>
    <2010-05-24 17:49:57.437 IST>:[223]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Available threads in DefaultJobPool = 9 r
    unning JobRunner: DefaultJobRunner-3>
    <2010-05-24 17:49:57.453 IST>:[224]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HTTP Thread: DefaultJobRunner-3 started>
    <2010-05-24 17:49:57.453 IST>:[225]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromDevice, DEVI
    CEPIN = 2100000a, CONNECTIONID = 771975384, HTTPTRANSMISSION =>
    <2010-05-24 17:49:57.453 IST>:[225]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromDevice, DEVI
    CEPIN = 2100000a, CONNECTIONID = 771975384, HTTPTRANSMISSION = [Transmission Line Section]:>
    *<2010-05-24 17:49:57.453 IST>:[225]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromDevice, DEVI*
    CEPIN = 2100000a, CONNECTIONID = 771975384, HTTPTRANSMISSION = GET /TranslateService.asmx/Translate?LanguageMode=English
    TOFrench&Text=madam HTTP/1.1>
    <2010-05-24 17:49:57.453 IST>:[225]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromDevice, DEVI
    CEPIN = 2100000a, CONNECTIONID = 771975384, HTTPTRANSMISSION = [Headers Section]: 2 headers>
    <2010-05-24 17:49:57.453 IST>:[225]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromDevice, DEVI
    CEPIN = 2100000a, CONNECTIONID = 771975384, HTTPTRANSMISSION = x-rim-conttime:10000>
    <2010-05-24 17:49:57.453 IST>:[225]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromDevice, DEVI
    CEPIN = 2100000a, CONNECTIONID = 771975384, HTTPTRANSMISSION = Host:www.webservicex.net>
    <2010-05-24 17:49:57.453 IST>:[225]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromDevice, DEVI
    CEPIN = 2100000a, CONNECTIONID = 771975384, HTTPTRANSMISSION = [Parameters Section]: 2 parameters>
    *<2010-05-24 17:49:57.453 IST>:[225]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromDevice, DEVI*
    CEPIN = 2100000a, CONNECTIONID = 771975384, HTTPTRANSMISSION = LanguageMode=EnglishTOFrench>
    *<2010-05-24 17:49:57.453 IST>:[225]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = ReceivedFromDevice, DEVI*
    CEPIN = 2100000a, CONNECTIONID = 771975384, HTTPTRANSMISSION = Text=madam>
    <2010-05-24 17:49:57.453 IST>:[226]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, DEVICEPIN
    = 2100000a, CONNECTIONID = 771975384, HTTPTRANSMISSION =>
    <2010-05-24 17:49:57.453 IST>:[226]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, DEVICEPIN
    = 2100000a, CONNECTIONID = 771975384, HTTPTRANSMISSION = [Transmission Line Section]:>
    *<2010-05-24 17:49:57.453 IST>:[226]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, DEVICEPIN*
    *= 2100000a, CONNECTIONID = 771975384, HTTPTRANSMISSION = GET /TranslateService.asmx/Translate?LanguageMode=EnglishTOFren*
    ch&Text=madam HTTP/1.1>
    <2010-05-24 17:49:57.453 IST>:[226]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, DEVICEPIN
    = 2100000a, CONNECTIONID = 771975384, HTTPTRANSMISSION = [Headers Section]: 6 headers>
    <2010-05-24 17:49:57.453 IST>:[226]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, DEVICEPIN
    = 2100000a, CONNECTIONID = 771975384, HTTPTRANSMISSION = Connection:close>
    <2010-05-24 17:49:57.453 IST>:[226]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, DEVICEPIN
    = 2100000a, CONNECTIONID = 771975384, HTTPTRANSMISSION = Via:MDS_4.1.2.17>
    <2010-05-24 17:49:57.453 IST>:[226]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, DEVICEPIN
    = 2100000a, CONNECTIONID = 771975384, HTTPTRANSMISSION = Accept:*/*>
    <2010-05-24 17:49:57.453 IST>:[226]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, DEVICEPIN
    = 2100000a, CONNECTIONID = 771975384, HTTPTRANSMISSION = x-rim-original-accept:*/*>
    <2010-05-24 17:49:57.453 IST>:[226]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, DEVICEPIN
    = 2100000a, CONNECTIONID = 771975384, HTTPTRANSMISSION = x-rim-conttime:10000>
    <2010-05-24 17:49:57.453 IST>:[226]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, DEVICEPIN
    = 2100000a, CONNECTIONID = 771975384, HTTPTRANSMISSION = Host:www.webservicex.net>
    <2010-05-24 17:49:57.453 IST>:[226]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, DEVICEPIN
    = 2100000a, CONNECTIONID = 771975384, HTTPTRANSMISSION = [Parameters Section]: 2 parameters>
    *<2010-05-24 17:49:57.453 IST>:[226]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, DEVICEPIN*
    *= 2100000a, CONNECTIONID = 771975384, HTTPTRANSMISSION = LanguageMode=EnglishTOFrench>*
    *<2010-05-24 17:49:57.453 IST>:[226]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToServer, DEVICEPIN*
    *= 2100000a, CONNECTIONID = 771975384, HTTPTRANSMISSION = Text=madam>*
    <2010-05-24 17:49:57.515 IST>:[227]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Statistics save task started>
    <2010-05-24 17:49:57.625 IST>:[228]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Statistics save task finished -- number o
    f rows inserted:5>
    <2010-05-24 17:50:18.453 IST>:[229]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToDevice, DEVICEPIN
    = 2100000a, CONNECTIONID = 771975384, HTTPTRANSMISSION =>
    <2010-05-24 17:50:18.453 IST>:[229]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToDevice, DEVICEPIN
    = 2100000a, CONNECTIONID = 771975384, HTTPTRANSMISSION = [Transmission Line Section]:>
    *<2010-05-24 17:50:18.453 IST>:[229]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToDevice, DEVICEPIN*
    *= 2100000a, CONNECTIONID = 771975384, HTTPTRANSMISSION = HTTP/1.0 400 Bad Request>*
    <2010-05-24 17:50:18.453 IST>:[229]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToDevice, DEVICEPIN
    = 2100000a, CONNECTIONID = 771975384, HTTPTRANSMISSION = [Headers Section]: 2 headers>
    <2010-05-24 17:50:18.453 IST>:[229]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToDevice, DEVICEPIN
    = 2100000a, CONNECTIONID = 771975384, HTTPTRANSMISSION = Content-Type:text/plain>
    <2010-05-24 17:50:18.453 IST>:[229]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToDevice, DEVICEPIN
    = 2100000a, CONNECTIONID = 771975384, HTTPTRANSMISSION = Content-Length:35>
    <2010-05-24 17:50:18.453 IST>:[229]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = HTTP, EVENT = SentToDevice, DEVICEPIN
    = 2100000a, CONNECTIONID = 771975384, HTTPTRANSMISSION = [Parameters Section]: 0 parameters>
    <2010-05-24 17:50:18.468 IST>:[230]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = CreatedSendingQueue, DEVICEPIN = 2100000
    a>
    <2010-05-24 17:50:18.468 IST>:[231]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HTTP Thread: DefaultJobRunner-3 stopping>
    <2010-05-24 17:50:18.468 IST>:[234]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = Sending, TAG = 36110349, DEVICEPIN = 210
    0000a, VERSION = 16, CONNECTIONID = 771975384, SEQUENCE = 0, TYPE = DATA, SIZE = 48>
    <2010-05-24 17:50:18.468 IST>:[235]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HTTP Thread: DefaultJobRunner-3 stopped>
    <2010-05-24 17:50:18.484 IST>:[236]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Finished JobRunner: DefaultJobRunner-3, a
    vailable threads in DefaultJobPool = 10, time spent = 21047ms>
    <2010-05-24 17:50:18.500 IST>:[239]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = Sending, TAG = 36110350, DEVICEPIN = 210
    0000a, VERSION = 16, CONNECTIONID = 771975384, SEQUENCE = 1, TYPE = DISCONNECT-ORDER, SIZE = 0>
    <2010-05-24 17:50:18.500 IST>:[240]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Device connections: AVG latency (msecs)32>
    <2010-05-24 17:50:18.500 IST>:[241]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HTTP Thread: ConnectionsInputStreamesReader0-Def
    aultJobRunner-3 stopping>
    <2010-05-24 17:50:18.500 IST>:[242]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HTTP Thread: ConnectionsInputStreamesReader0-Def
    aultJobRunner-3 stopped>
    <2010-05-24 17:50:18.500 IST>:[243]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = RemovedReceivingQueue, DEVICEPIN:CONNECT
    IONID = 2100000a:771975384, ReceivingQueueSize = 0>
    <2010-05-24 17:50:18.531 IST>:[244]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = Notification, TAG = 36110349, STATE = DE
    LIVERED>
    <2010-05-24 17:50:18.562 IST>:[245]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = Notification, TAG = 36110350, STATE = DE
    LIVERED>
    <2010-05-24 17:50:19.046 IST>:[246]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = RemovedSendingQueue, DEVICEPIN = 2100000
    a>

    Hi, there:
    A couple of things to try and check:
    - Does your network connection goes through proxy server? If you are behind a proxy server, then you would need to set up proxy server in MDS by open the file <MDS simulator install>/config/rimpublic.property, go to the [HTTP Handler] section, and add the following line:
    application.handler.http.proxyEnabled = true
    application.handler.http.proxyHost=<your proxy server host name>
    application.handler.http.proxyPort=<your proxy server port>
    - Try BlackBerry MDS simulator that came with JDE 5.0. MDS 4.1.2 should still work with 5.0 device simulators, but it's worth a shot
    Can you hit the web service from the browser in your Blackberry simulator? Feel free to directly contact me at [email protected] - if necessary we can also pull in BlackBerry/RIM resources to help diagnose this.
    Thanks,
    Joe Huang

  • Error : HTTP Connection to ABAP Runtime failed

    Hi,
       i am working on xml to flatfile interface.when i am trying to test the scenario from ID - > Tools -> Test configuration option i am getting below error.
    Receiver Determination <Not found>
    Internal Error Http connection to ABAP runtime failed.
    Error : 403 for bidden.
    I have checked in Receiver determination its been configured properly.
    Is it any basis settings problem ?
    Thnx,
    Siva.

    Hi Siva,
    Check this links
    /people/krishna.moorthyp/blog/2006/07/23/http-errors-in-xi
    http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
    Regards
    Ramesh

  • File To Proxy Error ICM HTTP CONNECTION FAILED

    Dear All ,
    Iam Doing File to Proxy Scenario.
    XML File is picked by XI Adapter is Properly and if i go and Check in SXMB_MONI,
    It is Showing Status is Scheduled for outbound processing and if i see in  Que Status  is stop with red symbal .If I Click on QueueID it is opening the inbound qRFC Monitoring ,there if click on Queue Name it is showing Status :SYSFAIL,If I Click on SYSFAIL it is Showing the XI Error CLIENT_RECIVE_FAILED.INTERNAL:Que Stop, If I Click on QueueName it is showing while Executing the Functiomodule SXMS_ASYNC_EXE It is having prob i thik showin Error Text :CLIENT_RECIVE_FAILED.INTERNAL:Que Stop,If I Click on Quename it is showing a program RSXMB_SELECT_MESSSAGES is Similar to our SXMB_MONI ,here it is showing the Status Falg Red ,If I Click on that message it is opening the pipeline steps , here while calling Adapter Showing red symbal  giving the Error Message ICM_HTTP_CONNECTION_FAILED
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="INTERNAL">CLIENT_RECEIVE_FAILED</SAP:Code>
      <SAP:P1>400</SAP:P1>
      <SAP:P2>ICM_HTTP_CONNECTION_FAILED</SAP:P2>
      <SAP:P3 />
      <SAP:P4 />
      <SAP:Stack>Error while receiving by HTTP (error code: 400, error text: ICM_HTTP_CONNECTION_FAILED)</SAP:Stack>
      <SAP:Retry>A</SAP:Retry>
      </SAP:Error>
    Please help me its urgent.
    Regards
    Kumar

    hi
    This is the problem relleated to the HTTP connections, since using the proxy theXML travels to the destination, on your receiveing system make sure HTTP service are active.
    in R/3 run this report :SPROX_CHECK_HTTP_COMMUNICATION  you will get the error then proceed with the below steps to fix it.
    YOur HTTP seriveces on the R/3 have some problem.....
    Goto SMICM>goto>servicess you should see the HTTP service running with the ABAP port entry, if this is up then check
    SICF--->press f2 you should not have any proxy check there.....
    if these are fine then problem is with the Sproxy configuration........

  • The dialogs doesn't show up over HTTPS connection.

    JWS usually shows Version check and Launching dialog when it start up.
    But when it started over HTTPS connection, those dialogs doesn't show up.
    When we use HTTP connection, the application launch by following step.
    1. Java loading dialog shows
    2. Version check dialog shows
    3. Launching application dialog shows
    4. Application launched
    However, in the case of HTTPS connection, step2, 3's dialog doesn't show up.
    (It might be skipped? What's going on?)
    I think that the step1,2,3 are processed by JavaWebStart.
    Is there any way to show these dialogs when we use HTTPS connection?
    Client: Windows XP(SP2), JDK: 1.4.2_06
    Web Server: WebLogic(ver.8.1)

    When running over http or file protocol, these dialogs are shown if the update check takes more than 1500 ms, when application must be updated before launching (due in 1.5.0 to offline-allowed not being specified, or setting <update check="always" /> in 6.0) (assuming target isn't using basic authentication). If the update check can complete in less time than that, then the dialogs will not be shown.
    For https, there is a probability that the attempted https connection will cause https security dialogs, which would then always cause the check to take more than 1500 seconds (or whatever timeout is configured) so webstart won't show the download progress dialog untill it knows there is an update.
    This should be a bug, since it is handled beter in BasicAuthentication case.
    If you are using Authentication, the download dialog will show up only after 1500 ms if the JAuthenticator chalange dialog is not being shown.
    Similarilly, using https, he dialog should show after 1500 ms (or whatever timeout) if the https security dialog, or host mismatch dialog is not showmin.
    /Andy

  • Safari not responding when HTTPS connections are unavailable

    I'm using a 13" MBP with 10.7.2 installed, which is setup to sync calendar, address and bookmarks with iCloud. Since last week I've constantly encounter a problem that my Safari 5.1.1 would keep crashing, and I had to delete the ~/Library/Safari/extensions folder to get it back to work.
    This situation happened whenever I've switch to wireless connection. In my office we've setup a limited wireless environment that all HTTP/HTTPS connections will be redirected through a proxy. Since last week the proxy server was malfunctioned. All HTTP connections are proceeded normally, but all HTTPS connections will be suspended. I'm not sure but I suspect it's the main reason for the crashing problem.
    The syndromes are:
    1. When I left Safari open, unplug the ethernet, and turn-on WiFi, everythings goes on normally, until I open an HTTPS web page, for example, https://www.icloud.com. Of course that HTTPS URL will not load, since our proxy is broken; but the connection itself will NOT timeout. I've tried to leave it connecting for 10 minuntes, and it's still there.
    2. The statement above may due to a glitch in our proxy server and I can understand that. But the problem is: after I tried to open an HTTPS connection, the Safari will refuse to open any other URLs, including normal HTTP connections. It will just keep "connecting". Meanwhile the FireFox and Chrome can load these HTTP pages normally.
    3. If I quit Safari in this situation, Safari will not be able to re-launce: the icon will keep bumping on the dock. I have to force quit Safari and delete extensions folder, so that it can be launched again. But even after Safari re-launced, it still refused to load HTTP pages.
    4. Neither reconnecting WiFi, relogin, or switching back to ethernet can fix the problem. I have to restart the whole system to get it back to normal.
    It seemed to me that some Safari-related process will keep in the system after Safari is quited. And that process may keep the inactivated HTTPS connections alive in its TCP pool, and blocked all sequence connections, including the iCloud synchronization. And while I force-quit Safari, the extensions.plist file is damaged. That's the only plausible explanation to this situation.
    I'm sure this situation is introduced after 10.7.2: it's not the first time our proxy server breakdown, but I've never have this problem before.

    I've done some detailed test and now I can give a conclusion:
    1. It's confirmed that sequence HTTPS connection will be blocked in Safari and Google Chrome after a failure HTTPS connection (due to proxy). And rebooting is the only way to recover connections.
    2. My previous observation is wrong: this is NOT a system wide problem. FireFox is not affected. FireFox will return to normal and all sequence HTTPS connection can be proceeded without any problem when I reconnect to a valid network connection (i.e. ethernet), while the Safari and Google Chrome remained being blocked. And DropBox is NOT affected as well.
    3. None of the solutions mentioned in other threads can solve this problem. Checking the "Auto proxy discovery" does not help. Delete ~/Library/Preferences/com.apple.security.revocation.plistfile does not help. Clean Keychain does not help either. I've created another account for testing.
    4. It's apparently something related to some system built-in network services. Since the FireFox and DropBox both gets its' own Proxy implementation, while Safari and Google Chrome will take the system settings. It's also worth noting that the POP3-SSL connection in Mail.app is also blocked after a failure HTTPS connection.
    Currently the ONLY valid solution is using FireFox instead.

  • Ensure image loaded via http connection

    hi all
    I have a midlet that will load various images and displaying them on a canvas, upon request from the sever via HTTP connection.
    And since the operation are being performed via the commands, the http connection code had been placed in another thread.
    My question is, how can I ensure that all the necessary images are being loaded before moving on to execute the next code segment in my midlet?

    When i try to send the server its unable to recieve image data . it was able to recieve request data.
    As we use the same procedure to send data(irrespective of form as i m sending bytes)
    Here is the code snippet
    private boolean OpenHTTPConnection(String xmlData, String strUrl, String strRequestType) {
            System.out.println("UUURRRRLLL ->" + strUrl);
            System.out.println("XML Data---> ->" + xmlData + "'''''''" + bHTTPStatus);
            int rc, height, width;
            byte[] data;
            byte[] imageData = null;
            InputStream iStrm = null;
            try {
                if (xmlData != null) {
                    con = (HttpConnection) Connector.open(strUrl, Connector.READ_WRITE, false);
                    con.setRequestMethod(HttpConnection.POST);
                    data = xmlData.getBytes();
                    System.out.println("1->" + data);
                    OutputStream ops = con.openOutputStream();
                    System.out.println("----data length---" + data.length);
                  ops.write(data);
       if (Snapper.isUpload == true) {
    ops.write(Snapper.raw,0,Snapper.raw.length);
                    rc = con.getResponseCode();
                    if (rc != HttpConnection.HTTP_OK) {
                        result.setText("Server is not ready...");
                    if (ops != null) {
                        ops.close();
                    xmlData = null;
                    imageData = null;
                    Snapper.isUpload = false;
                }// end of null check
                else {
                    System.out.println("Open the Con using this URL--->" + strUrl);
                    // open the specific photo for View module
                    con = (HttpConnection) Connector.open(strUrl);
                    con.setRequestMethod(HttpConnection.GET);
                strParameters = null;
            } catch (Exception e) {
                System.out.println("Exception------->" + e);
                e.printStackTrace();
                midlet.uiManeger.SetLastErrorCode(Parser.NO_NETWORK);
            return true;
        }

  • HTTP connection in J2me

    hi,
    am developing a J2ME application that invokes a servlet on a remote computer using a MIDlet on the Sony ericsson P800...it uses HTTP connection, i tried running it on emulator and its working fine...
    now when i put the jar file on the actual phone (P800), what changes do i need to make in my MIDlet to establish an HTTP connection...because the phone will use its internet connection, so will it be able to access the remote computer if i just give its IP address?
    For emulators, my J2me sdk was on one computer and server on another...both computers were on LAN, so establishing a HTTP connection was easy, but from cell phone to remote computer, how will i establish an http connection? Please help me..its very important

    hi am not sure, but u didn.t send what tool u are using to create the application. in j2me there is an option in setting in which u can set the proxies and connection details for ur application... do check them and reply if they works..

  • Configuring Sender HTTPS Connection -- Server/Client Authentification

    Hello together,
    I need to configure an HTTPS Sender Connection with client and server authentication. I have already check the documentation however I am still not sure about the particular steps. My questions are as follows:
    - Do I configure the HTTPS connection on the ABAP or JAVA stack?
    - Is it necessary to setup an HTTP sender communication channel
    - How does the URL look like (compared to HTTP connection)?
    I have provided XI certificates to the client and the client has provided the certificates to me already. So I guess I have to import them somehow on XI.
    Any help is appreciated!
    Thank you very much.

    Hi
    Please follow below steps for HTTPS configuration as sender
    You need to use either SOAP adapter or XI Adapter for HTTPS connectivity.
    Here configure the Security Check for Inbound Messages.
    Refer below links
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/5ad93f130f9215e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/4f/0a1640a991c742e10000000a1550b0/frameset.htm
    XI3.0: Soap Sender with HTTPS
    SAP Security Guide XI, HTTP and SSL
    http://help.sap.com/saphelp_nw04/helpdata/en/14/ef2940cbf2195de10000000a1550b0/content.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/97/818a4286031253e10000000a155106/frameset.htm
    No configuration is required in the adapter-specific sender channel configuration (inbound) of the Integration Directory.
    The authentication/authorization is performed by the J2EE Engine and therefore needs to be configured with the Visual Administrator. This configuration is described in the J2EE Engine Administration Manual and is outlined in the following section.
    When a message is to be sent to the Adapter Engine (and ultimately to the Integration Server), the J2EE Engine serves as the SSL Server and presents its server certificate to the client as part of the SSL handshake procedure.
    Client-Side Configuration (Required)
    The public certificate of the trusted authority (CA) that signed the public certificate of the SSL server needs to be imported to the list of trusted certificates of the SSL client. This allows the SSL client to accept the certificate of the server in the SSL handshake.
    Server-Side Configuration (Optional)
    If basic authentication is used, no additional configuration is required on server side.
    If client certificate authentication is requested or required by selection of the corresponding option in the SSL service and configuration of the ClientCertLoginModule in the SecurityProvider service (using the J2EE Administration Tool), additional configuration steps are required.
    If the server certificate check on the client side is successful, the client sends its public certificate to the server as part of the SSL handshake (when requested). The server needs to map the certificate to a user for authentication and will then check the authorization based on the security roles of the user.
    Perform the following steps to allow the J2EE engine to map the client certificate to a user:
           1.      Import the CA cert of the client certificate to the list of trusted certificates (TrustedCAs keystore view in the keystore service) and import the client cert to an arbitrary keystore view.
           2.      Map the client certificate to an existing user with role SAP_XI_APPL_SERV_USER by using the Visual Administrator, SecurityProvider service, UserManagement tab page.
    Refer below link
    Here u go
    http://help.sap.com/saphelp_nw04/helpdata/en/65/6a563cef658a06e10000000a11405a/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/f1/2de3be0382df45a398d3f9fb86a36a/frameset.htm

  • HTTP Connection For Proxies

    Hi all,
    Can anyone explain me how to create the http connection in SM59.
    Here iam getting a status error as HTTP_CONNECTION_FAILED
    here my scenario is File to Proxy
    Suggest me where i have to make this connection means in XI or SAP system regarding this scenario (file to proxy)?
    Any suggestions.
    thanx,
    krishna.

    Hi Krishna,
    When you create a RFC in SM59 provide/check the following info
    Provid the RFC destination
    Provide connection type as G HTTP connection to external server
    In description tab provide at least one description
    In technical settings provide target host name and provide service no then provide the path prefix
    Leave the  HTTP proxy options empty
    In Logon&Security tab choose basic authentication in logon procedure
    In Status of Secure Protocol choose SSL as Inactive then choose SSL Client Certificate as DEFAULT SSL Client(standard)
    In Special Options tab choose and set Specify time out 900 msec
    In HTTP Settings choose HTTP 1.0
    Compression Status choose as inactive
    Choose compression status inactive then choose compressed response as YES
    In HTTP Cookies choose Accept Cookies choose NO
    Save the connection and do a test connection it will prompt for Response from Web Server Contains Cookies Accept?  Accept all further cookies tick the box and say YES
    If you still have problem please paste the error.
    You can refer the XI trouble shooting doc at https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/bd5950ff-0701-0010-a5bc-86d45fd52283
    Cheers,
    Shyam

Maybe you are looking for

  • Can I use my old Apple remote on my new Mac

    I just replaced my old iMac with a new 27" one.    My old Mac had one of those old Apple remote controls that used a magnet to attach to the side of my machine.     Can I use it on my new computer? The only thing I did was pause & restart my iTunes.

  • Delivery address change in third party PO

    Hi all, There is a requirement that the user should be able to change the delivery address in a third party PO. The process is like SO is created with TAS item category which will create a PR with "S" item category and subsequently the PO with respec

  • Can't Get My Share Button To Work Properly.. HTML Code Difficulties

    Hello I have a share button on one of my pages of my website (for facebook) but i can't seem to get the "title", "description" and "image" to work properly on the preview when its posted on peoples walls. It just seems to scan the website for informa

  • Logging user access with IP..?

    I want oto add some user logging for my site and since it requires authentication I believe most of the heavy lifting has already been completed. I'm hoping someone can give me some direction as to how to incorporate the pieces I need into what I hav

  • How to use solaris font in the java

    Hi all! I need to use the installed solaris fonts in a swing application. Do you know how to make the installed solaris fonts available in the java runtime environment? I have Solaris 8. Thanks eha