这是官方FAQ中的解释:
+ C8 Y" ?2 I7 q' zSeveral people have reported errors when trying to start a Repast Simphony model such as
& w5 A3 W ?+ Mlog4j:WARN No appenders could be found for logger, B7 A8 P% d* k* X
(MessageCenter.INTERNAL.repast.simphony.ui.RSApplication ).+ ?9 _* H( c# ?8 ~5 N
log4j:WARN Please initialize the log4j system properly.
. M0 O, M. Z9 lwith some variability in the (MessageCenter....) part. In almost all cases, this warning is NOT actually
4 v9 T" k1 F" f. ~% R0 wrelated to logging configuration errors, and more likely it is related to problems in the model.score file
$ ]/ m; @8 O# z" ^5 ~ c" ilike incorrect paths, or missing agent class files., X& Z( |. ?( B% C6 H
When you start a Repast model and you get the log4j message in the Eclipse console, you can usually
: S9 G. Z; ?- X3 R# T: Rfind more information from the Repast runtime error log. The error log is available when the icon in% A5 M; z+ x& `: b
the lower right corner of the Repast runtime is flashing.% S4 Q/ L4 q4 h" ^& T/ {3 @! F
0 k% T' k$ J! I大意就是这个错误实际上同日志(logging)设置无关,, b: A( ]# ]2 l6 o j' P
相关问题的解决应该在model.score中解决,
" Y2 s; c& ? H0 i" M% K7 e" V例如不正确的路径设置、缺少agent类文件呀,诸如此类。* v) x2 g! E$ \ {# N6 W# j
如果你启动一个Repast model进行仿真时可能会在Eclipse的控制台中见到log4j message。3 Q3 J! D3 [, @, H& t& {5 T
要获得更多错误相关信息可参考Repast实时错误日志。
5 a' _+ W- q- l& y该错误日志可在Repast运行环境活动时在窗口的右下方看到。9 Q$ ~1 K7 g; m9 e# i8 O5 t) [
0 o$ N5 C7 i% h) U$ ~
[ 本帖最后由 almo 于 2009-3-5 20:53 编辑 ] |