You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2020/07/09 13:13:40 UTC
[GitHub] [skywalking] pop0505 opened a new issue #5070: class[class com.mongodb.client.internal.MongoClientDelegate$DelegateOperationExecutor] before method[execute] intercept failure java.lang.NullPointerException
pop0505 opened a new issue #5070:
URL: https://github.com/apache/skywalking/issues/5070
Please answer these questions before submitting your issue.
- Why do you submit this issue?
- [ ] Question or discussion
- [x] Bug
- [ ] Requirement
- [ ] Feature or performance improvement
___
### Bug
- Which version of SkyWalking, OS and JRE?
SkyWalking 6.6, MacOS, JDK8
- What happen?
Afer upgrade mongodb-driver version to 4.0.4, I got NullPointerException in my application:
```
java.lang.NullPointerException: null
at org.apache.skywalking.apm.agent.core.context.ContextManager.stopSpan(ContextManager.java:182)
at org.apache.skywalking.apm.plugin.undertow.v2x.SWRunnable.run(SWRunnable.java:50)
at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:2019)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1558)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1449)
at java.lang.Thread.run(Thread.java:748)
```
And skywalking print error log:
```
ERROR 2020-07-09 16:00:00:146 scheduling-1 InstMethodsInter : class[class com.mongodb.client.internal.MongoClientDelegate$DelegateOperationExecutor] before method[execute] intercept failure
java.lang.NullPointerException
at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936)
at org.apache.skywalking.apm.agent.core.dictionary.NetworkAddressDictionary.find(NetworkAddressDictionary.java:44)
at org.apache.skywalking.apm.agent.core.context.TracingContext.createExitSpan(TracingContext.java:388)
at org.apache.skywalking.apm.agent.core.context.ContextManager.createExitSpan(ContextManager.java:120)
at org.apache.skywalking.apm.plugin.mongodb.v3.support.MongoSpanHelper.createExitSpan(MongoSpanHelper.java:39)
at org.apache.skywalking.apm.plugin.mongodb.v3.interceptor.v37.MongoDBOperationExecutorInterceptor.beforeMethod(MongoDBOperationExecutorInterceptor.java:51)
at org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstMethodsInter.intercept(InstMethodsInter.java:82)
at com.mongodb.client.internal.MongoClientDelegate$DelegateOperationExecutor.execute(MongoClientDelegate.java)
at com.mongodb.client.internal.MongoIterableImpl.execute(MongoIterableImpl.java:135)
at com.mongodb.client.internal.MongoIterableImpl.iterator(MongoIterableImpl.java:92)
at org.springframework.data.mongodb.core.MongoTemplate.executeFindMultiInternal(MongoTemplate.java:2771)
at org.springframework.data.mongodb.core.MongoTemplate.doFind(MongoTemplate.java:2507)
at org.springframework.data.mongodb.core.MongoTemplate.doFind(MongoTemplate.java:2489)
at org.springframework.data.mongodb.core.MongoTemplate.find(MongoTemplate.java:856)
......
```
Is it caused by incompatibility with mongodb-driver 4.0+,or other reason?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] pop0505 commented on issue #5070: class[class com.mongodb.client.internal.MongoClientDelegate$DelegateOperationExecutor] before method[execute] intercept failure java.lang.NullPointerException
Posted by GitBox <gi...@apache.org>.
pop0505 commented on issue #5070:
URL: https://github.com/apache/skywalking/issues/5070#issuecomment-656147434
Thx, I've checked source code and confirm that the reason is plugin incompatibility.
mongodb-4.x-plugin is needed because SpringBoot 2.3 release switches to MongoDB 4
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on issue #5070: class[class com.mongodb.client.internal.MongoClientDelegate$DelegateOperationExecutor] before method[execute] intercept failure java.lang.NullPointerException
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #5070:
URL: https://github.com/apache/skywalking/issues/5070#issuecomment-656134929
It could be triggered by other plugins issue. You could try to remove the MongoDB plugin, and give a try. If there is no issue, then, most likely it is the plugin issue. But, as always, debugging is always the best choice.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on issue #5070: class[class com.mongodb.client.internal.MongoClientDelegate$DelegateOperationExecutor] before method[execute] intercept failure java.lang.NullPointerException
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #5070:
URL: https://github.com/apache/skywalking/issues/5070#issuecomment-656125919
Check the supported-list doc for supported versions. I only found the MongoDB 3.x test cases, https://github.com/apache/skywalking/tree/master/test/plugin/scenarios/mongodb-3.x-scenario. Most likely, there is no one contributed 4.x plugins yet.
Welcome everyone to do so.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng closed issue #5070: class[class com.mongodb.client.internal.MongoClientDelegate$DelegateOperationExecutor] before method[execute] intercept failure java.lang.NullPointerException
Posted by GitBox <gi...@apache.org>.
wu-sheng closed issue #5070:
URL: https://github.com/apache/skywalking/issues/5070
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] pop0505 commented on issue #5070: class[class com.mongodb.client.internal.MongoClientDelegate$DelegateOperationExecutor] before method[execute] intercept failure java.lang.NullPointerException
Posted by GitBox <gi...@apache.org>.
pop0505 commented on issue #5070:
URL: https://github.com/apache/skywalking/issues/5070#issuecomment-656132654
I mean, this problem may not caused by MongoDB4.0+, or how can I check the actual reason? So that I can try to contribute 4.x plugins
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org