这是官方FAQ中的解释:
9 y' f" j( c! i" cSeveral people have reported errors when trying to start a Repast Simphony model such as
5 d" k% a$ K2 U. m4 S* glog4j:WARN No appenders could be found for logger- T* g) d. a% ?% R9 e# { K
(MessageCenter.INTERNAL.repast.simphony.ui.RSApplication ).
6 [' E/ [8 w/ X6 Q& G0 C$ ?log4j:WARN Please initialize the log4j system properly.$ @6 v/ F. W7 J4 r! N: s
with some variability in the (MessageCenter....) part. In almost all cases, this warning is NOT actually
+ u( K9 ^7 s. L/ {related to logging configuration errors, and more likely it is related to problems in the model.score file
, a' g8 A; F V2 }. m, m m8 }$ Y% Zlike incorrect paths, or missing agent class files.) W- C3 Y" M! J3 F; k
When you start a Repast model and you get the log4j message in the Eclipse console, you can usually. o8 i6 j0 m/ _$ X' \
find more information from the Repast runtime error log. The error log is available when the icon in
: A% i; o2 ~7 Gthe lower right corner of the Repast runtime is flashing.# x k9 f2 Z1 D% d
1 z M2 S2 o# H4 s( R% ?9 `# f3 b8 y) ~
大意就是这个错误实际上同日志(logging)设置无关," u) M* L' [& j" h5 V! d
相关问题的解决应该在model.score中解决,5 Y P, m0 H) u2 H3 Q1 O' ]4 Y
例如不正确的路径设置、缺少agent类文件呀,诸如此类。
: [: B1 y% a' [& A* U如果你启动一个Repast model进行仿真时可能会在Eclipse的控制台中见到log4j message。: S0 b# \7 x5 H$ P% c
要获得更多错误相关信息可参考Repast实时错误日志。
3 z. }% h; _) F* h {7 ]该错误日志可在Repast运行环境活动时在窗口的右下方看到。
/ Q6 L; `/ x# Q/ l
) X, j7 O9 d4 K$ u7 v[ 本帖最后由 almo 于 2009-3-5 20:53 编辑 ] |