这是官方FAQ中的解释:
- Q+ L/ t- N( USeveral people have reported errors when trying to start a Repast Simphony model such as# \8 u) a2 W( N" ~" a
log4j:WARN No appenders could be found for logger6 V' p/ |( y& c) d- Y# U- |6 u
(MessageCenter.INTERNAL.repast.simphony.ui.RSApplication ).& g+ }2 x- p6 [. @
log4j:WARN Please initialize the log4j system properly.. H( d9 {, m" h" M" S- a( V6 `
with some variability in the (MessageCenter....) part. In almost all cases, this warning is NOT actually
$ ^ T+ m W/ H9 B6 H' K! Drelated to logging configuration errors, and more likely it is related to problems in the model.score file
: j3 j0 [- c7 Z1 X2 X- F* Ylike incorrect paths, or missing agent class files.
* o7 ]" H% n! d) w* g. iWhen you start a Repast model and you get the log4j message in the Eclipse console, you can usually
3 P: B Z/ ^5 T: R6 {find more information from the Repast runtime error log. The error log is available when the icon in- U7 u: {# k# {2 v8 D7 A
the lower right corner of the Repast runtime is flashing.
( k4 p+ \6 x1 P) b* [; c
0 M. v1 o6 r: z ?9 u8 a大意就是这个错误实际上同日志(logging)设置无关,/ T& h1 d E/ V
相关问题的解决应该在model.score中解决,
7 {5 `, Z/ ]' J9 @例如不正确的路径设置、缺少agent类文件呀,诸如此类。
7 X% m; c* ^! C) S如果你启动一个Repast model进行仿真时可能会在Eclipse的控制台中见到log4j message。
4 U, a) t9 `4 j; j- _. g7 B要获得更多错误相关信息可参考Repast实时错误日志。
" S1 L! y$ M, r8 O8 I5 G8 B# x6 |该错误日志可在Repast运行环境活动时在窗口的右下方看到。
* C: y! c5 J* K9 z
7 V# E! R5 H* ?& S[ 本帖最后由 almo 于 2009-3-5 20:53 编辑 ] |