Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6854303
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:36:59+00:00 2026-05-27T01:36:59+00:00

for example: @Transactional public boolean addPersonToDb(Person p) { // message on this line //some

  • 0

for example:

@Transactional 
public boolean addPersonToDb(Person p) { // message on this line
 //some logic
}

Code compiles and runs with no problems.

Message itself: Multiple markers at this line

  • implements

com.pname1.pname2.pname3.pname4.PersonDAO.addPersonToDb

  • advised by

org.springframework.transaction.interceptor.TransactionInterceptor.invoke(org.aopalliance.intercept.MethodInvocation)

I can’t really understand if it is an error or just a message, looking at other threads people get that as an error. I am just worrying if my transactions work.

Ok, the class implements interface and its method annotated as transactional , anything wrong with that?

Update: solved some minor errors, web app works but I still get that message(not in stack trace, but on the line breakpoint):

advised by
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(org.aopalliance.intercept.MethodInvocation)

Current situation:

        @Transactional
   public void registerNewUser(Person p) { // this gives message on line breakpoint - advised by ...; AND this method is implemented by interface

    pd.addPersonToDb(p);


}

@Transactional
public void blabla(Person p){ // this does not, as expected; AND it is not in interface

}

Do my transactions work or not? (I have no exceptions and web application runs and the methods work)

I can’t understand if this message error or not?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T01:37:00+00:00Added an answer on May 27, 2026 at 1:37 am

    The issue with multiple markers is not a problem at all; it’s purely informational. (The method is part of the implementation of an interface or abstract method, which you probably already knew, and it is intercepted by AOP because of the @Transactional annotation. I hope this doesn’t surprise you…)

    The error is because the class you are annotating doesn’t implement a suitable interface (or interfaces), which would be necessary to use the built-in JDK proxy mechanism to put the AOP interceptors in place in the bean. (Bean-level interceptors are done through a proxy object that applies the transactional behavior and then delegates to the real object.) The JDK proxy mechanism only works with interfaces; intercepting anything else requires a different approach.

    The two possible fixes for this are:

    1. Make the bean class implement a suitable interface that has all the methods of your class that are marked as @Transactional.
    2. Add cglib as a dependency, which Spring uses to dynamically write the classes that do the interception. (This is clever stuff.)

    You only need to use one of these fixes, and the second one is very easy if you’re using a build system like Maven; just update the dependencies. (Also, avoid doing calls to intercepted methods via this, whether explicit or not. That side-steps the AOP interception.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For example this service class' method below: @Transactional public void findDiscountedItems() { List<Item> items
I have this code: <!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd> <html xmlns=http://www.w3.org/1999/xhtml
based on this example : @Service public class Purchase { @PersistenceContext private EntityManager em;
My service bean example @Service(officeService) @Transactional public class OfficeService { @Resource(name = sessionFactory) private
i wrote this simple example: //file TestController.java public interface TestController { public List<Test> findAll();
Example I have Person , SpecialPerson , and User . Person and SpecialPerson are
Example: The user login to the webpage => Click on a button This action
I have a java project that runs on a webserver. I always hit this
Example (tested in Chrome): <!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN> <HTML><HEAD> <TITLE>testing cursor
If I had a managed bean as follows: @ManagedBean @RequestSchoped public class Example {

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.