Coder Social home page Coder Social logo

Error when initializing modules about cat HOT 3 CLOSED

dianping avatar dianping commented on August 24, 2024
Error when initializing modules

from cat.

Comments (3)

youyong205 avatar youyong205 commented on August 24, 2024

还需要运行下这个类,生成相应的配置文件。

然后在启动项目,你在试试

在 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.

fengxiaoxiao avatar fengxiaoxiao commented on August 24, 2024

配置文件已经生成了,相关配置如下。

untitled

DumpAnalyzer 里面的定义是这样的。
@Inject
private MessageListContainer m_messageListContainer;
还是一样的错误,还麻烦看下。还需要在哪里配置吗?

from cat.

youyong205 avatar youyong205 commented on August 24, 2024

还需要增加一个
all.add(C(MessageListContainer.class))

from cat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.