这是官方FAQ中的解释:4 L7 Y7 W7 n8 A( w( w, \0 G0 F: b
Several people have reported errors when trying to start a Repast Simphony model such as
9 ^& f- H' k4 w1 B8 [: glog4j:WARN No appenders could be found for logger
9 l) ^$ U2 U, V) M" q9 P(MessageCenter.INTERNAL.repast.simphony.ui.RSApplication ).$ _; M5 f2 Z% s1 o5 E( l4 B. |3 T
log4j:WARN Please initialize the log4j system properly.( r" g+ i a, |: d) ?; m/ ^
with some variability in the (MessageCenter....) part. In almost all cases, this warning is NOT actually4 h# Z7 l" Y% _3 w9 ~8 I# b# p
related to logging configuration errors, and more likely it is related to problems in the model.score file. y* O1 j+ x9 I4 k, k2 l: `9 ~7 _0 w
like incorrect paths, or missing agent class files.3 A. q4 b7 d; z; Y4 p* B8 W7 z1 S
When you start a Repast model and you get the log4j message in the Eclipse console, you can usually( t0 n! u7 F I
find more information from the Repast runtime error log. The error log is available when the icon in
5 K- O i4 v# B% {* tthe lower right corner of the Repast runtime is flashing.4 {9 _- P" b; V% M h! S
: s" i1 m* c+ U2 l4 Q* A k* l5 X' X大意就是这个错误实际上同日志(logging)设置无关,
& V: n5 x% z6 I4 C7 {5 Q6 ^" \0 j# `相关问题的解决应该在model.score中解决,; `# g) Z( V( v: x$ A0 t8 ?4 u8 L
例如不正确的路径设置、缺少agent类文件呀,诸如此类。% |4 t: A: d" S. H. b
如果你启动一个Repast model进行仿真时可能会在Eclipse的控制台中见到log4j message。
# _8 u: `3 j- M6 F# w5 i/ T要获得更多错误相关信息可参考Repast实时错误日志。
0 \0 ]: w6 X9 [6 P8 l3 `0 a该错误日志可在Repast运行环境活动时在窗口的右下方看到。
. S8 p: `3 m9 z: ~5 A* \( q6 `; Y7 F' \
[ 本帖最后由 almo 于 2009-3-5 20:53 编辑 ] |