这是官方FAQ中的解释:
% U; f, C; _ k# DSeveral people have reported errors when trying to start a Repast Simphony model such as' [9 z, d) m, ~/ X
log4j:WARN No appenders could be found for logger- _' a3 `# E0 q+ R
(MessageCenter.INTERNAL.repast.simphony.ui.RSApplication )." C, u* c; d/ J" k5 |
log4j:WARN Please initialize the log4j system properly.
4 A, ?# m8 c: W- l G# bwith some variability in the (MessageCenter....) part. In almost all cases, this warning is NOT actually2 D$ @( F' z; S; _; h
related to logging configuration errors, and more likely it is related to problems in the model.score file
9 ~( W* C" b. \* U# X! z5 ~like incorrect paths, or missing agent class files.
/ e- C# ~/ W) i* m* iWhen you start a Repast model and you get the log4j message in the Eclipse console, you can usually. S8 ?- Y4 L! ?5 l3 s6 T7 ~
find more information from the Repast runtime error log. The error log is available when the icon in
: I5 V# C% o2 x0 f9 g' Ithe lower right corner of the Repast runtime is flashing.
# R, S6 Q- x, _7 T0 ?( {; |
0 ~' q7 I) @7 f' [4 T大意就是这个错误实际上同日志(logging)设置无关,5 p, Y7 C4 t" h$ Z
相关问题的解决应该在model.score中解决,9 F+ c5 z# M2 V. d1 Z4 `9 {
例如不正确的路径设置、缺少agent类文件呀,诸如此类。
* B6 l1 a! O+ r) D) e如果你启动一个Repast model进行仿真时可能会在Eclipse的控制台中见到log4j message。# c* H: U: V- ^, h" m$ A
要获得更多错误相关信息可参考Repast实时错误日志。
- f- S% S# V4 H# }该错误日志可在Repast运行环境活动时在窗口的右下方看到。3 V0 C! B4 D# p5 D' B* _, `
, U7 I5 c g5 B! [2 j2 m7 l+ r
[ 本帖最后由 almo 于 2009-3-5 20:53 编辑 ] |