-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我在使用时,出现了问题 #2
Comments
Hello. |
Thanks for your reply, I tried your method, and then there was a mistake. 2016-09-07 08:27:59 2016-09-07 08:27:59 2016-09-07 08:27:59 |
你好,我在使用时出现了下面的问题。是哪里出问题了?
log4j:ERROR Unexpected exception while initialising MongoDbAppender.
java.lang.NullPointerException
at com.mongodb.WriteConcern.valueOf(WriteConcern.java:399)
at com.focusit.log4jmongo.appender.SimpleMongoDbAppender.initialize(SimpleMongoDbAppender.java:392)
at com.focusit.log4jmongo.appender.SimpleMongoDbAppender.activateOptions(SimpleMongoDbAppender.java:80)
at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:172)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:104)
at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:809)
at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:735)
at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:615)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:502)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:547)
at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:483)
at org.apache.log4j.LogManager.(LogManager.java:127)
at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:73)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:253)
The text was updated successfully, but these errors were encountered: