这是官方FAQ中的解释:3 i. l2 ~# Y8 \3 \! V
Several people have reported errors when trying to start a Repast Simphony model such as
8 ?4 a+ b' ?- f p `- _" f7 A6 rlog4j:WARN No appenders could be found for logger
9 K) E( t3 u9 c$ v0 ]: T' ](MessageCenter.INTERNAL.repast.simphony.ui.RSApplication ).
% D m$ r1 {. a' m- blog4j:WARN Please initialize the log4j system properly. U5 o1 V* W' h B6 Q
with some variability in the (MessageCenter....) part. In almost all cases, this warning is NOT actually
- W# e. g$ F J: D, E! qrelated to logging configuration errors, and more likely it is related to problems in the model.score file
) f) E2 H9 ^1 v, Tlike incorrect paths, or missing agent class files.
# R r+ |- X3 lWhen you start a Repast model and you get the log4j message in the Eclipse console, you can usually
& X: n+ H* G- J9 G1 lfind more information from the Repast runtime error log. The error log is available when the icon in
, K; P& W: V7 P+ Zthe lower right corner of the Repast runtime is flashing.
! O7 `, V4 [* s% _& {. g* \5 |9 Y
大意就是这个错误实际上同日志(logging)设置无关,' b6 j2 O+ E2 h6 s
相关问题的解决应该在model.score中解决,
/ v( e% g, \( B2 x; n: Z y! C' t例如不正确的路径设置、缺少agent类文件呀,诸如此类。
1 e0 }1 l2 A( M' d$ e' w( i; V# P' Z如果你启动一个Repast model进行仿真时可能会在Eclipse的控制台中见到log4j message。$ c7 {" E5 Q3 d. g! e
要获得更多错误相关信息可参考Repast实时错误日志。/ ^$ A h7 z5 I7 y. C; ?' L! |& _
该错误日志可在Repast运行环境活动时在窗口的右下方看到。6 }7 G. k) ?' z% A0 q0 F
: N' h. P# c" h9 ?" ?, ^3 P3 ]
[ 本帖最后由 almo 于 2009-3-5 20:53 编辑 ] |