Hi Juliano Please inject a PersonRepository.
EntityRepository<Person, Long> ends up in a different bean and is not what you expect - actually it's an internal bean which is will be called underneath, but as it misses a bunch of initialization steps done by the Data extension you'll get the NullPointerException. Hope that helps... From: Thomas Hug [mailto:[email protected]] Sent: Donnerstag, 17. Juli 2014 14:33 To: [email protected] Subject: RE: Null QueryInvocationContext in DS Data Module Hi Juliano Sorry, missed your message. Will have a look at your sample. From: Juliano Marques [mailto:[email protected]] Sent: Donnerstag, 17. Juli 2014 14:17 To: [email protected]<mailto:[email protected]> Subject: Re: Null QueryInvocationContext in DS Data Module Sorry, but does anyone could look at this example [1]? Am I missing something? Apparently I configured the application with all the requirements needed to run the data module correctly, but I keep getting a NullPointerException with any operation with the persistence database. Somehow, the QueryInvocationContext is null in EntityRepositoryHandler class. Please help. Thank you very much. [1] https://github.com/julianomqs/ds-data-module.git Atenciosamente, Juliano Marques Desenvolvimento Imobiliário Criciúma - SC Fone: (48) 3461-1000 [cid:[email protected]][cid:_2_085F12C4085F108400435F0283257D18] De: Juliano Marques <[email protected]<mailto:[email protected]>> Para: [email protected]<mailto:[email protected]>, Data: 15/07/2014 11:28 Assunto: Re: Null QueryInvocationContext in DS Data Module ________________________________ A simpler example at https://github.com/julianomqs/ds-data-module.git Thanks a lot. Atenciosamente, Juliano Marques Desenvolvimento Imobiliário Criciúma - SC Fone: (48) 3461-1000 De: Juliano Marques <[email protected]<mailto:[email protected]>> Para: [email protected]<mailto:[email protected]>, Data: 14/07/2014 00:00 Assunto: Null QueryInvocationContext in DS Data Module ________________________________ Hi, Somehow the QueryInvocationContext is null in EntityRepositoryHandler, in DS DataModule. I have a multi-module maven project with DS core and data module. The project has: - a EntityManagerProducer (like DS data module docs) - beans.xml with BeanManagedUserTransactionStrategy - AuditEntityListener (for auditing) - DS core and DS data module (compile and runtime) dependencies I am missing something? Source at https://bitbucket.org/julianomqs/vidracaria Thanks a lot. Atenciosamente, *Juliano M.*
