Applet - Server HTTPS connection

I got following exception:
java.lang.ClassCastException: sun.plugin.protocol.jdk12.https.BrowserHttpsURLConnection
     at ClientApplet.create_connection(ClientApplet.java:35)
here is a code snipet:
public void create_connection() {
try {
url = new URL("https://bpesw2k/testsecurity");
//import com.sun.net.ssl.*
HttpsURLConnection httpsConn = (HttpsURLConnection) url.openConnection();
System.out.println( httpsConn.getURL().toString() );
httpsConn.setAllowUserInteraction(true);
httpsConn.setDoInput(true);
What's wrong here? Thank's for any hint.
Frank

Hi,
To use https connections in JDKs before JDK1.4 you have to install Java Cryptography Extension (JCE) available at http://java.sun.com/products/jce/index.html
There are a good example in the package that show you how to do this.
Regards,
Fredrik

Similar Messages

  • Starter in Hanphone-Server http connection.

    Hi,
    Anyone can help me on this problem: I am currently programming a handphone-server application. The basic idea is that, the hanphone sends picture to server, the server receives that picture, process it and send it back to the handphone.
    Programming in hanphone: J2ME, server:Servlet.
    My problem is that: It is always the handphone which starts the connection (send picture to server, and retrive picture from the server). That logic is not good. I want to change to: server will start the connection in order to send picture back to the handphone. And the handphone will get noticed whether to accept receiving the picture or not.
    Anyone can show me how: server will start the connection in order to send picture back to the handphone.
    Thanks in advance.

    Hi,
    1) Can you Check  whether  SLD is active, Try to re start the SLD ,
    This might help you
    /people/sugree.phatanapherom/blog/2005/08/14/configuring-sld-in-sneak-preview-sap-netweaver-04-sneak
    2) Check is it  time  out error, ( Data unable to fetch due to time out error )
    3) Go tCode- ST22 and check for the DUMP for more information.
    Regards
    Agasthuri Doss

  • Failed to load applet ( Caused by: java.io.IOException: open HTTP connect )

    Sometimes this error occurs :
    load: class applet.OMcsAppletMeetMeConf...
    java.lang.ClassNotFoundException: applet.OMcsAppletMeetMeConf
    at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed:http://192.168.73.101/mcs/applet/applet/OMcsAppletMeetMeConf.class
    at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
    at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
    at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    ... 7 more
    Exception: java.lang.ClassNotFoundException: applet.OMcsAppletMeetMeConf This error occurs sometimes while applet load. In most cases program work normally
    I can not know the cause.
    plz.. help me..
    system info
    - java version : 1.6.0_17
    - browser : ie 8 (but this error also occurs to ie 7, ie 6)
    - html source is :
    <applet id="mm_app" alt="" codebase="/mcs/applet" code="applet.OMcsAppletMeetMeConf"
    width="800px" height="400px" archive="signedApplet.jar">
    </applet>

    namgung0718 wrote:
    Sometimes this error occurs :
    load: class applet.OMcsAppletMeetMeConf...
    java.lang.ClassNotFoundException: applet.OMcsAppletMeetMeConf
    Caused by: java.io.IOException: open HTTP connection failed:http://192.168.73.101/mcs/applet/applet/OMcsAppletMeetMeConf.class
    - html source is :
    <applet id="mm_app" alt="" codebase="/mcs/applet" code="applet.OMcsAppletMeetMeConf"
    width="800px" height="400px" archive="signedApplet.jar">
    </applet> As an aside. Since 'px' is the only valid unit for width and height, they should not be included in the applet element.
    ..This error occurs sometimes while applet load. In most cases program work normally
    I can not know the cause.That applet element combined with the address would imply the JRE was (first) looking for the applet at..
    [http://192.168.73.101/mcs/applet/signedApplet.jar]
    When I try that link in FF, I get the message..
    Network Timeout
    The server at 192.168.73.101 is taking too long to respond.
    plz.. help me..Please take the effort to spell all 6 letters of the word 'please'.

  • Applet fails to connect behind isa server 2004

    hi, for security I have to activate authentication on Isa server 2004 and under this configuration the applet can't connect here is the log:
    NETg Learning Studio (Web) 3.1.8.8
    Copyright � 1997-2005 Thomson NETg, a division of Thomson Learning, Inc. All rights reserved.
    java.vendor = Sun Microsystems Inc., version = 1.5.0_06
    os.name = Windows XP
    Friday, September 15, 2006
    Memory: Total 4767744, Free 998864
    SMD was found.
    AICC_HACP_Connection: IOException processHACPPost().
    java.net.SocketException: Connection reset
         at java.net.SocketInputStream.read(Unknown Source)
         at java.io.BufferedInputStream.fill(Unknown Source)
         at java.io.BufferedInputStream.read1(Unknown Source)
         at java.io.BufferedInputStream.read(Unknown Source)
         at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
         at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.doTunneling(Unknown Source)
         at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.doTunneling(Unknown Source)
         at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
         at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown Source)
         at netg.AICC.HACP.nls_jk.i(DashoA8374)
         at netg.AICC.HACP.nls_jk.a(DashoA8374)
         at netg.AICC.HACP.nls_nj.allSecure(DashoA8374)
         at netg.signpost.nls_kq.run(DashoA8374)
         at java.security.AccessController.doPrivileged(Native Method)
         at netg.signpost.SunSecurity.g(DashoA8374)
         at netg.signpost.SunSecurity.f(DashoA8374)
         at netg.AICC.HACP.nls_jk.a(DashoA8374)
         at netg.InterNETgBase.run(DashoA8374)
         at netg.util.nls_l.run(DashoA8374)
    Could not communicate with HACP host!
    and when (for testing purposes) I deactivate authentication on my ISA the applet works fine (here is the log)
    NETg Learning Studio (Web) 3.1.8.8
    Copyright � 1997-2005 Thomson NETg, a division of Thomson Learning, Inc. All rights reserved.
    java.vendor = Sun Microsystems Inc., version = 1.5.0_06
    os.name = Windows XP
    Friday, September 15, 2006
    Memory: Total 9728000, Free 1392944
    SMD was found.
    Sending HACP host the following:
    command=GetParam&version=2.0&session_id=CRS3684_SCR2304_STU9782_SOL59084_&AICC_Data=
    HACP host returned the following:
    Error=0
    error_text=successful
    version=2.0
    aicc_data=
    [Core]
    Student_ID=josky.jara
    Student_Name=Jara, Josky
    Lesson_location=
    path=
    Credit=credit
    Lesson_status=I,A
    Score=
    Time=73:09:13
    Lesson_Mode=Normal
    [Core_Lesson]
    TSF=0_2_0_1lsi_42_42_cuc2_0_0_0_0_0_0_0_; MVA=00000000000000; UPF=12_2_0_1_0_1_1; sSkew=0; ATS1=fvvv; LastTopic=en_US_20811_Assmt1.nlo; MP=80; PC=48; DOWNLOAD=0; LastPage=-1;
    [Core_Vendor]
    [Student_Data]
    Mastery_Score=80
    Error: java.lang.ThreadDeath: null
    java.lang.ThreadDeath
         at java.lang.Thread.stop(Unknown Source)
         at java.lang.ThreadGroup.stopOrSuspend(Unknown Source)
         at java.lang.ThreadGroup.stop(Unknown Source)
         at sun.awt.AppContext.dispose(Unknown Source)
         at sun.applet.AppletClassLoader.release(Unknown Source)
         at sun.plugin.security.PluginClassLoader.release(Unknown Source)
         at sun.applet.AppletPanel.release(Unknown Source)
         at sun.applet.AppletPanel.sendEvent(Unknown Source)
         at sun.plugin.AppletViewer.onPrivateClose(Unknown Source)
         at sun.plugin.AppletViewer$1.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    loading copyright notices
    loading copyright notices
    loading copyright notices
    Copyrights for NLO /skillb/en_US_20811/en_US_20811.nlo:
    Copyright � 2004 Thomson NETg, a division of Thomson Learning, Inc.
    All rights reserved. No part of the material protected by this copyright may be reproduced or utilized in any form or by any means, electronic or mechanical, including photocopying, recording, broadcasting, or by any information storage and retrieval system, without permission in writing from Thomson NETg.
    Skill Builder is a registered trademark of Thomson NETg. All other trademarks referenced are the trademark, service mark, or registered trademark of their respective holders. Thomson NETg is not affiliated with any company or any other product or vendor mentioned in this course and its accompanying materials.
    Cisco Systems is a registered trademark of Cisco Systems, Inc. Cisco IOS is a trademark of Cisco Systems, Inc. Novell and Netware are registered trademarks of Novell, Inc.
    The software and technology used to implement this course contain trade secrets that Thomson NETg considers to be confidential and proprietary information, and your right to use this material is subject to the restrictions in the license agreement under which you obtained it.
    Companies, names, products, and data used in the examples in this course are fictitious. Any resemblance to existing companies, persons, or products is coincidental and unintentional.
    Versions for NLO /skillb/en_US_20811/en_US_20811.nlo:
    BuilderVersion=Builder Version: GenNLO 3.6.2.32
    BuildDate=Build Date: 05-Jul-2004
    TemplateVersion=Template Version: 20030630
    ContentVersion=Content Version: 20811-0406-10
    SrcOrigRelease=Original Release: <200407051839>
    SrcCurRelease=Current Release: <200407051839>
    SrcPrevRelease=Previous Release: <>
    SrcNlo=Source Nlo: <>
    LocalOrigRelease=Local Original Release: <>
    LocalCurRelease=Local Current Release: <>
    LocalPrevRelease=Local Previous Release: <>
    PandoraVersion=Pandora Version: 1.2.0.0
    PandoraBuildDate=Build Date: 09-Jul-2004
    RSObjective not found.
    bUseUserDir = false
    vars.netgIniFile set to "C:\Documents and Settings\All Users\Application Data\NETg/netg.ini"
    In DisplayViewSettings...
    curMode = -1
    In preferences, audioinstalled = 1
    no UserLinkBox
    Setting default font size to 12
    could someone give me a hand?

    Try a security/authentication forum. This isn't a VM issue.
    Sorry.

  • Applet served via HTTPS causes Firefox to freeze with JRE 1.3.1

    I have a very simple test applet that tries to get a couple of system properties and write them to System.out. It is packaged in a signed jar. It works just fine in every configuration I have tested, except the following:
    - Firefox browser
    - HTTPS connection
    - JRE 1.3.1
    If you change any one of those variables (use IE, serve the page & applet over HTTP, or use a newer JRE), then it works fine. But with that exact configuration, page never fully loads, firefox.exe spikes the processor, and the applet never writes anything to the System.out. When I close Firefox, Windows' "Do you want to report this crash" dialog box pops up, indicating to me that the app exit did not go smoothly.
    Has anyone seen this issue? Any idea if there's a fix for it?

    Seems to be all applets. The packaging doesn't seem to matter -- it even happens with standalone .class files. Even one as simple as this will freeze Firefox:
    public class TestApplet extends java.applet.Applet {
         public void init() {
              System.out.println("Hello");
    }BTW, the HTML looks like this:
    <html>
         <body>
              <applet mayscript name="TestApplet" code="TestApplet.class" width="100" height="100"></applet>
         </body>
    </html>

  • Server closing the http connection

    We are trying to load test our app which takes an xml message thru
              http request. The request to our app is redirected from CSS (Cisco
              content services switch) load balancer. Our app is running in a
              clustered environment with 2 servers.
              When we tried to post 100 simultaneous messages (in turn 100 http
              requests) originating from the same java client program running on
              only one machine, we get an excception "Connection reset by peer:
              JVM_recv
              Socket write error".
              All these 100 requests are simultaneous and like that we ran the tests
              4 consecutive times without any delay.
              When we ran the tests thru the weblogic proxy server (the one that
              uses HttpClusterServlet) we did not face any connection issues like
              this.
              I'm wondering if this is a load-balancer problem or a weblogic
              problem.
              

    We're doing all the url connections thru our java program which
              creates 100 simultaneous threads which in turn becomes 100
              simultaneous posts. Someone is also suggesting that there is a time
              limit that CSS has before it received the content frame from the
              client once it opens the http connection. I'm not sure if that is
              true.
              "Vyas" <[email protected]> wrote in message news:<[email protected]>...
              > Cisco load balancer sets its own cookie to redirect traffic to the same server, this
              > cookie somehow seems to interfere with weblogic session cookie.
              > We had problems because of this in a production environment with
              > users interfering with each other's session.
              >
              > So far neither weblogic nor cisco owned up to anything , however weblogic gave us
              > a patch admitting to some problems with parsing cookies when other cookies are involved.
              >
              > I am not sure if the problems are the same for you,
              > what do you mean 100 simultaneous requests ?
              > through browser ? through httpurlconnection ?
              >
              > [email protected] (marsaroid) wrote:
              > >We are trying to load test our app which takes an xml message thru
              > >http request. The request to our app is redirected from CSS (Cisco
              > >content services switch) load balancer. Our app is running in a
              > >clustered environment with 2 servers.
              > >
              > >When we tried to post 100 simultaneous messages (in turn 100 http
              > >requests) originating from the same java client program running on
              > >only one machine, we get an excception "Connection reset by peer:
              > >JVM_recv
              > >Socket write error".
              > >
              > >All these 100 requests are simultaneous and like that we ran the tests
              > >4 consecutive times without any delay.
              > >
              > >When we ran the tests thru the weblogic proxy server (the one that
              > >uses HttpClusterServlet) we did not face any connection issues like
              > >this.
              > >
              > >I'm wondering if this is a load-balancer problem or a weblogic
              > >problem.
              

  • How do i make http connection  from an applet to  a servlet

    i am not able to make a http connection from the applet to servlet
    my code for servlet is as follows
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class newDatabaseServlet extends HttpServlet {
    //      Connection con;
    // Statement stmt;
         public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {
              resp.setContentType("text/content");
              System.out.println("megha");
              String mthd[] = req.getParameterValues("event");
              System.out.println(mthd.length);
              System.out.println(mthd);
              System.out.println(req.getQueryString());
              // System.out.println("megha");
    PrintWriter fw = new PrintWriter(new FileOutputStream(new File("e:/JRun/servers/default/default-app/mycontent.txt")));
    String s = "this text comes from servlet";
    fw.print(s);
    fw.flush();
              if(mthd[0].equalsIgnoreCase("callEditor")) {
                   openEditor(req,resp);
    public void openEditor(HttpServletRequest req, HttpServletResponse resp) {
         /* try {
              Class.forName("oracle.jdbc.driver.OracleDriver");
         con = DriverManager.getConnection("jdbc:oracle:thin:@pc6:1521:oradba","test","test");
         catch(Exception e) {
              e.printStackTrace();
              try {
                   resp.sendRedirect("/RunApp1.html");
              catch(IOException e) {
                   e.printStackTrace();
    /*try {
         Class.forName("oracle.jdbc.driver.OracleDriver");
    con = DriverManager.getConnection("jdbc:oracle:thin:@pc6:1521:oradba","test","test");
         catch(Exception e) {
         e.printStackTrace();
         resp.setContentType("text/html");
         PrintWriter output = resp.getWriter();
         try {
    stmt = con.createStatement();
    String strContent = "select * from edTable where newsid = 2";
    ResultSet rs = stmt.executeQuery(strContent);
    if(rs.next()) {
                   String newsText = rs.getString(2);
    /* StringBuffer buf = new StringBuffer();
                   buf.append("<B>servlet</B>");
                   try {
                   resp.sendRedirect("RunApp");
              catch(IOException e) {
                   e.printStackTrace();
    //               output.println(buf.toString());
    //          output.close();
    my code for applet is
    import javax.swing.*;
    import java.awt.event.*;
    import java.net.*;
    import java.io.*;
    import java.awt.*;
    import javax.swing.text.*;
    import javax.swing.text.html.*;
    public class EdApplet extends JApplet {
    public void init() {
         Container c;
         c = getContentPane();
    JPanel but = new JPanel();
    c.add(but,BorderLayout.NORTH);
    final JEditorPane je = new JEditorPane();
    JScrollPane jsp = new JScrollPane(je);
    HTMLEditorKit ht = new HTMLEditorKit();
    je.setEditorKit(ht);
    je.setEditable(true);
    HTMLDocument mdoc = (HTMLDocument)ht.createDefaultDocument();
    StyleSheet mcontext =mdoc.getStyleSheet();
    je.setDocument(mdoc);
    c.add(jsp,BorderLayout.CENTER);
    JPanel bot = new JPanel();
    c.add(bot,BorderLayout.SOUTH);
    JButton save = new JButton("save");
    but.add(save);
    String str = getInitialText();
         je.setText(str);
         String servletUrl="http://pc7:8100/servlet/newDatabaseServlet";
    try{
                   URL servletURL = new URL(servletUrl);
                   URLConnection servletConnection = servletURL.openConnection();
              servletConnection.setRequestProperty("event","saveText");
              servletConnection.setDoOutput(true);
              servletConnection.setUseCaches(false);
         catch(Exception e) {
    //          je.setText(e.printStackTrace());
         ActionListener lst = new ActionListener() {
              public void actionPerformed(ActionEvent ae) {
                   String save = je.getText();
                   saveText(save,je);
         save.addActionListener(lst);
    //je.setText("<B>this</B>");
    //URLConnection servletConnection = null;
    /* try {
              String servletUrl="http://pc7:8100/servlet/newDatabaseServlet";
              URL myUrl = new URL(servletUrl);
              servletConnection = myUrl.openConnection();
              servletConnection.setDoOutput(true);
              servletConnection.setUseCaches(false);
         /*     BufferedReader br = new BufferedReader(new InputStreamReader(servletConnection.getInputStream()));
    String t = br.readLine();
    je.setText(t);
         catch(Exception e) {
              e.printStackTrace();
    /* ActionListener lst = new ActionListener() {
              public void actionPerformed(ActionEvent ae) {
                   BufferedReader br = new BufferedReader(new InputStreamReader(servletConnection.getInputStream()));
                   String t = br.readLine();
    je.setText(t);
    click.addActionListener(lst);
    /*void String changeText(UrlConnection con) {
    BufferedReader br = new BufferedReader(new InputStreamReader(con.getInputStream));
    String t = br.readLine();
    return t;
    public String getInitialText()
         //String me = null;
         URLConnection textConnection = null;
         StringBuffer sb = new StringBuffer();
         try {
                   String textUrl="http://pc7:8100/mycontent.txt";
                   URL myUrl = new URL(textUrl);
                   textConnection = myUrl.openConnection();
                   textConnection.setDoInput(true);
                   textConnection.setUseCaches(false);
                   BufferedReader br = new BufferedReader(new InputStreamReader(textConnection.getInputStream()));
                   // me = (String)servletConnection.getContent();
                   String s = null;
                   while((s = br.readLine())!=null) {
                        sb.append(s);
              catch(Exception e) {
                             e.printStackTrace();
                   return sb.toString();
         public void saveText(String saveStr,JEditorPane je) {
              //String saveStr = je.getText();
              //String servletUrl="http://pc7:8100/servlet/newDatabaseServlet?event='saveText'&newsid='2'";
              //String servletGet="http://pc7:8100/servlet/newDatabaseServlet";
              String servletUrl="http://pc7:8100/servlet/newDatabaseServlet";
              //String servletUrl = servletGet + "?"
              //     + URLEncoder.encode("event") + "="
         // + URLEncoder.encode("saveText");
    //     je.setText(servletUrl);
              try {
              URL servletURL = new URL(servletUrl);
              URLConnection servletConnection = servletURL.openConnection();
         //     servletConnection.setRequestProperty("event","saveText");
         servletConnection.setRequestProperty(
         "User-Agent","Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)");
              //System.out.println("from applet");
              servletConnection.setDoOutput(true);
              servletConnection.setUseCaches(false);
              //Propertiew prop = new Properties();
         //     prop.put("event","saveText");
              PrintStream out = new PrintStream(servletConnection.getOutputStream());
    out.println("event");
    out.close();
         catch(IOException e) {
              je.setText(e.toString());
    kindly tell me what is the error
    what is the best method of doing this
    thanking u in anticipation
    megha sood

    omg O_o
    We cannot debug your code, but:
    Did you try the servlet directly from your browser? Does it work?
    Best regards from Germany,
    r.v.

  • HTTP Connections to Ext. Server - SM59 - Application Server

    Hi Experts,
    first of all its my first post, I hope I can provide any infos you need to give me some advice.
    Well, I've setup in SM59 a new connection-type "HTTP Connections to Ext. Server" (Type G). It is a stupid webserver in our LAN that returns a simple "hello world" (i've setup this webserver as first step to test the functionality of this connection type). No authentication or any other specialities like proxies or SSL.
    Now, if i test the connection out of the central instance, everything runs fine, I receive an answer.
    BUT: if i make this test from one of our application servers i get nothing at all. No output, no failure, simply nothing which means in my opinion that its not working.
    What do you think about this?
    Thanks in advance
    Edited by: Stefan Gruber on Feb 4, 2009 1:25 PM

    >ah, I see! There has to be running a service "icm/server_port_xxx = PROT=HTTP, PORT=NNNN".
    Exactly !
    I usually put this parameter in the DEFAULT profile because I want all my application servers to listen to the same HTTP port.
    >Merci beaucoup!
    You are welcome !
    Olivier

  • 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

  • Com.evermind.server.http.HttpIOException: Connection aborted by peer: socke

    Hi
    I get an this stack on the server side while doing a forward using RequestDispatcher.
    com.evermind.server.http.HttpIOException: Connection aborted by peer: socket write error
    at com.evermind.server.http.EvermindServletOutputStream.flushBuffer(EvermindServletOutputStream.java:81)
    at com.evermind.server.http.EvermindHttpServletResponse.flushBuffer(EvermindHttpServletResponse.java:1818)
    at javax.servlet.ServletResponseWrapper.flushBuffer(ServletResponseWrapper.java:52)
    The funniest part is, i get this exception while i submit the request second time i get this error.. First time it works fine. :)
    ANy solution on this would be greatly appreciated.
    Thanks
    Manju

    Hi!
    I posted a TAR on metalink for this "read timed out" problem. This is the answer I got:
    apparently the messages that you listed seem refer to a problem in reading request data from the client - so the HttpIOException is triggered.
    I have made a little research on HttpIOException in request-reading context. There are only
    two situations in which HttpIOException can be raised without an causing IOExce
    ption, and I think none of them applies. So we'd have some kind of IOException t
    hat causes the HttpIOException. It might well be a SocketException, because the
    text "Read timed out" is as far as I know the standard text for SocketException
    if the socket's SoTimeout has been reached.
    In fact there is a configuration parameter for OC4J (though undocumented), which allows you to set the Socket's SoT
    imeout -- and the default is 15000 (measured in milliseconds). The name is "orac
    le.j2ee.http.socket.timeout", and it should be available in OC4J 9.0.3.1 and hig
    her (I am definitely sure that it exists in OC4J 9.0.4.1).
    So can you please add something like "-Doracle.j2ee.http.socket.timeout=120000" to the startup comma
    nd for your standalone OC4J container to increase the timeout from 15 seconds to
    2 minutes?
    It helped us, although some requests time out "normally" instead.
    /jonas

  • 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

  • Directory selection for Discoverer applet on HTTP Server

    Hi
    I installed Discoverer 3i on NT SP4
    My http server is OAS 4.0.8.1
    I tried single machine install and while providing the directory for Discoverer applet on HTTP Server i gave a directory which is not root directory for OAS
    How do i set virtual path so that discoverer may be configured in my http server (OAS)
    What are the steps?
    Thanks
    null

    Go to the Directories section in OAS. You will already have virtual directories set for OAS. Use one of these as an example.
    Regards,
    Oracle Discoverer Team http://technet.us.oracoe.com

  • Can't open HTTP connection to a proxied server

    Greetings,
    Trying to open an HTTP connection to a web server. The connection is rejected
    by the proxy. In order to bypass the proxy, I used to code something like:
    System.setProperty("http.proxyHost", hostname) ;
    System.setProperty(“http.proxyPort”, port);
    Doing that, works properly in a standalone Java application. As soon as the same
    code is implemented in a WebLogic 8.1 deployed EJB, it fails with the following
    stack dump:
    <May 10, 2004 7:12:07 PM CEST> <Info> <net> <000903> <Could not open connection
    with host: www.rect.cofacescrl.com and port: 80.>
    04-05-10 19:12:07,788 FATAL SearchCompanyBean - Error while attempting to connect
    to Source
    java.net.ConnectException: Tried all: '1' addresses, but could not connect over
    HTTP to server: 'www.rect.cofacescrl.com', port: '80'
    at weblogic.net.http.HttpClient.openServer(HttpClient.java:255)
    at weblogic.net.http.HttpClient.openServer(HttpClient.java:307)
    at weblogic.net.http.HttpClient.<init>(HttpClient.java:126)
    at weblogic.net.http.HttpClient.New(HttpClient.java:192)
    at weblogic.net.http.HttpURLConnection.connect(HttpURLConnection.java:115)
    at com.coface.STR.scrl.ScrlSearchAdapter.search(Unknown Source)
    at com.coface.STR.tuxedo.SearchCompanyBean.service(Unknown Source)
    at com.coface.STR.tuxedo.SearchCompanyBean_fbx9fb_EOImpl.service(SearchCompanyBean_fbx9fb_EOImpl.java:46)
    at com.coface.STR.tuxedo.SearchCompanyBean_fbx9fb_EOImpl_WLSkel.invoke(Unknown
    Source)
    at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:159)
    at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:263)
    at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:230)
    at com.coface.STR.tuxedo.SearchCompanyBean_fbx9fb_EOImpl_WLStub.service(Unknown
    Source)
    at weblogic.wtc.gwt.InboundEJBRequest.execute(InboundEJBRequest.java:419)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:234)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:210
    Suggestions anybody before my boss gets nervous about that ?
    Many thanks in advance,
    Alexandre CUENCA

    I think the data you are seeing is part of the telnet negotiation sequence. http://www.faqs.org/rfcs/rfc854.html
    A telnet session is more complex than opening a TCP socket.
    I would suggest using the LabVIEW Internet Toolkit for telnet communications.
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • Failed to open HTTP connection to server--OBIEE11g

    Hi,
    Mistakenly my machine got restarted and after that when I tried to start OPMN services,its showing all the processes alive but after that ,while restarting BI services from windows
    its throwing an error of unexpectedly shutting down of services.
    My NQS log says:
    [nQSError: 12010] Communication error connecting to remote end point: address = 192.168.10.209; port = 80.
    [nQSError: 46119] Failed to open HTTP connection to server 192.168.10.209 at port 80.
    I have checked that IP is still same. What is the issue behind it?
    This is very urgent.I have already posted this issues many times but didn't get any response So please help.
    Regards,
    Rajeev khanna

    HI,
    I have checked Repository DB is up and while starting OPMN services from via cmd (command prompt), all components are showing up but still not able to login to EM,console and Analytics. As I have earlier mentioned that NQS server log is throwing the below error:
    [nQSError: 12010] Communication error connecting to remote end point: address = 192.168.10.209; port = 80.
    [nQSError: 46119] Failed to open HTTP connection to server 192.168.10.209 at port 80.
    Please suggest.

  • How to make HTTP connection between a midlet and a php server?

    As the title above, can anyone share how to make a HTTP connection between those 2? J2ME and PHP. Thanks a lot!

    Can you be a little more specific on what you really want.
    When i started doing j2me application, i was required to be able to comunicate to a oracle client database, and my first though was using PHP based pages to comunicate and do the query. Later they would just generate the answer and get it on the cellphone. You can communicate with a PHP server via either GET or POST. I'd choose POST as is more secure IMO.
    Here are quite a good ammount of examples of how you can do it
    http://www.java2s.com/Code/Java/J2ME/Networks.htm
    They aren't PHP based examples, but you have can an idea of how it can be done

Maybe you are looking for