这是官方FAQ中的解释:; H; O- K& u, ~- ]/ k- x6 L& n Y
Several people have reported errors when trying to start a Repast Simphony model such as
1 y5 \, V. @" L. v% s' L# clog4j:WARN No appenders could be found for logger
* r; w& H" Q9 d5 ~' T(MessageCenter.INTERNAL.repast.simphony.ui.RSApplication ).
! r+ d+ Y! b& O6 M: P" Rlog4j:WARN Please initialize the log4j system properly.0 p. M# f/ M' q/ g0 ]5 f0 j: W
with some variability in the (MessageCenter....) part. In almost all cases, this warning is NOT actually
; ]" k) c9 L" _4 n" P/ erelated to logging configuration errors, and more likely it is related to problems in the model.score file
$ g: E% e% S2 | c, O% f4 m' t [like incorrect paths, or missing agent class files.9 F. d9 K+ p1 q/ }7 t0 B/ ^
When you start a Repast model and you get the log4j message in the Eclipse console, you can usually
# |. e! Q$ E& n0 c+ h- xfind more information from the Repast runtime error log. The error log is available when the icon in" a! X0 T1 m; n8 ~' [
the lower right corner of the Repast runtime is flashing.5 h; A! A. J& q/ o& j5 K
- g8 }) o4 N4 N* F6 s
大意就是这个错误实际上同日志(logging)设置无关,/ @6 v1 M) w3 L ?* u( T1 L
相关问题的解决应该在model.score中解决,
1 @% T! i: V3 V- _例如不正确的路径设置、缺少agent类文件呀,诸如此类。7 B% e( T" t+ p }
如果你启动一个Repast model进行仿真时可能会在Eclipse的控制台中见到log4j message。) w$ R! t9 w+ o8 \4 `/ d$ A- R
要获得更多错误相关信息可参考Repast实时错误日志。
& C& A8 k. ?" v3 Q9 ^, e0 ?8 {该错误日志可在Repast运行环境活动时在窗口的右下方看到。
' |$ g- n, X. K$ a' J6 Y! Y* s, u8 M% s$ d: X
[ 本帖最后由 almo 于 2009-3-5 20:53 编辑 ] |