Help:why cann't open socket through registry?

This is an example from book,but i cann't register the object in the registry.
and the file %JAVA_HOME%\lib\ext\java.policy has the line:
permission java.net.SocketPermission "localhost:1024-", "listen";
it means u can use port 1099.
but when i run java RegisterIt,an error occured.
message as follow:
G:\javasource>java RegisterIt
Object instantiated:HelloServer[RemoteStub [ref: [endpoint:[192.168.0.166:1734](
local),objID:[0]]]]
java.rmi.ConnectException: Connection refused to host: 192.168.0.166; nested exc
eption is:
java.net.ConnectException: Connection refused: connect
//the RegisterIt.java source.
import java.rmi.*;
public class RegisterIt{
public static void main(String args[]){
     try{
          HelloServer obj=new HelloServer();
          System.out.println("Object instantiated:"+obj);     
          Naming.rebind("/HelloServer",obj);
          System.out.println("HelloServer bound in registry");
     }catch(Exception e){
          System.out.println(e);
}

check if rmiregistry is running on the default port(1099) on your localhost.
If not, run it like this on unix.
$ rmiregistry 1099&
I assume your HelloServer's implementation is fine.
regds,
CA

Similar Messages

  • Hi! I'm new to mac so I need for help.Why when I open safari also open some pages that I don't click?

    Hi! I'm new to mac so I need for help . Why when I open safari also open some pages that I don't click? What should I do ,get any cleaner ?

    Please review the options below to determine which method is best to remove the Adware installed on your computer.
    The Easy, safe, effective method:
    http://www.adwaremedic.com/index.php
    If you are comfortable doing manual file removals use the somewhat more difficult method:
    http://support.apple.com/en-us/HT203987
    Also read the articles below to be more prepared for the next time there is an issue on your computer.
    https://discussions.apple.com/docs/DOC-7471
    https://discussions.apple.com/docs/DOC-8071
    http://www.thesafemac.com/tech-support-scam-pop-ups/

  • Help: Why cann't I install WebLogic Integration?

    Hi,
    I have installed WebLogic Server 6.0 on e:\bea (Windows 2000). When I
    install WebLogic Integration 2.0 sp2, I get the message "WebLogic Server 6.0
    is a prerequisite for this installion, you do not seem to have it installed
    to e:\bea". How can I do?

    I have the same problem like yang.
    I use 6.0.sp2 !
    Any ideas?
    Maik
    "Christo" <[email protected]> wrote:
    Is it 6.0 SP2?
    "yang songqi" <[email protected]> wrote in message
    news:[email protected]..
    Hi,
    I have installed WebLogic Server 6.0 on e:\bea (Windows 2000).When I
    install WebLogic Integration 2.0 sp2, I get the message "WebLogic Server6.0
    is a prerequisite for this installion, you do not seem to have itinstalled
    to e:\bea". How can I do?

  • Why I cannot open camera raw files from camera Nikon 3200 through Adobe Bridge and/or Photoshop?

    Why I cannot open raw files (NEF) from camera Nikon D3200 through Adobe Bridge and/or Photoshop ?

    Thanks for the tip. It worked out perfectly.
    De: ssprengel [email protected]
    Enviada em: terça-feira, 14 de janeiro de 2014 19:14
    Para: Aecio Paes Leme
    Assunto: Why I cannot open camera raw files from camera Nikon 3200 through Adobe Bridge and/or Photoshop?
    Re: Why I cannot open camera raw files from camera Nikon 3200 through Adobe Bridge and/or Photoshop?
    created by ssprengel <http://forums.adobe.com/people/ssprengel>  in Adobe Camera Raw - View the full discussion <http://forums.adobe.com/message/6012775#6012775

  • New user account - cann´t open bootcamp partition through vmware fusion

    Hi all!
    I installed on my new Imac Bootcamp first, than VMware using the bootcamp partition under my admin account ( all working fine ).
    After a few days I opened a new standard user account for my wife.
    I hoped that VMware Fusion will work under these new user too. I opened the VMware and the bootcamp partition was displayed. I klicked the execute button for using these partition under VMware but the rotating sun icon rotated and rotated and rotated .... nearly 30 minutes later I stopped the VMware.
    When I try it now to open VMware a message is displayed - translated from German - or words to that effect :
    " Package "users/nameofwife/Library/ApplicationSupport/VMWareFusion/VirtualMachines/BootC amp/%2Fdev%2Fdisc0/BootCamp partition.vmwarevm" is corrupted and cann´t open "
    My question : Is it possible that my wife gets access to VMware too ?
    Please help - thx
    Gregor

    Okay solution found found a solution finally... i followed the steps outlined in this article: https://discussions.apple.com/thread/4144252?start=0&tstart=0 . After i did this my windows bootcamp partition showed up again, but my osx and osx recovery disks became unbootable. Luckily I have an extra enternal harddrive with osx installed on, so ran disk utility and repaired the affected disk where osx had become unavailable. Then rebooted and all disks now shows up and work perfectly again.

  • Why can't i connect to my iphone after updating to 7.1.1? i don't even get the screen that lets me login into my apple account??? plz help my phone was stolen and through help of the police i recovered it and now i can't access my phone

    why can't i connect to my iphone after updating to 7.1.1? i don't even get the screen that lets me login into my apple account??? plz help my phone was stolen and through help of the police i recovered it and now i can't access my phone

    You must have had find my iPhone on, or it was locked by your phone carrier.
    Call your our cell carrier first.
    then log on to a computer to iCloud to erase your iPhone.  
    NOW... You will be able to setup with a backup.

  • I can't see a video when I open email on AOL 9.7, but when I open it through IE I can see it,,, why?

    When I open an email through AOL9.7 that has an Adobe Flash Player video in it, all I See is a black box,,,when I open the same email through Internet Explorer (when I open AOL through IE) I can see the video.  I do have the latest version of Flash Player,,, what is the problem????

    Let me preface this by saying I'm a former AOL help desk agent; that means I helped their support people for two years before I left. There's no need for anyone who ISN'T using a dial up connection (through AOL) to have AOL software installed on their system - it takes nearly a gig of hard drive space when you include all the extra junk it installs with their updates, it uses a "two versions old (IE 8)"  scaled down version of Internet Explorer for it's browser engine, and there's NOTHING the software does that can't be accessed at aol.com - INCLUDING AOL mail.
    Because it uses a "two versions old" IE, and a scaled down build at that, the odds are that the plugin you have for IE doesn't work with the AOL browser because Microsoft won't let them have the full code for it. Additionally, AOL mail is HTML mail and won't display external content unless you specifically go in and "tweak the settings" so it will. I have to explain this a few times a month to "newbie" web designers who want to use all kinds of "fancy-shmancy" styles and HTML stuff in their bulk emails. Most people won't and can't see it, so it's a waste of time to put it in there. I haven't touched AOL software or used their email since I left their employ in 2003, so I have no recolection at all of how to enable external Flash vcontent in their mail. I'd suggest contacting AOL support, but from what I know, it's far worse than when I worked there a decade ago, and it was abominable then.

  • Why, when I open Firefox 9.01 do I get a message that I do not have the latest version when Help-About Firefox says I do?

    There are/were three problems:
    '''1.''' Why, when I open Firefox 9.01 do I get a message that I do not have the latest version when '''Help>About''' Firefox says I do?
    '''2.''' Also, with the 8.xx version, I was unable to open in a new window with a right click until I upgraded to 9.01. (Old problem now, but I am curious.)
    '''3.''' When I tried to uninstall the older version the uninstaller told me that I had to close the open version, but it was closed according to my taskbar. I also have this problem with Thunderbird.

    1. You are using the latest version which is Firefox 9.0.1
    From your description it sounds as if you may still have the old http://www.google.com/firefox Firefox start page hosted by Google as your homepage. This old default homepage is no longer used as '''about:home''' has been in use since Firefox 4.0
    Either ignore the message, change homepage to '''about:home''', change it to another page or leave blank.
    http://support.mozilla.org/en-US/kb/How+to+set+the+home+page

  • Why CS6 cann't open Nikon D800E NEF raw file?

    Why CS6 cann't open Nikon D800E NEF raw file?

    The Nikon D800 was supported from ACR version 6.7 / 7.1. But CS6 shipped with 7.0, so if you've never updated ACR (or reinstalled from disc), they won't open.
    Other than that - have you used an older version of Nikon Transfer or View NX? These will corrupt the NEF header so that ACR can't read them.
    There's a fix here: http://owl.phy.queensu.ca/~phil/exiftool/fix_corrupted_nef.html

  • Why i cant open the ae after i download ~then pop up something like ae error, crash in program~help~pls

    why i cant open the ae after i download ~then pop up something like ae error, crash in program~help~pls

  • I know this isn't really the right place to ask, but could someone explain why when I open Portal 2, that I got off steam and spent a whole day downloading, keeps crashing when I click the Campaign/Single Player mode. It Freezes and then crashes. Help!

    I know this isn't really the right place to ask, but could someone explain why when I open Portal 2, that I got off steam and spent a whole day downloading, keeps crashing when I click the Campaign/Single Player mode. It Freezes and then crashes. Help!

    I know this isn't really the right place to ask...
    Uhm, why don't you go to the right place, then? There are several Steam/Portal forums out there...

  • Something is happening to my applications downloaded from store......i don't know why. my applications(opened with launchpad) shows 5(4transparent and 1usable)iMovie icons.someone please help me

    something is happening to my applications downloaded from store......i don't know why. my applications(opened with launchpad) shows 5(4transparent and 1usable)iMovie icons.someone please help me

    Hey srihari4b6,
    Thanks for using Apple Support Communities.
    Since there are a few apps that this is happening to you may want to take a look at this article.
    Mac OS X: How to troubleshoot a software issue
    http://support.apple.com/kb/HT1199
    If the issue occurs in various applications, or in Mac OS X
    Have a nice day,
    Mario

  • Why cann't I open this URL of NAC flash demo?

    Hello,Guys
    why cann't I open this URL of NAC flash demo,Error appears under the web when I open
    Url:http://www.cisco.com/cdc_content_elements/flash/nac/demo.htm.
    It is error all the same after I installed flash player.How do I open this Url.
    Thank you!
    Respests!
    Min Quant

    Usually there is no need to install a flash player to view a flash presentation in a website as browsers altready have support for them. However if the flash needs some advanced features then the website will prompt for downloading the required version.
    In your case you may try to uninstall the software and then try to open the URL to view the demo. If it doesnot works you may download the latest version and get certain other information from this link
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_15511
    If nothing works then you can try using a diffrent browser (eg Firefox or Opera if you are using IE).

  • While open socket,why JDK1.4.2 open additional port byt JDK 1.4.1 do not?

    Dear All:
    I am programming swing client project
    I found an interesting difference betwen JDK1.4.1 & JDK1.4.2
    While open socket to server ,jdk1.4.2 stub in server will open random port to the "request" client
    (see below)
    ==============================
    client ----------port:7001---------->ejb server JDK1.4.2
    <--------port : ? (random)--
    =================================
    but in jdk1.4.1 ,only
    ====================================
    client ----------port:7001---------->ejb server JDK1.4.1
    ======================================
    This phenomenon ,confuesed me these days.Have any parameter to fix the socket connection rule for the latter JDK version?
    Best Regards
    john

    There's not enough info there: there should be a local and a remote port number per connection; but it's not possible the way you describe it. It's probably another connection from the client to the server, maybe for DGC?

  • Open socket timeout error

    Sometime I can write to the local shared variable through data socket. But sometime cannot. Even though, I still can read/write through shared variable monitor.
    The error is in the open socket, said connect to peer timeout. I set timeout to 10s or left blank both not work.
    I am using 8.2.1 on vista. The computer has 2 lan ports.
    I met almost same case long time ago. I solved it by diable NETBIOS and one of the lan port.
    This time, I disabled netbios already. But in vista, seems not able to disable the other lan port.
    Any suggestion?

    hi turbot,
    I had same problem of timeout error.just check if system Firewall is on or off if it is on then make it off and then run the program.i don't know how much this will help you,it helped me.
    GAK
    Gaurav k
    CLD Certified !!!!!
    Do not forget to Mark solution and to give Kudo if problem is solved.

Maybe you are looking for

  • More than one apple tv in same home

    can i have two apple tv's in same house using same wi-fi?

  • EL for a specific page in a Navigation Model with a Pages Query

    In WebCenter Portal: Spaces we are using the Default Navigation Model, which includes a Pages Query which shows all the accessible pages for the current space. How do I create an EL Expresion that allows me to perform navigation from within a page? <

  • A RMAN RECOVERY SCENARIO

    hellow, I am working on a rman recovery scenario as follows: ---I have a full backup on sunday ---My database in archivelog mode ---now I lost one of table on Monday 7:20PM ---then I lost another table on same day at 7:40PM ---I came to know about th

  • Moving an existing BTBUSINESSBROADBAND account to ...

    Hi everyone, My first time here so bear with me. I want to move my BTbusiness broadband account based at my home into a personal account the account is paid for by my employer and will give permission to do this. I realise I will probably have to app

  • Nexus 1000v - port-channel "refresh"

    Hi All, My question is, does anyone have any information on this 1000v command: Nexus-1000v(config)# port-channel internal device-id table refresh I am looking for a way for the port-channel interface to be automatically removed from the 1000v once t