这是官方FAQ中的解释:) Z ]' o) g5 ]% b6 f, x T
Several people have reported errors when trying to start a Repast Simphony model such as
' G9 f' Z& s$ O& Z% N( Wlog4j:WARN No appenders could be found for logger) C- Z: H N, V2 ~* M( I
(MessageCenter.INTERNAL.repast.simphony.ui.RSApplication ).6 ^; u& A, B+ O1 ^* G% f8 e
log4j:WARN Please initialize the log4j system properly.
; _% J. L% T+ D6 c$ a5 bwith some variability in the (MessageCenter....) part. In almost all cases, this warning is NOT actually O+ X4 Q P) `9 I$ E1 q+ S
related to logging configuration errors, and more likely it is related to problems in the model.score file
- p* R4 C; \) z8 ~: L/ X3 e H# mlike incorrect paths, or missing agent class files., |3 \1 a) t* n+ q
When you start a Repast model and you get the log4j message in the Eclipse console, you can usually1 F1 k9 ^- }' v* Q( f5 \
find more information from the Repast runtime error log. The error log is available when the icon in
+ [0 x; s- A! U& v3 B% Y9 I; }the lower right corner of the Repast runtime is flashing.
0 e: o" ~1 A3 ?' H. a& y, @) }* F5 _% U8 ]" w% I
大意就是这个错误实际上同日志(logging)设置无关,
9 t8 ?' a* i/ ?% d% N相关问题的解决应该在model.score中解决,
& D( {( m9 L0 r0 }6 F0 x/ m4 g7 {8 H例如不正确的路径设置、缺少agent类文件呀,诸如此类。
" D! e0 K l1 e; [如果你启动一个Repast model进行仿真时可能会在Eclipse的控制台中见到log4j message。8 c. ]- A- q( j' x9 F; p0 U
要获得更多错误相关信息可参考Repast实时错误日志。. M5 x9 \/ k# f( O! {) r) d
该错误日志可在Repast运行环境活动时在窗口的右下方看到。9 s$ x) C5 y1 @6 ^0 p l7 \0 i$ p
7 O7 K, B+ j# D9 J
[ 本帖最后由 almo 于 2009-3-5 20:53 编辑 ] |