这是官方FAQ中的解释:8 W: N) \5 U/ L) g/ n+ a" {
Several people have reported errors when trying to start a Repast Simphony model such as7 g3 R5 y$ r, d$ e
log4j:WARN No appenders could be found for logger! a+ }) [( d4 z. X" Q$ d# {
(MessageCenter.INTERNAL.repast.simphony.ui.RSApplication ).
7 r$ [- ?1 m; W7 ?" v1 P% Dlog4j:WARN Please initialize the log4j system properly.4 i' H3 `3 [- W h: M/ W
with some variability in the (MessageCenter....) part. In almost all cases, this warning is NOT actually! w: a l, |5 i' N7 @8 J
related to logging configuration errors, and more likely it is related to problems in the model.score file
+ M: }7 n4 D+ k0 a9 E5 F2 l. d6 [+ Clike incorrect paths, or missing agent class files.
! l/ C U4 h+ Z: W+ AWhen you start a Repast model and you get the log4j message in the Eclipse console, you can usually4 g3 A6 G$ X( @
find more information from the Repast runtime error log. The error log is available when the icon in
3 [$ J9 W4 n ]' rthe lower right corner of the Repast runtime is flashing.* Z9 B2 d5 C8 v# M7 E( |! W6 b& ]
& N1 |5 ]+ q" N7 n
大意就是这个错误实际上同日志(logging)设置无关,
( h% B$ F/ @, M相关问题的解决应该在model.score中解决,4 J& G1 H5 K ?% u% e: a* R
例如不正确的路径设置、缺少agent类文件呀,诸如此类。
: x3 R0 z( ]/ ^! E如果你启动一个Repast model进行仿真时可能会在Eclipse的控制台中见到log4j message。/ z9 \/ l' _! e( M; f! o! | [3 I
要获得更多错误相关信息可参考Repast实时错误日志。
; z5 `; Z3 [0 j( z+ w该错误日志可在Repast运行环境活动时在窗口的右下方看到。: p5 W, Z4 }0 w/ ]6 Z0 q, Z1 M
* }* D- w, Z0 _
[ 本帖最后由 almo 于 2009-3-5 20:53 编辑 ] |