Skip to content

[Bug] Use @Transcational annotation with enhanced instance causes Spring Application startup failure #13221

@lujiajing1126

Description

@lujiajing1126

Search before asking

  • I had searched in the issues and found no similar issues.

Apache SkyWalking Component

Java Agent (apache/skywalking-java)

What happened

https://github.com/apache/skywalking-java/pull/739/files#r2068184158

What you expected to happen

The application can start normally.

How to reproduce

A minimal example to reproduce the issue, from the example code shown in this SO question.

@SpringBootApplication
@EnableTransactionManagement
public class StackoverflowApplication {

    @Autowired private SomeService service;

    public static void main(String[] args) {
        SpringApplication.run(StackoverflowApplication.class, args);
    }
}

@Service
class SomeService {
    
    @Override
    @Transactional
    public void handle() { }

    @Trace // Use Trace annotation in order to let SkyWalking Java Agent to enhance this class
    public void methodToBeTraced() {}
}

Anything else

No response

Are you willing to submit a pull request to fix on your own?

  • Yes I am willing to submit a pull request on my own!

Code of Conduct

Metadata

Metadata

Assignees

Labels

agentLanguage agent related.bugSomething isn't working and you are sure it's a bug!pluginPlugin for agent or collector. Be used to extend the capabilities of default implementor.

Type

No fields configured for Bug.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions