这是官方FAQ中的解释:# }' w* e& M s0 V% v6 J" p7 x: p- R
Several people have reported errors when trying to start a Repast Simphony model such as
; x6 S; A4 w: z: R2 Wlog4j:WARN No appenders could be found for logger
- w4 Z- c0 O" y4 N(MessageCenter.INTERNAL.repast.simphony.ui.RSApplication ).
9 l2 @+ M9 X; l. ]" Vlog4j:WARN Please initialize the log4j system properly., {$ d3 o7 W- ~ w% i
with some variability in the (MessageCenter....) part. In almost all cases, this warning is NOT actually
+ z3 H# f( C4 y% mrelated to logging configuration errors, and more likely it is related to problems in the model.score file
0 @7 J: l+ Q2 J% A/ ~+ C3 H) zlike incorrect paths, or missing agent class files.
; _7 Z, d6 a) aWhen you start a Repast model and you get the log4j message in the Eclipse console, you can usually! ~0 c4 D5 Z A
find more information from the Repast runtime error log. The error log is available when the icon in6 @; F# M" F0 n6 j: V0 E
the lower right corner of the Repast runtime is flashing., B# ?3 Q" N' e8 S. n
' f* @- p* P9 T# }6 y2 Z% z
大意就是这个错误实际上同日志(logging)设置无关,$ }7 M+ P, C r, a- z6 b
相关问题的解决应该在model.score中解决,8 B2 Y0 `5 G6 C% A( E' d
例如不正确的路径设置、缺少agent类文件呀,诸如此类。% E! D$ m# y$ S- N4 X* @
如果你启动一个Repast model进行仿真时可能会在Eclipse的控制台中见到log4j message。
8 u: M. ~' o$ L2 V8 I要获得更多错误相关信息可参考Repast实时错误日志。
) q6 [) D6 ?* A `8 K1 l该错误日志可在Repast运行环境活动时在窗口的右下方看到。
. x S& @6 i& c6 z+ \7 Q
1 w5 l- |* a$ Q1 ~! Z[ 本帖最后由 almo 于 2009-3-5 20:53 编辑 ] |