这是官方FAQ中的解释:. ^9 V' e8 Q3 Q
Several people have reported errors when trying to start a Repast Simphony model such as
# M. J! C% o8 w) Llog4j:WARN No appenders could be found for logger
- j4 u3 p( b: u. A(MessageCenter.INTERNAL.repast.simphony.ui.RSApplication ).
, Y: R3 ?' ^& {* b# V. Rlog4j:WARN Please initialize the log4j system properly.7 c7 \6 S ?. _% v! y- U
with some variability in the (MessageCenter....) part. In almost all cases, this warning is NOT actually0 I7 e0 |- }. U8 h
related to logging configuration errors, and more likely it is related to problems in the model.score file' X) j2 g2 e: K7 h( W$ R
like incorrect paths, or missing agent class files.
* F' y& m4 P* X: T' CWhen you start a Repast model and you get the log4j message in the Eclipse console, you can usually
- z; ~ K6 u0 m/ Kfind more information from the Repast runtime error log. The error log is available when the icon in
' \% m# j8 U0 E# k d8 {the lower right corner of the Repast runtime is flashing.; B) g' E! Y2 Q6 r4 Z
7 w6 x/ T) Z% f; \( S" }! |3 z大意就是这个错误实际上同日志(logging)设置无关,
5 _7 \7 h* ^) p J, K相关问题的解决应该在model.score中解决,
- |& k' H) D+ L1 A7 B( U5 w例如不正确的路径设置、缺少agent类文件呀,诸如此类。# N+ S7 t: l! g# h! {9 G
如果你启动一个Repast model进行仿真时可能会在Eclipse的控制台中见到log4j message。, M& a$ r, N! h* c
要获得更多错误相关信息可参考Repast实时错误日志。
3 a1 @* q& S; X9 Y8 F) q该错误日志可在Repast运行环境活动时在窗口的右下方看到。
2 U, j" B, E1 c5 | h& J/ Q: a
( |2 A, C& l( w0 d# s8 j8 d# @[ 本帖最后由 almo 于 2009-3-5 20:53 编辑 ] |