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

运行过程中SpringValueRegistry.scanAndClean一直报NullPointerException #4355

Closed
Ant-dong opened this issue May 15, 2022 · 5 comments
Closed

Comments

@Ant-dong
Copy link

java.lang.NullPointerException
at java.util.Objects.requireNonNull(Objects.java:203)
at com.google.common.collect.LinkedListMultimap.removeNode(LinkedListMultimap.java:300)
at com.google.common.collect.LinkedListMultimap.access$300(LinkedListMultimap.java:101)
at com.google.common.collect.LinkedListMultimap$NodeIterator.remove(LinkedListMultimap.java:386)
at com.ctrip.framework.apollo.spring.property.SpringValueRegistry.scanAndClean(SpringValueRegistry.java:92)
at com.ctrip.framework.apollo.spring.property.SpringValueRegistry.access$000(SpringValueRegistry.java:36)
at com.ctrip.framework.apollo.spring.property.SpringValueRegistry$1.run(SpringValueRegistry.java:75)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:750)

version:1.9.1

@nobodyiam
Copy link
Member

This looks like a bug, would you please help to provide the duplication scenario?

@Ant-dong
Copy link
Author

This looks like a bug, would you please help to provide the duplication scenario?

看其他的issue 我们自身怀疑是原型bean下注入apollo配置导致的这个问题 还需要提供什么?

@nobodyiam
Copy link
Member

I'm not sure what's the actual scenario that caused this issue as the prototype bean case should have been tested before. So it would help a lot if you could help to provide a duplication scenario.

@Ant-dong
Copy link
Author

I'm not sure what's the actual scenario that caused this issue as the prototype bean case should have been tested before. So it would help a lot if you could help to provide a duplication scenario.
最近我们会修改成单例bean 我到时看看是否会出现这个问题 场景的话目前只是猜测是原型bean中导致的 具体的也不是很清楚是什么导致的

@nobodyiam
Copy link
Member

fixed in apolloconfig/apollo-java#95

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

No branches or pull requests

2 participants