Re: Why I'm getting NPE?

2009-04-30 Thread Johan Compagner
What is the stacktrace when group is null? On 29/04/2009, HHB wrote: > Hey, > I'm trying to employ DataTable in our application. > * > public class SortableContactDataProvider > extends SortableDataProvider { > > @SpringBean > private Service service; > > p

Re: Why I'm getting NPE?

2009-04-29 Thread nino martinez wael
Short answer, group is set but the list are null? 2009/4/29 nino martinez wael : > Hmm I have something similar, though not getting npe (from 1.3 project) : > > > > /** >  * >  * >  */ > public class SortableSearchDataProvider extends SortableDataProvider { > >        private SearchParameters sear

Re: Why I'm getting NPE?

2009-04-29 Thread nino martinez wael
Hmm I have something similar, though not getting npe (from 1.3 project) : /** * * */ public class SortableSearchDataProvider extends SortableDataProvider { private SearchParameters searchParameters; /** * constructor */ public SortableSearchDataProvi

Re: Why I'm getting NPE?

2009-04-29 Thread HHB
Actually, thats what I'm doing (you can check my code). The NPE is regarding the Group object instance, not Spring bean. Willis Blackburn wrote: > > Hi, > > The @SpringBean annotation is only resolved by Component and its > subclasses. (Actually it's resolved by SpringComponentInjector--but

Re: Why I'm getting NPE?

2009-04-29 Thread Willis Blackburn
Hi, The @SpringBean annotation is only resolved by Component and its subclasses. (Actually it's resolved by SpringComponentInjector--but that only works with components.) You can call InjectorHolder.getInjector().inject(whatever) to resolve @SpringBean annotations in the whatever object.

Why I'm getting NPE?

2009-04-29 Thread HHB
Hey, I'm trying to employ DataTable in our application. * public class SortableContactDataProvider extends SortableDataProvider { @SpringBean private Service service; private Group group; public SortableContactDataProvider(Group group) { if (g