Re: null from CayenneRuntime.getThreadInjector()

2012-08-24 Thread Tore Halset
Hello. Thanks, it works perfect! Regards, - Tore. On Aug 23, 2012, at 17:18 , Andrus Adamchik wrote: > Hi Tore, > > Injector is encapsulated in CayenneRuntime, so... > > ServerRuntime runtime = // assume you have that, since you started Cayenne > somehow.. > Injector i = runtime.getInjecto

Re: null from CayenneRuntime.getThreadInjector()

2012-08-23 Thread Andrus Adamchik
Hi Tore, Injector is encapsulated in CayenneRuntime, so... ServerRuntime runtime = // assume you have that, since you started Cayenne somehow.. Injector i = runtime.getInjector(); Andrus On Aug 23, 2012, at 12:22 PM, Tore Halset wrote: > Hello. > > I am playing with serialization of cayenne

null from CayenneRuntime.getThreadInjector()

2012-08-23 Thread Tore Halset
Hello. I am playing with serialization of cayenne objects in trunk. This is the first time I do (java) serialization of cayenne stuff. On deserialize I get the following. org.apache.cayenne.CayenneRuntimeException: [v.3.2M1-SNAPSHOT Aug 23 2012 08:32:28] Can't attach to Cayenne runtime. Null i