这是官方FAQ中的解释:+ F1 u; [; G1 U7 T& j
Several people have reported errors when trying to start a Repast Simphony model such as5 n0 v7 W: Y4 G! O
log4j:WARN No appenders could be found for logger
& t" i6 L$ j4 Z& c) [! W M9 d4 A(MessageCenter.INTERNAL.repast.simphony.ui.RSApplication ).% e A) J. J/ \6 K1 s q
log4j:WARN Please initialize the log4j system properly.
2 Y) {; T0 o9 c/ pwith some variability in the (MessageCenter....) part. In almost all cases, this warning is NOT actually
$ C' o! t9 G3 A p4 s% I; u1 F Srelated to logging configuration errors, and more likely it is related to problems in the model.score file
' ^+ K6 u: F* [7 Z7 alike incorrect paths, or missing agent class files.- Q3 S( o4 p' B$ |4 R
When you start a Repast model and you get the log4j message in the Eclipse console, you can usually5 K7 d5 `/ g* Q, j0 Y L6 W
find more information from the Repast runtime error log. The error log is available when the icon in
- |3 f" A3 v& E7 Vthe lower right corner of the Repast runtime is flashing.7 U6 B' E5 @" o1 k( e
2 B; J" d2 m0 y: N8 T( O4 i
大意就是这个错误实际上同日志(logging)设置无关,5 J2 s+ Y0 F2 n7 N; s) ~: A# j
相关问题的解决应该在model.score中解决,; w- [8 G0 [, \) Z, f* A
例如不正确的路径设置、缺少agent类文件呀,诸如此类。. l+ [8 g7 l- j0 S
如果你启动一个Repast model进行仿真时可能会在Eclipse的控制台中见到log4j message。% K# M0 c9 t& f; I( p& o. J
要获得更多错误相关信息可参考Repast实时错误日志。
, m( ^, [; J# B, U6 O该错误日志可在Repast运行环境活动时在窗口的右下方看到。
3 c* H& n6 N: e3 u' g
7 W3 g& n/ R4 K! g6 }7 O+ @[ 本帖最后由 almo 于 2009-3-5 20:53 编辑 ] |