java.rmi.NoSuchObjectException: no such object in table

后端 未结 7 2373
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-28 06:43

I am writing a very simple RMI server, and I am seeing intermittent java.rmi.NoSuchObjectExceptions in the unit tests.

I have a string of remote method

7条回答
  •  广开言路
    2020-11-28 07:19

    It's difficult to answer this question without looking at the code (which I guess will be big enough to not be publishable here). However, using Occam's razor, you have two possibilies

    • Server objects must be getting unregistered somehow
    • Since breakpoints stop the errors, it's definitely a race condition.

    I would suggest you go over the code paths carefully keeping the two points above in mind.

提交回复
热议问题