baev / allure-cli-depricated

Allure Command Line Tool
Other
20 stars 7 forks source link

log4j errors while generating reports #26

Closed alvassin closed 9 years ago

alvassin commented 9 years ago

Using latest release build https://github.com/allure-framework/allure-cli/releases/tag/allure-cli-2.3

I see following errors when generating reports using -v 1.4.2 arguments:

log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
log4j:ERROR [java.net.URLClassLoader@55aa7971] whereas object of type
log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by [sun.misc.Launcher$AppClassLoader@7d6bb63e].
log4j:ERROR Could not instantiate appender named "console"
vania-pooh commented 9 years ago

Hmm, this was fixed in 1.4.2: https://github.com/allure-framework/allure-core/pull/373 https://github.com/allure-framework/allure-core/compare/allure-core-1.4.1...allure-core-1.4.2

alvassin commented 9 years ago

Hm.. but.. i still can see this message.. What i am doing wrong?

allure generate $folder -o $destination -v 1.4.2

P.S. Just downloaded release using this link... https://github.com/allure-framework/allure-cli/releases/tag/allure-cli-2.3 Using debian wheezy, openjdk-7-jre.

vania-pooh commented 9 years ago

@baev any ideas?

tutnichogonema commented 9 years ago

when i'm use 1.4.8 version, i have error

log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not assignable to a " org.apache.log4j.Appender" variable. log4j:ERROR The class "org.apache.log4j.Appender" was loaded by log4j:ERROR [java.net.URLClassLoader@1a8622] whereas object of type log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by [sun.misc.Launcher$ AppClassLoader@1f96302]. log4j:ERROR Could not instantiate appender named "console". log4j:WARN No appenders could be found for logger (ru.yandex.qatools.allure.data.utils.ServiceLoaderUtils). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

baev commented 9 years ago

@alvassin @LeXuZZ it is not an errors, it is just log4j warnings. You can ignore it

BTW we fix it in next releases

baev commented 9 years ago

There is no more log4j errors in new command line client. See http://wiki.qatools.ru/display/AL/Allure+CLI