这是官方FAQ中的解释:
4 _. r/ O7 T( ~+ F! \Several people have reported errors when trying to start a Repast Simphony model such as1 j/ R5 L4 B z, A0 O
log4j:WARN No appenders could be found for logger6 h/ N/ v, Y4 |* P$ E( t# i6 n2 ]
(MessageCenter.INTERNAL.repast.simphony.ui.RSApplication ).
. h! |: y0 O& N$ l; Nlog4j:WARN Please initialize the log4j system properly.3 B4 U( ^: e3 |" {# G ^
with some variability in the (MessageCenter....) part. In almost all cases, this warning is NOT actually4 _4 B P" B6 b$ I
related to logging configuration errors, and more likely it is related to problems in the model.score file& Y% _% ]4 y* u5 v8 \
like incorrect paths, or missing agent class files.
* l/ P% x T. H; A. x" EWhen you start a Repast model and you get the log4j message in the Eclipse console, you can usually l* l) C8 s" D3 }/ c9 A/ v. B
find more information from the Repast runtime error log. The error log is available when the icon in/ |5 _$ h, H) p( P1 j
the lower right corner of the Repast runtime is flashing.
* J: @/ T! ^! H. L2 t! C7 z: I# `& d+ [! f4 C
大意就是这个错误实际上同日志(logging)设置无关,/ q9 [/ t$ Z4 u; C O: e# f
相关问题的解决应该在model.score中解决,
$ o) d7 s$ ~3 P- q* {0 g例如不正确的路径设置、缺少agent类文件呀,诸如此类。
0 |- X: J; r( f如果你启动一个Repast model进行仿真时可能会在Eclipse的控制台中见到log4j message。4 u0 i2 f2 v8 |' K& T8 A
要获得更多错误相关信息可参考Repast实时错误日志。
8 x5 d9 `5 m( g# |+ t该错误日志可在Repast运行环境活动时在窗口的右下方看到。9 Q0 h- Z" W: p8 \; B( k5 w/ [
! F) J( C: x. D[ 本帖最后由 almo 于 2009-3-5 20:53 编辑 ] |