[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to use NodeCache.EventHandler?



> Hi
> I want to develop a AA using NodeCache.EventHandler.But something=
>  strange happened.When I write a inner class extending =
>  EventHandler in an application,everything is OK.But when I write=
>  a inner class XXX extends EventHandler in an capsule YYY=
>  ,something is wrong. ANTS prompts:
> Capsule ... exploded: ...YYY$XXX 
> java.lang.NoClassDefFoundError:...YYY$XXX
> 
> I don't know why this happened.Do you have any idea?

Which version of ants are you using?  I think this is fixed in the cvs
version.  Basically you need to add the string:

	"ants.core.NodeCache$EventHandler",

to the PrimordialNode.exportedAntsClasses array.  This will give untrusted
code access to the class.

> Yours Sincerely
>
> Jianfeng Liu

sorry for the inconvenience,

tim stack




[ Janos ] [ OSKit ] [ Network Testbed ] [ Flick ] [ Fluke ]
Flux Research Group / Department of Computer Science / University of Utah