Re: null pointer exception while committing new object.

2009-07-29 Thread Andrey Razumovsky
t; >> >} > >> > } catch(IllegalStateException ISE){ > >> >dc = DataContext.createDataContext(); > >> >DataContext.bindThreadDataContext(dc); > >> >} > >> >return dc; > >> &g

Re: null pointer exception while committing new object.

2009-07-28 Thread sridhar devatha
return dc; >> > } >> > >> >synchronized protected void commitChanges(){ >> >getDataContext().commitChanges(); >> >} >> > >> > } >> > >> > On Tue, Jul 28, 2009 at 9:33 AM, Matt Kerr < >> m

Re: null pointer exception while committing new object.

2009-07-28 Thread sridhar devatha
t; > > > } > > > > On Tue, Jul 28, 2009 at 9:33 AM, Matt Kerr > >wrote: > > > > > any chance you have a stack trace ? > > > or code snippet ? > > > project even ? > > > > > > very hard to offer suggestion / debug &

Re: null pointer exception while committing new object.

2009-07-28 Thread Andrey Razumovsky
have a stack trace ? > > or code snippet ? > > project even ? > > > > very hard to offer suggestion / debug > > without more info :-? > > > > ok -thanks > > -matt > > > > > > On Mon, Jul 27, 2009 at 11:59 PM, sridhar >

Re: null pointer exception while committing new object.

2009-07-28 Thread sridhar devatha
ce you have a stack trace ? > or code snippet ? > project even ? > > very hard to offer suggestion / debug > without more info :-? > > ok -thanks > -matt > > > On Mon, Jul 27, 2009 at 11:59 PM, sridhar > devatha wrote: > > Hi, > > > > I am gettin

Re: null pointer exception while committing new object.

2009-07-27 Thread Øyvind Harboe
On Tue, Jul 28, 2009 at 5:59 AM, sridhar devatha wrote: > Hi, > > I am getting null pointer exception while committing new object. I committed > several other objects of different classes using cayenne's > datacontext.commitchanges. But, i am unable to commit this object.

null pointer exception while committing new object.

2009-07-27 Thread sridhar devatha
Hi, I am getting null pointer exception while committing new object. I committed several other objects of different classes using cayenne's datacontext.commitchanges. But, i am unable to commit this object. -- Yours Sincerely, Sridhar