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

xml中使用context:component-scan标签发布jvm服务偶发异常 #1341

Open
ifccod opened this issue Sep 1, 2024 · 2 comments
Open

xml中使用context:component-scan标签发布jvm服务偶发异常 #1341

ifccod opened this issue Sep 1, 2024 · 2 comments

Comments

@ifccod
Copy link

ifccod commented Sep 1, 2024

我在某个facade-impl模块中用xml定义context:component-scan扫描当前模块下带有@service,@SofaService的bean,在调用方偶尔会出现引用不到jvm服务的异常,这个错误不是必现的,是偶发的。
并且在我把xml标签换成bean去定义之后,这个错误就不会在出现了。

正常
1

有时会出现
1725201450221

只有使用context:component-scan标签启动时偶尔会出现,麻烦帮忙看一下这个问题

@ifccod
Copy link
Author

ifccod commented Sep 1, 2024

4.3.0版本

@HzjNeverStop
Copy link
Contributor

  1. 如果是在启动过程中跨 SOFA 模块调用 SOFA 服务出现 jvm not found 的异常,可以check下是否通过模块配置指定了两个模块的先后启动顺序
  2. 上图红框里的异常是 IDEA 触发代理类 toString 方法的异常,对代理类的使用并没有实际的影响

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants