Closed GoogleCodeExporter closed 9 years ago
Original comment by sberlin
on 20 Dec 2013 at 2:16
Can I go ahead and make a change like this.
public void begin() {
if(null == entityManager.get()){
entityManager.set(emFactory.createEntityManager());
}
}
in the class
com.google.inject.persist.jpa.JpaPersistService
to resolve this problem. what other problems it might cause?
Original comment by Krupa.si...@gmail.com
on 25 Nov 2014 at 1:17
this is the exact error I am seeing in my application:
java.lang.IllegalStateException: Work already begun on this thread. Looks like
you have called UnitOfWork.begin() twice without a balancing call to end() in
between.
com.google.inject.internal.util.$Preconditions.checkState(Preconditions.java:142
)
com.google.inject.persist.jpa.JpaPersistService.begin(JpaPersistService.java:66)
com.google.inject.persist.PersistFilter.doFilter(PersistFilter.java:87)
com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)
com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.j
ava:58)
com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.j
ava:118) com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113)
</pre></p><p>note <u>The full stack trace of the root cause is available in the
Apache Tomcat/7.0.52 logs.</u></p><HR size="1" noshade="noshade"><h3>Apache
Tomcat/7.0.52</h3></body></html>
Original comment by Krupa.si...@gmail.com
on 25 Nov 2014 at 1:19
The code.google.com guice project has migrated to GitHub. This issue site is
no longer being used. Please use https://github.com/google/guice/issues/739
instead.
Original comment by sberlin
on 25 Nov 2014 at 1:52
Original issue reported on code.google.com by
h...@anthologique.net
on 2 Feb 2013 at 10:40