这是官方FAQ中的解释:5 d" n7 G- T9 H* F8 r
Several people have reported errors when trying to start a Repast Simphony model such as6 F3 ~* F6 O: P& K" Y
log4j:WARN No appenders could be found for logger
$ L" S; a* q* L2 z- @5 h(MessageCenter.INTERNAL.repast.simphony.ui.RSApplication ).9 t! P- v N! G8 M) q
log4j:WARN Please initialize the log4j system properly.
3 M3 P* Z0 j9 b: Pwith some variability in the (MessageCenter....) part. In almost all cases, this warning is NOT actually, I( m4 D1 R, E7 b
related to logging configuration errors, and more likely it is related to problems in the model.score file
- j7 I$ E5 O( v" d+ j% flike incorrect paths, or missing agent class files., u7 k2 M/ d! G y
When you start a Repast model and you get the log4j message in the Eclipse console, you can usually
8 M4 m, n" K0 I$ n0 Dfind more information from the Repast runtime error log. The error log is available when the icon in
. t, b8 Q$ ^0 A/ E( \the lower right corner of the Repast runtime is flashing.
: l6 w: L9 K5 t1 S8 Z! p v
0 y" H' v& h2 Q' s8 [大意就是这个错误实际上同日志(logging)设置无关,6 {5 m% z# j1 i$ o- D! q# d
相关问题的解决应该在model.score中解决,
" Z1 l9 I1 _0 x7 K- @/ i例如不正确的路径设置、缺少agent类文件呀,诸如此类。
: K+ _1 S) e* O* c$ n( h% D1 @% w8 s8 \如果你启动一个Repast model进行仿真时可能会在Eclipse的控制台中见到log4j message。/ ?8 e& p% q8 U5 R+ |
要获得更多错误相关信息可参考Repast实时错误日志。& l2 ?# \. i' z; C) g
该错误日志可在Repast运行环境活动时在窗口的右下方看到。4 T2 J# c; l1 C% p: G4 ], k& k* q
$ Y7 E$ A/ c8 }' X) F[ 本帖最后由 almo 于 2009-3-5 20:53 编辑 ] |