这是官方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 编辑 ] |