Comments (3)
还需要运行下这个类,生成相应的配置文件。
然后在启动项目,你在试试
在 2014-03-11 11:59:41,fengxiaoxiao [email protected] 写道:
我想在DumpAnalyzer 里面注入一个类,报了一个异常。
我修改了 com.dianping.cat.consumer.build.ComponentsConfigurator 这个方法
private Collection defineDumpComponents() {
final List all = new ArrayList();
all.add(C(MessageAnalyzer.class, DumpAnalyzer.ID, DumpAnalyzer.class).is(PER_LOOKUP) //
//增加引用 .req(MessageListContainer.class).req(ServerStatisticManager.class) //
.req(MessageBucketManager.class, LocalMessageBucketManager.ID));
return all;
}
异常如下:
org.apache.xbean.recipe.MissingAccessorException: Unable to find a valid field for RequirementRecipe[fieldName=null, role=com.dianping.cat.analysis.MessageAnalyzer] in class com.dianping.cat.consumer.dump.DumpAnalyzer
at org.apache.xbean.recipe.ReflectionUtil.findAllFieldsByType(ReflectionUtil.java:396)
at org.apache.xbean.recipe.ObjectRecipe.setProperty(ObjectRecipe.java:390)
at org.apache.xbean.recipe.ObjectRecipe.setProperties(ObjectRecipe.java:367)
at org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:282)
at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
—
Reply to this email directly or view it on GitHub.
from cat.
配置文件已经生成了,相关配置如下。
DumpAnalyzer 里面的定义是这样的。
@Inject
private MessageListContainer m_messageListContainer;
还是一样的错误,还麻烦看下。还需要在哪里配置吗?
from cat.
还需要增加一个
all.add(C(MessageListContainer.class))
from cat.
Related Issues (20)
- 这个自定义监控规则是如何使用的呢
- 【求助】messageId在使用线程池中,能正常传递吗? HOT 1
- logMetricForCount(String name, int quantity, Map<String, String> tags)是否已经不支持
- cat客户端连接报[ERROR] Uncaught exception thrown out of thread(Cat-ChannelManager)
- docker-compose启动后,本地磁盘模式,logview报错“Sorry, the message is not there. It could be missing or archived.” HOT 1
- 使用tomcat9启动cat会报错
- CatFilter如何监控异步Servlet接口?
- 源文件缺少 HOT 1
- docker部署方式下,数据库初始化报错 HOT 1
- cat客户端考虑增加下rust的支持吗
- 请教一下,想把告警发到lark群里,这个要修改代码。 HOT 3
- cat client连接cat server 报错
- python sdk不支持 mac 吗 HOT 1
- 没见过这么难部署的玩意 HOT 2
- java.lang.NullPointerException
- master分支的最新代码,本地打包部署,总是看不到消息。Sorry, the message is not there. It could be missing or archived. HOT 1
- 可否通过java动态字节码技术添加cat埋点日志?有没有例子? HOT 1
- python 客户端启动链接服务端报错 HOT 2
- 打点会出现异常情况,一小时刚开始,59分就记录了,EVENT报表
- 为什么在二次设置的时候,一直操作失败呢?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cat.