Things not to do in Ice/Java

mefostermefoster Member Mary Ellen FosterOrganization: Heriot-Watt University, EdinburghProject: ECHOES learning environment ✭✭✭
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. :)

MEF

Comments

  • rowanwrowanw Member Rowan WorthOrganization: DownUnder GeosolutionsProject: Abstraction layer for multiple data sources
    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.
  • matthewmatthew NL, CanadaMember Matthew NewhookOrganization: ZeroC, Inc.Project: Internet Communications Engine ✭✭✭
    Rowan, that will be possible in Ice 3.6.
Sign In or Register to comment.