RMI server picking up an old ip address

I am seeing a strange problem:

I have a linux machine, installed JDK1.6 on that machine, and some business went on, and some days later had to change the IP address of the machine. and now after some months... i am trying to get some spring application to work... and it seems the RMI Server is starting at my old ip address...

    21:12:45,412 DEBUG [org.springframework.remoting.rmi.RmiServiceExporter] RMI registry access threw exception
java.rmi.ConnectIOException: Exception creating connection to:; nested exception is:
        java.net.SocketException: Network is unreachable
        at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:614)
        at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
        at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
        at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
        at sun.rmi.registry.RegistryImpl_Stub.list(Unknown Source)
        at org.springframework.remoting.rmi.RmiServiceExporter.testRegistry(RmiServiceExporter.java:411)
        at org.springframework.remoting.rmi.RmiServiceExporter.getRegistry(RmiServiceExporter.java:391)

can somone explain the process or shed some light on what is going on here, or might be going on here.

Asked by: Brooke602 | Posted: 28-01-2022

Answer 1

ok, thanks for the response... i really appreciate that...but i was probably too drunk to notice the entries in my /etc/hosts file were binding my hostname to the old IP address...so as soon as i removed that...things worked like a charm.

Answered by: Marcus475 | Posted: 01-03-2022

Answer 2

Have you checked your spring config to ensure you don't have an old reference somewhere?

Answered by: Jared535 | Posted: 01-03-2022

Similar questions

java - How to update the size of the layout with Jung when using the picking mode?

I wondering how to change the size of the layout associated to a VisualizationViewer with jung? I explain the purpose: actually, when using a SatelliteVisualizationViewer, we can pick a node and move it in an area that is not covered by the SatelliteVisualisationViewer. We can see this in the SatelliteViewDemo class in the JUNG distribution. Launch the demo, pick a node and move it outside the layout size. ...

java - clover not picking up certain objects

I noticed clover is not picking up results for 1 particular class that I have. Its a domain object that has 3 overloaded constructors. It shows up in the clover reports as having 0% coverage. I even wrote a dummy test case to test all the constructors, accessor methods etc and it stilled showed up as having 0% coverage Other objects in the same package are picked up perfectly ok by clover is there a...

ajax - Picking a control layer for JQuery Mobile to Java back end mobile web app

We are green fielding a mobile web app against an existing Java web app --the database of that app, at least. We are only using the database of the original app because the original app is built on a custom ORM solution and Struts 1.1 that is showing its age. So this is going to be a bit of a proof of concept for what can be done with modern tools. We have decided to utilize JQuery mobile on the front end ...

java - javax swing html parser not picking up img tags

This HTML: <td height="79" valign="top" width="70"> <a href="http://e.livinghuntington.com/HS?a=stuff" target="_blank" title="Follow us on Twitter: http://twitter.com/#!/HuntingtonLive"> link link link <img alt="Follow us on Twitter: http://twitter.com/#!/HuntingtonLive" border="0" height="79" src="http://webe.emv3.com/livinghuntington/images/tt.png" style="display:block;" width="...

java - SWT table with combo and text field: can't edit text field after picking from combo

I created a monster, it was supposed to be a more elegant solution to the problem but it escaped from my control. The problem is as follows: I have a dialog window with a table in it. When a dialog shows up for the first time table contains uneditable content of a SQL query. Content is populated (for example) as item.setText(j, d2e.get(i)[j]); Table has a double click list...

line - Picking up from where I left off when reading a file in Java

I am trying to read info from a file and create objects out of that information. Every 6 or so lines of the file is a different unit, meaning that the first set of lines are relevant to object A, the next set to object B, and so on. I can read from the file and create my object just fine--for the first set. My problem is that I don't know how to get the reader to pick up from the spot it left off at when creating t...

java - 3D picking in LWJGL

I am making a Minecraft style game, with 3D array of blocks divided into chunks. But then i need to check what block player is pointing at to perform world modification. This is what i've come up with so far: private Block getBlockLookedAt(EntityPlayer ep) { double px = ep.getPosition().x; double py = ep.getPosition().y; double pz = ep.getPosition().z; float pPitch = ...

java - Grails not picking patched jar file

I am working on grails 2.0.3 project. On the way I noticed that following dependency of grails 2.0.3: org.grails:grails-datastore-core:1.1.4.RELEASE had a bug. So I patched the jar file and placed it in lib folder of grails. In BuildConfig.groovy excluded grails jar file and gave my own dependency as given below inherits("global") { excludes "grails-dat...

Split a string in Java and picking up a part of it

Say I got a string from a text file like "Yes ABC 123 Yes DEF 456 Yes GHI 789" I use this code to split the string by whitespace. while (inputFile.hasNext()) { String stuff = inputFile.nextLine(); String[] tokens = stuff.split(" "); for (String s : tokens) System.out.println(s); } But I also want to assign Yes to a boolean, ABC to ...

java - Jetty Not Picking Up Port Option

I am trying to run jetty on port 9000, and I have tried the command line mechanism specified obn many sites including this one, but Jetty seems to refuse to pick up the port option $ java -Djetty.port=9000 -jar start.jar etc/jetty.xml 2014-04-04 08:12:53.368:INFO:oejs.Server:main: jetty-9.1.1.v20140108 2014-04-04 08:12:53.379:INFO:oejdp.ScanningAppProvider:main: Deployment monitor [file:/home/david/Jetty/je...

Still can't find your answer? Check out these amazing Java communities for help...

Java Reddit Community | Java Help Reddit Community | Dev.to Java Community | Java Discord | Java Programmers (Facebook) | Java developers (Facebook)