Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with RMI Activation API

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I get a "java.rmi.activation.ActivationException: nonexistent group" when I run my Setup class using rmid. I have a value for -Djava.security.policy. It's thrown at the line where I try to create my ActivationDesc:
String location = "file:/Java/RMI/ActivationTutorial/lib/rmi-activation.jar";
ActivationDesc desc = new ActivationDesc ("examples.activation.MyRemoteInterfaceImpl", location, data);
I'm running JVM 1.3 on Windows 2000. Anyone have any hints as to why this is happening to me? Thanks - MOD
 
Chris Newman
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I had the same "java.rmi.activation.ActivationException: nonexistent group" error and managed to get it working by explicitly specifying the group id.
Before generating the ActivationDesc I had registered the group I'd created with
ActivationGroupID groupID = ActivationGroup.getSystem().registerGroup(group);
so I just had to add this in to the ActivationDesc part with
ActivationDesc desc = new ActivationDesc(groupID, "usingj2ee.rmi.MOTDImplActivate", codeLocation, initData);
instead of just specifying the class, location and initdata.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic