Hang of RMI call when LAN connection removed

I have a client server application with comms using RMI across a TCP/IP LAN. We are in test at the moment and one of the tests is to ensure that when the LAN connection is removed, the client application handles it correctly.
We have discovered that if we pull the LAN whilst an RMI call is in progress, the call never returns, even if we subsequently plug the LAN back in. Why should this be? I would have expected a RemoteException as soon as I pull the LAN out. How come the thread gets deadlocked?
Note that we are running JRE 1.2 on the client (they are soon to be updated but it's 1400 remote, unattended sites so it's an expensive process to update to a recent JRE).
Thanks
Mat

Thanks ejp - couple of dollars coming your way. Be a couple more if you (or anyone else) can help further.
Firstly, how would I set this property in the code?
Secondly, would it be set in the client or the factory (yes we do have one)? If it's in the factory, will that help me from the client side (that's where I need it to work). I looked up the responseTimeout property and it looks like this is more for the server to close incoming connections. The problem I have is on the client side - I need the client (i.e. that is making the RMI call via an exported remote object) to be able to kill off a call that has going too long (for instance because it can't detect the closed TCP connection).
Maybe I've misunderstood the documentation I've found but that's how I read it.
Thanks again!
Mat

Similar Messages

  • Why does Firefox keep hanging, crashing, sulking, dying when internet connection behaves?

    Why does Firefox keep hanging, crashing, sulking, dying when internet connection behaves? Once it renders the page it should forget about the page. Why does it behave when some link is clicked when there is no internet? It should just say internet not available or some crap. Why die, sulk, crash?? I don't get it! 3 series was much much much better!

    I should add, I've re-downloaded Firefox, but that doesn't look like it has helped any. Still get seemingly inexplicable crashes.

  • Disable WLAN when LAN connected - how do I do?

    Hi,
    We are in the process of migrating from HP notebooks to Lenovo. We used to set a BIOS setting called "LAN/WLAN Switch" in the HP notebooks, which makes the WLAN to disable when the LAN cable is plugged in or the pc is docked
    Where do I find a similar setting in Lenovo notebooks?
    We need it because LAN and WLAN is on separate subnets, and Windows XP has trouble working with both nets at the same time. Users compalins about loss of network connectivity if both nets are enabled at the same time.
    There may be a way to configure LAN/WLAN-switching in the Lenovo software, but we prefer to use the build in WLAN functionality in Windows, not using Access Connection or similar third party WLAN software. Our experience shows that uses often have difficulties finding out how to use third party WLAN software when traveling and need to connect to other WLAN's. The build in Windows WLAN software has the advantage that it is always the same, no matter which brand or model of pc they are using.
    Regards,
    Peter
    www.skov.dk

    Check out Wireless AutoSwitch at http://www.wirelessautoswitch.com it does what you are asking.
    What is Wireless AutoSwitch?
    Wireless AutoSwitch runs as a service and will automatically disable your wireless card when you connect to a LAN (hard wire) connection, and re-enable the wireless card when there is no LAN connection. This ensures that you are always using the fastest connection for network traffic. In the office this helps reduce redundant network connections, while still helping your employees seamlessly transfer from wired to wireless network connections.
    For offices that are wireless security conscious this application makes sure the laptop's wireless card is off when the user is wired into your network, preventing bridged connections and preventing someone from the outside hacking your network through a laptop's wireless card.

  • UCCX redirect call when the connect to the agent fail

    Hi all, I want to redirect a call to another number when the first agent (and the only one in my case) don't answer after N seconds.
    I put the redirect on a failed case under "connect to resource" but seems the script skip this failed step because the call is queue again.
    Anyone have a works example that use a failed operation when an agent don't answer?
    Thanks

    If you are looking to queue the call to one specific agent, under "Select Resource" instead of using a Routing Type of "Contact Service Queue", instead use "Resource".  You can the specify the resource you want the call to go to.  Set the timer to X number of seconds and if the call fails, then use the redirect step.
    The way you have it now, you have the Call Redirect step under the "Selected" portion of the "Select Resource" step.  It should go under the "Queued" leg.  By leaving it the way you have it now, the call will only redirect if the call fails during the "Connect" step.  It doesn't mean it will redirect if the agent is not available (that would be the "Queued" leg).

  • My Iphone 5 hang many times. When I connected with itune and restore setting, my phone just start from the activation. But I can't continue the installation. It shows that can't activate right now.

    I had problems with my iphone 5. After hanging many times, I connected with itunes and restored the settings. But it didn't work. And my phone is now starting with "Hello" to newly activate. Again, it could not proceed but saying "cannot activate now".. please help me how to do. Thank you very much.

    you will need to do a hard wipe or remember the password hard wipe can be found on youtube how to. but this will erase all data

  • Mac Not Starting Up When Ethernet Connection Removed

    Hi
    I took my mac away from home and as of yet don't have any type of internet connection. I was hoping to still use it for itunes, photos, etc. until my cabel internet is up and running.
    However, I powered it up without the Ethernet connection and it didn't seem to boot up. I just got the gray screen with one of those cirlces with a line through it (think Ghostbusters) and it didn't seem to boot up.
    I am going to try it again tonight but was wondering if anyone had similar experiences. ??
    Thanks!

    Your Mac appears to have forgotten the location of its boot volume. Restart the Mac while pressing and holding the "Option" key. This should then give you the option of selecting the boot volume.
    After the Mac has started and has opened your account, go to System Preferences > Startup disk from the Apple menu and select your boot volume to reset it as the Startup disk.

  • How to end a call when not in the phone app?

    OS: 10.2.1
    I like to multitask when on a call so after taking a call I might be inside another app or in the hub, basically anywhere except the phone app. 
    My trouble is.. how can I quickly end a call when I'm done?  
    Swiping up to exit the app I'm in, then pressing the button on the lower left to enter the phone app, then pressing the hang up button sometimes takes up to 5 seconds dependong on the speed of the phone at the time.  Those five seconds of silence at the end of a call can be a little awkward. 
    Any faster way to just hang up a call when NOT in the Phone app?

    You should see the phone icon on the bottom left with the call counter on it. Simply touch that to bring the phone app backup quickly and then hang up.
    1. Please thank those who help you by clicking the "Like" button at the bottom of the post that helped you.
    2. If your issue has been solved, please resolve it by marking the post "Solution?" which solved it for you!

  • LAN connection not recognized

    Config :
    -wifi connection => airport (music)
    -wifi conection => internet (disconnected when LAN connected)
    -ethernet connection => internet
    IMac lost connection with internet thru ethernet.
    Don't understand why.
    Don't know how to modify settings so we can have :
    -wifi connection with airport (itunes and stereo)
    -ethernet connection for internet
    It worked in the past and suddenly it stopped
    Thanks for your help
    PS : I think the best would be a re-initialization of the network config

    Thanks for the info but the pb is not solved.
    Apple > System > Network :
    Ethernet = automatic via DHCP (169.254.24.81)
    PB= it gives me an IP address which does not correpond to the IP address range of the DSL box (192.168.1.1)
    The most incredible is :
    I connect a PC to the ethernet cable, it works !!!
    I'm kind of dizzy...

  • Connection timed out when making RMI call

    Hello,
    I am using a combination of Spring Remoting and Scheduling with Quartz Timer. Both are using RMI as a communication stack. The RMI server is located in sydney while the client is located in the US. This incurs large network lag which causes my RMI method calls to timeout. I am able to do a lookup on the RMI object and receive a stub reference to it with no problem but as soon as I try to invoke a remote method on that stub it eventually times out.
    Thinking it was truly a timeout issue I implemented a Custom socket factory for RMI using RMISocketFactory.setSocketFactory(new TimeoutSocketFactory(120000));Here is the custom TimeoutSocketFactory:
    public class TimeoutSocketFactory extends RMISocketFactory {
            private int timeout;
            private static final Logger log = Logger.getLogger(TimeoutSocketFactory.class);
            public TimeoutSocketFactory(int timeout) {
                this.timeout = timeout;
            public Socket createSocket(String host, int port) throws IOException {
                log.debug("Creating timeout socket with value - " + timeout);
                Socket ret = getDefaultSocketFactory().createSocket(host, port);
                ret.setSoTimeout(timeout);
                return ret;
            public ServerSocket createServerSocket(int port) throws IOException {
                ServerSocket ss = getDefaultSocketFactory().createServerSocket(port);
                ss.setSoTimeout(timeout);
                return ss;
    }I implemented the custom socket factory both on the RMI server and on the RMI client. This had no effect on the time outs that occured when trying to make an RMI call to the server even though the sockets were being built by this custom class (have logging in place).
    Is there something else I need to do to increase the timeout period? And how do I know if it's a server or a client issue?
    Thanks,
    Anthony Bargnesi
    [Exception StackTrace]
    java.rmi.ConnectException: Connection refused to host: 172.16.10.97; nested exception is:
         java.net.ConnectException: Connection timed out: connect
         at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:574)
         at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
         at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
         at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:94)
         at org.springframework.remoting.rmi.RmiInvocationWrapper_Stub.invoke(Unknown Source)
         at com.aquent.rmi.test.RMIClient.connectService(RMIClient.java:46)
         at com.aquent.rmi.test.RMIClient.main(RMIClient.java:81)
    Caused by: java.net.ConnectException: Connection timed out: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
         at java.net.Socket.connect(Socket.java:507)
         at java.net.Socket.connect(Socket.java:457)
         at java.net.Socket.<init>(Socket.java:365)
         at java.net.Socket.<init>(Socket.java:178)
         at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
         at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
         at com.aquent.rmi.test.TimeoutFactory.createSocket(TimeoutFactory.java:21)
         at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:569)

    Well this is a connect timeout, not a read timeout, so it has nothing to do with your socket factory, and your socket factory won't help. It's a connectivity issue. Can you ping that host from the client? Can you telnet to port 7?
    In fact no socket factory will help because there is no way of increasing the connect timeout beyond the default: you can only reduce it.

  • When I accept or send a call on FaceTime, it does not connect. It will just hang up the call, how do I fix this?

    when I accept or send a call on FaceTime on my macbook pro, it does not connect. It will just hang up the call, how do I fix this?
    This has been going on since about June. It is annoying that I cannot use FaceTime on my computer. I then switch to using my phone or iPad, which work perfectly fine. It is just specifically my computer. Help Please

    when I accept or send a call on FaceTime on my macbook pro, it does not connect. It will just hang up the call, how do I fix this?
    This has been going on since about June. It is annoying that I cannot use FaceTime on my computer. I then switch to using my phone or iPad, which work perfectly fine. It is just specifically my computer. Help Please

  • My iphone 5 won't make a call when i fail to connect to the internet via 3g

    My iphone 5 won't call when i fail to connect to the internet via 3g.
    At work i dont have wifi i have 3g, if i launch say the sky go app,or the iplayer, sometimes they work and everything is fine...sometimes they wont load as 3g for whatever reason cant get a connection at that particular time........ if i then try and make a call the call will fail. I've experimented 25 + times and this is definately the cause.
    (note: when the 3g connection does work, the phone has absolutely no problem calling people)
    Anyone had this problem?
    Even better has anyone got a solution?
    Thanks,
    Nick.

    Are you sure that the carrier's signal is strong where you are having this problem? Certain building structures and locations have poor cellular signal strength and this often results in the "No Service" indication. Are other users able to get service in the same locations where you have problems?

  • ITunes hangs when I connect my phone

    iTunes 10.2.1.1, iPhone 3GS iOS 4.3, Windows 7 SP1 64-bit.
    Short summary: when I connect my phone to sync, iTunes hangs. If I let it sit for a minute or two it will eventually crash. If I disconnect my phone before this then iTunes starts responding just fine.
    Details:
    I just "flattened" my computer: formatted the drive, reinstalled the OS (and upgraded to Win 7 SP1 off of a DVD with the combined install). The computer waas fine before this, I just wanted to do some spring cleaning. My iTunes library is sitting on a server and has always been accessed over the network.
    After the re-install of the OS I installed iTunes and pointed it at my library. That was fine. Then I connected the phone. At that point it was running iOS 4.2.something. I decided to upgrade to iOS 4.3. That seemed to work fine. After that when I connect the phone iTunes hangs.
    I decided to reset the phone with the option to erase all content and settings. iTunes now worked ok. So I did an initial sync, telling it to set it up as a new phone. I did not sync any music at this point--I have ~22GB of music, it takes a long time to sync. This still worked fine. So then I sync'd the phone again, this time installing all the music. Again iTunes hangs.
    I wondered if the library was screwed up. So I installed iTunes on a laptop (running Win 2008 Server R2), pointed it at my same library (still over the network). Then started over: reset the phone, clearing all settings & content. Sync from the laptop. It works fine. Sync the music from the laptop, it still works fine. It also seems clear that it's not a problem with the iTunes library.
    Back to my original computer, the one with problems, my wife is using it logged in with her account and syncing her iPad without any problems. However, she has very little music on her iPad, maybe one ripped CD, whereas my iPhone has hundreds.
    So the issue seems specific to this one computer & phone that has a lot of music on it. I never had a problem on the computer before, but that was iTunes before 10.2, iOS 4.2 (and earlier), Win 7 without SP1, ... So I've changed lots of things at the same time and am not sure which one really created the problem. Although I wonder if it's a problem with Service Pack 1. I don't have any concerns about a bad install of the SP, since I did a full install of the OS that already had SP1 integrated into it. But maybe iTunes 10.2.1.1 has an issue with SP1.
    Any suggestions?

    I've been following a Windows forum about the freezing problem. It happened to us and our three iOS devices immediately after upgrading Windows 7 64-bit to SP1. There were plenty of others with the same problem. Rolling back SP1 solved it instantly. Reinstalling SP1 caused it instantly. No amount of cleanly uninstalling and reinstalling Quicktime, iTunes, or any components helped.
    Although I have an image of my system before SP1 that I could revert to, I didn't want to. Luckily *a temporary fix is to run iTunes in Vista compatibility mode*. The iOS device will now be recognized most, if not all, of the time. ITunes will run like molasses, but that's better than being unable to sync any of your devices ever again. (I could describe compatibility mode, but you seem PC-savvy.)
    Here is the specific trouble I am addressing, although it is only part of your trouble. We plug in one of our iPhones or our Touch, iTunes hangs for a couple of minutes. Windows sees the device as a camera if applicable, but the device never appears in iTunes. It's worth repeating that Windows doesn't have trouble recognizing the device. The problem is with iTunes.
    And yes, everyone tried all sorts of things with the Apple Mobile Device utility. People even tried "nuking" all their USB drivers and letting them get rebuilt on startup. The only temporary fix found so far is Vista mode, and the only permanent fix is downgrading the OS to before SP1.

  • When i connect my iphone 5 to my pc using the usb cable, my device is not recognized yet when connected to a power source, it charges normally. What should i do to rectify the problem and read sth about debris being in the usb. How do i remove that?

    When i connect my iphone 5 to my pc using the usb cable, my device is not recognized yet when connected to a power source, it charges normally. What should i do to rectify the problem and read sth about debris being in the usb. How do i remove that?

    iOS: Device not recognised in iTunes
    Windows: http://support.apple.com/kb/TS1538

  • When I connect my Iphone 5 to sync with my Itunes on my PC I get a message- This Iphone cannot be used because required software is not installed.  Run Itunes installer to remove itunes then install itunes again.

    When I connect my Iphone 5 to sync with my Itunes on my PC I get a message- This Iphone cannot be used because required software is not installed.  Run Itunes installer to remove itunes then install itunes again.

    After uninstalling and reinstalling Itunes- issue was fixed.  Thanks!

  • How to remove iPhoto auto open when device connects with USB?

    Hi
    When I connect any device using USB cable (mobile,tablet) on my Mac PC , iPhoto starts up and hangs my system for sometime ...
    Thank You.

    Hello there wasylultra,
    It sounds like your computer is becoming unresponsive whenever you plug in any USB device that has or takes photos, because iPhoto launches automatically and takes a while to open. You can change this preference in iPhoto itself to open either iPhoto, Image Capture, or no application at all when you connect a device:
    iPhoto '11: Change what happens when you connect a camera to your computer
    To choose the application that opens:
    Make sure no cameras are connected to your computer.
    Choose iPhoto > Preferences, and then click General.
    Choose an option from the “Connecting camera opens” pop-up menu.
    The title of the article mentions iPhoto '11 but the same steps hold true for iPhoto 2013.
    Thank you for using Apple Support Communities.
    All the best,
    Sterling

Maybe you are looking for

  • HP Officejet Pro 8500 A909g can't scan to network folder

    Since upgrading to 10.7 Lion, I have not been able to scan to a network folder on my mac. Have downloaded the latest driver from HP, and reinstalled the driver etc, but to no avail? Any thoughts?

  • HTML & XML Code Stripped when loaded to web site

    Hi, I just loaded some page changes to my web site and the HTML & XML code was stripped when exported to my web site. I checked the site page code on the web site and it's absent. Has anybody had this happen and/or can anybody help me fix this proble

  • XI adapter runtime messages

    Hi ,   In our XI landscape,We have decentralised adapter engines. I have to pull all runtime messages in XI (Integration engine and decetralised adapter engine). integration engine runtime messages I can able to see in SXMSPMAST table,but I am not ab

  • TOC blank in RH8

    I am using RH8.0.2.208. I think I've seen this issue reported before, but since the search function on this forum is currently unavailable, I can't find it. I renamed my TOC in the Project Manager.  When I open it in RH, it is blank.  When I open the

  • How to config the ws-security?

    how may i config the ws-security options for a http-soap adapter? the webservice needs w-security authentication, as a result i got this error message as reply to my request ( soap fault: WSS4JInHandler: security processing failed ) to config ws-secu