这是官方FAQ中的解释:( y' h, U+ Z7 N
Several people have reported errors when trying to start a Repast Simphony model such as( V8 `0 x2 t$ n4 P a# S
log4j:WARN No appenders could be found for logger4 ~+ t' B5 i$ B( {& q
(MessageCenter.INTERNAL.repast.simphony.ui.RSApplication ).1 x1 Q( `' T2 S9 i# I; L
log4j:WARN Please initialize the log4j system properly.
7 @1 R% i1 Y$ E3 Wwith some variability in the (MessageCenter....) part. In almost all cases, this warning is NOT actually
8 h8 S+ F' K* H/ Brelated to logging configuration errors, and more likely it is related to problems in the model.score file
" i; _ M5 G8 klike incorrect paths, or missing agent class files.
7 ^3 k9 g5 T& \8 aWhen you start a Repast model and you get the log4j message in the Eclipse console, you can usually9 Y# a; m$ Q5 n; Y& \
find more information from the Repast runtime error log. The error log is available when the icon in$ B t/ w* ]3 o/ E$ D, X1 D% ~0 V
the lower right corner of the Repast runtime is flashing., D* m( L( i# K: r% ~8 \0 W
6 k) p' f$ X9 {! c
大意就是这个错误实际上同日志(logging)设置无关,! A6 x2 F3 A9 h/ z/ L
相关问题的解决应该在model.score中解决,
/ V0 j& h9 X( `+ w& \6 ^例如不正确的路径设置、缺少agent类文件呀,诸如此类。2 O" K4 f4 L D6 f+ q% |" y0 ]
如果你启动一个Repast model进行仿真时可能会在Eclipse的控制台中见到log4j message。
8 X8 o T' ~& D% w1 N, ~; j要获得更多错误相关信息可参考Repast实时错误日志。) b2 s; B: J$ v+ X0 q& i& W4 }( B
该错误日志可在Repast运行环境活动时在窗口的右下方看到。4 C( b- l# [/ p8 ]9 ` F$ }
% _3 k) ?7 n$ |[ 本帖最后由 almo 于 2009-3-5 20:53 编辑 ] |