这是官方FAQ中的解释:, z z5 d. `" C5 b l6 |( v
Several people have reported errors when trying to start a Repast Simphony model such as' B, A5 Z. j+ I" m( r& H
log4j:WARN No appenders could be found for logger
: l3 X+ Y5 ~0 m% I, F(MessageCenter.INTERNAL.repast.simphony.ui.RSApplication ).
. _* ?! [( W( P( g" Q. k2 y7 rlog4j:WARN Please initialize the log4j system properly.) Q9 v9 `* g9 w A0 M
with some variability in the (MessageCenter....) part. In almost all cases, this warning is NOT actually; k J, X" \5 V/ y: ] D8 o
related to logging configuration errors, and more likely it is related to problems in the model.score file3 o- I7 t5 m: J" x5 Z
like incorrect paths, or missing agent class files.+ R/ T, e8 z% e/ B$ d! H. }& b
When you start a Repast model and you get the log4j message in the Eclipse console, you can usually
& p% X% e7 h- z8 q+ M; Cfind more information from the Repast runtime error log. The error log is available when the icon in) `1 J3 u' U7 y! r/ a5 P; Y6 x9 l
the lower right corner of the Repast runtime is flashing.
3 d! r7 c3 p# R$ o- _5 N" A9 m* c8 U; a! ~* a5 u7 ~7 b; `# X. V2 ?
大意就是这个错误实际上同日志(logging)设置无关,5 _ [; i8 Q7 ^7 G
相关问题的解决应该在model.score中解决,
% ~) K$ M( D& j2 k例如不正确的路径设置、缺少agent类文件呀,诸如此类。
! N U2 _! y3 h2 }: \3 [) w如果你启动一个Repast model进行仿真时可能会在Eclipse的控制台中见到log4j message。
: I$ e4 b" W# R3 j要获得更多错误相关信息可参考Repast实时错误日志。
0 P- e% V. f- A/ f) j+ i1 R该错误日志可在Repast运行环境活动时在窗口的右下方看到。$ y8 S7 X8 E7 y& T3 L
; d* G( \- y3 ~" m/ D2 r. `[ 本帖最后由 almo 于 2009-3-5 20:53 编辑 ] |