简体   繁体   English

线程“主”中的异常org.apache.velocity.exception.VelocityException

[英]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.

相关问题 Velocity模板-线程“ main”中的异常org.apache.velocity.exception.ResourceNotFoundException:无法找到资源 - Velocity Template - Exception in thread “main” org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource Apache velocity:org.apache.velocity.exception.ResourceNotFoundException - Apache velocity: org.apache.velocity.exception.ResourceNotFoundException org.apache.velocity.exception.ResourceNotFoundException - org.apache.velocity.exception.ResourceNotFoundException 线程“main”org.apache.kafka.streams.errors.InvalidStateStoreException 中的异常: - Exception in thread "main" org.apache.kafka.streams.errors.InvalidStateStoreException: Java Apache Spark Maven Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/spark/SparkConf - Java Apache Spark Maven Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/spark/SparkConf 线程“JavaFX 应用程序线程”中的 JavaFx 异常 线程“主”java.lang.NoClassDefFoundError 中的异常:org/apache/log4j/Logger - JavaFx Exception in thread "JavaFX Application Thread" Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Logger Apache Jena错误:线程“ main”中的异常org.apache.jena.shared.PropertyNotFoundException - Apache Jena Error: Exception in thread “main” org.apache.jena.shared.PropertyNotFoundException Hadoop / Eclipse - 线程“main”中的异常java.lang.NoClassDefFoundError:org / apache / hadoop / fs / FileSystem - Hadoop/Eclipse - Exception in thread “main” java.lang.NoClassDefFoundError: org/apache/hadoop/fs/FileSystem 线程“主”中的java异常java.lang.NoClassDefFoundError:org / apache / commons / io / FileUtils - java Exception in thread “main” java.lang.NoClassDefFoundError: org/apache/commons/io/FileUtils 线程“ main”中的异常java.lang.NoClassDefFoundError:org / apache / http / NoHttpResponseException - Exception in thread “main” java.lang.NoClassDefFoundError: org/apache/http/NoHttpResponseException
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM