Please help: connection refused on localhost

I'm using RMI in a BEA WebLogic 7 environment. I've written an RMI object that
registers itself (with Naming.rebind) in its main method:
myObject mo = new myObject();
Naming.rebind("//localhost:7001/my_object", mo);
I am importing standard RMI packages, not WebLogic RMI packages. The code itself
appears to be fine, and I have deployed it as a startup class in WebLogic 7. Problem
is, when I restart WebLogic and that Naming.rebind call is executed, it returns:
java.net.ConnectException:
Connection refused: connect
at java.net.PlainSocketImpl.socketConnect (Native Method) ...
I am running WebLogic on port 7001 on my local workstation, which has a dynamic
network IP,
so I need to bind at either 127.0.0.1:7001 or localhost:7001. I have tried both
repeatedly in my code, with and without the port number, and everything fails.
I also played with the Socket permissions in the weblogic.policy file and fileRealm.properties
file, but still no connection. I'm at wit's end. Can you help, please?

I am having the same problem. Surprizing thing is the creator (SAP) itself is not solving the problem.
  created: jce/
inflated: jce/local_policy.jar
inflated: jce/US_export_policy.jar
inflated: jce/README.txt
inflated: jce/COPYRIGHT.html
C:\DOCUME1\ADMINI1\LOCALS~1\Temp\sapinst_exe.1164.1274306683
jre\jce\COPYRIGHT.html
C:\DOCUME1\ADMINI1\LOCALS~1\Temp\sapinst_exe.1164.1274306683
jre\jce\local_policy.jar
C:\DOCUME1\ADMINI1\LOCALS~1\Temp\sapinst_exe.1164.1274306683
jre\jce\README.txt
C:\DOCUME1\ADMINI1\LOCALS~1\Temp\sapinst_exe.1164.1274306683
jre\jce\US_export_policy.jar
        4 file(s) copied.
Start mode: gui (Gui only)
Connection parameters:
  GuiServer host: localhost
  GuiServer port: 21212
  GUI mode      : normal
Starting...
<<< frog.jar: version 7.20.12 06/06/08 sap.theme: null >>>
Exit status of child: 1

Similar Messages

  • Please Help - Connection Refused

    Hello,
    I am having trouble connecting to cloudscape database, have been working OK for the past
    couple weeks with an application that I have writen but now big problems!
    java -Djdbc.drivers=COM.cloudscape.core.RmiJdbcDriver Testjava.sql.SQLException: Connection refused to host: localhost; nested exception is:
    java.net.ConnectException: Connection refused: connect
    at RmiJdbc.RJDriver.connect(RJDriver.java:156)
    at java.sql.DriverManager.getConnection(DriverManager.java:512)
    at java.sql.DriverManager.getConnection(DriverManager.java:140)
    at COM.cloudscape.core.RmiJdbcDriver.connect(Unknown Source)
    at java.sql.DriverManager.getConnection(DriverManager.java:512)
    at java.sql.DriverManager.getConnection(DriverManager.java:193)
    at Test.getConnection(Test.java:14)
    at Test.main(Test.java:54)
    *I am running cloudscape
    *set the class paths to point at
    - RmiJdbc.jar
    - cloudclient.jar
    I have written a small test program to check problem,
    //////////////////////////////////CODE LISTING/////////////////////////////////////////////
    import java.sql.*;
    import java.util.*;
    public class Test
    { static Connection conn = null;
    static Statement stmt = null;
    static ResultSet rset = null;
    private Test()
    public static Connection getConnection(String url) throws SQLException
    { DriverManager.setLoginTimeout(10);
    return DriverManager.getConnection(url);
    public static void close(Statement stmt)
    { if(stmt != null)
    { try
    { stmt.close();
    }catch(Exception e)
    { e.printStackTrace();
    public static void close(Connection conn)
    { if (conn != null)
    { try
    { conn.close();
    }catch(Exception e)
    { e.printStackTrace();
    public static void close(ResultSet rset)
    { if (rset != null)
    { try
    { rset.close();
    }catch(Exception e)
    { e.printStackTrace();
    public static void main(String [] args)
    { try
    { String url= "jdbc:cloudscape:rmi://localhost:2005/cloudscapeDB;create=true";
    conn = getConnection(url);
    stmt = conn.createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);
    }catch(SQLException e)
    { e.printStackTrace();
    close(rset);
    close(stmt);
    close(conn);
    Please Help me!!!!

    It is obvious that noone is going to reply to me, so I have kind of solved this for myself,
    for some unknown reason my origonal program that worked fine doesnt now.!?!?!??!?
    However decided to approach problem from another side, and give both my desk and head a break.
    Below is now how I am connecting to a database and return a connection to it, it works,
    public static Connection getConnection() {
    String databaseName = "jdbc:rmi://" + "localhost" + ":1099/jdbc:cloudscape:CloudscapeDB;autocommit=true;create=true";
    try {
    Class.forName("RmiJdbc.RJDriver");
    } catch (ClassNotFoundException e) {
    System.out.println("PopulateTables: caught getting connection: " + e);
    Connection con = null;
    try {
    con = DriverManager.getConnection(databaseName); // , user, password);
    } catch (java.sql.SQLException se) {
    System.out.println("PopulateTables: caught getting connection: " + se);
    return con;
    Thanks me.

  • Please help - Connection Refused - Mac to Windows Server 2012

    I have downloaded MS Remote Desktop onto my brand new Macbook Air OS X and have tried to connect to my school network - which when logged in says it is "Windows Server2012"
    However each time I try to log in it simply says connections refused.  Nothing more.
    Not sure what I can do next.
    Thank you for any help,
    Laura

    Hi Laura,
    Thank you for posting in Windows Server Forum.
    Are you trying to remote desktop with IP address or hostname?
    Please try both alternate way and check is there any difference between them. Also as suggested by Manouchehr Omari, please see that you have remote desktop enabled on server 2012 and related RDP port (3389) opened for remote connection to take place under
    firewall setting. If possible for a try disable firewall and check. You can get more troubleshooting information from beneath link.
    Remote Desktop Client on Mac: FAQ
    http://technet.microsoft.com/en-in/library/dn473006.aspx
    Hope it helps!
    Thanks.
    Dharmesh Solanki
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Please help , "Connection refused: connect "

    hello,
    i have got this exception while connecting to server ?
    what does it mean ? and what can i do to solve this problem ?
    this is so important for me ! i have to solve this in a short time.
    thanks for helps.
    Musa YILMAZ
    // == ERROR
    com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:
    ** BEGIN NESTED EXCEPTION **
    java.net.SocketException
    MESSAGE: java.net.ConnectException: Connection refused: connect
    STACKTRACE:
    java.net.SocketException: java.net.ConnectException: Connection refused: connect
    at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:151)
    at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:280)
    at com.mysql.jdbc.Connection.createNewIO(Connection.java:1765)
    at com.mysql.jdbc.Connection.<init>(Connection.java:430)
    at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:268)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at pi.a(pi.java)
    at pi.b(pi.java)
    at Main.<init>(Main.java)
    at tk.run(tk.java)
    at java.lang.Thread.run(Unknown Source)
    ** END NESTED EXCEPTION **

    You are trying to connect to wrong host or port number
    or
    MySQL server that you are trying to connect is not running

  • Please help : connection in the LAN

    hello every one ...
    I have a Lan network .. i want to enter another PC by using JAVA ...
    I Know the User Name and the password ... so how can i do that ...
    please help ...
    best regards

    Again, what do you want to do once you connect?
    If you want to run command line programs you can use Telnet. To do this you will need to obtain a telnet server that you can run on the other machine. Most Unix and Linux systems come with one of these. For windows you will need to buy one or find a good Open Source or freeware server. If you have the cash (about $300USD) you can get the Hummingbird Exceed software, it has a Telnet and FTP server built in. As we all know Windows = M$.
    Once you have the server you can write a client to run commands, reply 7 to Telnet to Unix box from Java App provides a simple swing client to run commands over telnet.
    Another choice is to write both the client and the server. I've posted examples of how to do this on this forum. My examples are just a simple multiuser chat program, but the code could be adapted to other uses.
    Again, the question is, what is your requirement?

  • Urgent, please help-- connection does not close

    Hi,
    We are using Txdatasource, Oracle thin driver in WLS6.1 sp2. The problem we have
    is that we open connection and pass the connection as parameter to third part
    tool to generate report, but the tool doesn't close connection after finish, then
    the connection is left never being closed, and our connections in connection pool
    soon used up, have to restart weblogic to reset. the connection pool is set to
    allow shrink, but those connections are not recycled. Please help, how do we somehow
    set up WLS or database so that if a connection is not used for some time system
    automatically close connection? Thank you very much. your help is greatly appreciated

    Hi Chun,
    I don't think it's possible whithout changing code. Primaryly it's because
    it hard to tell whether connection is abandoned or still in use. So you have
    to make changes in your code.
    Regards,
    Slava Imeshev
    "Chun" <[email protected]> wrote in message
    news:[email protected]...
    >
    Hi,
    Thanks for reply. The reporting tool is supposed to close connection butit didn't.
    And now we need some quick fix on it without touching code.
    Seems like the used connection can not be garbage collected because theconnection
    I used yesterday is still not recycled today. ( I monitor JDBC in WebLogicConsole,
    the "connections" column on "Monitoring" didn't change). No matter how bigI set
    the maximum number of connections, the connections will use up finally andwe
    have to restart WebLogic server.
    Is there any way to make connection drop after some time?
    "Slava Imeshev" <[email protected]> wrote:
    Hi Chun,
    "Chun" <[email protected]> wrote in message
    news:[email protected]...
    We are using Txdatasource, Oracle thin driver in WLS6.1 sp2. The
    problem
    we have
    is that we open connection and pass the connection as parameter tothird
    part
    tool to generate report, but the tool doesn't close connection afterfinish, then
    the connection is left never being closed, and our connections inconnection pool
    What prevents you from closing connection after control is returned
    back from the reporting tool?
    soon used up, have to restart weblogic to reset. the connection poolis
    set to
    allow shrink, but those connections are not recycled. Please help,how do
    we somehow
    set up WLS or database so that if a connection is not used for sometime
    system
    automatically close connection?Weblogic closes connections that were not returned to the pool when
    they are GC-ed. Yet you should not relay on this feature as by the
    moment a connection is closed the pool maybe already used up.
    The other option I was thinking about is that it's possible to size
    of the pool you use is too small for the application. Did you try to
    increase (let say double) size of the pool?
    FYI having shrinking and refresh enabled doesn't make much
    sense in most of the cases. You can improve performance and
    stability of your application by setting initial number of connections
    to max and setting refresh period to let say 99999.
    Hope this helps,
    Regards,
    Slava Imeshev

  • Connection refused at localhost

    Hi,
    I got a problem binding a Socket(just try a few like 3090 or 22222) with ip = localhost...
    What can be the error?
    new Socket("127.0.0.1", 3090);
    java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    ...Olek

    Do you want to make a connection, or bind to a port? They are different actions. You can't connect unless there is something listening on the specified port. If bind, see that Socket method.

  • Please please help connect RIM 957

    Can someone help me connect an old RIM 957 to the pc?I need the oldest desktop softwere possible,preferable 2.1 (i have 3.5 but it will not recognise the device)
    I have an RS232 to USB adapter with the drivers installed,works well cuz i successfully connected a Blackberry 5820 with it.But it won't find my good old 975.I am running on Windows 7.
    Please help,i've been searching for a solution for months..

    Hey gsm_dealer08,
    Welcome to the BlackBerry Support Community Forums.
    Thanks for the question.
    This will not work on Windows® 7, as these previous versions of BlackBerry® Desktop Software 3.5, 2.1 and 2.0 are not designed to work on Windows® 7.
    If you have an other PC running Windows XP, it will work with the BlackBerry Desktop Software 3.5.  However all of the old desktop software is not available to download from our site (www.blackberry.com/desktop).
    http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/8179/271479/Supported_softwa...
    I hope this info helps you out.
    Let me know if you have any more questions.
    -ViciousFerret
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Like! for those who have helped you.
    Click  Accept as Solution for posts that have solved your issue(s)!

  • Tomcat connection refused from localhost

    I have Tomcat 5.5.7 installed as a stand-alone server on my local machine. I have installed Java jre 1.5.0 (5.0). The OS is Windows 2000 SP3. The install went without incident. I set system variables JAVA_HOME, CATALINA_HOME, TOMCAT_HOME.
    When I try to access anything using tomcat, I get "The connection was refused when contacting ......" I've used ...
    http://localhost
    http://localhost :8080
    http://127.0.0.1
    http://127.0.0.1:8080
    ...and a number of variations to get at the webapps area. All give exactly the same response.
    I can ping myself, but when I run Steve Gibson's IS Serve, it tells me the port is closed.
    I think I have server.xml set up correctly. Any ideas. Any help will be appreciated. Thanks.
    - Ed Lipchus

    did you try installing tomcat as a windows service
    download tomcat.exe and double click and follow instructions

  • Connection Refused by localhost

    Good morning all. I'm very new (hence the newbie corner) so I was hoping to get some insight on an issue I've run up against and haven't figured out yet. I have -Syu'd and am using the most recent yaourt and yaourt-gui packages from AUR to install packages more easily. I recently installed the most recent plex-media-server-plexpass package, which requires I access it through localhost:32400.
    So this is where I get the "Connection to the Server Refused" when trying to access the localhost. Unless a firewall got added in the original Arch install or KDE/plasma packages, I have not deliberately installed a software firewall in this system, so to my knowledge that's not the issue. Do I need to be running Apache/LAMP? Is there something in permissions I am missing?
    Thanks for the help.
    Note that I know the service is running, as when I go to /opt/plexmediaserver and run sh start.sh I am notified that the service is already running.

    Glad it is solved    I guess I'll drag you through iptables -L and %netstat -lp  another time
    BTW, I serve Plex from this laptop to my Roku -- it is pretty much my entire TV watching solution.  I don't know what you intend to stream, but I find that a lot of the commercial stuff from the major broadcasters don't stream to the browser that well.  I have better luck plexhometheater
    Be sure to add [SOLVED] to the thread title.
    Last edited by ewaller (2015-03-15 17:12:21)

  • HT1904 Everytime I make an order I am charged twice and cannot rectify this charge please help as  refuse to play anymore. Because of these charges  please help.

    I have played Funbridge  for a year at least and on all my orders I am charged twice but not given twice the time.  Please look back at my account as I jhave tried every way of contacting  to rectify this without success so refuse to pay any more until I get refunded.

    First off this is a USER forums. So asking for a resolution here will not help you.
    What are all of the ways that you have taken to try to get a resolution?
    Have you tried going to expresslane.apple.com selecting itunes then itunes store and then the option that best matches your issue and input the information which is requested to contact itunes?
    If you have done so and it has been longer than 48hrs and you still have not got a reply back,
    MayBe you should then try calling Apple Support and ask if can speak to the fraud department and then I am mostly sured you would get information on that.
    Best of luck

  • Please help: Connection Pooling...

    Hi everybody,
    I am seeking help from our experienced fellows and senior programmers/developers.
    I am working with Struts framework, TomCat and JavaBeans and developing a website.
    I wanna make my own Connection Pooling class to handel all the connections.
    Actualy, I don't wanna make Connection to the DB through my each Action Classes,
    which are accessing the Database.
    Would you please advise me that how it is possible and how I will refere to
    my Connection Pooling Class within Struts framework. And if possible just give the
    hints about the structure of the Connection Pooling Class.
    Your kind help will be highly appreciated...
    VeeJay...
    [email protected]

    Hi..
    Is it a requirement that u must use u'r own connection pool??
    Coz each application server provides its connection pool.why dont u exploit one of those.. as u r using tomcat, definitely it wud also be providing a pool of its own.
    Kris

  • Please Help Connection Error

    This is going to be long so apologies in advance. Okay here goes. My computer is set to reset every time it's cut off; Meaning i have to reinstall my web browser every time i use it. This is not a problem, actually it's preferred. Anywho i use Firefox and as you all know FireFox doesn't come with Flash Player like Google Chrome so up until now i've been installing Flash with absolutely no problems and then one day i'm installing Flash and i notice the installer window is light grey and yellow not black like it use to be.
    i go ahead with the installation and it stops at 5% and says "Connection Error" i try again and the same thing happens and it only allows me two tries. i look up at the url and i see get2.adobe.com/flashplayer/ notice the number "2"? Anyways i turn my computer off and back on again i reinstall FireFox and go to install Flash again and the "2" and the old black install window pops up and everything works normally. This happened off and on for weeks so now i know that when there is "2" in the url to restart the computer til there isn't one. This was an inconvenience but i could live with it.
    But now there is no "2" in the url but it still displays the light grey window and won't let me move pass 5% no matter how much i restart my computer it does that. And i've noticed i'm not the only one having this problem. i've tried everything that i know to get this thing to work. Older versions of Flash Player and offline installers keep telling me to uninstall FireFox but that's my web browser of choice. And i hate Chrome with a passion; So please can someone here help me because i'm totally stumped, Thanks in advance.
    My system is Windows XP 32 Bit

    tylerxx
    Don't understand your Firefox problem as you described it with repeated installing - sounds like a portable installer version. With regards to the rest of you comments:
    The get2.adobe.com/flashplayer/ and get.adobe.com/flashplayer/  are not significant the first one is an alias to the second one. Adobe flash has this bizzare (read F**ked up)  installer that upon completion will delete itself. This is absolutely something that NO OTHER INSTALLER DOES and in this case where an error is encountered it is absolutely the WRONG WRONG WRONG thing to do. This is a stub installer that goes and gets the real installer. Why does it exist ? Probably to make it easy to add extra stuff on your PC such as "McAfee Security Scan Plus".  Quite similar to CNET Download.com which I do not trust any longer for similar behavior.  You are correct in that the message "connection error" you get a "retry" button so 2 tries then the installer gives up exits and deletes itself. Just make a copy of that file - it's only 1- 2MB and keep it in a folder and then make a copy the installer before each run. That will save you going to get.adobe.com/flashplayer/ every time to get the same installer. Once the problem is fixed you get rid of that installer file.

  • Please help -Ap refused static address -5508 controller 7.0 software

    HI guys
    Hope you well
    I have a problem with a site, simple problem but becoming an issue.
    I have to change the ip address or the lwapp1142 to static  but it refuses to take the ip address and keeps getting the Dhcp address.
    The address i would like it to use is of the same managment Ip adddress of that of the controller.
    what I did notice is that when setting up the 5508 compared to the 4400 controller
    we all know that the 5508 uses Capwap and the older code used LWAPP.
    In setup of the controller i saw  the step that normally says AP manager interface is not there anymore it just asked for managment and the  normal interfaces like service ,Virtual etc
    in my understanding that Ap manager ip address  normaly makes the Ap associate with WLC since on bootup of the AP so it can do so to download the image.
    can th problem be that teh network guys are using dhcp option 150 rather then 43 where the Ap keeps getting the  data vlan ip address? or is teh above  a problem
    I have also consoled into the ap and physically tried setting it to manual and takes it then reboots and gets dhcp again
    This is very important to sort out since our Gnoc cannot monitor the devices
    Please guys your input will be much apprciated
    Thanks
    Thags Govender
    mail me at thags.govender|@hp.com

    You lost me when you started talking about the 5508 management IP address... The Management Interface is THE AP-Manager on a 5508 (unless you specify otherwise).  And the DHCP Option stuff shouldn't matter if you are trying to use static IP...   And as far as AP Discovery goes, the Management IP is always the IP used in the discovery process (AP-Manager or not, dynamic discovery should put to Management IP).
    So what exactly is your problem?
    The AP isn't joining?
    Or the AP is joining with a DHCP address and not a Static IP address?

  • PLEASE HELP connect me

    I have a MacBook Pro and I'm trying to connect via the internet to a friend's PowerBook G4.  I tried Remote Desktop Connection and it's only for connecting to a Windows machine.  I tried downloading Remote Desktop Client which I though was for connecting mac to mac and it wouldn't load onto my hard drive because I have a newer version (which I can't find to save my soul).
    Can't someone out there tell me how I can connect to this G4 and what program will and will not work?????
    I have the ip address and the user name and password.
    HELP!!

    Thank you for answering my Remote question.  Unfortunately, I still am unable to connect.  Here's what I've tried:
    1.  Double checked that Remote Management is checked
    2.  Double checked that her computer is not asleep
    3.  Put in the administrator name and password on the Remote Desktop Program on my side
    Question:
    1.  Does the other computer need Remote Desktop?
    2.  We are both running WIFI - I have Airport Extreme 802.11n and she has the older version of Airport.  Do I have to go through them or configure them in some way?
    I SO appreciate your help.
    Kristie

Maybe you are looking for