这是官方FAQ中的解释:
) U q, v; W% P1 aSeveral people have reported errors when trying to start a Repast Simphony model such as
; Z% g3 V! @ m3 [- J$ qlog4j:WARN No appenders could be found for logger
( i8 R5 f! I/ u2 X# c3 d/ r' z, l(MessageCenter.INTERNAL.repast.simphony.ui.RSApplication ).3 K+ V- d/ f8 C7 \3 I% i! e
log4j:WARN Please initialize the log4j system properly.$ Z5 f& [( D9 Z
with some variability in the (MessageCenter....) part. In almost all cases, this warning is NOT actually
* ~6 v/ V7 A$ S- D& krelated to logging configuration errors, and more likely it is related to problems in the model.score file
4 V: {4 x# X e' D" l) S6 Y) p% jlike incorrect paths, or missing agent class files.
. [% v. |8 d8 z! CWhen you start a Repast model and you get the log4j message in the Eclipse console, you can usually
0 ~) ^# r7 P3 r% ]6 x+ Gfind more information from the Repast runtime error log. The error log is available when the icon in
. t! H# v, k2 Q; @# u( @the lower right corner of the Repast runtime is flashing.
0 Y7 \1 ?7 ?' R I5 [' F6 R
" T, k, H/ P" b: W* C大意就是这个错误实际上同日志(logging)设置无关,0 T9 C! ?3 M% A" q: I3 Z2 w/ b: }1 y$ t
相关问题的解决应该在model.score中解决,
# B. D% k0 G4 t例如不正确的路径设置、缺少agent类文件呀,诸如此类。+ n0 {! b2 Q% C# s4 K' Z! _- l
如果你启动一个Repast model进行仿真时可能会在Eclipse的控制台中见到log4j message。& }( [' _2 G6 i/ ]
要获得更多错误相关信息可参考Repast实时错误日志。
. D7 Z4 R7 g" i该错误日志可在Repast运行环境活动时在窗口的右下方看到。
2 a% Z" I3 p, T# q1 n4 ]
6 A; y$ e4 h6 `0 f[ 本帖最后由 almo 于 2009-3-5 20:53 编辑 ] |