This forum has been archived. Please start a new discussion on GitHub.

Things not to do in Ice/Java

Through a combination of inattention and over-zealous Eclipse auto-completion, I ended putting the following into the header of one of my source files:
import Ice.Object;
This produced a spew of bizarre errors that actually took a fair bit of time to figure out what was going on.

So, just a cautionary tale for a Friday afternoon: don't do that. :)



  • Also, don't use Thread.interrupt() on any thread that does ICE RPCs. If the thread happens to be blocked reading/writing the socket when the interrupt comes, java will close the socket causing the RPC and all other concurrent RPCs to fail.
  • matthew
    matthew NL, Canada
    Rowan, that will be possible in Ice 3.6.