log4j:WARN No appenders could be found for logger (com.netease.qa.testng.TestngRetry).log4j:WARN Please initialize the log4j system properly. 一直都有上面的警告,因为没有影响程序就没管,知道是因为少了log4j.properties的配置问题,因为是日志没大管.最近发现,看着实在不爽,决定处理 上方案如下: log4j:WARN Please initia…
log4j:WARN No appenders could be found for logger (org.apache.hadoop.metrics2.lib.MutableMetricsFactory). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. Exce…
在测试获取数据库中的数据或者在页面获取时,有时会遇到这样的错误提示: failed to lazily initialize a collection of role: com.exam.entity.Question.questionAnswer, no session or session was closed 其中com.exam.entity.Question.questionAnswer为错误的相关类名,根据实际情况而定. 从错误的字面意思可以发现是延迟加载初始化时遇到了问题. 从错误…
salve复制线程停止,尝试start slave 时报ERROR 1872错误mysql> system perror 1872 MySQL error code 1872 (ER_SLAVE_RLI_INIT_REPOSITORY): Slave failed to initialize relay log info structure from the repository解决过程1.看样子是找不到中继日志的仓库,但是查看变量relay log的位置是设置了的mysql> show va…
前几天发现tomcat提示 Could not initialize class sun.awt.X11GraphicsEnvironment 问题.以为不验证,就没太关注,今天发现,有同事提示了个bug,验证码刷不出来,查看日志,报了很多这个个错误.才意识到问题的严重. 网上找了找资料:共两种解决方案 1:http://love-love-l.blog.163.com/blog/static/21078304200908595214/ 2:http://tcrct.iteye.com/blo…
在tomcat启动的时候,出现这个警告: log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax).log4j:WARN Please initialize the log4j system properly. 解决办法: log4j.properties文件需要放到web-inf/class目录下面,在eclipse里面放到src目录下面,会自动拷贝到class目录下…
今天在SQL Server 2008中执行存储过程的时候报以下错误: Msg , Level , State , Procedure usp_QueryRealTimeRoomInfo, Line Failed to initialize the Common Language Runtime (CLR) v2.0.50727 due to memory pressure. This is probably due to memory pressure in the MemToLeave reg…
导读: 在使用hibernate进行持久化时,有时需要动态的改变对象的加载,比如在编辑页面里面lazy=true,而在浏览页面lazy=false,这样可以在需要lazy的地方才进行控制.而配置文件中Lazy属性是全局控制的,如何处理呢? 当元素或者元素的lazy属性为true时,load() or get() or find()加载这些对象时,Hibernate不会马上产生任何select语句,只是产生一个Obj代理类实例,只有在session没有关闭的情况下运行Obj.getXxx()时…
http://msdn.microsoft.com/en-us/library/azure/gg433132.aspx To initialize the storage emulator Click the Start button or press the Windows key. Begin typing Windows Azure Storage Emulator and select it when it appears. A command prompt window will po…