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:

<?xml version="1.0" encoding="UTF-8"?>

<persistence xmlns="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-unit name="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 = new JpaPersistModule(PERSISTENCE_UNIT_NAME);

install(persistModule);

bind(org.hibernate.Session.class).toProvider(new SessionProvider());

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 [email protected].
To post to this group, send email to [email protected].
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to