Index: ActivationGroup.java =================================================================== --- ActivationGroup.java (revision 452881) +++ ActivationGroup.java (working copy) @@ -215,8 +215,11 @@ throw new ActivationException("getSystem fails.", t); } rlog.log(RMILog.VERBOSE, "current_AS = " + current_AS); - rlog.log(RMILog.VERBOSE, "current_AS.ref = " - + ((RemoteObject) current_AS).getRef()); + + if (current_AS instanceof RemoteObject) { + rlog.log(RMILog.VERBOSE, "current_AS.ref = " + + ((RemoteObject) current_AS).getRef()); + } rlog.log(RMILog.VERBOSE, "---------- END -> ActivationGroup.getSystem() ----------");