这是官方FAQ中的解释:0 q3 x# o: \$ ?- B1 @4 I8 \
Several people have reported errors when trying to start a Repast Simphony model such as
5 r( s+ x6 }( Xlog4j:WARN No appenders could be found for logger6 ~( D! A0 [1 e9 @, r! w: \4 r+ K
(MessageCenter.INTERNAL.repast.simphony.ui.RSApplication ).
# x+ {/ R& Q9 L& jlog4j:WARN Please initialize the log4j system properly.5 J9 C0 d2 Y; e3 }( s
with some variability in the (MessageCenter....) part. In almost all cases, this warning is NOT actually4 D q$ {: e% o9 M, \
related to logging configuration errors, and more likely it is related to problems in the model.score file* k0 B$ G0 P. J8 |. l
like incorrect paths, or missing agent class files.. R9 J! {4 j3 [/ B' C
When you start a Repast model and you get the log4j message in the Eclipse console, you can usually6 A, i7 k) E; V
find more information from the Repast runtime error log. The error log is available when the icon in
; u, B Q- N7 ^5 f( W- ^the lower right corner of the Repast runtime is flashing.
9 `6 ?) g% b# ]0 H! x: `
/ c' X; _2 v0 I" G/ E) I J大意就是这个错误实际上同日志(logging)设置无关,. B# g/ M2 b/ U& F0 F8 I
相关问题的解决应该在model.score中解决,- ?8 q5 b) V" s/ P
例如不正确的路径设置、缺少agent类文件呀,诸如此类。6 E0 [2 c& A, R
如果你启动一个Repast model进行仿真时可能会在Eclipse的控制台中见到log4j message。
& w# a, U7 S5 Q3 x/ e* p要获得更多错误相关信息可参考Repast实时错误日志。9 x" S6 \6 K3 Y3 h
该错误日志可在Repast运行环境活动时在窗口的右下方看到。2 u" k! E4 f6 n- @# C( o
1 U. @ \ P1 x( g, \ c[ 本帖最后由 almo 于 2009-3-5 20:53 编辑 ] |