这是官方FAQ中的解释:
" a/ C* E) `9 Y1 ]0 l5 j' Q8 D+ |) ~Several people have reported errors when trying to start a Repast Simphony model such as z9 W+ f9 d* ]- ]+ U
log4j:WARN No appenders could be found for logger0 n) v4 f6 g7 Q4 c; L. W4 W; m
(MessageCenter.INTERNAL.repast.simphony.ui.RSApplication ).
1 V+ h Z0 G* U% S Q" {log4j:WARN Please initialize the log4j system properly.
) k" T; M2 Y. ~1 W0 E' I Rwith some variability in the (MessageCenter....) part. In almost all cases, this warning is NOT actually- }/ r/ m6 ?3 v
related to logging configuration errors, and more likely it is related to problems in the model.score file
& k3 G b- r' N9 Rlike incorrect paths, or missing agent class files.0 S$ k" _, t$ z3 H% I* k
When you start a Repast model and you get the log4j message in the Eclipse console, you can usually
( E6 a1 i2 S! w6 X- qfind more information from the Repast runtime error log. The error log is available when the icon in
7 z. b9 w0 x. N! }( W6 c. A- Tthe lower right corner of the Repast runtime is flashing.- h3 _% N5 N% D3 K! d1 e. m9 f* L/ L
6 \% f& u& {) i3 Y% L大意就是这个错误实际上同日志(logging)设置无关,
4 S6 _3 f+ o4 m; n, _, M相关问题的解决应该在model.score中解决,
" H) z. B/ t+ f& z. C! |8 ^例如不正确的路径设置、缺少agent类文件呀,诸如此类。2 l, W2 o7 k4 W, [, N
如果你启动一个Repast model进行仿真时可能会在Eclipse的控制台中见到log4j message。
& k" m7 ?+ n1 j+ N要获得更多错误相关信息可参考Repast实时错误日志。: X: Q2 q5 y* ~9 }
该错误日志可在Repast运行环境活动时在窗口的右下方看到。5 n; {. J, w! V4 i
8 l9 c* t6 O! ]6 |[ 本帖最后由 almo 于 2009-3-5 20:53 编辑 ] |