Any one who has read chap15 of Thinking in JAVA,2nd Ed. please take a look.

I'm testing the RMI example in chap15.When I run the PerfectTime class I always get an error message(xuke is my computer's name,and I've already conncetted to the ISP and started the registry server and produced the stub&skeleton classes as the book said):
java.security.AccessControlException: access denied (java.net.SocketPermission xuke resolve)
     at java.security.AccessControlContext.checkPermission(AccessControlContext.java:267)
     at java.security.AccessController.checkPermission(AccessController.java:394)
     at java.lang.SecurityManager.checkPermission(SecurityManager.java:540)
     at java.lang.SecurityManager.checkConnect(SecurityManager.java:1037)
     at java.net.InetAddress.getAllByName0(InetAddress.java:554)
     at java.net.InetAddress.getAllByName0(InetAddress.java:535)
     at java.net.InetAddress.getByName(InetAddress.java:444)
     at java.net.Socket.<init>(Socket.java:95)
     at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:20)
     at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:115)
     at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:494)
     at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
     at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:169)
     at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:313)
     at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
     at java.rmi.Naming.bind(Naming.java:106)
     at PerfectTime.main(PerfectTime.java:31)
Exception in thread "main" Process terminated with exit code 1

Use a policy file, in which you grant acees permissions, when starting your applicaiton:
grant {
permission java.net.SocketPermission "*:1024-65535", "connect,resolve";
permission java.net.SocketPermission "*:80-65535", "connect,accept";
Here you have more details:
http://java.sun.com/docs/books/tutorial/rmi/running.html

Similar Messages

  • How do I delete photo ALBUMS from my iPHONE 4? I sync via icloud and I can not see any folders selected in itunes. I searched the internet and basically there is no one who has the answer to how you delete the iphone photo library and misc albums

    how do I delete photo ALBUMS from my iPHONE 4?
    I sync via icloud and I can not see any folders selected in itunes.
    I searched the internet and basically there is no one who has the answer (so far)
    to how you delete the iphone photo library and misc albums
    I have also had every iphone and I am not stupid.
    charles altman

    Replying to my own post - heh. I downloaded iExplorer (http://www.macroplant.com/iexplorer/) which allowed me access to the files on the phone and there was the phantom movie in the DCIM folder. Deleted it, and all is well - although I still have 0.65gb of Other in iTunes.....

  • I have a CS3 Creativ Suite. - I have uninstalled it fram XP the corret way. Now i have installed Windows 7 and try to reinstall the creative suite. It accept the first CD an the serial number, but when i get to the second CD it stop. Any one who can help?

    I have a CS3 Creativ Suite. - I have uninstalled it fram XP the corret way. Now i have installed Windows 7 and try to reinstall the creative suite. It accept the first CD an the serial number, but when i get to the second CD it stop. Any one who can help?

    If you have Windows 7 Pro you can try to install CS3 in XP mode.

  • Hei. I updated my iphone 4 to the new IOs 6, seems like I have lost all my contacts... Any one who knows what I can do? Please ;-)

    Hei. I updated my iphone 4 to the new IOs 6, seems like I have lost all my contacts... Any one who knows what I can do? Please ;-)

    Everything is Sorted!
    The release of iTunes 11.0.2 and iOS 6.1.2 for my iPhone 4, seems to have sorted everything. I can now sync music, films and photos between my MacBook and my phone.
    I was dubious about blindly doing the updates but decided they couldn't really mess up any further functionality so I went for it and it's sorted now.
    Look in to, and take the gamble, it's up to you.

  • HT201272 wait just to be sure i am not the only one who has the "term and conditions" problem

    wait just to be sure i am not the only one who has the "term and conditions" problem

    Go to Crucial.com and use one of their two methods to determine what upgrades are available for your Mac:
    I would purchase the modules from Crucial as they are very reliable and wiill work with you if you have problems.
    OT

  • How to disable via Group Policy - "Any user who has a password doesn't need to enter it when waking this PC"

    The setting can be found in the following location:
    From the “Charm” bar, Settings>Change PC Settings>Users>Sign-in Options> click the “Change” button next to “Any user who has a password must enter it when waking this PC”.
    I am looking to disable this option via Group Policy on our domain, but am unable to find a default policy related to this setting.  I am searching Group Policy on a Server 2012 machine, and in local Group Policy in Windows 8, but have found nothing. 
    Hoping I'm just missing the location of this and someone can point me to the right place.
    Regards,
    -BN

    There is no specific policy for this item. Please set “Require a password on wakeup” policy instead.
    Niki Han
    TechNet Community Support
    I'm using Windows Server 2012 R2, and I can't find the above quoted policy, and don't know where to anymore where to look. I searched for "Require a password when the computer wakes up", but it took me to the "Define Power Buttons and Turn On
    Password Protection" page of System Settings, but there's NOTHING there except the "When I press the power button".  I really want to stop having to enter a password every time I wake up the monitor screen.
    Capt. Dinosaur

  • My new 3 month old imac 27 with 10.6.8 snow is giving a **** of noise from the fan. suddently starting after today starting up. and the volume buttoms and screen lights up and down not working any more.. any one who can help here???

    my new 3 month old imac 27 with 10.6.8 snow is giving a **** of noise from the fan. suddently starting after today starting up. and the volume buttoms and screen lights up and down not working any more.. any one who can help here???

    Try an SMC Reset. (System Management Controller)
    Shutdown>unplug from power for ten minutes>press and hold in the power button for ten seconds>startup again.
    Also try a PRAM Reset. (Parameter RAM)
    Shutdown. At the bootup chime, hold down CMD-Option-P-R together, wait for two more chimes, total three, then let go of all keys to finish booting,
    If this doesn't do it, run the Hardware Test in Extended
    http://support.apple.com/kb/ht1509

  • Could anyone of you please who has a clean install of Windows 8.1 on the SSD drive look at some settings of certain services (below)?

    Hi everyone,
    could anyone of you please
    who has a clean install of Windows
    8.1 on the SSD drive look at some settings
    of certain services (below)?
    Thank you.
    Prefetch and Superfetch. In registry located on way
    HKEY_LOCAL_MACHINE\SYSTEM \CurrentControlSet\ Control\ SessionManager \MemoryManagement \PrefetchParameters.
    I am interested in EnablePrefetcher and
    EnableSuperfetch REG_DWORD value.
    Just a number in parentheses.
    ReadyBoot. In registry located on way HKEY_LOCAL_MACHINE\SYSTEM \CurrentControlSet\Control \WMI\Autologger\ReadyBoot.
    I am interested REG_DWORD value of
    Start. Just a number in parentheses.
    Run dfrgui command. Go to Change settings and have a look if SSD on which is the system installed is included in regular optimalization schedule.
    Registry can be accessed running regedit command.

    Hi,
    Prefetch and Superfetch means that most commonly used files are stored to disk to be more quickly accessed later.
    For Prefetch:
    Disable Caching: 0
    Cache Applications Only: 1
    Cache Boot Files Only: 2
    Cache Everything (default): 3
    For SuperFetch:Disable Caching: 0
    Cache Boot Processed Only: 1
    Cache Applications Only: 2
    Cache Everything (default): 3
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\WMI\Autologger\ReadyBoot\Start value means:
    disable: 0
    enable: 1
    For more information about clean installation of Windows 8.1 on SSD, I suggest you read below article:
    Windows 8.1 SSD Settings, Etc.
    http://www.tweakhound.com/2013/11/02/windows-8-1-ssd-settings-etc/
    Please Note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Karen Hu
    TechNet Community Support

  • Hi every one can any one help i have a problem in importing java dump for

    hi every one can any one help i have a problem in importing java dump for solman 4.0 mssql 2005 sr3

    Hi wahed,
    Please elobrate question not clear.
    Regards,
    Shahed iqbal

  • I AM THE ONLY ONE WHO HAS TO CONFIGURE BIOS FOR SLI

    Right out of the box, this motherboard WILL NOT RUN two 7800gtxs in SLI. I had to go into bios and change the NB to SB frequency and the PCIe bandwith (8>8) to (16>16) etc.
    Has no one else have to do this? The same thing happens on the ASUS A8N32 SLi deluxe, after a BIOS update it changes the SLi config.

    Quote from: mattyboy on 08-March-06, 01:23:28
    WELL THEN SORRY ROGER< DIDNT MEAN TO HURT YOUR EARS. I dont think it matters if I put the title in caps, and dont lecture me on forum manners.
    My sig. didnt show up, the K8N Diamond plus SLi.
    Buahhahaha the number of post is not indicitive of the quality of content.
    For reference Rogerp is a long standing member who has just returned. His post count dwarfs yours.
    yes you have to reset the bios, and change it all manually.  that's life, that's how it is.
    updating the bios counts as resetting it in my experiance.
    as for your sig.... I suspect operator error.

  • Is there any one who knows how to apply machine learning algorithms to the spectrum data collected using ni usrp for ism band to use spectrum efficiently by link adaptation

    Hi,
    may i know any one working in cognitive radio research and applying machine learning techniques using the spectrum data collected from NI usrp kits

    Can't edit my message anymore, so for the tldr crowd (too long didn't read), here is a shorter version:
    The good:
    E4200 worked fine for about 15 hours with great throughput and link quality (with one brief disconnect in the middle - online gaming software shows brief disconnects that otherwise go totally unnoticed).
    The bad:
    Wireless on the E4200 stopped broadcasting entirely (to a Windows 7 laptop with a 802.11n 2.4 GHZ USB adapter).
    I had switched between two adapters that use the same chipset, same driver and in fact show up as a single device in device manager) without rebooting the router but it worked (fine) for an hour after I swapped the adapters.
    Right before I rebooted it, I checked and the E4200 was not hot to the touch and wired internet was still working after the wireless radio stopped working.
    A reboot of the router cured it.
    The open question as to the root cause:
    Now I want to know whether this wireless radio ceasing to broadcast (requires a reboot of the E4200) will happen daily?
    I.e. I want to know whether it it really is overheating (then again why would only some have that problem needing to reboot daily while others have gone weeks with the E4200 without a single reboot being needed and without any problems occurring) or whether it had to do with changing the adapters back and forth without rebooting the router. Keep in mind that the router worked fine for an hour or so after I stopped swapping the adapters.
    Extra question:
    Will getting a Cisco AE1000 USB adapter perhaps help? (I know this is a loaded question and their is no easy / sure answer, but even a "maybe" or reasons why it might help at this point would be better than nothing.
    Any similar experiences (with the router needing to be rebooted to get wireless radio back on) would be appreciated as it may help myself and others experiencing these types of issues.

  • Any one who is doing FICO Certification??

    Hello Everyone,
    If any one is preparing for below Certification, let me know.
    SAP Certified Application Associate - Financial Accounting with SAP ERP 6.0 EHP4
    We can discuss queries related to that.
    Thanks,
    Pinky
    Moderator: Please, read and respect SDN rules

    See http://blogs.sun.com/roller/page/marcoscorner?entry=creator_2_portlet_in_jboss
    That should help you;-)
    Thanks,
    -- Marco

  • HT204380 Through face time can i 3G video call to any one who does not use iphone

    hi
    im a Apple fane.i love iphone very much..i want to buy iphone 5 so i need some information..use face time can i 3g video call any one.
    Thnks
    Faruk

    No.  FaceTime is used exclusively between Apple devices.  That is all it can do.

  • My Ipad has been stolen...I've purchase a new one and when trying to restore a previous back up, the system showed me a different Apple ID. Can it be the ID of the one who has my Ipad ?

    My Ipad has been stolen at home.
    I've purchase a new one and when trying to restore a backup from I cloud the Ipad showed me a different Apple ID than mine and refused my Apple ID.
    Can it be this ID (which is an email adress) is the email of the one having my stolen IPAD ?
    THANKS
    Olivier

    The appleid its showing you is associated with one of the apps / songs or another purchase that was on the device the last time it was backed up which it needs to download the app / purchase again. It won't be from the person who has your ipad now unless they downloaded it and then your device was backed up afterwords, so only if the backup date was listed as AFTER your device was lost / stolen.
    Thanks

  • Question if i am the only one who has an hp15 with fan issues

    don't mean to be rude but I would like to know if I am the only person who has issue with the fan not working at all
    and also  having wifi issues  on hp15
    i would like to know if this is a  issue  for most  hp15 owners  or  is mine just  a lemon 

    Hi @ms44 ,
    Thank you for your query.
    I grasp that your fan is not working and you are having an issue with your wireless.
    Here are links that should be of assistance with these issues.
    HP PCs - Troubleshooting Wireless Network and Internet (Windows 8)
    Title: HP Desktops and Notebook PCs - Troubleshooting an Overheating and Auto Shutdown Issue.
    If  the issue should still remain please contact HP support for assistance.
    Please call our technical support at 800 474 6836. If you live outside the US/Canada Region, please click the link below to get a support number for your region.
    World Wide Phone Support
    Good Luck!
    Sparkles1
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom right to say “Thanks” for helping!

Maybe you are looking for

  • Charging iPod nano (2nd gen) with iPod mini adaptor

    Hey I just bought my iPod nano 2nd gen, and I realized that there is no wall charger for it. Therefore I am wondering, if I can use the wallcharger for my old iPod mini? I that cannot be done, I would like some alternatives, since I would like to bri

  • How to change email in adobe creative cloud and adobe account

    i have two email that one of that no longer use . to download a trial must download a adobe creative cloud right ? but i cant sign in because of i forget my old email password . in my adobe account i put a different email . so please help me

  • Steps for configuring AXIS framework in SOAP adapter

    hi, can anybody tell me step by step procedure on how to configure the AXIS framework in SOAP adapter Also can anybody suggest me an appropriate scenario where AXIS framework can be used regards, loveena

  • NAC Agent - Loop in Remediation WSUS

    Hello, I´m implementing WSUS Posture in my ISE environment. When NAC Agent detect a new Windows Update, the Remediation Action is Automatic. I configured Show UI the Wizard Interface and this is working well.  But, after the windows update instalatio

  • 3.1.4 reverse mapping tool issue

    (Sorry for the duplicate posting...I meant to start a new thread with this but accidentally posted it as a reply to a 6-month old thread) Hello, I was running Kodo 3.0.2 when Abe and I had the exchange reproduced below back in January to deal with Or