设为首页收藏本站

最大的系统仿真与系统优化公益交流社区

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 9207|回复: 1

[求助] 控制台出现以下错误提示?

[复制链接]
发表于 2009-3-4 16:28:41 | 显示全部楼层 |阅读模式
5仿真币
log4j:WARN No appenders could be found for logger (MessageCenter.INTERNAL.repast.simphony.ui.RSApplication).# J: I, v. o% ~" S) _/ M
log4j:WARN Please initialize the log4j system properly.
! ^' C9 i7 X- @& X3 Q4 v哪位知道怎么解决吗?谢谢啦!

最佳答案

查看完整内容

这是官方FAQ中的解释: Several people have reported errors when trying to start a Repast Simphony model such as log4j:WARN No appenders could be found for logger (MessageCenter.INTERNAL.repast.simphony.ui.RSApplication ). log4j:WARN Please initialize the log4j system properly. with some variability in the (MessageCenter....) part. In almost all cases, this warning is NOT actually related to logging ...
发表于 2009-3-4 16:28:42 | 显示全部楼层
这是官方FAQ中的解释:0 q3 x# o: \$ ?- B1 @4 I8 \
Several people have reported errors when trying to start a Repast Simphony model such as
5 r( s+ x6 }( Xlog4j:WARN No appenders could be found for logger6 ~( D! A0 [1 e9 @, r! w: \4 r+ K
(MessageCenter.INTERNAL.repast.simphony.ui.RSApplication ).
# x+ {/ R& Q9 L& jlog4j:WARN Please initialize the log4j system properly.5 J9 C0 d2 Y; e3 }( s
with some variability in the (MessageCenter....) part. In almost all cases, this warning is NOT actually4 D  q$ {: e% o9 M, \
related to logging configuration errors, and more likely it is related to problems in the model.score file* k0 B$ G0 P. J8 |. l
like incorrect paths, or missing agent class files.. R9 J! {4 j3 [/ B' C
When you start a Repast model and you get the log4j message in the Eclipse console, you can usually6 A, i7 k) E; V
find more information from the Repast runtime error log. The error log is available when the icon in
; u, B  Q- N7 ^5 f( W- ^the lower right corner of the Repast runtime is flashing.
9 `6 ?) g% b# ]0 H! x: `
/ c' X; _2 v0 I" G/ E) I  J大意就是这个错误实际上同日志(logging)设置无关,. B# g/ M2 b/ U& F0 F8 I
相关问题的解决应该在model.score中解决,- ?8 q5 b) V" s/ P
例如不正确的路径设置、缺少agent类文件呀,诸如此类。6 E0 [2 c& A, R
如果你启动一个Repast model进行仿真时可能会在Eclipse的控制台中见到log4j message。
& w# a, U7 S5 Q3 x/ e* p要获得更多错误相关信息可参考Repast实时错误日志。9 x" S6 \6 K3 Y3 h
该错误日志可在Repast运行环境活动时在窗口的右下方看到。2 u" k! E4 f6 n- @# C( o

1 U. @  \  P1 x( g, \  c[ 本帖最后由 almo 于 2009-3-5 20:53 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|SimulWay 道于仿真   

GMT+8, 2026-6-20 23:06 , Processed in 0.021643 second(s), 13 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表