这是官方FAQ中的解释:
$ k( a" t! f- nSeveral people have reported errors when trying to start a Repast Simphony model such as) i# W8 A: b* s
log4j:WARN No appenders could be found for logger
# |* a. m2 ]8 d(MessageCenter.INTERNAL.repast.simphony.ui.RSApplication )." v# Q$ A9 o3 z4 y# v+ C
log4j:WARN Please initialize the log4j system properly.* N; m+ t2 M: u
with some variability in the (MessageCenter....) part. In almost all cases, this warning is NOT actually
, s/ q7 n# O( ~* A/ h+ x L* |related to logging configuration errors, and more likely it is related to problems in the model.score file9 Z7 j/ M; q' T2 t/ B' a
like incorrect paths, or missing agent class files.$ l4 f0 Z4 D- s! ?& G2 J% Z& y& y
When you start a Repast model and you get the log4j message in the Eclipse console, you can usually
7 i2 _6 e, e- V) X3 C* pfind more information from the Repast runtime error log. The error log is available when the icon in' r) x3 K: r: t1 F5 m
the lower right corner of the Repast runtime is flashing.
" m* s. Z, q7 Z+ ?- D5 P2 q3 Y @. ? h2 [; v3 ~& } A
大意就是这个错误实际上同日志(logging)设置无关,
6 L% q4 g" d! x* o% M相关问题的解决应该在model.score中解决,
4 I' z1 d7 W A/ P. Q- J例如不正确的路径设置、缺少agent类文件呀,诸如此类。
. k( T, f4 ~& q* K- \. ~ {( y7 B; y6 z如果你启动一个Repast model进行仿真时可能会在Eclipse的控制台中见到log4j message。9 I. x( D. m9 X8 F
要获得更多错误相关信息可参考Repast实时错误日志。
! i; T0 K$ L, l% c* D3 _) q% @该错误日志可在Repast运行环境活动时在窗口的右下方看到。; M/ A/ F2 ~2 t/ [6 `$ b6 ^
# ^& p3 q2 n5 m6 ~+ d$ ?, a9 d
[ 本帖最后由 almo 于 2009-3-5 20:53 编辑 ] |