[英]Exception in thread “main” org.apache.velocity.exception.VelocityException
Does anyone know how can I solve this problem? 有谁知道我该如何解决这个问题?
I am trying to make a connection with amazonMechanicalTurk
using Java API. 我正在尝试使用Java API与
amazonMechanicalTurk
建立连接。
Exception in thread "main"
org.apache.velocity.exception.VelocityException: Error initializing
log: org.apache.log4j.Logger object set as runtime.log.logsystem is
not a valid log implementation.
Caused by: org.apache.velocity.exception.VelocityException:
org.apache.log4j.Logger object set as runtime.log.logsystem is not a
valid log implementation.
Do yourself a favor, working with Velocity I've learned that is better to shut down his damn log: 帮个忙,与Velocity合作,我了解到最好关闭他该死的日志:
//disabling Velocity log
Velocity.setProperty("runtime.log.logsystem.class", "org.apache.velocity.runtime.log.NullLogSystem");
I just decided to add some other Velocity libraries to my project. 我只是决定向我的项目中添加其他一些Velocity库。 My project only had the Apache Velocity jar file, then from here , I also added Velocity-Dep to my Maven project and Yesssssssssss!
我的项目只有Apache Velocity jar文件,然后从这里 ,我还将Velocity-Dep添加到我的Maven项目和Yesssssssssss! VICTORY!
胜利! Still asking why?!!
还在问为什么?! because my project was working well until I decided to update java-aws-mturk library to version 1.7.0;
因为我的项目运行良好,直到我决定将java-aws-mturk库更新为1.7.0版; then after I got that error!
然后我得到那个错误!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.