这是官方FAQ中的解释:
+ o7 z8 @& w) s! M& J' j- d" ^4 xSeveral people have reported errors when trying to start a Repast Simphony model such as
# k! ?1 R7 n3 H; Olog4j:WARN No appenders could be found for logger
5 R( h) @6 F |- y(MessageCenter.INTERNAL.repast.simphony.ui.RSApplication ).. Q6 b2 R& B0 e( F7 ?( J
log4j:WARN Please initialize the log4j system properly.5 O: O* H1 c* @1 a6 S) b
with some variability in the (MessageCenter....) part. In almost all cases, this warning is NOT actually
" G9 J a- c- ~4 f6 x2 M8 orelated to logging configuration errors, and more likely it is related to problems in the model.score file
2 R1 W! m. Y, _" L! n: wlike incorrect paths, or missing agent class files.
3 @8 J' w7 V2 N3 D2 I) K+ M: d" G( \2 `When you start a Repast model and you get the log4j message in the Eclipse console, you can usually
4 l# _: i9 B- pfind more information from the Repast runtime error log. The error log is available when the icon in% k6 _% B: A7 P; Q G3 L- |) P8 U
the lower right corner of the Repast runtime is flashing.* Q3 L, s9 P4 d' y/ B
0 s) G9 F% {: P* f; X; n4 Y
大意就是这个错误实际上同日志(logging)设置无关,
* w2 V6 _5 Z7 L7 b: m相关问题的解决应该在model.score中解决,, Y+ A7 ~9 {/ s: z. L" H
例如不正确的路径设置、缺少agent类文件呀,诸如此类。
' b& I) h) S: W- j! Y4 U如果你启动一个Repast model进行仿真时可能会在Eclipse的控制台中见到log4j message。
h5 K% b M' [* f' i( O" A要获得更多错误相关信息可参考Repast实时错误日志。: ~& u! e# D/ z6 g, x! T
该错误日志可在Repast运行环境活动时在窗口的右下方看到。
* R; S& E. `; [' q; x- b. }8 S0 W7 e1 S# B3 q
[ 本帖最后由 almo 于 2009-3-5 20:53 编辑 ] |