RMI 的 报错
结构是这样的
public interface A extends Remote {....}
public class B implements a{
public boolean rebindOnce()
{
....
try
{
Naming.rebind(xxx,this);
}catch(...)
{
logger.error(e.toString);
}
....
}
}
tomcat rmiregistry都启动了
日志里报rebind for xxxx error: error marshalling arguments; nested exception is:
java.io.NotSerializableException: B
怎么回事?