这是官方FAQ中的解释:
. p: L+ f J$ m0 X4 j$ c' i& Z& PSeveral people have reported errors when trying to start a Repast Simphony model such as
" t7 B( g" W# x. H jlog4j:WARN No appenders could be found for logger- z& e. D. ^4 g+ D
(MessageCenter.INTERNAL.repast.simphony.ui.RSApplication ).
! M, O9 a/ F( s- g/ klog4j:WARN Please initialize the log4j system properly.8 v7 n! P9 e9 Z$ H
with some variability in the (MessageCenter....) part. In almost all cases, this warning is NOT actually
. o$ [% C! m5 trelated to logging configuration errors, and more likely it is related to problems in the model.score file' ]$ x* t- v% m4 o1 r) t. T0 q# s
like incorrect paths, or missing agent class files.
& C7 l/ H/ b/ e% P- t, T8 v5 z) `When you start a Repast model and you get the log4j message in the Eclipse console, you can usually( h# W" e* D, E
find more information from the Repast runtime error log. The error log is available when the icon in
: T, l1 U2 o& |9 F6 p! Wthe lower right corner of the Repast runtime is flashing.
6 O- m. B8 O" s( e% C: a4 t; ?4 `2 Z$ ~/ g
大意就是这个错误实际上同日志(logging)设置无关,
/ m" p2 X) @* N8 P" C+ S8 t/ `相关问题的解决应该在model.score中解决,
# p- h- s. B( n5 u1 z% H例如不正确的路径设置、缺少agent类文件呀,诸如此类。
# w- @7 r+ }$ C4 E! y) r6 a& z如果你启动一个Repast model进行仿真时可能会在Eclipse的控制台中见到log4j message。) {" m, ~8 L4 X. X% d' |; E
要获得更多错误相关信息可参考Repast实时错误日志。; `2 m+ w" B* P! b4 _# p
该错误日志可在Repast运行环境活动时在窗口的右下方看到。
$ |2 Y' t5 q& U. k& Y. \: \
* Y2 L& U' C5 r- _6 e2 }' j[ 本帖最后由 almo 于 2009-3-5 20:53 编辑 ] |