这是官方FAQ中的解释:
& [0 \5 j4 s5 f4 c4 c g" rSeveral people have reported errors when trying to start a Repast Simphony model such as: b/ {6 B# ^) m( w D
log4j:WARN No appenders could be found for logger# R$ t4 l) {, o8 b
(MessageCenter.INTERNAL.repast.simphony.ui.RSApplication ).2 r: q; J1 ?4 z M' N& U0 V
log4j:WARN Please initialize the log4j system properly.' @3 J" A5 f" V. A
with some variability in the (MessageCenter....) part. In almost all cases, this warning is NOT actually3 b& K' Q6 t7 E% z. O0 N9 i/ }
related to logging configuration errors, and more likely it is related to problems in the model.score file
0 v [ s* _& Z( N( e: ulike incorrect paths, or missing agent class files.' D) x+ o! o& s* _
When you start a Repast model and you get the log4j message in the Eclipse console, you can usually
" U- S8 B! p( c( ~! l# N6 jfind more information from the Repast runtime error log. The error log is available when the icon in) j5 Y6 F0 p: R; z8 @3 g
the lower right corner of the Repast runtime is flashing.
6 B8 i2 x* J+ w7 F6 w" x# A$ L# `, h @# O8 `6 M
大意就是这个错误实际上同日志(logging)设置无关,
t: O C9 e. j: A6 I4 @相关问题的解决应该在model.score中解决,8 z+ N/ o$ X# F" W
例如不正确的路径设置、缺少agent类文件呀,诸如此类。! ?9 t1 f/ ^7 H; `% B
如果你启动一个Repast model进行仿真时可能会在Eclipse的控制台中见到log4j message。
/ U4 L0 p% ?0 z' ]' x9 q+ D- X要获得更多错误相关信息可参考Repast实时错误日志。7 Q$ J: S% @% I2 e$ |; v
该错误日志可在Repast运行环境活动时在窗口的右下方看到。7 j) j6 H# ]* D& V
- O6 P. s) m/ a7 b7 U% E
[ 本帖最后由 almo 于 2009-3-5 20:53 编辑 ] |