这是官方FAQ中的解释:
2 z/ g4 u! f8 N, A# J2 lSeveral people have reported errors when trying to start a Repast Simphony model such as# ^' S3 f: S7 l9 H: }
log4j:WARN No appenders could be found for logger
5 g% V {4 [3 Z, Y(MessageCenter.INTERNAL.repast.simphony.ui.RSApplication ).
4 b: Y" o l2 i* G7 olog4j:WARN Please initialize the log4j system properly.: R7 u# z4 G1 x4 N
with some variability in the (MessageCenter....) part. In almost all cases, this warning is NOT actually
Z. V( V! a. B# ^) grelated to logging configuration errors, and more likely it is related to problems in the model.score file
( |/ u" L, M0 T& r3 w6 l t3 zlike incorrect paths, or missing agent class files.
! X# L$ @1 a& W# h+ U* eWhen you start a Repast model and you get the log4j message in the Eclipse console, you can usually( w1 |+ _( ]/ x
find more information from the Repast runtime error log. The error log is available when the icon in
l w9 ?: P/ g, f$ F2 A3 |the lower right corner of the Repast runtime is flashing. }( E; _9 n; M7 ^, W J, R
9 Z) C* N0 B: X) k& a3 L- ?大意就是这个错误实际上同日志(logging)设置无关,* h5 t: ?. A2 A* j, J4 X
相关问题的解决应该在model.score中解决, b" y+ N! _5 X# u
例如不正确的路径设置、缺少agent类文件呀,诸如此类。
. Y" _' j" f4 A. V I$ R. s; p2 p如果你启动一个Repast model进行仿真时可能会在Eclipse的控制台中见到log4j message。/ p# Y( ]+ h0 r3 ?
要获得更多错误相关信息可参考Repast实时错误日志。- W5 e- n' h8 g4 S( x
该错误日志可在Repast运行环境活动时在窗口的右下方看到。) _9 l) Y5 P0 }# M9 r8 B
6 o5 y6 r) ]8 n/ P2 `8 h7 }7 ^[ 本帖最后由 almo 于 2009-3-5 20:53 编辑 ] |