这是官方FAQ中的解释:3 g2 ~ E& ^1 V' @! a7 M$ U2 @
Several people have reported errors when trying to start a Repast Simphony model such as
) |! l) A' `3 Y* \$ slog4j:WARN No appenders could be found for logger
2 [; l: O; x! a) |; ~3 I(MessageCenter.INTERNAL.repast.simphony.ui.RSApplication ).) g# ^" R$ {9 H4 j) l. o1 b: N
log4j:WARN Please initialize the log4j system properly.
( \0 \/ o# `$ j- x0 L$ C8 Ywith some variability in the (MessageCenter....) part. In almost all cases, this warning is NOT actually+ Z3 H% V. I" T
related to logging configuration errors, and more likely it is related to problems in the model.score file
$ T5 E5 i4 o9 D* |like incorrect paths, or missing agent class files.
0 Q; s8 @# N/ G4 UWhen you start a Repast model and you get the log4j message in the Eclipse console, you can usually( z; q$ [- @/ m, j8 W
find more information from the Repast runtime error log. The error log is available when the icon in
% A+ h4 Y: [0 P/ H2 }: qthe lower right corner of the Repast runtime is flashing.
& e( O+ ?* x- Z9 t- g: T, j L" u+ q
大意就是这个错误实际上同日志(logging)设置无关,
: }" }" K' D. ?* \ L相关问题的解决应该在model.score中解决,
: V" Y, X7 Q; M9 W0 k例如不正确的路径设置、缺少agent类文件呀,诸如此类。
' Y" y9 T# a8 ^如果你启动一个Repast model进行仿真时可能会在Eclipse的控制台中见到log4j message。/ \! W# q7 J4 o4 x* _" ?
要获得更多错误相关信息可参考Repast实时错误日志。
7 f, y) n. e9 M, \# h该错误日志可在Repast运行环境活动时在窗口的右下方看到。
! n( t2 F9 J7 B8 k4 z" T. G! v" m& I/ l: p
[ 本帖最后由 almo 于 2009-3-5 20:53 编辑 ] |