这是官方FAQ中的解释:# N5 b1 V& e' J+ K/ x7 _9 @
Several people have reported errors when trying to start a Repast Simphony model such as
. U1 `: f5 y9 O9 f! D- X4 J2 D, Rlog4j:WARN No appenders could be found for logger
$ t+ j$ R+ }- `$ L(MessageCenter.INTERNAL.repast.simphony.ui.RSApplication ).
& b4 x2 t }3 I- {log4j:WARN Please initialize the log4j system properly.
! C6 |0 C1 X2 V \' [+ h8 X4 Ewith some variability in the (MessageCenter....) part. In almost all cases, this warning is NOT actually* i' H4 c5 p5 S
related to logging configuration errors, and more likely it is related to problems in the model.score file/ j: v7 W, J. A- B
like incorrect paths, or missing agent class files.- B, W1 A7 V7 r' Y
When you start a Repast model and you get the log4j message in the Eclipse console, you can usually
" S0 I8 a. Z& Y" |' t7 }find more information from the Repast runtime error log. The error log is available when the icon in. D$ ~2 K* b% i& r4 n
the lower right corner of the Repast runtime is flashing.3 K1 P% ]5 P/ ^8 R
( y/ E+ c9 g6 l! F0 m大意就是这个错误实际上同日志(logging)设置无关,) x* j8 p/ ?" H6 \+ i- K
相关问题的解决应该在model.score中解决,% n' q9 Y* o7 ~. I F0 P) X
例如不正确的路径设置、缺少agent类文件呀,诸如此类。8 q1 E9 v0 h. l: \: h) ?/ P: Q
如果你启动一个Repast model进行仿真时可能会在Eclipse的控制台中见到log4j message。% O0 z9 ], x0 i
要获得更多错误相关信息可参考Repast实时错误日志。
4 G& v6 E. @- A) g- b该错误日志可在Repast运行环境活动时在窗口的右下方看到。* O$ p U$ z1 _) X+ }5 p
) }! g7 b8 |* d; g6 D
[ 本帖最后由 almo 于 2009-3-5 20:53 编辑 ] |