这是官方FAQ中的解释:
& P$ z" c# e, x6 d* M: M4 g4 GSeveral people have reported errors when trying to start a Repast Simphony model such as
9 t, H* ^0 x& ` rlog4j:WARN No appenders could be found for logger w0 E: M8 ~! l! N! j
(MessageCenter.INTERNAL.repast.simphony.ui.RSApplication ).0 g# ?6 a' g$ _6 Y( z7 G
log4j:WARN Please initialize the log4j system properly.
! h3 O' h: E# _0 u L3 p9 cwith some variability in the (MessageCenter....) part. In almost all cases, this warning is NOT actually
8 C# |. K3 }8 u* b7 v5 N" Lrelated to logging configuration errors, and more likely it is related to problems in the model.score file
( R) m! R3 Q4 O0 ]like incorrect paths, or missing agent class files.
( t) Q6 E6 i+ S+ C! aWhen you start a Repast model and you get the log4j message in the Eclipse console, you can usually; I i; W7 c+ D6 E. z! t
find more information from the Repast runtime error log. The error log is available when the icon in
' ]) G) `7 ~8 Ythe lower right corner of the Repast runtime is flashing.; @' X; v1 _/ T/ w
1 E) N7 G4 x D; M! m2 C, k
大意就是这个错误实际上同日志(logging)设置无关,8 n8 R; T& f# m) i& T& b8 M
相关问题的解决应该在model.score中解决,' v/ E% N X- g" Z* q/ d1 W3 v X
例如不正确的路径设置、缺少agent类文件呀,诸如此类。
5 m" c. a$ [- A# i5 P0 a如果你启动一个Repast model进行仿真时可能会在Eclipse的控制台中见到log4j message。
* O% t# F6 {/ J/ T要获得更多错误相关信息可参考Repast实时错误日志。5 t4 ?1 M2 `( D8 B) I0 y d V
该错误日志可在Repast运行环境活动时在窗口的右下方看到。! r0 e& s% ~' H {* j4 f; @: z, z
; w) U" _5 E. Y' D! A$ n& x
[ 本帖最后由 almo 于 2009-3-5 20:53 编辑 ] |