Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jpa: Object-methods like finalize become transactional, if the Type is annoptated @Transactional #788

Closed
gissuebot opened this issue Jul 7, 2014 · 3 comments · Fixed by #1705

Comments

@gissuebot
Copy link

From google-auth-21ov9@codesmell.de on December 04, 2013 09:06:25

Description of the issue: Steps to reproduce: 1. Annotate a given Type as @Transaction (not on method, but on type level)
2. Once the object gets finalized, the Interceptor kicks in

at com.google.inject.persist.jpa.JpaPersistService.begin(JpaPersistService.java:70)
        at com.google.inject.persist.jpa.JpaLocalTxnInterceptor.invoke(JpaLocalTxnInterceptor.java:49)
        at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:72)
        at com.google.inject.internal.InterceptorStackCallback.intercept(InterceptorStackCallback.java:52)
        at xxx.xxx.xxx.xxx.xxx.xxx$$EnhancerByGuice$$5293155f.finalize(<generated>)
        at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
        at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:101)
        at java.lang.ref.Finalizer.access$100(Finalizer.java:32)
        at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:190)

Original issue: http://code.google.com/p/google-guice/issues/detail?id=788

@gissuebot
Copy link
Author

From sberlin on December 20, 2013 06:15:23

(No comment was entered for this change.)

Labels: Component-Persist

@gissuebot
Copy link
Author

From iker.olabarria on May 28, 2014 07:58:49

I have the same issue using Guice Persist + JTA  on Weblogic 10.3.5 : http://stackoverflow.com/questions/23908368/problems-integrating-guice-persist-jta-in-weblogic-10-3-5

@gissuebot
Copy link
Author

From dhanji on June 11, 2014 18:11:02

@sberlin Please review: https://code.google.com/p/google-guice/source/detail?r=38120b77a32674256dd5092278a84c52eeb20398&name=jpa_ignore_jlo_methods

Status: Started
Owner: dhanji

andresviedma added a commit to andresviedma/guice that referenced this issue Oct 25, 2015
copybara-service bot pushed a commit that referenced this issue Apr 21, 2023
copybara-service bot pushed a commit that referenced this issue Apr 21, 2023
copybara-service bot pushed a commit that referenced this issue Apr 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant