这是官方FAQ中的解释:( x+ x/ k" H6 H: R+ h: p
Several people have reported errors when trying to start a Repast Simphony model such as
9 o9 o$ X7 v% u' d) X- a! {log4j:WARN No appenders could be found for logger
2 T; g5 A/ @ m8 M7 V" Z(MessageCenter.INTERNAL.repast.simphony.ui.RSApplication ).
2 H1 ?. j/ v) @* q4 o4 Plog4j:WARN Please initialize the log4j system properly.
1 P, l$ t8 z7 I/ |+ h# B6 cwith some variability in the (MessageCenter....) part. In almost all cases, this warning is NOT actually
& v @* G7 Y, U; L2 krelated to logging configuration errors, and more likely it is related to problems in the model.score file
! m5 H4 |/ }" u) M( G0 |8 ?. ?like incorrect paths, or missing agent class files.
6 X* g: Y7 a3 n0 _/ _2 rWhen you start a Repast model and you get the log4j message in the Eclipse console, you can usually
# }5 J# Z5 E* w1 O/ _6 ?$ }find more information from the Repast runtime error log. The error log is available when the icon in6 a$ d& w' N) m. L& E) j# K/ Q {
the lower right corner of the Repast runtime is flashing.
3 c) s" K- P( t5 b% G0 K( q$ o% v( v; f& {5 a; G1 K: t
大意就是这个错误实际上同日志(logging)设置无关,$ ?6 ^( H, {2 N! O6 j9 P: }5 ?/ b
相关问题的解决应该在model.score中解决,
. E8 M" R/ @& o4 q例如不正确的路径设置、缺少agent类文件呀,诸如此类。
( _9 _8 W7 \- H, D- M; J! |% Y如果你启动一个Repast model进行仿真时可能会在Eclipse的控制台中见到log4j message。, d+ }+ h, S" n* ^
要获得更多错误相关信息可参考Repast实时错误日志。
# f) O+ T4 T. d- u/ L' [1 ]0 {: k该错误日志可在Repast运行环境活动时在窗口的右下方看到。+ Z0 r; g3 z+ m8 p1 n6 w
% z/ N/ o# g' `9 y- y[ 本帖最后由 almo 于 2009-3-5 20:53 编辑 ] |