Can you please give more of the stack trace (all of it).
Because the cause of this NPE is different depending on where the call comes from.


On 01.12.2017 20:27, Diogo Luzzardi de Carvalho wrote:
The following exception is ocorringĀ for me:
|

java.lang.NullPointerException


at com.google.inject.persist.jpa.JpaPersistService.begin(JpaPersistService.java:77)


at com.google.inject.persist.jpa.JpaLocalTxnInterceptor.invoke(JpaLocalTxnInterceptor.java:53)

|

Follows my persistence.xml:
|

<?xmlversion="1.0"encoding="UTF-8"?>


<persistencexmlns="http://java.sun.com/xml/ns/persistence";


xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";


xsi:schemaLocation="http://java.sun.com/xml/ns/persistence


http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd";


version="1.0">




<!-- A JPA Persistence Unit -->


<persistence-unitname="persistence.unit"


transaction-type="RESOURCE_LOCAL">


<provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>




<!-- JPA entities must be registered here -->


<!--<class>com.wideplay.warp.jpa.JpaTestEntity</class> -->


</persistence-unit>




</persistence>

|

follows the configuration code:
|

persistModule=newJpaPersistModule(PERSISTENCE_UNIT_NAME);


install(persistModule);


bind(org.hibernate.Session.class).toProvider(newSessionProvider());


filter("/*").through(PersistFilter.class);

|


can anyone point me what I'm doing wrong?

regards
Diogo
--
You received this message because you are subscribed to the Google Groups "google-guice" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-guice+unsubscr...@googlegroups.com <mailto:google-guice+unsubscr...@googlegroups.com>. To post to this group, send email to google-guice@googlegroups.com <mailto:google-guice@googlegroups.com>.
Visit this group at https://groups.google.com/group/google-guice.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-guice/fd020b11-2a91-4656-9c49-6f5b0fef744e%40googlegroups.com <https://groups.google.com/d/msgid/google-guice/fd020b11-2a91-4656-9c49-6f5b0fef744e%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-guice+unsubscr...@googlegroups.com.
To post to this group, send email to google-guice@googlegroups.com.
Visit this group at https://groups.google.com/group/google-guice.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-guice/0f20958d-05f7-e323-6a3d-42ef2d908f39%40gmx.ch.
For more options, visit https://groups.google.com/d/optout.

Reply via email to