cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lon Varscsak <lon.varsc...@gmail.com>
Subject Re: Can't attach to Cayenne runtime. Null injector returned from CayenneRuntime.getThreadInjector()
Date Thu, 16 Jun 2016 20:31:31 GMT
Okay, cool…something like that worked.

Thanks!

-Lon

On Wed, Jun 15, 2016 at 1:51 AM, Andrus Adamchik <andrus@objectstyle.org>
wrote:

> > I have gathered from one ancient post that I’m supposed to call the
> > CayenneRuntime’s bindThreadInjector method
>
> Yep, that's how you provide deserialization context.
>
>
> > , but I’m unsure where to do
> > this.  I know that the injector is attached to my runtime (which I have).
>
> Are you deserializing within the scope of a web request? If so, perhaps
> you can use a servlet Filter that binds/unbinds injector from the request
> thread?
>
> Andrus
>
>
>
> > On Jun 15, 2016, at 5:14 AM, Lon Varscsak <lon.varscsak@gmail.com>
> wrote:
> >
> > Hey guys,
> >
> > I’m working with a project that deserializes my component state (which
> has
> > CDOs and ObjectContexts) and when it goes to deserialize them I get the
> > error in the subject.
> >
> > I have gathered from one ancient post that I’m supposed to call the
> > CayenneRuntime’s bindThreadInjector method, but I’m unsure where to do
> > this.  I know that the injector is attached to my runtime (which I have).
> >
> > Any help would be appreciated.
> >
> > Thanks,
> >
> > Lon
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message