这是官方FAQ中的解释:
' S5 b, t2 F( p. v/ WSeveral people have reported errors when trying to start a Repast Simphony model such as3 @7 }: X( v2 z; {. f
log4j:WARN No appenders could be found for logger
. e* a" t: Z3 ?, ~2 I/ ](MessageCenter.INTERNAL.repast.simphony.ui.RSApplication ).* U/ B7 s2 ^$ s; V
log4j:WARN Please initialize the log4j system properly.9 ~! r# V B: [- ?& c( K
with some variability in the (MessageCenter....) part. In almost all cases, this warning is NOT actually/ A9 ^2 G3 X( S' j
related to logging configuration errors, and more likely it is related to problems in the model.score file& u: N( D9 |' O% n3 e
like incorrect paths, or missing agent class files.+ x5 V: N: ], q$ O8 w
When you start a Repast model and you get the log4j message in the Eclipse console, you can usually2 Y, G9 |6 I" r( ?- T9 {
find more information from the Repast runtime error log. The error log is available when the icon in: U# S4 ^3 ]7 p& B1 z0 Q# U, {
the lower right corner of the Repast runtime is flashing.0 Y8 p, a& X9 Z- k" b' i+ b( g9 `
! t# D. O9 t& E4 q9 h, }8 s H5 z大意就是这个错误实际上同日志(logging)设置无关,- a1 Z. Y' l3 E7 W: W
相关问题的解决应该在model.score中解决,
" \+ Q$ j4 S4 a9 r" M例如不正确的路径设置、缺少agent类文件呀,诸如此类。
- S8 ~+ L h( g* g/ ^如果你启动一个Repast model进行仿真时可能会在Eclipse的控制台中见到log4j message。: H) ~. X) f ]7 i& I n2 m
要获得更多错误相关信息可参考Repast实时错误日志。+ b, ]8 s8 d8 m! x) A7 v7 D
该错误日志可在Repast运行环境活动时在窗口的右下方看到。
9 g& D1 K/ r: y7 U. d* M' i5 V" G8 P: ~5 Y
[ 本帖最后由 almo 于 2009-3-5 20:53 编辑 ] |