Connection refused, but works on diff computer

Ok, i'm opening a connection to a web server using ssl (jsse) and this WAS working great. But now when I try to run the same code that was working on this computer (and still works upstairs) i get:
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at ..............
The line of code that is causing this problem is
OutputStream outputStream = null;
outputStream = conn.getOutputStream(); <- RIGHT HERE
the conn was setup and is not null because I can getURL() on it and it's context has been setup, so everything seems to be ok with the connection but once I try to get an output stream it blows with that connection refused exception. I have set doOutput to true aswell:
conn.setDoOutput(true);
Like I said, this code works on a different computer now and used to work on this one. If anyone knows what could have happened to this machine I could appreciate any help.
(used to work but now it doesn't box)
JDK 1.4.1
Intel processor
Windows 2000
(still works box)
JRE 1.4.1 (no jdk)
Intel processor
Windows NT
Thanks a bunch
-Dave

And can you ping the other computer from the one that doesn't work?

Similar Messages

  • Agent is Unreachable (REASON = Connection refused) but the host is UP

    Folks,
    Can I pick your brains, I keep recieving the smtp alert from Grid control which says;
    Agent is Unreachable (REASON = Connection refused) but the host is UP
    upto 5 minutes later the smtp mail is received
    Agent is Unreachable clear : <SERVER> - Agent Unreachable is cleared
    I have tried the usual
    $> cd $ORACLE_HOME/bin
    $> emctl start agent
    $> emctl status agent
    $> emctl upload agent
    This is successful however shortly the messages re-appear. This is on a pre-production grid control which manages 35+ databases on 25+ Hosts and the smtp errors are filling the mailbox with these messages. FYI - The Hosts causing my headache are from a 2 node RAC hosting several instances including ASM running agent version 10.2.0.4.0
    The network team says they are not seeing any connection drops in their logs.
    Any assistance would be appreciated

    Thanks DBA05 for pointing me to look at the trc and nohup files in there I found a number of errors which I could enter into metalink and subsequently identified the Patch 7031906 which seems to have fix a number of the issues and errors identified.
    Primarily
    Using a 10.2.0.4 Grid Agent to monitor a 10.2.0.4 Database.
    The 10.2.0.4 Agent version is certified to monitor a 10.2.0.4 Database.
    The <AGENT_HOME>/sysman/log/emagent.trc shows that the health_check metric is repeatedly failing for this database :
    2008-06-09 15:21:11,173 Thread-3658 ERROR fetchlets.healthCheck: GIM-00105: file not found
    2008-06-09 15:21:11,174 Thread-3658 ERROR engine: [oracle_database,dbname,health_check] : nmeegd_GetMetricData failed : Instance Health Check initialization failed due to one of the following causes: the owner of the EM agent process is not same as the owner of the Oracle instance processes; the owner of the EM agent process is not part of the dba group; or the database version is not 10g (10.1.0.2) and above.
    Repeated failure while executing this metric can cause the Agent to re-start, as it runs out of file handlers at the OS level.
    - The database is a 64 bit installation but emagent executable is of 32 bit installation though the
    64 bit agent software is installed.
    I also found these worth a check
    - Re-starting the database to create this hc_<SID>.dat file does not help in resolving the Healthcheck Metrics error.
    - The <DATABASE_OH>/dbs/hc_<SID>.dat file has sufficient permissions to be read by the agent
    Mark

  • Why cant i get facetime on my ipod 4 touch but works on my computer?

    why cant i get facetime on my ipod touch 4 but works on my computer?

    What he said ^
    And not to insult anyone's intelligence, but make sure you're signed in to FaceTime with your Apple ID on your iPod Touch.

  • I downloaded an audiobook from Itunes and it only load a portion of the book.  At first it work on my iPhone,  now will not work at all on my iPhone, but works on my computer.  I cannotget it to tranfer to my iphone.

    Looking for some assistance.  I downloaded an audiobook from iTunes.  It was 11 hours long.  Originally it worked on my iPhone, but stopped working after 44 minutes into the book.  I tried to re-load the book but it would only load a portion of it and would then would not play.  I then was able to get the same half of the book loaded into my laptop, but then not onto my iPhone.  Anysuggestions, other than re-purchasing the book?

    See Here...
    Troubleshooting applications purchased from the App Store
    The Basic Troubleshooting Steps are:
    Restart... Reset... Restore from Backup...  Restore as New...
    Restart / Reset
    http://support.apple.com/kb/ht1430
    Try this First... You will Not Lose Any Data...
    Turn the Phone Off... ( if it isn’t already )
    Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
    Wait for the Apple logo to Appear and then Disappear...
    Usually takes about 15 - 20 Seconds... ( But can take Longer...)
    Release the Buttons...
    Turn the Phone On...
    If that does not help... See Here:
    Backing up, Updating and Restoring
    http://support.apple.com/kb/HT1414

  • PHP Connection fails, but works over saprfc_test.php

    Hi,
    I can make a connection to SAP using saprfc_test.php but when I try and do this with my php script at the command line it fails with this error:
    C:\Documents and Settings\arundelr>php -c C:\www_root\Apache2.2\php.ini C:\www_r
    oot\htdocs\newphpsaprfc\parser.php
    Order Number: 0000427138
    PHP Warning:  RFC Error Info :
    Group    : 102
    Key      : RFC_ERROR_COMMUNICATION
    Message  : Connect to message server failed
    Connect_PM  MSHOST=sapdev.host.com, R3NAME=FRD, GROUP=PUBLIC
    LOCATION    CPIC (TCP/IP) on local host
    ERROR       Group PUBLIC not found
    TIME        Mon Jul 09 17:28:30 2007
    RELEASE     640
    COMPONENT   LG
    VERSION     5
    RC          -6
    I do not specify a group when I use saprfc_test.php but I notice this is reporting it as PUBLIC.  Does anybody have any bright ideas?
    cheers
    Rob.
    MODULE      lgxx.c
    LINE        3531
    DETAIL      LgIGroup
    COUNTER     1
    in C:\www_root\htdocs\newphpsaprfc\includes\processor.php on line 15
    RFC connection failed
    C:\Documents and Settings\arundelr>

    specifying "MSHOST"=>"", did the trick.

  • ACE connection refused but not when accesing directly the server

    Hello,
    I am facing the following problem when I try to load a specific webpage using the VIP:
    If I skip the load balancer and hitting the real server, then the page is correctly loaded:
    I capture traffic and I saw that the VIP sends a 400 http error to both real server and to my laptop IP (10.160.8.73)
    Has someone any idea why this is happening?
    Thanks in advance
    Ion

    Hi,
    This may help you:
    The ACE's tengig port is always /1.
    Let's say your ACE is in slot 3. It's backplane interface would then be
    Te3/1. You then use
    the monitor command to configure the source (SPAN) port to this interface.
    monitor session 1 source interface TenGigabitEthernet 3/1 both
    monitor session 1 destination interface GigabitEthernet x/y
    monitor session 1 filter vlan 510 - 511 , 640 , 652 - 656        <---- Line
    is optional and will capture only specified VLANs
    Configure the destination (SPAN) port as a trunk port so that the VLAN IDs
    will be preserved:
    interface Gix/y
    switchport
    switchport trunk encapsulation dot1q
    switchport mode trunk
    switchport nonegotiate
    Be sure that the network analyzer connected to the destination port can
    monitor VLAN tags
    (a trunked port). Here is a link on how to configure NICs using some of the
    Intel chipsets to
    pass the VLAN tagging info:
    http://support.intel.com/support/network/sb/CS-005897.htm
    Wireshark has posted this info, as well as how to configure NICs with the
    Broadcom chipset:
    http://wiki.wireshark.org/CaptureSetup/VLAN#head-e0dc0f9fe0cc6b1b1866d78da7b97ead34dca1d8
    With IOS Release 12.2(18)SXD and later releases, when a destination port is
    a trunk, you can
    use the list of VLANs allowed on the trunk to filter the traffic transmitted
    from the
    destination port.  This should not be necessary if you configured the
    optional 'filter' line
    in the monitor session configuration.
    interface Gix/y
    switchport
    switchport trunk encapsulation dot1q
    switchport trunk allowed vlan 102, 103
    switchport mode trunk
    switchport nonegotiate
    For additional information, see:
    http://www.cisco.com/en/US/docs/switches/lan/catalyst6500/ios/12.2SXF/native/configuration/guide/span.html#wp1036881
    http://www.cisco.com/en/US/products/hw/switches/ps708/products_tech_note09186a008015c612.shtml#topic6
    Cesar R
    ANS Team

  • Rmi client throws Connection Refused exception

    My Rmi client throws a Connection Refused exception when i try to run it on remote machine (in this case i run it on my virtualbox macine).
    The virtualbox machine network is in NAT mode (host machine ip should be 10.0.2.2).
    When rmi client starts get registry instance and print in standar output:
    RegistryImpl_Stub[UnicastRef2 [liveRef: [endpoint:[//10.0.2.2/:1099,util,RmiInstances$1@1275d39](remote),objId:[0:0:0, 0]]]]But when rmi client trys to use any of remote methods it throws Connection Refused, but it's to strange because the Connection Refused has 127.0.1.1 as ip.
    java.rmi.ConnectException: Connection refused to host: 127.0.1.1; ....In client RmiInstances code (this class contains all remote implementations) is:
    public class RmiInstances {
        private static RmiInstances instance;
        private IUserManage userManage;
        private IAnalysis analysis;
        private IPacientManage pacientManage;
        private IInsuranceManage insuranceManage;
        private Config config;
        private RmiInstances()
                throws RemoteException, NotBoundException, IOException {
            this.config = Config.getInstance();
            Registry registry = LocateRegistry.getRegistry(config.getServerUrl()+"/",
                    1099, new RMIClientSocketFactory() {
                @Override
                public Socket createSocket(String host, int port) throws IOException {
                    try {
                        URI uri = new URI(config.getServerUrl()+
                                ":"+config.getServerPort());
                        return new Socket(uri.getHost(), uri.getPort());
                    } catch (URISyntaxException ex) {
                        ex.printStackTrace();
                        return null;
            System.out.println(registry);
            userManage = (IUserManage)registry.lookup("RUserManage");
            analysis = (IAnalysis)registry.lookup("RAnalysis");
            pacientManage = (IPacientManage)registry.lookup("RPacientManage");
            insuranceManage = (IInsuranceManage)registry.lookup("RInsuranceManage");
    ...And server code is the next:
    public static void main(String[] args) {
         System.out.println("GNULab Server " + VERSION + " starting...");
         System.setProperty("java.rmi.server.codebase",
              "file:/home/zarovich/workspace/labserver/bin");
         try {
             // Loading config
             System.out.println("Loading config...");
             Config config = Config.getInstance();
             // inicializando rmi registry
             Registry registry;
             if (config.isSsl()) {
              registry = LocateRegistry.createRegistry(
                   config.getServerPort(), new RmiSSLClient(),
                   new RmiSSLServer());
             } else
              registry = LocateRegistry
                   .createRegistry(config.getServerPort());
             // instanciando implementaciones
             RAnalysis rAnalysis = new RAnalysis();
             RInsuranceManage rInsuranceManage = new RInsuranceManage();
             RPacientManage rPacientManage = new RPacientManage();
             RUserManage rUserManage = new RUserManage();
             // registrando interfaz rmi
             registry.rebind("RAnalysis", (IAnalysis) UnicastRemoteObject.exportObject(rAnalysis, 0));
             registry.rebind("RInsuranceManage", (IInsuranceManage) UnicastRemoteObject.exportObject(rInsuranceManage, 0));
             registry.rebind("RPacientManage", (IPacientManage) UnicastRemoteObject.exportObject(rPacientManage, 0));
             registry.rebind("RUserManage", (IUserManage) UnicastRemoteObject.exportObject(rUserManage, 0));
             System.out.println("GNULab Server " + VERSION + " listening ...");
             System.out.println("Registry instance: " + registry.toString());
         } catch (RemoteException e) {
             e.printStackTrace();
            * catch (MalformedURLException e) { e.printStackTrace(); }
            */catch (IOException e) {
             // TODO Auto-generated catch block
             e.printStackTrace();
         } catch (JDOMException e) {
             // TODO Auto-generated catch block
             e.printStackTrace();
    ...

    I'm solved my problem.
    I just need run my server with -Djava.rmi.serverhost=10.0.2.2 and my client running on my virtualbox machine works!

  • DNS changed and Mail, MSN, Jabber don't connect :S (but Internet runs well)

    First of all, sorry for my english, i'm spanish .
    My connection to internet was like this (now i've changed)
    iMac ->(wifi)-> router1 ->(ethernet)-> router2 -> Internet.
    I always used the OpenDNS (208.67.220.220/208.67.222.222) and all my applications connect to internet well.
    Two days ago I read about the GoogleDNS (the new service), that they are 8.8.8.8 and 8.8.4.4, so i changed my DNS in the router1 and in the iMac.
    It goes really well for two hours. Then, when I rebooted my iMac many services like Mail (IMAP and POP), MSN, Jabber... didn't connect saying that "there is no connection" or "connection refused", but I had internet (and nslookup went well) so safari, skype, spotify... went well and at full speed.
    When it was driving me mad I returned to OpenDNS... but they didn't connect yet.
    Now, i am connected to the primary router via ethernet, and my iMac has the OpenDNS... and I don't know why, but it still doesn't connect.
    Do you have any suggestion? Do you want any log?.
    Thanks!
    Message was edited by: d4rkb1t

    Up!

  • Ipod touch will not connect to itunes @ work computer, but will connect to itunes @ home computer? why won't itunes see my ipod at work?

    ipod touch will not connect to itunes @ work computer, but will connect to itunes @ home computer? why won't itunes see my ipod at work?

    Try here:
    iPhone, iPad, iPod touch: Device not recognized in iTunes for Mac OS X
    Mac OS X v10.6 or later: iOS device not recognized in iTunes after restart

  • I have a 4th gen iPod touch and I can not connect to the Internet even though my iPad works and my computer let's me get into the Internet. It gives me a message cannot to server. Please help I have tried to reset it but that does not work

    I have a iPod touch 4th gen. And I cannot get into the Internet I get a message that say cannot connect to server. The other computer and my iPad still work with the Internet . I have reeked to reset it but that does not work. Please help me.

    I do not know wat "reeked to reset" means.
    Try the following:
    - Reset the iPod. Nothing will be lost
    Reset iPod touch:  Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears
    - Power off and then on your router.
    - Reset network settings: Settings>General>Reset>Reset Network Settings
    - iOS: Troubleshooting Wi-Fi networks and connections

  • HT1595 I have 2 Apple TV's one the oldest works fine the 2nd one refuses to recognise the MacBook Pro its connected to but I can play media from the MacBook on the Apple TV from iTunes, help?

    I have 2 Apple TV's one the oldest works fine the 2nd one refuses to recognise the MacBook Pro its connected to but I can play media from the MacBook on the Apple TV from iTunes, help?

    Sorry, content bought with one Apple ID cannot be merged or transferred to another Apple ID.

  • HT201210 I started update connected to my work computer....it started update and now it is asking me to connect to Itunes, which I have but my work computer doesn't have my Iphone information..... I can't use my phone now when I start up it says connect t

    I started update connected to my work computer....it started update and now it is asking me to connect to Itunes, which I have but my work computer doesn't have my Iphone information, it says I have the latest software, my only option is to "restore phone" which I don't want to do here at work as none of my apps or music are showing up ..... I can't use my phone now when I start up it says connect to itunes.....

    Mozilla has nothing to do with a Microsoft product activation key.
    That "test" page should be viewed in Internet Explorer and not with Firefox, as it may use ActiveX which isn't compatible with any Mozilla product.
    [https://support.mozilla.com/en-US/kb/ActiveX]

  • Can't get my epson sx535wd to work. my epson will get contact with my router (sitcom wl306) and my mac is on wifi, but they can't connect. epson can't find the computer and my report says: there are conflicting channels on my router or entry point. help

    can't get my epson sx535wd to work. my epson will get contact with my router (sitcom wl306) and my mac is on wifi, but they can't connect. epson can't find the computer and my report says: there are conflicting channels on my router or entry point. please help

    OK, let's try these................ 
    1 - Boot up from your install DVD and run "Repair Disk" from the Utility menu.  When done, restart back to your desktop, repair permissions and restart your computer.  Re-connect your printer. 
    2 - Download & install the Gimp drivers. Make sure the one you install is compatible w/your OS-Gutenprint 5.2.8-pre1.   Repair permissions, restart your computer & re-connect your printer when done.
    The Epson model I have, in order to get it to print wirelessly, I had to install a Gimp driver.
    3 - Check out the following KB Articles:
    Mac OS X 10.4 Help: Connecting to a network printer
    Epson Printer Drivers v2.10 OS X
    Adding a printer to your printer list in Mac OS X
    Mac OS X 10.4 Help: The printer I'm adding says "Driver not installed"
    ======================
    If still unsuccessful after trying all of the above, the problem could be your iBook or human error.  You can either call Epson & ask to speak with a Mac savy supervisor or return the printer & find another that is compatible w/your current OS.

  • TS4062 I have 3 Dell laptops at home and I am unable to connect my iPad 1 to any of them using the USB cable.  If I connect the iPad to any Apple computer, it works perfectly.  I have installed the latest versions of iTunes and iOS, but still no luck. Opt

    I have 3 Dell laptops at home and I am unable to connect my iPad 1 to any of them using the USB cable.  If I connect the iPad to any Apple computer using the same USB cable, it works perfectly.  I have installed the latest versions of iTunes and iOS, but still no luck. Apple Store Geniuses helped me determine that it wasn't my iPad causing the problem, but were less helpful when it came to dealing with non-Apple devices.
    Options?

    Does the OS see the iPad at all? In other words does it show up in either the My Computer or Device Manager?
    I've had problems in the past where I had to modify the registry to get my son's iPod to sync with a particular HP laptop.
    If it doesn't show up at all have your tried using an external hub (with or without power)?

  • My wifi usually automatically hooks up my other home's wifi, but i went away for a while and it hasnt connected so i tried to put the password in again, and it said it was connected but then it just lets it go. And it is refusing to work.

    My wifi usually automatically hooks up my other home's wifi, but i went away for a while and it hasnt connected so i tried to put the password in again, and it said it was connected but then it just lets it go. And it is refusing to work.

    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime: Set-up, Use, and Troubleshooting Problems
    http://tinyurl.com/32drz3d
     Cheers, Tom

Maybe you are looking for

  • DMS - Document Validity

    Hi to all, Does anybody know if exist a functionality to handle date of validity of a DMS document? I mean, after approving a document (with the "Release Flag"), I need to fix "manually" a date that the document will be "valid to", the date that the

  • Problem in invoking LiveCycle using EJB

    Hi All, I am trying to invoke LC using EJB protocol. I referred the code example from the link http://help.adobe.com/en_US/livecycle/9.0/programLC/help/index.htm?content=001001.html#154 8359 But I am facing the problem in the same code. Here is the s

  • FX5900-TD128

    the FX5900-TD128 MS-8929 is the ULTRA or not, and what is the diference on the ultra and not ultra ?(

  • Qik video chat on Revolution

     Ok now I'm getting tired of video chat not working at all on Revolution. I click on it and open and then click video chat and a box pops up saying it has stopped unexpectedly and I have to force close. Went in for help and it sys have gps on so I en

  • ALV - Total text

    hai   i done alv report with total and subtotal , but the text for the total and subtotal which iam specified in layout are not displayed in a report. plz help me..