Problem while connecting to site using proxy server in weblogic 8.1

Hi All,
I am able to connect to the site www.testtest.com when i am running the below
program out side a bea weblogic server. but i couldn't able to connect to the
www.testtest.com when i am accessing thru a progam that was running in weblogic
server. i am getting the below exception
Tried all: '1' addresses, but could not connect over HTTP to server: 'www.testtest.com',
port: '80'
I am using weblogic server 8.1. Pls help me out in solving this.
import java.io.*;
public class testurl
public static void main(String[] args)
try
     String username = "username";
     String password = "password";
     String proxy_internet_address = "111.111.12.12";
     String proxy_internet_port = "80";
     String urlString ="http://www.testtest.com/";
     java.net.Authenticator.setDefault(new SimpleAuthenticator(username,password));
     java.net.URL url = new java.net.URL(urlString);
     java.util.Properties systemProperties = System.getProperties();
     systemProperties.setProperty("http.proxyHost",proxy_internet_address);
     systemProperties.setProperty("http.proxyPort",proxy_internet_port);
     java.net.HttpURLConnection aConnection = (java.net.HttpURLConnection)(url.openConnection());
     aConnection.setDoInput(true);
     aConnection.setDoOutput(true);
     aConnection.setUseCaches(false);
     aConnection.connect();
     java.io.InputStreamReader insr = new java.io.InputStreamReader(aConnection.getInputStream());
     java.io.BufferedReader br = new java.io.BufferedReader(insr);
     String s="";
     String textString =null;
     while((textString = br.readLine())!=null)
     s = s + textString;
     }//end of while
     br.close();
     aConnection.disconnect();
     PrintWriter pw = new PrintWriter(new FileOutputStream("test.html"));
     pw.println(s);
     pw.close();
}catch(Exception e){
     System.out.println(e.toString());

I have a similar problem. I want to connect to a URL, but not using proxy. From outside BEA or in BEA 6.1 it works OK, but not in BEA 8.1.
Did you get to solve your problem ?

Similar Messages

  • Connect to Internet use proxy server (N82/WLAN)

    I can not connect my N82 to Internet use proxy server

    15-May-2008 09:10 AM
    duchung91 wrote:
    I can not connect my N82 to Internet use proxy server
    Hi I have had the same problem but think I've cracked it with the help of the IT guys at work.
    Steps:
    1)Goto Wifi wizzard,
    2) find the network you want to connect to.
    3) Click on options
    4) click on 'define as access point'
    5) enter the key when prompted. Go back to main screen.
    6)Now goto tools, (from main screen), settings, connection, access points.
    Find your network, click on options and then edit. Check your details are correct.
    7)Click on options, advanced settings. Type in your proxy address and port number. Get back to the main screen.
    8)Click on the web icon. Find your network. You might have to scroll past the standard gprs networks.
    9) Surf (hopefully).
    This worked for me. I hope it will for you too. Not an expert but just determined.
    Dan

  • I have problem in osx 10.8 i cannot see the encoding option while connecting to the my pc server ?

    MR.Eric please help ?
    i have problem in osx 10.8 i cannot see the encoding option while connecting to the my pc server ?
    this option was in osx 10.6 see it  here 
    because if i create any file in Arabic name from osx 10.8 the others old mac os  see it only in unreadable letters ?
    please help
    thanks

    Aw geez, they sure have messed up OSX.
    Do you have a backup of 10.8.2?
    Maybe...
    Bootup holding CMD+r, or the Option/alt key to boot from the Restore partition & use Disk Utility from there to Repair the Disk, then Repair Permissions.
    If that doesn't help Reinstall the OS.

  • Having problem while connecting to SQL Server through a application

    hi guys ,
    having one problem while connecting to the SQL SERVER 2008 R2 through a application (Dynamics NAV), by using the concept of Linked Server.
    But one more thing , i am able to access that very SQL server through my app , when i am working locally , i mean to say that when i am working on the machine itself on which the server is installed then its working fine .
    But when i am working on another system the query doesn't work.

    by using the concept of Linked Server.
    Why through a linked server and not directly as a simple remote connection? I don't think you app is aware of linked server.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Problem in connecting to database using oracle jdbc thin driver

    hi
    i am trying to connect to a database using oracle thin driver.
    i am getting following error:
    java.sql.sqlexception:Io exception: the network adapter could not establish the connection
    Io exception: the network adapter could not establish the connection
    the connection string has the property of using a dedicated server
    for this reason i have put USE_DEDICATED_SERVER=ON in sqlnet.ora file...
    we did not face this problem while connecting to other databases which do not have the property of dedicated server in their connection string in tnsnames.ora file.
    please suggest a solution for this.
    thanks and regards,
    asif

    If you are using the thin driver, sqlnet.ora does not come into play. None of Oracle networking does. That is one of the great things about using the thin driver, no need to have the client installed.
    That error is due to incorrect connection info you are supplying or the machine you are connection from can't ping the machine it is trying to connect to.

  • Problems previewing all my sites using Dreamweaver 8 both CF and html.

    I have restored my hard drive (from a previous Ghost image)
    and now encounter problems previewing all my sites using
    Dreamweaver 8 both CF and html.
    If I preview (using localhost:8500) I get the message "Unable
    to connect, Firefox can't establish a connection to the server at
    localhost:8500." IE has similar message.
    If I preview (using 127.0.0.1 instead of localhost:8500) I
    get the page but no images or CSS loads.
    An address such as:
    http://127.0.0.1/CFIDE/gettingstarted/experience/index_content.cfm
    loads just fine - seems CF is working okay.
    All the sites used for testing locally have been used for
    some time (years) and work on my unrestored drive.
    My thoughts: after I restored my hard drive image I installed
    both Norton Antivirus 2007 and resintalled ZoneAlarm. I uninstalled
    both of the programs but the problem remains.
    Any help is much appreciated. I have spent the last two days
    trying to get this to work and as many of you can identify with...I
    am supposed to be working....!

    Hi,
    JSF 1.1 doesn't coexist nicely with HTML components.
    So if your goal is to build layouts in HTML then this
    will not produce the result you want
    Skins in 10.1.3 are slightly different than in 11
    (selectors may have changed their names). If you need
    to specify the class property to make skins work then
    this indicates that the skin selectors you use are
    not the correct ones.
    FrankHi Frank,
    thank you for your help, I'm replacing every html component with adf one, panelGroup, panelHorizontal, panelBorder, objectImage etc... etc... but I have a problem...
    I need to put an object component about Macromedia Flash and I cannot find any adf component to replace it. Any idea please?
    Thank you again.
    Ciao.
    Ricky

  • Safari can't connect to the web proxy server (HTTP)

    Hello,
    I have following problem. I need to connect to the internet using a proxy server. I went to System Preferences/Network/Wi-Fi/Advanced.../Proxies. Then, I selected Web Proxy (HTTP) and enetered server's IP address and port. It looks like I did everything correctly, but Safary can't open any page because "Safari can't connect to the web proxy server (HTTP)". Does anyone know how to solve this problem?

    There are three possibilities:
    1. You entered the wrong address and port number for the proxy.
    2. You entered the wrong user name and password, if applicable.
    3. The proxy doesn't work or is incompatible.

  • Problem  while reading XML file from Aplication server(Al11)

    Hi Experts
    I am facing a problem while  reading XML file from Aplication server  using open data set.
    OPEN DATASET v_dsn IN BINARY MODE FOR INPUT.
    IF sy-subrc <> 0.
        EXIT.
      ENDIF.
      READ DATASET v_dsn INTO v_rec.
    WHILE sy-subrc <> 0.
      ENDWHILE.
      CLOSE DATASET v_dsn.
    The XML file contains the details from an IDOC number  ,  the expected output  is XML file giving  all the segments details in a single page and send the user in lotus note as an attachment, But in the  present  output  after opening the attachment  i am getting a single XML file  which contains most of the segments ,but in the bottom part it is giving  the below error .
    - <E1EDT13 SEGMENT="1">
      <QUALF>001</QUALF>
      <NTANF>20110803</NTANF>
      <NTANZ>080000</NTANZ>
      <NTEND>20110803<The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
    Invalid at the top level of the document. Error processing resource 'file:///C:/TEMP/notesD52F4D/SHPORD_0080005842.xml'.
    /SPAN></NTEND>
      <NTENZ>000000</NTENZ>
    for all the xml  its giving the error in bottom part ,  but once we open the source code and  if we saved  in system without changing anything the file giving the xml file without any error in that .
    could any one can help to solve this issue .

    Hi Oliver
    Thanx for your reply.
    see the latest output
    - <E1EDT13 SEGMENT="1">
      <QUALF>003</QUALF>
      <NTANF>20110803</NTANF>
      <NTANZ>080000</NTANZ>
      <NTEND>20110803</NTEND>
      <NTENZ>000000</NTENZ>
      <ISDD>00000000</ISDD>
      <ISDZ>000000</ISDZ>
      <IEDD>00000000</IEDD>
      <IEDZ>000000</IEDZ>
      </E1EDT13>
    - <E1EDT13 SEGMENT="1">
      <QUALF>001</QUALF>
      <NTANF>20110803</NTANF>
      <NTANZ>080000</NTANZ>
      <NTEND>20110803<The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
    Invalid at the top level of the document. Error processing resource 'file:///C:/TEMP/notesD52F4D/~1922011.xml'.
    /SPAN></NTEND>
      <NTENZ>000000</NTENZ>
    E1EDT13 with QUALF>003 and  <E1EDT13 SEGMENT="1">
    with   <QUALF>001 having almost same segment data . but  E1EDT13 with QUALF>003  is populating all segment data
    properly ,but E1EDT13 with QUALF>001  is giving in between.

  • Problem while dowloading the file from Application Server

    Dear Experts,
                 I am facing the Problem while downloading the file from Application server.
    We done the automatic function while saving the invoice, this will create an idoc, and this idoc is written in the Application Server.
    I am running the Transaction AL11 and select the record, and from menu --> List, i am downloading into TXT format.
    But for some segments, the length is long, and so the last 3 to 4 fields values are not appearing in the File. Even though i am unable to view the values in the file before downloading. But i can view in IDOC.
    Please help me to solve this issue.
    Thanks & Regards,
    Srini

    but our user will use the Txn. AL11 and they will download from there
    Educate the user On a serious note, tell him this is not how data from app server should be downloaded. You can ask him to talk to the basis team to provide him access to the app server folder where the file is being stored.
    I can set the Variant and put this in background, But always the file name will be change, Like we use Time stamp in the File name.
    You can't automate this process by scheduling in BG mode. This is because the in BG mode you can't dwld the file to presentation server.
    Hope i'm clear.
    BR,
    Suhas

  • Publish an iWeb site using Lion Server

    Does any one know how to publish an iWeb site using Lion Server.
    I've been getting failures every time I try to publish using ftp server choise.
    HELP!!!

    I solved this by turning off passive mode. I was using iWeb and Rapid Weaver for creating websites and had the same problem. Now they both work fine on the transfer. Hope this helps.
    JR

  • MDM WebServices Problem while connecting to MDM repository

    Hello,
    we have installed the Web Services for MDM.
    When I test the Services, say the MDMSearchRecords I always get a ERROR status and the Message:
    id (String)  WS_LogonProblem
    severity (String) ERROR
    text (String)   Problem while connecting to MDM repository: z_Material on server: debmu416.server..... at port: 4000. Maybe the Repository-Information has not been set correctly at the requested query.
    status (String)  FAIL
    The Repository Information I try to connect with is correct (Repository Name, Server Name, Port, data Language and schema Language).
    Can you pls tell me where the problem could be?
    Points will be generously rewarded!
    Best Regards,
    Mircea

    Hi Arun,
    Thanks a lot!
    you were right! The WebServices version was too old.
    Now I can connect to the Repository in Test mode.
    I get some other error Messages, like "Field Material_Number is not defined at Table Products." and "Repository Data is not available in the requested Language ." which isn' right.
    Do you have a clue where this could come from?
    BR,
    Mircea

  • Document Splitting problem while posting asset acquisition using F-90

    Hi,
    We are using ECC 6.0 with document splitting functionality and are facing problem while posting asset acquisition using F-90.
    The transaction entry details are as below:
    Document Type - KR
    Vendor Line Item PKey - 31
    Amount - 10000
    Asset Line Item with PKey - 70, Transaction Type - 100
    Amount - 10000
    The Document Splitting Rule - 0000000012 is used and the Field Status Group for the Vendor Reconciliation Account and Asset Reconciliation account have Cost Center, Profit Center and Segment as "Optional" field.
    The Balance Sheet Item - Asset Reconciliation Account has been created as
    Secondary Cost Element - 90.
    The Profit Center and Segment field have been made mandatory and zero balancing is also set in the settings for Document Splitting.
    While posting asset acquisition using F-90, we are getting the error message - "Balancing Field "Profit Center" in line item 001 not filled"
    The first line refers to the Vendor Line item.
    Please let me know how to overcome this error.
    Regards,
    Ramanand

    Please follow the below path and do config :-
    IMG>FA>Asset Accounting>Integration with the General Ledger>Additional Account Assignment Objects>Specify Account Assignment Types for Account Assignment Objects
    here you have to put KOSTL (Cost center) for both against APC and Dep run for each Dep area.
    Thanks
    Pyare

  • "do not use proxy server for local (intranet) addresses" IEM setting

    Hi, i would like to find out where can i find the following setting in GPO which used be found in IEM.
    "do not use proxy server for local (intranet) addresses" Enabled/Disabled
    as currently im setting the IE proxy exception list via GPP, i don't see that option.

    Hi,   
    As you notice that when we use GPP Internet Setting item to configure bypass proxy servers, there is no "do not use proxy server for local (intranet) addresses" option in GPP Internet
    Setting item. However, as suggested by zanderol24’s reply, we can use bypass proxy server for local addresses option under
    Proxy server to achieve the same function.
    Best Regards,
    Erin

  • Applet using socket connection always go through proxy server

    Socket connection with socks always go through proxy server
    We have two applets in different codebases using socket to talk to each other, until now nothing new, but the problem is that we are behind a proxy server with socks and because of that, the connection always go through the proxy server even with proxy override point to the applet machine. We have tried a lof of things and until now nothing worked, it looks like the socket is ignoring proxy override configuration. We would like to know if there is a way to solve this problem making the applets comunicate to each other ignoring the proxy server. It should happen when we set the plug-in option to "no proxy host", but it doesn't. Maybe it can be a bug of JVM, I don't know, just maybe, and if it's true, any other good idea would be welcome as well.
    Thanks in advance.

    Hi,
    I am not very much sure if I can help you. In my previous experience, once you set the system property to use the proxy, then the jvm uses the proxy. If you want disable, in your code, you have to disable it.
    like System.setProperty("socksProxyHost","someHost"), Properties props = System.getProperties(); props.remove(("socksProxyHost");

  • Keep gettig this error message when trying to connect to Firefox The proxy server is refusing connections.

    Redownloaded Firefox and continue to get this error message when trying to connect: The proxy server is refusing connections
    Firefox is configured to use a proxy server that is refusing connections.
    Check the proxy settings to make sure that they are correct.
    Contact your network administrator to make sure the proxy server is
    working.

    Go to Options > Advanced > Network > Connection > Settings and choose "No proxy".
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    It is important that you keep IE updated. The information included with your question, indicates that you are using IE7; you should update to IE8 for your own protection. IE9 will not be made available for Windows XP.
    *http://windows.microsoft.com/en-US/internet-explorer/products/ie/home

Maybe you are looking for


HashFlare