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/01/17 09:39:44 UTC
[GitHub] [skywalking] dfsmallsky opened a new issue #4262: controller enhance 失败
dfsmallsky opened a new issue #4262: controller enhance 失败
URL: https://github.com/apache/skywalking/issues/4262
___
### Question
- What do you want to know?
为何无法 enhance controller,提示缺乏 witness class,使用的是传统 spring mvc 5.0.2版本,部署在 tomcat 中,已在 catalina.sh 中配置了 javaagent
___
### Bug
- Which version of SkyWalking, OS and JRE?
6.6.0 linux openjdk1.8
- Which company or project?
crm
- What happen?
无法看到端点,无法 trace 到 端点,查看日志发下如下
WARN 2020-01-17 14:56:22:582 main AbstractClassEnhancePluginDefine : enhance class com.huatu.sku.web.controller.goods.SubGoodsController by plugin org.apache.skywalking.apm.plugin.spring.mvc.v5.define.RestControllerInstrumentation is not working. Because witness class org.springframework.web.servlet.resource.HttpResource is not existed.
另外还发现了kafka 的空指针报错,这不是重点,请重点看下 controller 无法 enhance 的问题,谢谢
ERROR 2020-01-17 17:05:33:430 kafka-consumer-issue.report.dev InstMethodsInter : class[class org.apache.kafka.clients.consumer.KafkaConsumer] after method[pollOnce] intercept failure
java.lang.NullPointerException
at org.apache.skywalking.apm.plugin.kafka.KafkaConsumerInterceptor.afterMethod(KafkaConsumerInterceptor.java:61)
----------------------------------------------------------------
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
With regards,
Apache Git Services
[GitHub] [skywalking] dfsmallsky commented on issue #4262: controller enhance 失败
Posted by GitBox <gi...@apache.org>.
dfsmallsky commented on issue #4262: controller enhance 失败
URL: https://github.com/apache/skywalking/issues/4262#issuecomment-575552673
补充下,pom 里面是有 springmvc 的依赖的,并且HttpResource是存在于 spring-webmvc 包下的,应该能找到才对
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>${spring.version}</version>
</dependency>
----------------------------------------------------------------
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
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng closed issue #4262: controller enhance 失败
Posted by GitBox <gi...@apache.org>.
wu-sheng closed issue #4262: controller enhance 失败
URL: https://github.com/apache/skywalking/issues/4262
----------------------------------------------------------------
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
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on issue #4262: controller enhance 失败
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #4262: controller enhance 失败
URL: https://github.com/apache/skywalking/issues/4262#issuecomment-575561098
English only
----------------------------------------------------------------
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
With regards,
Apache Git Services
[GitHub] [skywalking] dfsmallsky commented on issue #4262: controller enhance 失败
Posted by GitBox <gi...@apache.org>.
dfsmallsky commented on issue #4262: controller enhance 失败
URL: https://github.com/apache/skywalking/issues/4262#issuecomment-575559476
在 catalina.sh 中添加了如下配置
CATALINA_OPTS="$CATALINA_OPTS -javaagent:/home/admin/agent/skywalking-agent.jar";export CATALINA_OPTS
----------------------------------------------------------------
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
With regards,
Apache Git Services