设为首页收藏本站

最大的系统仿真与系统优化公益交流社区

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 5615|回复: 1

[求助] 控制台出现以下错误提示?

[复制链接]
发表于 2009-3-4 16:28:41 | 显示全部楼层 |阅读模式
5仿真币
log4j:WARN No appenders could be found for logger (MessageCenter.INTERNAL.repast.simphony.ui.RSApplication).+ [: {. P/ e, z! B% p5 b
log4j:WARN Please initialize the log4j system properly.6 K' G) j- V' _& L% e7 @& x
哪位知道怎么解决吗?谢谢啦!

最佳答案

查看完整内容

这是官方FAQ中的解释: Several people have reported errors when trying to start a Repast Simphony model such as log4j:WARN No appenders could be found for logger (MessageCenter.INTERNAL.repast.simphony.ui.RSApplication ). log4j:WARN Please initialize the log4j system properly. with some variability in the (MessageCenter....) part. In almost all cases, this warning is NOT actually related to logging ...
发表于 2009-3-4 16:28:42 | 显示全部楼层
这是官方FAQ中的解释:
6 F+ e4 T/ x- o" nSeveral people have reported errors when trying to start a Repast Simphony model such as
7 H, m/ c% ?: N6 {' B. `" n1 Tlog4j:WARN No appenders could be found for logger. L' |  d5 a$ b2 E
(MessageCenter.INTERNAL.repast.simphony.ui.RSApplication ).4 X4 |, H: q, ?$ U! {5 l
log4j:WARN Please initialize the log4j system properly.9 s# U6 x# H: S
with some variability in the (MessageCenter....) part. In almost all cases, this warning is NOT actually5 h! t2 i4 H' E+ Q  d) S5 J, Y
related to logging configuration errors, and more likely it is related to problems in the model.score file) X$ `  a, A4 {- R6 s
like incorrect paths, or missing agent class files.4 X8 J( a9 d; l& d1 \0 {: j% ~
When you start a Repast model and you get the log4j message in the Eclipse console, you can usually
( I7 h4 v/ M9 u8 `find more information from the Repast runtime error log. The error log is available when the icon in
8 J# w" O! Z' k/ c. H2 vthe lower right corner of the Repast runtime is flashing.! H( w1 ]/ j+ Y
* ?9 f- v8 x0 f( i5 [8 p1 G
大意就是这个错误实际上同日志(logging)设置无关,
! i  Y/ q, o5 b4 e" H' N% {# _相关问题的解决应该在model.score中解决,) r/ g! Z- c9 X9 ~- k& @( T& F
例如不正确的路径设置、缺少agent类文件呀,诸如此类。6 m" {+ V& f! }9 p
如果你启动一个Repast model进行仿真时可能会在Eclipse的控制台中见到log4j message。9 r; w0 Q2 X% A  a/ k$ ~
要获得更多错误相关信息可参考Repast实时错误日志。
5 x8 M  a& R- O, ]* N4 F该错误日志可在Repast运行环境活动时在窗口的右下方看到。
+ G2 D5 B8 B) @8 O2 A8 `+ e6 W. f% S, v& `
[ 本帖最后由 almo 于 2009-3-5 20:53 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|SimulWay 道于仿真   

GMT+8, 2025-2-1 23:31 , Processed in 0.012411 second(s), 13 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表