Http connection using palm emulator

hi all...
am preety new to j2me . am trying to access a URL ( http://www.yahoo.com)from my palm emulator . am using j2me wireless tool kit 1.0.4 and palm emulator.
the program buils but fails to execute. i have changed the "networking" field in "JAVA HQ" to "enabled" ...still problem persists . i am not able to connect to web server running on my comp also.
am sure there are some other settings that have to be made for network connectivity.
if anyone can help me please...
thans
sanjib

HI AM SANJIB ONCE AGAIN....
am enclosing the error message am getting...hope i will help u to pinpoint where the problem is :
KVM stdout: 27 Jun 2002, 15:29
Could not create icon com.sun.midp.midlet.Selector$MIDletInfo@1cb37664startApp threw an Exception
java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
     at com.sun.cldc.io.j2me.socket.Protocol.openPrim(+7)
     at com.sun.midp.io.InternalConnector.openPrim(+308)
     at com.sun.midp.io.InternalConnector.openInternal(+6)
     at com.sun.midp.io.j2me.http.StreamConnectionPool.createStreamConnectionElement(+109)
     at com.sun.midp.io.j2me.http.StreamConnectionPool.getConnection(+121)
     at com.sun.midp.io.j2me.http.Protocol.connect(+118)
     at com.sun.midp.io.j2me.http.Protocol.sendRequest(+85)
     at com.sun.midp.io.j2me.http.Protocol.openInputStream(+48)
     at FirstExample.getViaStreamConnection(+30)
     at FirstExample.startApp(+8)
     at javax.microedition.midlet.MIDletProxy.startApp(+7)
     at com.sun.midp.midlet.Scheduler.schedule(+189)
     at com.sun.midp.midlet.Main.main(+133)
sanjib

Similar Messages

  • HTTP connection using wtk 2.5.2 and usb modem

    Hi, i´m developing an application that loads some data from a web page doing a POST. I´m using the emulator to connect to the server, and send de request. I check the response code from de connection and it is ok(value 200), but when a read de content, I always get 22 bytes, with nothing of useful data.
    I searched all the internet but i found nothing about this problem.
    Could anybody help me??
    Thanks.

    Use this piece of code:
    HttpConnection c = null;
            DataInputStream dis = null;
            try
                String url = "http://www.google.com";
                c = (HttpConnection) Connector.open(url);
                int len = (int) c.getLength();
                dis = c.openDataInputStream();
                byte[] data = new byte[len];
                dis.readFully(data);
                //tf = new TextField("Data",data.toString(), len, TextField.ANY);
                //f.append(tf);
                //d.setCurrent(f);
                f.append(data.toString());
            catch(Exception e)
                e.printStackTrace();
            finally
                if (dis != null)
                    try {
                        dis.close();
                    } catch (IOException ex) {
                        ex.printStackTrace();
                if (c != null)
                    try {
                        c.close();
                    } catch (IOException ex) {
                        ex.printStackTrace();
        }

  • HTTP Connection using GET request

    We have a J2ME app which is accessing a server using an HTTP Connection. We were using a POST to send the data but kept getting an HTTP/1.1 100 Continue from the server. This is annoying since it's extra code to work around this issue (should be handled by the HTTP stack in the JVM).
    We changed the POST to a GET. This works in the simulator but it doesn't seem to work on the real device (testing with a Motorola T720 and a Nokia). The HTTP request never seems to get to the server, although it leaves the phone just fine.
    Any ideas ?
    =Alan=

    We have found the error of our ways. Here is the scenario and the problem we had:
    1) Originally we had an HTTP POST request going to the server. After we openned connection to the URL, set the HTTP headers, openned the output stream and wrote data, closed the output stream and waited for data to come back on the connection.
    -- Result: Have an HTTP/1.1 100 Continue sent back when the server is contacted. This is irritating as it's quite a bit more work to handle.
    2) We changed the URL in the connection from a POST to a GET (url?data=urlencoded.string). We also changed the HTTP headers to reflect a GET. Since there wasn't any data to write, we openned an output stream, but didn't write any data, then closed the stream.
    -- Result: Not even getting to the server - WHY ?
    3) Then it hit us, get rid of the header information since we don't need it for a GET. Also get rid of even opening an output stream since it's really stupid to do that with a GET.
    -- Result: Now it works like a charm !
    Hope this helps any others whos brains might be stuck in idle like mine was :)
    =Alan=

  • Http connection for Palm OS4x

    any way to do this for Palm 125?
    (connection to PC is via USB)
    can i confirm that can use mochasoft if its via serial?
    anyone got any idea if its for USB connection?
    thanks in advance

    I have the same problem.
    I have a laptop with only USB connection, no built in com ports.
    It is configured as follow:
    -Internal 56K modem is mapped in com3.
    -I have a virtual COM1 port from a USB-COM adapter, and there I have connected a PalmIIIc
    -I have a ADSL modem connected to the USB
    The best goal would be surfing the web through the ADSL modem...is it just a dream?
    The second possibility would be the connection through the 56K modem.
    This would be a COM to COM operation and it should be possible.
    ....it should!!
    I have tried mochasoft, pilotnet and pilot redirector with the same result: Modem error (no data recived).
    Any idea?
    Thank you

  • How to configure https connection using a http proxy in weblogic server

    Hi,
    I have a proxy in Aqualogic Service Bus that points to a https external service. Our development environment internet access is supported by a http proxy server. The ALSB proxy fails to connect, with the following error message:
    <con:fault xmlns:con="http://www.bea.com/wli/sb/context">
    <con:errorCode>BEA-380002</con:errorCode>
    <con:reason>
    Tried all: *1 addresses, but could not connect over HTTPS to server: sitenet43.serasa.com.br port: 443*
    </con:reason>
    <con:location>
    <con:node>RouteTo_ConsultarSerasa</con:node>
    <con:path>request-pipeline</con:path>
    </con:location>
    </con:fault>
    I've added the following parameters to jvm args:
    -Dhttp.proxyHost=10.128.0.50
    -Dhttp.proxyPort=3126
    -Dhttp.proxyUser=<someUserName>
    -Dhttp.proxyPassword=<somePassword>
    Accessing the page in Internet Explorer or Firefox is working fine. Somebody knows any additional configuration to this case?
    Thanks in advance
    Rogério Cruz

    In osb you can configure a HTTP proxy server. Once this is done all BS http/https requests will be through the configured proxy server.
    http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/consolehelp/global_resources.html#wp1137225
    Manoj

  • Https Connection from servlets using JSSE.

    Hi all,
    Although my question is the same as the QOW for this week, there is an error "unsupported keyword EMAIL" returned when i try to establish a https connection using servlet. The error log is as follow:
    =====================================
    java.io.IOException: unsupported keyword EMAIL
    at com.sun.net.ssl.internal.ssl.AVA.<init>([DashoPro-V1.2-120198])
    at com.sun.net.ssl.internal.ssl.RDN.<init>([DashoPro-V1.2-120198])
    at com.sun.net.ssl.internal.ssl.X500Name.a([DashoPro-V1.2-120198])
    at com.sun.net.ssl.internal.ssl.X500Name.<init>([DashoPro-V1.2-120198])
    at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a([DashoPro-V1.2-120198])
    at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a([DashoPro-V1.2-120198])
    at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a([DashoPro-V1.2-120198])
    at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.connect([DashoPro-V1.2-120198])
    at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.getInputStream([DashoPro-V1.2-120198])
    at URLReader.doGet(URLReader.java:78)
    ===================================
    Does anyone know the meaning of this error?
    I try to write a java application using the similar code and it totally works fine(i can connect to the server and obtain the page). Does JSSE support Java Servlet? Or this is the problem of tomcat server? FYI, I'm using
    Tomcat 3.2.2
    Java SDK 1.3
    Many thanks!
    Ethan
    p.s. Here is the source for my program
    import java.io.*;
    import java.net.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.net.*;
    import javax.net.ssl.*;
    import com.sun.net.ssl.*;
    public class URLReader extends HttpServlet{
    private PrintWriter out = null;
    public void doGet(HttpServletRequest req, HttpServletResponse res){
    res.setContentType("text/html");
    res.setHeader("Cache-Control", "no-cache");
    res.setHeader("Progma", "no-cache");
    out = res.getWriter();
    java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
    System.setProperty("javax.net.ssl.trustStore", "File_for_keyStore");
    System.setProperty("java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol");
    try {
         URL url = new URL("https://server_name:port/index.htm");
         HttpsURLConnection urlconnection = (HttpsURLConnection)url.openConnection();
         BufferedReader in = new BufferedReader(new InputStreamReader(urlconnection.getInputStream()));
         String outputLine ;
         while ( (outputLine = in.readLine()) != null){
         out.println("There is the result: "+outputLine);
         in.close();
    catch(Exception e){
    public void doPost(HttpServletRequest req, HttpServletResponse res){
    }

    I was just having this issue, after months of error-free ssl behavior, on a new machine i was installing (Note: that I was running the IBM jdk1.3) It turns out that when I was editing the java.security file to know about JCE/JSSE providers i had the providers in the wrong order. The Error causing sequence was:
    security.provider.1=com.sun.net.ssl.internal.ssl.Provider
    security.provider.2=com.ibm.crypto.provider.IBMJCA
    # Extra provider added ibm@33894
    security.provider.3=com.ibm.crypto.provider.IBMJCE
    # extra provider i added
    security.provider.4=sun.security.provider.Sun
    The issue disappeared when i changed the order to:
    security.provider.1=sun.security.provider.Sun
    security.provider.2=com.sun.net.ssl.internal.ssl.Provider
    security.provider.3=com.ibm.crypto.provider.IBMJCA
    # Extra provider added ibm@33894
    security.provider.4=com.ibm.crypto.provider.IBMJCE
    hope that helps!
    --john molnar
    Trellis Network Security

  • Can not add the Palm Emulator to Sun ONE Studio 5 ME

    I am trying to add the Palm Emulator (version 3.5) to the list of emulation devices within the Sun ONE Studio 5 ME.
    First, it seems like Studio 5 requires that the emulator resides in a bin subdirectory. Second and here where the problem is. Once the emulator is identified by Studio 5 (as a "Standard UEI Emulator" and after I click on "Next", Studio 5 tries to get information about the configuration of the emulator and its profiles.
    I, immediately get an error (generated by the Palm OS Emulator) stating: "Don't understand the command line parameter "-version"." within a message box. Once I click OK, the Studio 5 says that the operation failed.
    This is as far as I could go.
    I would like to mention that I am running Windows XP Professional with Service Pack 1. I am also working with a ROM image that I downloaded from my PalmVx PDA.

    Hello Hassan,
    I've done the following: I've used Palm emulator that's included with WTK 1.0.4_01 provided with Sun ONE Studio 5, ME. If you try to execute application using this 'device' you'll be asked to point to directory with Palm Emulator 3.5 (the one you have), emulator.exe. Then it takes over and asks for skins, ROMs and other stuff.
    Hope this helps,
    Peter

  • Using palm os emulator through java wireless toolkit!!.....pls help

    I have palm os emulator 3.5 installed.I am trying to integrate it wid d java wireless toolkit 2.2,in addition to d default devices provided by d toolkit.But i hav failed to integrate pose in jwtk.
    i am running midp2.0 and cldc1.1.
    Also i have downloaded d rom files required by d emulator.
    Pls anyone help me!!
    How can i use palm os emulator through java wireless toolkit?
    thanking you
    shivam sahai

    hi,
    I hope that you already have the J2ME Toolkit and that your emulator works okay. In the toolkit you get several examples to show you how to program a MIDlet. One has to do with a HTTP client server connection. Also in the API documentation for the J2ME there is a Connector class that you used to set up this communication and in the description of this class it pretty thoroughly explains how to set up an HTTP protocol client.
    However, if you want to do some other kind of networking then you are pretty much out of luck, as the TCPIP socket protocol has not been fully implemented and is optional to the J2ME specifications, only the HTTP protocol is certain to be available. This means that mobile phone companies can add other networking functionality to their phone's java virtual machine if they feel like it. This is a bummer I know.
    I hope this helps.
    Cheers,
    Mark

  • 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

  • Help! with creating a J2ME program using the http connectivity interface

    So this is what I have to do using the http connectivity interface:
    1.Creating two threads – one for communication (receiving and sending) and the other (main) thread will be for interaction with the user.
    2.The main thread will make use of three midlet forms. The first form will ask for web page address (URL) and separately for a delimiter which will separate the words in the URL document, the third form will display the ratio of all symbols on the page and the number of occurrences of the delimiter specified
    3.The second thread should perform http connectivity to the WWW, utilise the web page address supplied and connect to the appropriate web page and read its content, count all symbols on the chosen page, count the number of occurrences of the delimiter given as user input on the same form as the web page address, calculate the ratio between the two and pass this information to the first thread to display.
    I have many questions but my main concerns are:
    *1. How to communicate using HTTP interface within a thread*
    *2. What is a delimiter in the context above and how should it be implemented*
    I've been thrown in at the deep end with little programming experience with this assignment. If anyone can share a similar example or answer my concerns I'd be more than happy.
    Thanks in advance.

    thelane wrote:
    hi thanks for the response.
    As I said I have coded in other languages before, but this is a new for me in java. I needed to get it working quickley. Now I can clean up.
    I will have a look at method and see how I get on.
    ANy similiar examples would be great.
    Thanks.I can certainly give you a similar example.
    Say you have code such as this:
      int a = 10, b = 11;
      int temp = 1;
      for(int i = 2; i < a; ++i) {
       temp *= i;
      System.out.println(a + " factorial is " + temp);
      temp = 1;
      for(int i = 2; i < b; ++i) {
       temp *= i;
      System.out.println(b + " factorial is " + temp);Each section of code takes the factorial of the current variable an outputs it. The factorial code can be placed within a method to be called more easily, as such:
    public void factorial(int num) {
    int temp = 1;
    for(int i = 2; i < num; ++i) {
      temp *= i
    System.out.println(num + " factorial is " + temp);
    }Then, whenever you need to call it, you can just do so:
    int a=10,b=11,c=12;
    factorial(a);
    factorial(b);
    factorial(c);

  • RFC to send an idoc PEXR2002 using HTTP connection to an external server

    Hi,
      Iam working on RFC to send an idoc PEXR2002 using HTTP connection to an external server. first time iam working on this particular scenario on http connections. please clarify on this and explai me in detail about this.
    Points will be rewarded **
    Thanks & Regards,
    Ravi

    HI Jagruthi,
    Have you loaded the metadata into the XI system by using IDX2?
    If it is done then try to delete once and do once again.
    And also delete the IDoc from IR and reimport the IDoc and activate it once again.
    Regards
    Goli Sridhar

  • Use HTTP connection over SAPROUTER?

    hallo
    i have 2 saprouters connected so i can access sap with sapgui by using saprouter string
    /H/212.xx.xx.xxx/S/sapdp99/H/212.yy.yy.yyy/S/sapdp99/H/
    so far no problem
    i added entries in saprouttab for port 8000 as well (same es for oss service required)
    how can i now access to bsp application by using this saprouter-tunnel?
    i find a lot of documentation how to setup the saprouttab for http connection but not how to use it
    regards
    joerg

    > I bet the same applies for http.
    yes.
    If the SAP support clicks on an HTTP connection some local scripts on their PCs will act as a proxy, so basically the connect "locally" and internal programs/proxies forward that through the saprouter connections.
    To make an HTTP access from outside the network possible you can install an apache webserver and configure it as a reverse proxy.
    Markus

  • Unable to connect to https pages using mobile provider

    Hello all,
    I have a brand new iphone 3GS running 3.1.2 and fully updated.
    MY PROBLEM IS:
    I cannot connect to any sites that use https when using my mobile service provider, which is MTN in Ghana. I can however access these sites when connecting by WIFI.
    Sites I cannot access which use https when connecting via my mobile service provider include:
    - gmail.com (which after redirecting, refuses to open the https login page)
    - my bank asbbank.co.nz (which redirects to an https page),
    - facebook (which after entering login info tries to redirect to an https page) - and - ironically - https://support.apple.com.
    The error in each case is a timeout "Cannot open page, safari could not open the page because the server stopped responding". Further, I ALSO cannot access my gmail mail account although everything is configured correctly. This gives me an imap error.
    HOWEVER:
    -I can access all http websites using my mobile service provider including yahoo mail, just not https
    -When connecting via WIFI I CAN access all services and websites, including https and I CAN connect to my gmail mail account (without the imap warning proving I have configured it with the proper settings/password)
    I HAVE TRIED (just about everything):
    -clearing cache, cookies, history
    -restarting the iphone, force restarting
    -I have reset all network connections
    -I have wiped my whole iphone to reset all settings and delete all content
    - I have visited my mobile service provider (MTN Ghana) who assure me my iphone is configured correctly, that their servers do not block iphones. A customer care person was able to connect to gmail in front of me with their blackberry phone via the same MTN network. However when this persons sim card was inserted into my iphone (which is legally unlocked from New Zealand) my iphone could not connect to gmail through safari...
    Please, any suggestions are welcome, I have searched long and hard for an answer and am still unsure where the exact problem lies.
    Much thanks, Roger

    Solved. The carrier twice gave me the apn details as wap, and eventually tracked down that it should be 'internet' . Interestingly 2 other carriers in Ghana Tigo and Vodafone also didnt know this and couldnt configure the 3GS...

  • Http Connection Problem on 7650 Emulator

    HI!
    I'm trying to establish a http connection with my tomcat server. My code is as following:
    private void callServlet() throws IOException
    HttpConnection http = null;
    InputStream iStrm = null;
    // Data is passed at the end of url for GET
    /* String url = "http://localhost:8080/webserv" + "?" +
    "account=" + tfAcct.getString() + "&" +
    "password=" + tfPwd.getString();*/
    try
    http = (HttpConnection) Connector.open("http://heavenfighter.homeftp.org:8080/webserv?account=marco&password=test");
         catch(IOException e)
              fmMain.append("Verbindung fehlgeschlagen");
         System.out.println(e.toString());
         try
    // Client Request
    // 1) Send request method
    http.setRequestMethod(HttpConnection.GET);
    // 2) Send header information - none
    // 3) Send body/data - data is at the end of URL
    // Server Response
    fmMain.append("Antwort" + http.getResponseCode());
    if (http.getResponseCode() == HttpConnection.HTTP_OK)
    iStrm = http.openInputStream();
    // 2) Get header information - none
    // 3) Get body (data)
    int length = (int) http.getLength();
    if (length > 0)
    byte servletData[] = new byte[length];
    iStrm.read(servletData);
    // Update the string item on the display
    fmMain.append("You passed to the servlet: \n" + new String(servletData));
    else
    fmMain.append("Unable to read data");
    catch (Exception e)
    fmMain.append("Network error2");
    System.out.println(e.toString());
    finally
    // Clean up
    if (iStrm != null)
    iStrm.close();
    if (http != null)
    http.close();
    After a few seconds, i get the network2 error and a message
    java.io.IOException: Status = -20015
    What does it means?
    How can i connect to a http server???
    Thanks

    Sorry, I didn't realize you where talking about an emulator. My advice is relevant only on a real phone.
    Anyway, here's some reading material that could help you:
    Related posts on Nokia's forum (you might have to register before you can enter):
    http://nkn.forum.nokia.com/forum/search.php?s=&action=showresults&searchid=452072&sortby=&sortorder=
    Symbian error codes (and unfortunately -20015 doesn't appear):
    http://www.symbian.com/developer/techlib/papers/errores/Erresapi.html
    shmoove

Maybe you are looking for