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

java.lang.IllegalStateException: TTL logger implementation type is NOT set! #552

Closed
tarcyxin opened this issue Sep 20, 2023 · 1 comment
Closed
Labels
duplicate ❓question Further information is requested

Comments

@tarcyxin
Copy link

版本:transmittable-thread-local-2.12.1
问题:项目依赖了ttl,同时启动时-javaagent加载ttl,两者版本都是2.12.1,发现启动时会报java.lang.IllegalStateException: TTL logger implementation type is NOT set! ,移除-agent就没问题

@oldratlee
Copy link
Member

oldratlee commented Sep 20, 2023

@tarcyxin 已有 同问题 issue

......
Caused by: java.lang.IllegalStateException: TTL logger implementation type is already set! type = 0
......

这是防御式检查所抛出的异常(IllegalStateException);
可能和你具体使用/配置方式相关。


请提供一个 极简、可运行、复现问题的 代码Demo工程。

推荐提供成一个单独的工程(Github repo)。这样可以:

  • 方便大家能排查分析(只提供片段代码、运行结果,排查信息不足)
  • 方便分离不相关的业务实现内容,以及排除可能的业务使用问题
    如使用配置问题、其它业务代码的意外影响

@tarcyxin tarcyxin closed this as not planned Won't fix, can't repro, duplicate, stale Sep 21, 2023
@oldratlee oldratlee added ❓question Further information is requested duplicate labels Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate ❓question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants