这是官方FAQ中的解释:& c' q1 F9 ?" M8 b# U+ r
Several people have reported errors when trying to start a Repast Simphony model such as+ t# H) z* p0 V% l
log4j:WARN No appenders could be found for logger
. K) R' s B* [, M s! E" ~; J(MessageCenter.INTERNAL.repast.simphony.ui.RSApplication ).5 k7 r& y2 C& a# G
log4j:WARN Please initialize the log4j system properly.0 N8 x+ H/ E6 c
with some variability in the (MessageCenter....) part. In almost all cases, this warning is NOT actually' e2 H- H' O+ y% J& x
related to logging configuration errors, and more likely it is related to problems in the model.score file
- W3 v- @5 I5 Y7 g9 glike incorrect paths, or missing agent class files.
4 _1 l/ K0 {, k- q% N0 N0 u" F( aWhen you start a Repast model and you get the log4j message in the Eclipse console, you can usually
& X* p8 B$ o4 N% D3 Vfind more information from the Repast runtime error log. The error log is available when the icon in
& d3 ]( K% h2 b+ H" Z8 x$ dthe lower right corner of the Repast runtime is flashing.
3 L% h! G6 S& K H5 b5 g) C
% l1 U8 K; `. d9 U! u! S: l2 w. x* \) `大意就是这个错误实际上同日志(logging)设置无关,
9 l, E2 F J1 D2 a- Q相关问题的解决应该在model.score中解决,
" N0 Y& A. Y: F: A S例如不正确的路径设置、缺少agent类文件呀,诸如此类。1 t3 {) v* _# U& R( X
如果你启动一个Repast model进行仿真时可能会在Eclipse的控制台中见到log4j message。
$ l' M: i# d* v# ^要获得更多错误相关信息可参考Repast实时错误日志。
, T, y$ K; d. e4 u9 u) M6 {该错误日志可在Repast运行环境活动时在窗口的右下方看到。* |/ F s* Z* }
+ e* q7 O% l5 J2 g* `+ m[ 本帖最后由 almo 于 2009-3-5 20:53 编辑 ] |