这是官方FAQ中的解释:
) M) o, q6 }1 R, \& dSeveral people have reported errors when trying to start a Repast Simphony model such as
& K5 u9 R- G2 q7 q6 rlog4j:WARN No appenders could be found for logger6 j# o H0 V* @& F) F: x! ?
(MessageCenter.INTERNAL.repast.simphony.ui.RSApplication ).3 A6 g+ a8 r! {, c* H: b& g
log4j:WARN Please initialize the log4j system properly.0 `$ m: p* }$ C/ Q0 w; V
with some variability in the (MessageCenter....) part. In almost all cases, this warning is NOT actually
+ ^6 R2 S; z' Z& Xrelated to logging configuration errors, and more likely it is related to problems in the model.score file/ M/ f$ {! m! v) n/ O- _% N! J
like incorrect paths, or missing agent class files.' D% I$ N: ~4 c* Y# K
When you start a Repast model and you get the log4j message in the Eclipse console, you can usually0 _" K$ U& c! w y& A% Y0 I
find more information from the Repast runtime error log. The error log is available when the icon in
% R) B7 M: g2 e0 @4 X+ bthe lower right corner of the Repast runtime is flashing.# l4 E0 R5 n/ F1 q
$ F/ O5 K# D8 h大意就是这个错误实际上同日志(logging)设置无关,+ _, k/ n. k0 c( @( W! Z
相关问题的解决应该在model.score中解决,
" f6 |; _# }* ^8 |' L8 G6 Y/ ~例如不正确的路径设置、缺少agent类文件呀,诸如此类。
. T( E5 @* H9 R+ ]% m如果你启动一个Repast model进行仿真时可能会在Eclipse的控制台中见到log4j message。/ T% b* m, b4 W4 T
要获得更多错误相关信息可参考Repast实时错误日志。
' @8 b+ g" s! I ?该错误日志可在Repast运行环境活动时在窗口的右下方看到。. e! R/ a8 p) Q0 N' l
. I2 ]3 b9 S+ X/ I[ 本帖最后由 almo 于 2009-3-5 20:53 编辑 ] |