Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
URL Rewriter Bot
URL Rewriter Bot

From commentcomment by @m-deinum:

Make your PersonService public as well as the method you are calling.

This seems to have done the trick for several users. The same thing is also covered in this answerthis answer, citing manual saying:

When using proxies, you should apply the @Transactional annotation only to methods with public visibility. If you do annotate protected, private or package-visible methods with the @Transactional annotation, no error is raised, but the annotated method does not exhibit the configured transactional settings. Consider the use of AspectJ (see below) if you need to annotate non-public methods.

From comment by @m-deinum:

Make your PersonService public as well as the method you are calling.

This seems to have done the trick for several users. The same thing is also covered in this answer, citing manual saying:

When using proxies, you should apply the @Transactional annotation only to methods with public visibility. If you do annotate protected, private or package-visible methods with the @Transactional annotation, no error is raised, but the annotated method does not exhibit the configured transactional settings. Consider the use of AspectJ (see below) if you need to annotate non-public methods.

From comment by @m-deinum:

Make your PersonService public as well as the method you are calling.

This seems to have done the trick for several users. The same thing is also covered in this answer, citing manual saying:

When using proxies, you should apply the @Transactional annotation only to methods with public visibility. If you do annotate protected, private or package-visible methods with the @Transactional annotation, no error is raised, but the annotated method does not exhibit the configured transactional settings. Consider the use of AspectJ (see below) if you need to annotate non-public methods.

Source Link
eis
  • 53.7k
  • 14
  • 159
  • 206

From comment by @m-deinum:

Make your PersonService public as well as the method you are calling.

This seems to have done the trick for several users. The same thing is also covered in this answer, citing manual saying:

When using proxies, you should apply the @Transactional annotation only to methods with public visibility. If you do annotate protected, private or package-visible methods with the @Transactional annotation, no error is raised, but the annotated method does not exhibit the configured transactional settings. Consider the use of AspectJ (see below) if you need to annotate non-public methods.