Just starting out problems!

Hi,
i've just started working with RMI, i created a very simple server and client, ran them successfully both on one machine. When i tried on 2 machines on a home network (2 pcs running XP) the client always has a timeout exception when trying to connect to the server. Following is my code for both:
import java.rmi.*;
public interface RMIServer extends Remote
    public void setResult(String s1, String s2) throws RemoteException;
import java.rmi.*;
import java.rmi.server.*;
public class RMIServerImpl extends UnicastRemoteObject implements RMIServer
    public void setResult(String s1, String s2)
        System.out.println(s1 + " " + s2);
    public RMIServerImpl() throws RemoteException
    public static void main(String[] args) throws Exception
        RMIServerImpl server = new RMIServerImpl();
        String serverName = "//localhost/RMIServer";
        Naming.rebind(serverName, server);
        System.out.println("RMIServer running...");
import java.rmi.*;
public class RMIClient
    public static void main(String[] args) throws Exception
        RMIServer server = (RMIServer) Naming.lookup("//localhost/RMIServer");
        server.setResult("Hello", "World");
}instead of localhost i pur the ip of the server when on 2 machines. Is my code wrong or is it something to do with my network and not Java.
Thank you.

Hello,
You mean windows HOSTS file at windows\system32\drivers\etc\ ?
i did more testing, its works on 2 machines but only with one as server, the other client. If you reverse their roles, making the client a server and the server a client, then the client can't connect to the server.
Is some configuration problem of the LAN causing this? I pinged both PC's addresses and they both seem to see each other. Is there some test i could do to determine the cause.
Thank you.

Similar Messages

  • Just starting out, basic problem here.

    Hi, I'm just starting out using DW to create a very basic website. I'm following the tutorial found here: http://www.adobe.com/devnet/dreamweaver/articles/first_website_pt1.html
    I've created the container div and placed several divs inside of it. So far I've added a background image into one div and am placing text and images on top of the background.
    I'm trying to place the business logo image in the top left corner 50px down and 90px to the right (from the top left corner). My CSS for the logo looks like this:
    #Main_Logo {
    position: absolute;
    top: 50px;
    left: 90px;
    In the design view it looks exactly where it should be, but when I preview the page in Safari the logo is aligned with the very top of the background image and is very far left. Here is an image of what the design view looks like:
    [IMG]http://i.imgur.com/WCO8H.png[/IMG]
    direct link: http://imgur.com/WCO8H
    And here is the preview of the page in Safari:
    [IMG]http://i.imgur.com/8mhDP.png[/IMG]
    direct link: http://i.imgur.com/8mhDP.png
    Can anyone offer any advice? Why is this happening?
    Thanks.

    Thanks for the advice Nancy. My plan was to make the logo into a link back the the home page (as you've correctly assumed). So you're saying I won't be able to do that if it is placed inside the background image div? I thought that in order to position divs inside (or on top) of existing divs (like the background image) you needed to place the div you want to appear on top inside of the background div.
    Also, here is my code so far:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Step Up</title>
    <link href="Styles/Step_Up.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    #Background {
    background-image: url(Images/Background.png);
    background-repeat: no-repeat;
    position: relative;
    height: 1080px;
    width: 1050px;
    #Main_Logo img {
    .style11 {font-family: Arial, Helvetica, sans-serif; color: #444444; font-size: 19px; }
    .style12 {font-family: Arial, Helvetica, sans-serif; color: #FFFFFF; font-size: 19px; }
    .style13 {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    color: #FFFFFF;
    font-size: 25px;
    -->
    </style>
    </head>
    <body>
    <div id="Container">
      <div id="Background">
      <div id="Main_Logo"><img src="Images/Main_Logo.png" alt="Step Up" /></div>
        <div id="Left_Column">
        <p class="style13">SECRET TO SUCCESS</p>
        <p class="style11">The secret isn't a radical drug, and it's not membership to an exclusive gym with beefy trainers. Proper wellness boils down to you.</p>
        <p class="style11">The goal of Step Up Fitness and Nutrition Services is two-fold:</p>
        <p class="style12">Empower clients to build an individualized, effective fitness program in the comfort of their own home and neighborhood.</p>
        <p class="style12">Teach and counsel clients on incorporating healthy selections into their everyday lives.</p>
      </div>
      <div id="Right_Column">
        <p class="style13">ABOUT</p>
        <p class="style11">Rachel is a Registered Dietitician and can offer expert nutritional advice and counseling on the topics of weight management (loss/gain), diabetes control, cardiovascular disease prevention and medical nutrition therapy, sports nutrition, and more!</p>
        <p class="style11">Her training style is unique and she is able to not only adapt to individual spaces and limited equipment, but she can also exceed the expectations of a wide variety of fitness levels. Whether you are an experienced athlete, an off-and-on fitness enthusiast, or a beginner, Rachel will tailor the exercise program to fit your schedule and your goals!</p>
      </div>
      </div>
      <div id="Nav_Box">Content for  id "Nav_Box" Goes Here</div>
    </div>
    </body>
    </html>
    CSS:
    @charset "UTF-8";
    /* CSS Document */
    #Container {
        width: 1050px;
        background: #FFF;
        margin: 0 auto;
        padding-left: 10px;
        padding-right: 10px;
        overflow: hidden;
    #Left_Column, #Right_Column {
    width: 410px;
    float: left;
    position: relative;
    top: 450px;
    #Left_Column {
    margin-right: 50px;
    margin-left: 90px;
    #Main_Logo {
    position: relative;
    top: 50px;
    left: 90px;

  • I'm new to mac. Just started out. Have OS 10.8.3. I have an HP 1315 printer.  It prints and copies, wont scan.  I see old threads on this, nothing recent.  ?can i make this work, or do i need a new printer??

    I'm new to mac. Just started out. Have OS 10.8.3. I have an HP 1315 printer.  It prints and copies, wont scan.  I see old threads on this, nothing recent.  ?can i make this work, or do i need a new printer??

    Hi Newbie111
    I see that you are unable to scan with the Photosmart 1315.
    What driver are you using?
    The driver listed in the url below is a basic print driver that will allow you to print only.
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=ps242muc&c c=us&dlc=en&lc=en&os=1006&product=61956&sw_lang=
    You can try using the apple drivers in the url below.
    http://support.apple.com/kb/DL907
    If you have any further issues please let me know.

  • Upon start up of my laptop I get a APS Daemon.exe system error - MSVCR80.dll is missing.  This just started out of the blue.  At one point it told me to reinstall ITunes.  Is that truly necessary?

    Upon start up of my laptop I get a APS Daemon.exe system error - MSVCR80.dll is missing.  This just started out of the blue.  At one point it told me to reinstall ITunes.  Is that truly necessary?

    I have the same issue after installing the new update and reinstalling iTunes doesn't fix the issue.
    I found disabling Apple push (APSDaemon.exe) from the start up will stop the error from appearing, however this will disable wireless syncing. If you don't use it than it shouldn't be an issue.
    I'm using a PC so you can disable it using the msconfig command and turning it off in the Startup tab. I don't know if Mac users are experiencing the same issue. Hopefully Apple will fix it in their next update.

  • I am just starting out in graphic design and I wanted to know how to get more involved with either adobe and or graphic design? I am really very interested in working with adobe and graphic design more and becoming more involved with both!!

    I am just starting out in graphic design and I wanted to know how to get more involved with either adobe and or graphic design? I am really very interested in working with adobe and graphic design more and becoming more involved with both!!

    I have now recently downloaded 10.0.2 which is confusing in itself, as, as far as I can ascertain that is actually version 11, but I'm not even sure about that.
    Version 10.0.2 is the newest version and the successor to GarageBand '11 (version 6.0.5).
    The '11 is referring to the iLife '11 suit of multimedia application - the older GarageBand was a part of this bundle.
    Have a look at Edgar's graphical enhanced manuals, the explain very detailed how things work and why. You can buy them as iBooks from the iBook store or directly from the page:
    http://DingDingMusic.com/Manuals/

  • Need an iphone for dev work - just starting out

    Hello
    I'm just starting out with iphone development. I already have another mobile service that I use for personal use so don't have the need for iphone personally. I just want to buy it for development work and will be using my WiFi network as the internet bone.
    I dont want to get into a contract with at&t for 2 yrs. Does that mean I will need to buy an iphone for the regular price? Or can I get one cheaper than usual just for dev work?
    All responses appreciated.

    thanks again Tamara.
    I googled a bit and found this post-
    http://alexking.org/blog/2007/07/02/iphone-without-service
    I wonder if this is indeed true.
    In any case, I'm strongly leaning towards the ipod touch. Does not having a GPS mean, location based apps won't work? So if I want to download an app that relies on my current location for e.g. to tell me whether my friends are closeby, such an app won't work? Hmm...in that case GPS seems to be necessary.

  • Hi everyone. I have just started having problems with iCal.  Events that I thought I had deleted are appearing on Print Preview and on print outs. Likewise Events which I have not deleted have disappeared from my calenders, but appear in print preview.

    Hi everybody. I have recently started having problems with iCal (Version 2.05 (1069). Events that I thought I had deleted appear in Print Preview and Print Outs. Likewise Events that I have not deleted have disappeared from my calender (Month View) but appear in Print Preview and Print Outs. I see that there have been similar problems with Events disappearing especially in Month View. I wondered how print preview seemrd to be picking everything up deleted or not, and what the solution may be?. First time of Posting. I hope I haven't embarassed myself.

    Hmmmm.
    At the very least there must be a "com.apple.ical.plist"...iCal would not function without it.
    Click on the Finder icon in the dock
    Click on Go > Home
    Double-click Library
    Double-click Preferences
    Look for a file called "com.apple.ical.plist" and remove it to the trash.

  • Just Starting out with java packages

    Hello,
    I'm a beginner and I'm starting out with java packages.
    I wrote two simple .java files, one test program and one containing a simple class.
    Both files are compiling without errors but When I run the program I get an error NoClassDeffoundError.
    I use the import <package> statement And I think I'm using the CLASSPATH variable correctly.
    SET CLASSPATH=d:\nopol
    path for the .java containing the test class is:
    d:\nopol\utilities \myapp.
    In the test file I use "import utilities.myapp.*.
    I would be very happy if anyone could help me
    Thanks beforehand
    Nopol.

    The test file should be in d:\nopol, if it's not a part of your package utilities.myapp. Everything should be compiled from d:\nopol, the test class with "javac ClassName.java" and the class in the package with "javac utilities/myapp/ClassName.java".
    Your classpath seems fine for now, though. But yes, do add the period there, otherwise you could run into problems later.

  • Just started having problem connecting ipod to windows xp

    I have a ipod video 5th gen. Bought it about a month ago and has worked fine. I was able to charge and sync with itunes with no prob. Just recently when i connect the ipod with my usb cable, it comes up with an error saying "the usb device attached to this computer has malfunctioned, and windows dosent reconingze it". Now I cant can't sync with itunes, charge, nor does it show up in my computer. No changes have been made to my PC except for regular windows updates. Anyone have an answer or work around?

    You may find a solution here.
    USB drivers are not installed properly or are out of date.
    iTunes 7 doesn't recognize the iPod.
    Your Windows PC doesn't recognize iPod</font color</a>.
    iPod appears in Windows Explorer but does not appear in iTunes.
    iPod does not appear in iTunes.
    Fast user switching in Windows XP is not supported.
    Windows confuses iPod with network drive

  • Just starting out in Illustrator, assistance needed!

    Hi everyone!
    Okay, I'm a long time Photoshop user, first time Illustrator user.
    Story: My Mum and I are tag-teaming in designing a logo for a company which sells organic beauty products. Mum is a graphic designer from way back...the kind who made their living long before computers were ever used for the job. She has designed a great logo, while I'm doing the computer side of things (i.e. everything else).
    So naturally, I have some questions, and I'm hoping there's someone out there who could guide me in this.
    I have discovered that commercial printers want work in Vector files, which is what has brought me to Illustrator. And that's fine, I'm fumbling my way through layouts relatively okay, because I've been using PS for years. But, in these early stages, a few issues have cropped up.
    1. My label designs will be printed on a clear label. How do I make the background transparent?
    2. How do I scan my Mum's hand drawn logo to make it into a Vector file?
    3. The labels will be mainly monochromatic (black/grey). Do I need to seperate colours for commercial printing? How do I do this?
    4. What file format should I save my work in for printing?
    I've been hearing a lot about LiveTrace, but the problem is - I'm using Illustrator 10! I know, it's old, but it does the job. So any advice that pertains specifically to Illustrator 10 would be great (dust off your memories!)
    Please speak in layman's terms with me. Although I'm familiar with PS...the concept of Illustrator and Vector files is very very new to me, and I won't understand complicated actions/terms.
    Thank you to anyone who can help me on this, I'll be checking in often.
    Cryssie

    1. My label designs will be printed on a clear label. How do I make the background transparent?
    You don't -- there is no background! (Same as in PS with a new file consisting of one layer.)
    2. How do I scan my Mum's hand drawn logo to make it into a Vector file?
    Use a scanner
    But seriously -- Illy doesn't provide any bitmap stuff. Scan & clean up the image with Photoshop, only then import it into Illy. Put on a layer of its own. Make it slightly transparent. Lock that layer. Create new layer on top, draw lines over them. Done.
    3. The labels will be mainly monochromatic (black/grey). Do I need to seperate colours for commercial printing? How do I do this?
    What does "mainly" mean? If it's mainly black/grey but still plus some color, that's still color. And even a little bit of color is more expensive than black & white (with, indeed, optional gray).
    As for separating the colors, you don't need to. You might want to look into Pantone (spot) color vs. Full color. They both have their advantages, but it's a bad idea to use both.
    4. What file format should I save my work in for printing?
    Illustrator ought to do fine. In case of doubt, also save as a PDF.

  • Im just starting out, what do i need, help please x

    hi there everyone, im incredibly new to photoshop, so much so i dont actually evan have a copy of photoshop or any other design program to tell the truth, im a artist and i want to try and get into design based work on my pc, i have had a dabble with my friends photoshop on his computer and really enjoyed it, i evan had a go with a tablet he had,
    basicaly i want to know what program is best going to suit me and would i need to buy a complete package or would one program be enough, i dont really know how it all works and to be honest i can get by with computers in general but im not exactly a whizz kid, what i can say is that my computers running on windows vista processor is intel celeron e1200, 1.60ghz, 1gb ram and its a 32 bit operating system and yes i did just copy and paste all that from my system info window
    am i going to be able to run photoshop well enough to do the kind of stuff i want? do i need to invest in a better setup? i just thought this would be the easiest way to get a straight answer
    cheers
    hopeyboy

    Here the 2-year college allows people to come in & register for just ONE course. Total cost for Intro to Photoshop AND the software was less than the non-educational software. The ED. package is the same as the full commercial at a lower cost.
    Bill
    hello again, well basically i work with multimedia images ie, images out of magazines newspapers stuff i see on the tv etc etc and then i make paintings about it all, cutting and pasting and multilayering, if anyone wants to have a quick look http://oryeah.blogspot.comis my would be website, but im also interested in character based design work and poster design so really thats what im aiming to get out of what ever program is better suited to me, creating posters and prints, a course at college or uni would be ideal but i can barely afford the software let alone another education ( ive already studied fine art for 3 years and it was very expensive )
    thanks for your comments though but if anyone else can make suggestions id appreciate it
    >

  • Just started having problems importing photos to LR?!

    For no apparent reason, I developed problems importing images onto LR - everything was working just fine then..
    Get a message:
    "Some operations were not performed.
    Could not copy a file to requested location"
    It itemised every image I am trying to import
    I thought I would upgrade to LR 4 and the problem would go away - it didn't!!
    Ive seen posts about permissions...???
    Can you help?
    Thanks
    Baz

    Hi Keith - good question - might explain why it has suddenly happened..
    Will get back to you - Thanks Keith.
    Baz

  • Basic questions, just starting out

    We're looking to install OBIEE 11.1.1.7, ODI, and OBIA (the Student Information Analaytics/SIA portion primarily).  I've read a lot of documentation but still having trouble piecing everything together and hoping someone can help out.
    In terms of initial setup, we currently set aside two Oracle Linux boxes (OL6) for this purpose.  On one we installed Oracle DB 11gR2, but from here I'm a little lost.
    Should the ODI server components also be installed on the DB server, with OBIEE installed on the secondary 'app' server?
    If so, will both the DB/ODI server need WL as well as the app/OBIEE server?
    For developers to work, do they just download and install the ODI Client install and connect to the ODI server components on the DB/ODI server?
    Edit - I've also been told by another campus implementing this same project that they ended up installing ODI and OBIEE on a windows server instead of linux because the ODI components are so integrated with the ODI studio that they were unable to succeed with the Linux installation - I know that's vague and probably unhelpful, but are there any reasons why I should not install on linux?
    Thanks

    Should the ODI server components also be installed on the DB server, with OBIEE installed on the secondary 'app' server?
    If so, will both the DB/ODI server need WL as well as the app/OBIEE server?
    Weblogic is required for ODI for J2EE Agent and to run ODI Console you can have both ODI and OBIEE on same machine/web logic application server.
    For developers to work, do they just download and install the ODI Client install and connect to the ODI server components on the DB/ODI server?
    Download the ODI software and install only ODI Studio then connect to Work/Master Repository.
    I've also been told by another campus implementing this same project that they ended up installing ODI and OBIEE on a windows server instead of linux because the ODI components are so integrated with the ODI studio that they were unable to succeed with the Linux installation
    ODI will work on linux machine without any issues as I said above install studio on windows machine and access the work repository to build mappings/run loads
    Thanks,
    Saichand

  • Just starting out: can I put my script on a test server and move it later?

    I'm not a programmer (though I will need to be for our iTunesU setup), so I hope my question will be phrased correctly. We are planning on putting our script on the same server that will run our Moodle site (currently we are running Moodle on a test server). We plan on installing perl so we can run a perl script, as there does not appear to be a php script available.
    If we install the script on our test server, will there be a problem when we move the script to our permanent server? Should we wait until our permanent server is up and running?
    Thanks, in advance, for your help.

    I can't say with certainty that moving your script from one machine to another will "just work" - there are lots of factors that could cause a script not to work when you move it (system configuration, pre-installed software, etc.). However, the practice of moving a script from a development location to a production server is quite common with iTunes U sites. The key piece of information in your script that keeps the relationship secure between an authorizing server and iTunes U is the shared secret. The other variables are also important as well as having the machine be synchronized to network time.

  • What is the best way to consolidate Aperture and iPhoto libraries onto an external drive? I am just starting out and not used to Aperture filing system.

    I would like to use the drive as storage/aperture backup rather than use it to back up my whole Macbook.  Would like to keep the majority of the photo files on the ext. drive and be able to add files there directly.  BUT, when workng in aperture would like to be able to select some from the ext. drive and work them on the laptop directly without having to have the ext drive attached. 
    So do i, have the aperture library path mapped to the ext drive, and then import the iphoto library? and then how do i add additional from the camera?  Or, do i move everything together (imported iphotos and new from camera) in Aperture on the Macbook first, and then transfer that library to the ext drive? 
    For the life of me I can't figure out how to do this in a way that seems logical.  Vaults?  Masters on ext drive, versions on the macbook? Consolidating libraries? The endless possible answers are baffling me.
    Thanks for any help!

    Kirby Krieger wrote:
    Hi Shane.  Not much in the way of thoughts - - but fwiw:
    How is the drive attached?
    Can you open large files on the drive with other programs?
    Are you running any drive compression or acceleration programs (some drives arrive with these installed)?
    Can you reformat the drive and try again?
    Hi Kirby,
    I attached the UltraMax Plus with a USB cable. The UltraMax powers the cable so power is not an issue. I can open other files. Also, there is 500GB of files on the drive so I cannot re-format it. Although, I noted I could import the entire Aperture Library. However, I do not want to create a duplicate on my machine because that would be defeating the purpose of the external drive.
    Thanks,
    Shane

Maybe you are looking for