deltaspike-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Hug <Thomas....@ctp.com>
Subject RE: Null QueryInvocationContext in DS Data Module
Date Thu, 17 Jul 2014 12:50:46 GMT
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:Thomas.Hug@ctp.com]
Sent: Donnerstag, 17. Juli 2014 14:33
To: users@deltaspike.apache.org
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:juliano.marques@dsmail.com.br]
Sent: Donnerstag, 17. Juli 2014 14:17
To: users@deltaspike.apache.org<mailto:users@deltaspike.apache.org>
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:image001.png@01CFA1CE.7B9F5C10][cid:_2_085F12C4085F108400435F0283257D18]






De:        Juliano Marques <juliano.marques@dsmail.com.br<mailto:juliano.marques@dsmail.com.br>>
Para:        users@deltaspike.apache.org<mailto:users@deltaspike.apache.org>,
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 <julianomqs@gmail.com<mailto:julianomqs@gmail.com>>
Para:        users@deltaspike.apache.org<mailto:users@deltaspike.apache.org>,
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.*

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