To Akash :  Http Connection problem

Dear Akash,
Thanks for the reply u gave for my question
I tried with Thread also.
I still have few doubts & problem.
1. Do we need to get special permission from
operators for uploading the images or text to server.
I have tried to upload captured images to my server.
But i cann't do with mobile.
2. I am also trying to audio, video streaming. All
these are working with emulator. But not with mobile.
3. Is there are any proceedure to deploy them. I am
using EclipseME plugin. After creating jar files of my
application using obsfucation package, i am just
copying to my server and downloading it from mobile.
Is it correct way?
Can you please answer me asap? BCoz, I am stuck with
this project for last 1 week. Nothing seems to be
working on mobile.
FYI ( i am using nokia 6600). I have harcoded the
ipaddress of my server for http connection instead of
using domain name. Is it cerating problem.
Thanks a lot in advance.
Prasanna

hi
i mailed u today from my personal emailid , i think u got it .
reply me if u still have some problem.
thanks for writing me email also my name in subject line , it really save my time
regards
akash
Indiagames ltd
India
[email protected]

Similar Messages

  • Http connection problem on real series 40 device

    Hi guys,
    I'm having a problem with my midlet whenever it connects to a servlet through HTTP. When i access the servlet through a getResponseCode() command or through an openInputStream() command, a java.io.ioexception exception is called. I'm sure that the problem isn't with the servlet since i can access it just fine both through a browser or through the nokia emulator. The problem only happens when i use a real 7210 device to test the application. When i tested the application on a real series 60 device it worked just fine.
    I think the problem is with the security settings of series 40 phones. It seems that the midlet doesn't allow http connections. Do i need to do anything to allow http connections from a series 40 midlet? I have already set the gprs access point to internet as some posts have advised. Any help would be greatly appreciated. Thanks in advance!

    Hi guys!
    First of all, I'll introduce myself. My name is Angel and I am a spanish guy who likes this techs.
    I've been reading your answer to the question related to why http connections doesn't work on series 40 nokia mobiles. I mean about protocol used on connections among mobile-WAP Gateway... and I really have to tell you that you helped me about understanding how they actually work...
    Well, anyway, the thing is that I'm working with this sort of connection through the internet in order to request information from a servlet wich is in close realation with a Database. I launch queries SELECT,INSERT,DELETE,... against the server wich reports the results. This is part of my final year project, in order to finish my degree in Computing Science Engineering.
    But, I am using the series 40 Nokia, to be exact my mobile is the 6100 which has almost the same features than the 7210, and I do http connections over the WAP Gateway of my networking operator. I havenṫ ever tried do them over GPRS yet, because at glance it "seemed" to work fine and I didnṫ really need to mess with it. Having this hardly controlled, well it turned out that I got some troubles in connections I report you so I hope you can also help me about:
    1.- Connections several times are cut, when it's opened not longer than 45 seconds about.
    1.1.- I found the trick that not closing the outputStream I have indefinied time to deal with them,
    having to close them manually, I mean connections.
    1.1.1 - Unfortunetly that doesn't happen always. The fact is that It works really fine but for some
    particular ocassions when It seems as if it couldn't find the server because it receives no
    data.
    WIth all this, I'd really like to know what the hells is actually going on the wap-gateway. Because one of the things I could realize is that http connection headers are completely changed and fullfilled of data, so I had to take really care with them in order to keep the one I needed.
    Probably that depends on the networking operator I am dealing with, isn't it?
    And going further connections are set up like the mother and father of the networking operator wap-gateway want, I guess, aren't they?
    And I'd like to ask you if my tricky thing is actually crazy just to get what I am looking for, because it doesn't work a few few times, but those make the application goes down.
    And another, When you talk about TCP/IP stack. You mean the queue which in a conventional connections processes are queued-up in waiting for the chance of being admitted to be processed if they are TCP incoming connections or in the oppsoite way if they are outcoming...?
    OK, thanks in advance , and sorry for my peculiar long message, because I'm not so used to write over here, though I am when I try to find answers to the unknown ;-)
    Congratulations to this forum and greetings to those who can read me.
    Greetings from the south-east of spain where sun is stuck on your face even if you use sun-glasses.
    peteparker ([email protected])

  • OSB call to remote Web Service via https proxy and https CONNECT problem

    Hi
    I have a service that calls a web service on another server as a web service. This call is via https and the certificate validation raises no errors.
    I now want this call to go via a squid httpd proxy on port 3128 on some machine. So I would like to use HTTP CONNECT (RFC 2817) proxying,. But when I set up this as a proxy, I am getting "Certificate chain" error messages. The certifcate chains is no different now from when I called without the http proxy, so what am I doing wrong? Does OSB support HTTP CONNECT?
    -Johan

    The exeption we are getting is BEA-380000
    General runtime error: [Security:090477]Certificate chain received from XXX - 123.123.123.123 --> test.salesforce.com was not trusted causing SSL handshake failure.
    This is of course not relevant if the callout were using CONNECT. In the CONNECT scenario, OSB would not care about XXX's certificate.

  • 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

  • HTTP connection problem

    Hello,
    I have a client application which connects to HTTP server and reads data from this server (by invoking JavaScript and RPC scripts on HTTP server). Source code for this operations:
    URL url = new URL("http://" +ip + ":" + port + "/" + scriptName);
    URLConnection urlConn = url.openConnection();
    String encoding = Base64.encode(user + ":" + password);
    urlConn.setDoInput(true);
    urlConn.setDoOutput(true);
    urlConn.setUseCaches(false);
    urlConn.setRequestProperty("Authorization", "Basic " + encoding);
    DataInputStream dis = new DataInputStream(urlConn.getInputStream());
    byte[] encoded = new byte[5000];
    dis.read(encoded);Everything works perfect until data length from server is below about 1460B. If data is longer I get only part of data (only the first 1460B of whole data). Maybe somebody knows the reason of this behaviour? How to get whole data for messages longer than 1460B?
    My application works on Windows XP but it should also works on Unix systems. Is this problem connected to operation system?
    And second question - how to get to know how many data is available to read? I want to create buffer (encoded) in dynamic way (not in static way - as 5000 bytes buffer). I've tried available() method but it always returns 0.
    Cheers,
    Peter

    You are ignoring the return value of read(). When you fix that you will discover that you need a loop to get all the data.
    int count;
    while ((count = in.read(buffer)) > 0)
      out.write(buffer, 0, count);
      // or do something else with buffer[0..count-1]
    }

  • Client Http Connection Problems With CSS

    Hi,
    We have a pair of CSS 11050s configured in a redundant pair. We have a content service defined on both CSS's. They are configured for Layer 5 balancing, with Sticky timout configured at Layer 4 for the respective service (I don't know if this is correct).
    When doing a show service summary on both CSS boxes - the content servers are seen as alive. There do not appear to be any problems. However when clients try to connect to the content, there is often a very noticeable delay in connection.
    First attempt, the http request does not reach the web server and is not displayed in the log during this delay. On first access to the login URL, no page was returned for 50 secs, no entry in the web server logs, and the browser displayed “page cannot be displayed” after 50 seconds. On a 2nd attempt, the same happened (again 50 secs before timeout). On the 3rd attempt, after 25 seconds the request appeared in the Apache log, and the page was displayed on the browser. I can now access all areas of the HTML based application without further delays, and subsequent logins are not subject to the same delay.
    It is almost as if the CSS's need to cache information - but so far I have not managed to find any explanation for this.
    Any help would be most gratefully received.

    Hello Rus!
    I have recently experince the same issue serveral times. My fix was to reload the CSS. Not sure why this happens but it seems that all is well! Also check your "sticky-inact-timeout XX" setting in your content rule. Cisco recommed 60 min for connections to timeout.

  • HTTP connection problems

    Hi
    I am using eclipseME plugin to develop a midlet .It uses the J2ME WTK2.1 from Sun. When I trty to connect I get a strange error like this
    java.lang.ClassNotFoundException: com/sun/midp/io/j2me/www/mydomain./com/Protocol/
    here the url i used for connection was www.mydomain.com .. Infact any url i try to use it tries to interptret that as a classpath and attempts to load it..
    Any help is appreciated.
    Thanks
    Vik

    I give the url in this format
    Connector.open("www.mydomainurl.com:8080")

  • Problem with ABAP proxies - HTTP connection to R/3 is not working

    Hi guys!
    I'm setting up a connection from XI to R/3 , because I'm using proxy objects. Our DEV is working fine. Now I have moved the objects to QA and since the HTTP connection is not there, I need to set it up.
    I have created a service user on R/3, activated ICF service on R/3 and created a HTTP to abap type connection in XI. When I test the connection I get a new logon screen. Why? I have provided information about logon user, client, ....
    Thank you! Olian

    Hi,
    this logon screen populated when the RFC User ID is locaked. ask your basis team to release it.
    also refer below links if in case of any other problem
    Actiave ABAP Proxies -- /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
    Setting Up Point-to-Point Connections with proxy
    http://help.sap.com/saphelp_nw04s/helpdata/en/85/78af1bf407434796aaf8dbd6d4e7b7/frameset.htm
    Thanks
    Swarup

  • Timeout problem using HTTP connection in MIDP

    Hi,
    I have one thread that does a HTTP connection (StreamConnection)with the server. In some cases, the connection is established to the server and request is sent to server, then connection hangs. I cannot check the response code since the response doesn't return back. In this case, my app also hangs on the progress bar screen. Is there any way to handle timeouts in these circumstances? How do I know if the response object doesn't return back?
    Has anyone faced this problem before? Any help is appreciated.
    Thanks in advance.

    Hi,
    i am getting the same problem. my application hangs when i close the connection when the request has been sent to the server and before the data starts downloading on the client. i mean if i cancel the connection with in that time span it hangs otherwise if i close the connection while the data is being downloaded from the sever then it works fine.
    if you have sloved this problem before please explain how to slove it.
    thanks,
    Omar Rehman

  • Http connection to ABAP problem

    Hey Gurus,
    I have a problem with the configuration of a http connection to an ABAP system (type H ). Due to the PI Development Book I shall set up a connection called "XI_Integrationserver".
    The target host is: saptest8 , port 50000.
    The path prefix is: /sap/xi/engine/?type=entry
    client
    user: PIAPPLUSER
    When I test the connection I get an 404 (Not found) error. But it should be an 500 (internal server error). In transaction SICF the engine is started. I don't know how to solve this problem. Please help me!
    I'm using PI 7.01!!!
    Thanks for any reply.

    Hi,
    the name does not matter, but "XI_Integrationserver" is missleading because the target is an application system, better would be "INTEGR_ENG_SAPTEST8"
    Assumedly the port is wrong. Did you put the port of the ABAP WAS? Transaction SMICM / GoTo / Services
    Regards,
    Udo

  • Problems getting a https connection

    Hi,
    I hope someone can point me in the right direction with the following.
    Our application (which was built with jdk1.3 and Cryptix-3.2.0.jar) sets up a https connection.
    Now we have (finally) upgraded to 1.5.
    I did gather that Cryptix-3.2.0 should not be used in conjuction with any jdk from 1.4 upwards.
    And I did put the following jars on the classpath (probably overdoing things a bit)
    cryptix-jce-api.jar
    cryptix-jce-compat.jar
    cryptix-jce-provider.jar
    cryptix-jce-tests.jar
    As the jsse.jar is included with the jdk. I removed this jar from the application classpath.
    All to no avail. Before and after doing all that the result is the following stacktrace.
    java.lang.NoClassDefFoundError
         javax.crypto.Cipher.getInstance(DashoA12275)
         com.sun.net.ssl.internal.ssl.JsseJce.getCipher(JsseJce.java:90)
         com.sun.net.ssl.internal.ssl.RSACipher.<init>(RSACipher.java:35)
         com.sun.net.ssl.internal.ssl.RSACipher.getInstance(RSACipher.java:69)
         com.sun.net.ssl.internal.ssl.PreMasterSecret.<init>(PreMasterSecret.java:82)
         com.sun.net.ssl.internal.ssl.ClientHandshaker.serverHelloDone(ClientHandshaker.java:514)
         com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:160)
         com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:495)
         com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:433)
         com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:815)
         com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1025)
         com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1038)
         sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:405)
         sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:170)
         sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:828)
         com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl.getOutputStream(HttpsURLConnectionOldImpl.java:200)
         nl.ibsp.utilities.util.http.HttpQuery.doRequest(HttpQuery.java:243)
         nl.ibsp.utilities.util.http.HttpQuery.doRequest(HttpQuery.java:126)
         nl.ibsp.utilities.util.http.HttpQuery.doRequest(HttpQuery.java:111)
    Obviously I am missing some jar here containing some class, but which.
    thanks for looking
    Marjon

    Maybe some additional info will help:
    The code producing the stacktrace is the following:
    try
    log.debug( "OgonePaymentProvider::initiateRecurringPayment() - Initializing Security Provider" );
    java.security.Security.addProvider( new com.sun.net.ssl.internal.ssl.Provider() );
    System.setProperty( "java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol" );
    X509TrustManager ogoneTrustManager = new OgoneX509TrustManager();
    HostnameVerifier hostNameVerifier = new OgoneHostnameVerifier();
    KeyManager[] keyManager = null;
    TrustManager[] trustManager = {ogoneTrustManager};
    SSLContext context = null;
    try
    log.debug( "OgonePaymentProvider::initiateRecurringPayment() - Retrieving SSLContext" );
    context = SSLContext.getInstance( "SSL" );
    catch ( NoSuchAlgorithmException e )
    log.error( "Could not retrieve SSLContext Instance: " + e.getMessage(), e );
    throw new ProviderPaymentException( "Could not retrieve SSLContext Instance: " + e.getMessage() );
    try
    log.debug( "OgonePaymentProvider::initiateRecurringPayment() - Initializing SSLContext" );
    context.init( keyManager, trustManager, new java.security.SecureRandom() );
    catch ( KeyManagementException e )
    log.error( e.getMessage(), e );
    throw new ProviderPaymentException( e.getMessage() );
    log.debug( "OgonePaymentProvider::initiateRecurringPayment() - Retrieving SSLSocketFactory" );
    SSLSocketFactory socketFactory = context.getSocketFactory();
    log.debug( "OgonePaymentProvider::initiateRecurringPayment() - Initializing SSLSocketFactory" );
    HttpsURLConnection.setDefaultSSLSocketFactory( socketFactory );
    HttpsURLConnection.setDefaultHostnameVerifier( hostNameVerifier );
    log.debug(
    "OgonePaymentProvider::initiateRecurringPayment() - Creating URL: "
    + redirectUrl
    URL applicationUrl = new URL( redirectUrl );
    log.debug(
    "OgonePaymentProvider::initiateRecurringPayment() - Sending request, using \"POST\"-method"
    HttpResponse applicationResponse = query.doRequest( applicationUrl,
    "POST"
    ... handling the result ....
    catch ( MalformedURLException e ) {
    log.error(
    "Exception caught while creating URL [" + redirectUrl + "]:"
    + e.getMessage(),
    e
    throw new ProviderPaymentException(
    "Exception caught while creating URL [" + redirectUrl + "]:"
    + e.getMessage()
    catch ( IOException e ) {
    log.error(
    "Something went wrong while sending request to URL [" + redirectUrl
    + "]: "
    + e.getMessage(),
    e
    throw new ProviderPaymentException(
    "Something went wrong while sending request to URL [" + redirectUrl
    + "]: "
    + e.getMessage()
    }

  • HTTP and HTTPS connections time out--only one computer on the LAN has this problem. Also affects Internet Explorer

    For the last few days HTTP and HTTPS connections on one computer on my LAN usually time out or fail to load completely. This also affects Internet Explorer on the same machine, but email, FTP, etc. seem to be working normally. The URLs that do not load in the browsers ping normally, and load normally on another machine on the same LAN. Running Firefox in Safe Mode does not help.

    A possible cause is security software (firewall) that blocks or restricts Firefox without informing you about that, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox.
    See [[Server not found]] and [[Firewalls]] and http://kb.mozillazine.org/Firewalls

  • Java HTTP Connection Filed - It's a DNS problem

    Hello all,
    my first post is for talking about this infamuos error of java.
    When i try to view a page that use Java for one of it's applet, the applet doesn't work and Java console report among other errors:
    Caused by: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 10 more
    But if i nslookup the ip of the address and i try to download the applet by this way... all go fine.
    I tryed also Java Web Start -> same errors, but referred to URL Resource downloading.
    I's clearly that something in java or outside java is avoiding the NS resolution.
    I disabled all the firewalls, all the antyspyware... ALL...
    I try also Safe Mode with networking... eheh...
    nothing... java doesn't do NS.
    It's a big bug... i use the latest java 1.05_05.
    I'm not behind a proxy, i use firfox 1.0.7 and ie 6.0 sp2.. and windows xp... All give the same errors.
    If someone managed the error please could help me? I read the other posts but it seems to me this is a open bug.
    Goodbye,
    eTomm

    It's not difficult understand the topic.
    The actual DNS resolution implementation of Java is faulty.
    It's the ONLY service in my Windows machine that couldn't do a correct DNS resolution, stand alone application, Internet Explorer and Mozzilla web pages with applet-
    If i use IPs all go fine... when i use domain java fail.
    ALL java... non only applet. Also Java Web Start fail.
    I controlled proxy, there isn't. i say to java to do a direct connect.
    The only thing in my net configuration of strange is the router, a zyxel 660hw... nothing else... my pc work fine with all the rest of the programs that use IPs. Only java is faulty.

  • RFC Receiver adpater Connection problem , Help us to solve ?

    Hi  Friends ,
                          Our scenarilo is Mail to RFC. It was running fine. In RFC Receiver adapter i have given <b>Maximium connection property to 1</b> .
                      While multiple set data passed to rfc will connection problem will come ?
                     Most data not uploaded . I am getting the following error.
                     <b>   If i set max connection to 5 . It is 5 times or more than that it is pusing the data .</b>
                    i am getting the following error <b>while i set the Max   connection to 1 .</b> . <b>Any other place i need to change configuration ?</b>
                   <i><b> - Error: 2007-09-24 10:51:22 GMT-05:30: Message processed for interface YRFC_EXT_WARR: com.sap.aii.af.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: resource error: could not get a client from JCO.Pool: com.sap.mw.jco.JCO$Exception: (106) JCO_ERROR_RESOURCE: Connection pool RfcClient[CC_EXTE_WAREN_2W_RFC_RECEIVER]e7fa21f86ec535e883636c0beffc0f0c is exhausted. The current pool size limit (max connections) is 1 connections.</b></i>
                            Please give the description . I have referred many likns . Help us to solve this problem .
    Regards.,
    V.Rangarajan<b></b>
    Message was edited by:
            ranga rajan

    Hi,
    Have a look at this.This will help you.
    1.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f3f93ee7-0c01-0010-2593-d7c28b5377c2
    2. https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3103eb90-0201-0010-71af-be6f4a6f61d1
    Regards,
    Akshay Jamgaonkar.
    Reward points if find useful.
    Message was edited by:
            Akshay Jamgaonkar

  • 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

Maybe you are looking for

  • Problems deploying a simple EJB on Weblogic 8.1 using JDeveloper

    Hey guys, Title says it all. First I had one problem in that I could not test the connection to the Weblogic server. I moved the weblogic.jar file into the lib/ext folder and that test worked then. After that I wrote the EJB...a very simple one...and

  • Macbook pro 13 inch glassreplacement

    Granddaughter has a Macbook pro 13 in.the new unibody design, the glass is cracked can I get just the glass replaced as the computer still works?

  • How do I get it off "disk mode"??????

    I dont know what disk mode even is. I cant get to the menu it just pops up and says "ok to disconnect" when i plugged it into the USB instead of a red flashing circle...its black. and it still says "disk mode" at the top. im freaking out cause i cant

  • How to add descriptions to web app items?

    How do I add metta data (keywords and descriptions) to my web app items? Do I need to create them as additional custom fields?  Any help would be appreciated.

  • Supertabbar not focusing the selected tab's canvas

    Hi, I have a buttonscrolling canvas, and on it there is a Hi, I have a buttonscrolling canvas, and on it there is a supertabbar.  I have a lot of tabs on it, more than what can fit in a screen, so in order to scroll to the tabs at the end i have to u