[ start | index | login ]
start > 2009-09-11 > 1

2009-09-11 #1

Created by admin. Last edited by admin, 180 days ago. Viewed 179 times. #3
[diff] [history] [edit] [rdf]
labels
attachments

Interesting RMI/Windows issue

we've been using a scheduling server at work to automatically schedule jobs programatically. It uses RMI and I've been working on a real interesting problem which would just manifest itself as a socket write exception. After having gone through the usual checking to make sure that it's not a connectivity issue, etc I finally narrowed it down to an interesting fact about RMI on Windows.

Somewhere within the Sun implementation someone is not handling spaces appropriately. Since we use Maven on Windows for dev work all the third party libraries end up in 'Documents And Settings..' folder on C drive. Note the space in there. This was causing RMI heartburn though the manifestation of the problem as a socket write exception was a mis-direction. See:
>>http://www.velocityreviews.com/forums/t126367-spaces-in-path-to-app-causing-rmi-fits-with-malformedurlexception.html

So I found the RMI properties, one of which allows users to see debug info:
>>http://java.sun.com/j2se/1.4.2/docs/guide/rmi/javarmiproperties.html

which revealed the actual problem.

Needless to say everything works fine in production land since it runs on Linux.

Fun times =)

Please login to post a comment.

Main Menu

  1. Daily Stuff
  2. Hacking
  3. Fun Stuff
  4. Contact Me
  5. >>Nimsoft.biz
  6. >>Seattle Traffic on your cell
March 2010
SunMonTueWedThuFriSat
123456
78910111213
14151617181920
21222324252627
28293031

>>PopURLS

XHTML 1.0 validated
CSS validated
RSS 2.0 validated
RSS Feed

Powered by SnipSnap 1.0b2-uttoxeter

Describe here what your SnipSnap is about!

Configure this box!

  1. Login in
  2. Click here: snipsnap-portlet-2
  3. Edit this box
snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt