URLConnection in application through proxy

I have my main server on static IP & want to send object to server(to Servlet). I am connecting to Internet through proxy so it is not possible to open connection to that IP directly. I know it is possible to send request through proxy, but if I am using URLConnection through applications how do I get it through proxy ?

Hello,
I think your should connect to the proxy and send CONNECT server:port HTTP/1.0\n \r\n command. After this it should be possible to communicate with the server.

Similar Messages

  • Help needed for CORBA over Http through proxy server[Very Urgent]

    Hi Friendz,
    I am new to J2EE. Right now I am learning RMI, Corba now.
    In RMI, to pass through Http to bypass firewall or through proxy sever, we can use either Http to port or Http to CGI/Servlet i.e., Http tunneling.
    In the same, I am running a simple corba application, i want my corba application to pass through my proxy server using http which is configured to address 127.0.0.1 and port 8118.
    How to pass my corba application through proxy server. please help me and it is very urgent.
    Is it possible or not, please let me know some comments about this topic
    Thanks in advance Friends for your help

    This is so extremely urgent that it needs to be asked multiple times.
    http://forum.java.sun.com/thread.jspa?threadID=762950

  • Alert Proxy system or application through  RUN TIME WORKBENCH of PI

    Hi  friends,
    I am using PI 7.0  and at one scenarios we are communicating PI to another SAP system through  proxies. 
    PI 7.0 ==>  Proxies-->  SAP SYSTEM.
    Now we setup the alert at PI system through alert category and run time workbench.
    Is it possible that can I use PI 7.0  alert system to monitor the  message received by the other SAP application. Here I would like to monitor only that if any  message send by the other Appln through proxy and if this message failed in SAP application system or stuck in  queue then I should get an alert.
    or we can say I would like to monitor the local integration engine with the help of PI  runtime work bench and monitoring system.
    Please let me know what can be the possible solution for the same and through some light  for this approach. 
    thanks
    ram singhal

    I do not want to monitor the queue. I want to monitor the assocated SAP  system where we  are coommunicating through proxies .   I mean the local integration engine or we can say if any  message coming from the PI and then it has been received successfully or not .
    regards
    ram

  • Urgent : Through proxy my web based application is not being accessible

    Hi,
    Would you please give me the solution as why my application is not getting accessed through proxy (in LAN environment). If I access the same application through dial-up connection, the application works fine and runs successfully.
    When I access through proxy, my java console reads like follows:
    proxyHost=172.31.2.3
    proxyPort=8080
    connectMode=HTTP
    Opening http://gati3pl.com/forms60java/oracle/ewt/alert/resource/AlertBundle_en_US.class proxy=172.31.2.3:8080
    after this information, its giving an alert saying:
    'FRM-92050: Failed to connect to server: gati3pl.com:9001'.
    Would you recommend as what proxy settings to be made, so that my application runs successfully through proxy also.
    I will be very much thankful to you for your kind suggestion.
    Regards
    Thobula Rakesh

    Your can solve this problem in two ways.
    1. Your can configure your browser to bypass proxy for the URL address http://gati3pl.com
    There is a option in IE at Tools->Internet Options->Connections->LAN Settings->Bypass Proxy Server for Local Address.
    2. You can configure your Form Server to run in HTTP mode and by
    default Forms Server runs in SOCKET mode.
    To do this you will have to change the Form Server Service from
    SOCKET mode to HTTP mode and also change access mode in HTML file from SOCKET to HTTP
    Best Regards,
    Darshan Desai

  • Route an specific application through a proxy

    I'm trying to route all the conections from an specific application through a proxy (HTTP) with user authentication.
    The application doesn't have an option for this.
    I know I can do this in two ways. The first one is modify the network configuration in the System Preferences, however, this affects all the connections, which I don't want.
    The second method is using a third-party software: Proxifier, but it is too expansive for what I think can be done naturally by the system.
    Is there another method, preferably free, to do this? Something in Terminal or similar?
    Thank you.

    Yes, it can be done; Assuming all of the class files
    you need are installed, and the servlet engine has
    access to other resources you need (the correct files,
    other devices, etc) you can do it;The class files will be installed. Does the servlet engine normally have access?
    I am probably making a Windoze exe from the class files, since the target users are all using Windoze. Does this have any effect on the question?
    I would avoid it on general principles.
    There are a couple of things to consider:
    Your use of the word application make it seem like you
    are essentially starting a Java batch job and running
    it in a servlet engine. If you are doing this for a
    job, you might find that employer policies prohibit
    the use of web server resources for batch processing.Not a batch job, the application is basically a server itself. It is going to have request coming in on a port and it is going to respond. I am not trying to do this without the knowledge of the server admin. They are willing to let me run the server app. The only thing is that I need not tell them every time I want to stop/start the server app since the web server is at a remote location from where I am. If I can start/stop the server remotely, it saves them the trouble.
    I can also use this interface to monitor the error log, etc...
    The security models in servlet engines are frequently
    different than for batch, the especially the way they
    are optimized is different.
    You will not be able to wait to reveal final results
    unless the application is very quick; Browsers
    timeout rather quickly.Like I said above, I dont need to wait for results. I just need to be able to make a request to a servlet, and have it start/stop the application. hmmm... stopping might be a problem right, since the servlet wont have a reference to the app once it is running.... or can it hold the reference?? I am quite lost since I have never worked with servlets before.
    Thanks again,
    Dewang

  • Sockets through proxy servers

    im facing a problem.in which I am having,one java application that is sitting behind Proxy1 has to access the Webserver which is sitting behind proxy2,for transfering files. from one M/C tht sitting behind Proxy 1 to the webserver sitting behind proxy 2.
    using URLConnection i will be able to do this,but as per my requirement i may have to transfer files which may be more than 100 MB,in that case URLConnection is failing because of OutofMemmory Error,
    the only way to cater this requirement is socket but i don't know hw i can go through proxy using java sockets......
    ---------------------------Proxy1------ Proxy2
    -------------------------- --|----------------|
    Java Application -------| <----->------|----- My WebServer
    -----------------------------|-- internet---|
    ---------------------------- |----------------|
    Thnx in advance,

    Thnx tolmank,
    i am using sockets instead of URLConnection,i was able to connect using URLConnection,but when i use sockets i am not able to,i cann't use URLConnection because of out of memmory problem,as i mentioned earlier .
    if anybody can me help me out it would have been a great help for me...
    thnx in advance......
    shafeek

  • Unable to connect backend applications through EP in DMZ1 firewall?

    Dear all,
    To brief our landscape, its look like below.
    Internet -> DMZ1(Webservers)->Portal(DMZ2)->Internal(Backend Systems).
    We tried to access the backend systems through portal in DMZ2..its working fine. When we tried to access the portal in DMZ1...its coming perfectly, when we access the backend applications through portal in DMZ1...its not coming...it says...operation timed out...
    Kindly suggest me what would be the problem...all the ports are open in DMZ1 and DMZ2... But we hav not done reverse proxy in DMZ1(Webservers), Can we try after doing Apache reverse proxy in DMZ1. Pl suggest me
    Rgds
    PRadeep

    Hi Netanel,
    Thanks for ur reply...
    See, we hv writen a rewrite rule for all three systems like R/3, BW and SCM
    RewriteRule ^/sap(.)/public(.) http://myr3sever.company.domain.com:r3port/R3$1 [P]
    RewriteRule ^/sap(.)/bc/bsp/sap(.) http://myscmsever.company.domain.com:scmport/SCM$1 [P]
    etc..
    We are differentiating the systems with their names...but when it rewrites..its taking R3 string as well in the path...
    Like
    http://webserver.company.domain.com/R3/sap/bc/gui/sap/its/webgui.
    I think if we remove R3 string at the time of rewrite, then we should be able to get i belive.
    kindly suggest me
    Rgds
    PRadeep

  • FRM-92102 through proxy

    IE 6.x / Win XP
    eTrus PROXY / Win XP
    AS 10g 9.0.4 / Linux Red Hat
    We are migrating from 6i to 9i.
    With the 6i (cgi) we no have connect problems through proxy, but with 9i, after the second call the error appear.
    We could run the first form/menu, but when this form call_form another form or call an LOV the error appear.
    In the logs the conection to the AS is broken (possible from client, in this case the client is the PROXY).
    If we skip the use of PROXY (in the Browser), the application can run success, we can call_form or LOVs.
    Tx in advance for any help.
    DL

    Please take a look to the parameter networkRetries - if it is set in the formsweb.cfg or static.html.
    See Note:216639.1

  • Error while running web application through JDEV (10.1.3.0.3) in OC4J

    Error while running web application through JDEV (10.1.3.0.3) in OC4J.
    Here is the error message.
    07/10/02 14:45:28 Exception in thread "OC4J Launcher" oracle.classloader.util.AnnotatedNoClassDefFoundError:
         Missing class: javax.xml.bind.JAXBContext
         Dependent class: com.oracle.corba.ee.impl.orb.config.InternalSettingsORBConfigImpl
         Loader: oc4j:10.1.3
         Code-Source: /C:/jdev/j2ee/home/lib/oc4j-internal.jar
         Configuration: <code-source> in boot.xml in C:\jdev\j2ee\home\oc4j.jar
    The missing class is not available from any code-source or loader in the server.
    07/10/02 14:45:28      at oracle.classloader.PolicyClassLoader.handleClassNotFound (PolicyClassLoader.java:2073) [C:/jdev/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@7]
         at oracle.classloader.PolicyClassLoader.internalLoadClass (PolicyClassLoader.java:1681) [C:/jdev/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@7]
         at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1633) [C:/jdev/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@7]
         at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1618) [C:/jdev/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@7]
         at java.lang.ClassLoader.loadClassInternal (ClassLoader.java:319) [jre bootstrap, by jre.bootstrap]
         at com.oracle.corba.ee.impl.orb.config.InternalSettingsORBConfigImpl.init (InternalSettingsORBConfigImpl.java:46) [C:/jdev/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in C:\jdev\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.oracle.corba.ee.impl.orb.config.SunRIORBConfigImpl.init (SunRIORBConfigImpl.java:97) [C:/jdev/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in C:\jdev\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.oracle.iiop.server.IIOPServerExtensionProvider.configureOrb (IIOPServerExtensionProvider.java:26) [C:/jdev/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in C:\jdev\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.oracle.corba.ee.impl.orb.ORBServerExtensionProviderImpl.preInitApplicationServer (ORBServerExtensionProviderImpl.java:45) [C:/jdev/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in C:\jdev\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.ApplicationServer.serverExtensionPreInit (ApplicationServer.java:1031) [C:/jdev/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in C:\jdev\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.ApplicationServer.setConfig (ApplicationServer.java:861) [C:/jdev/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in C:\jdev\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.ApplicationServerLauncher.run (ApplicationServerLauncher.java:98) [C:/jdev/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in C:\jdev\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at java.lang.Thread.run (Thread.java:595) [jre bootstrap, by jre.bootstrap]

    Hi,
    The guide you were refering was pointing to 10.1.2 wizards.
    For the latest 10.1.3 tutorial, please follow the below tutorial link :
    http://www.oracle.com/technology/products/jdev/101/tutorials/WS/WSandAScontrol.htm
    Hope this helps,
    Sunil..

  • Hi team, please help me how to deploy creative cloud desktop application through SCCM for an enterprise

    Hi team, please help me how to deploy creative cloud desktop application through SCCM for an enterprise

    Moving this discussion to the Enterprise Deployment for Creative Cloud, Creative Suite forum.

  • Access a partner application through an iframe without reauthenticating

    I have an application (written using apex) that is an sso partner app. I want to be able to embed the application within a portlet (probably a dynamic page portlet generating an iframe) in my portal. When a user access the portal page that contains the iframe they are initially forced to reauthenticate within the iframe.
    The problem lies in the sso session. I think when you access an application through an iframe it treats everything in the iframe as if it were in a separate browser session. This means that when you try to access the application in the iframe it still redirects you to the sso server even though you are already authenticated via portal.
    So this is the problem, has anyone got any ideas on what the solution might be?

    Hi,
    Did you find any workaround of the above issue?
    I am also struggling with it.
    Regards,
    Deepak Suri

  • Unable to open Planning application  through Workspace

    Hi All,
    I have Installed and configured the Hyperion products in the following Order
    ->Foundation services
    ->Essbase server
    ->Essbase Administration service
    ->Planning
    ->Reporting and Analysis
    ->Workspace
    We know that workspace is a single user interface.
    After configuring, I tried to open the Planning Application through workspace but I could not able to find "*Classic Application Administration*" under Administer option of Navigate menu Kindly guide me.
    Thanks and Regards
    chiDam

    You don't need to start downloading weblogic.
    Usually the issue is that either the web server has not been configured (this is not weblogic) or the permissions are not correct in shared services e.g. the hss roles of application creator, dimension editor.
    You can always try going to create a planning application directly first http://<planningmachine>:8300/HyperionPlanning/AppWizard.jsp
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Unable to Open the HFM application through Workspace

    Hi,
    Here I am getting below error while i am trying to open the HFM application through Workspace.
    I was permitted allowed all IIS (Allow option checked ) but still the error coming i am unable to open my application through workspace , but i am able to do the all thing in HFM via Clien.The error is below
    There was some communication error. Response is : http://localhost:19000/hfm/GlobalWorkspaceNav/bpm/modules/com/hyperion/hfm/web/appcontainer/Adf.asp <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <HTML><HEAD><TITLE>The page cannot be found</TITLE>
    <META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">
    <STYLE type="text/css">
    BODY { font: 8pt/12pt verdana }
    H1 { font: 13pt/15pt verdana }
    H2 { font: 8pt/12pt verdana }
    A:link { color: red }
    A:visited { color: maroon }
    </STYLE>
    </HEAD><BODY><TABLE width=500 border=0 cellspacing=10><TR><TD>
    The page cannot be found
    The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.
    <hr>
    Please try the following:
    Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly.
    If you reached this page by clicking a link, contact
    the Web site administrator to alert them that the link is incorrectly formatted.
    Click the Back button to try another link.
    HTTP Error 404 - File or directory not found.
    Internet Information Services (IIS)
    <hr>
    Technical Information (for support personnel)
    Go to Microsoft Product Support Services and perform a title search for the words HTTP and 404.
    Open IIS Help, which is accessible in IIS Manager (inetmgr),
    and search for topics titled Web Site Setup, Common Administrative Tasks, and About Custom Error Messages.
    </TD></TR></TABLE></BODY></HTML>
    "There was some communication error. Response is : http://localhost:19000/hfm/GlobalWorkspaceNav/bpm/modules/com/hyperion/hfm/web/appcontainer/Adf.asp"
    "

    there can be many causes to this error....
    1) you should check first of all that the redirection from Apache port 19000 to folder HFM within the IIS is actually working. try hitting http://apacheserver:19000/hfm and make sure you get "hfm" response back.
    2) check that ASP is turned on in the IIS ("file / directory not found" suggests that it isnt)
    3) check what URL you used when you created the application or when you registered it with shared services as the "Financial Management Web Server URL for Security". It should normally be http://apacheservername:19000/hfm. If you did this wrong then re-register it with shared services via Navigate->Administer->Classic Application Administration->Consolidation Administration.
    4) check that the application was registered with Shared Services in the first place.
    5) make sure that on the HFM web server, the HFM application server/cluster is properly registered
    6) stop and restart all services and test again...
    7) try not to use "localhost" but proper fully qualified domain names "servername.mydomain.com" wherever possible. you will have less problems. the only place where you should use a non qualified name is in Relational Content links... see the HFM readme.

  • Issues while running a WebDynpro Application through portal.

    Hi,
    I am trying to execute a webdynpro application through portal and facing some issues. I hope to get a significant help from the experts:
    > Initially, a report is called from the portal which in turns calls the WebDynpro Application.
    > After this, I am again trigerring "FIRE" event in order to go back to report.
    At this step, portal shows a message "The Page Can Not be Displayed". Browser link field contains the event name which I am passing to the Fire Event.
    Can anybody let me know the root cause for this issue? Below is the piece of code that I am using for navigating from Webdynpro to Report.
            l_sapgui_manager->fire(
              EXPORTING
                name = 'INDI'
            parameters = lt_parameters ).
    lt_parameters contains some field values which are required in the report.
    Thanks,
    Ashish

    No Solution

  • Error while creating planning application through workspace

    Hi,
    I am getting the following error when i am trying to create the classic planning application through workspace.
    Invalid or could not find module configuration.
    Required application module HyperionPlanning.AppWizard is not configured. Please contact your administrator.
    Communication Error.
    http://localhost:45000/HyperionPlanning/conf/HspJSConfig.xml?LOCALE_LANGUAGE=en
    Please suggest me how to resolve this error. Also please share the order in which services to start.
    Thanks in Advance,
    Naveen Suram

    Hi John,
    I am facing the same issue. Reconfiguring Web server did not help. It is still not coming up and the link to planning that you have shared here is also not working. I am doing it on RHEL and facing issue with the same. Any help will be greatly appreciated. I checked the mod_jk log which has the following:
    *[Tue Jan 31 20:17:01 2012] [info] ajp_send_request::jk_ajp_common.c (1186): Error connecting to the Tomcat process.*
    *[Tue Jan 31 20:17:01 2012] [info] ajp_service::jk_ajp_common.c (1665): Sending request to tomcat failed, recoverable operation attempt=2*
    *[Tue Jan 31 20:17:01 2012] [error] ajp_service::jk_ajp_common.c (1673): Error connecting to tomcat. Tomcat is probably not started or is listening on the wrong port. worker=Workspace failed errno = 111*
    *[Tue Jan 31 20:17:01 2012] [info] jk_handler::mod_jk.c (1875): Service error=0 for worker=Workspace*
    I don't know what to do now.
    Thanks in advance.
    Saurabh

Maybe you are looking for