Comments (3)
Hi @xerial do we have any update on this issue? We are facing a similar issue with NullPointerException errors in slf4j v1.7.30:
21/08/05 22:21:01 INFO LineBufferedStream: stdout: SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
21/08/05 22:21:01 INFO LineBufferedStream: stdout: Failed to instantiate SLF4J LoggerFactory
21/08/05 22:21:01 INFO LineBufferedStream: stdout: Reported exception:
21/08/05 22:21:01 INFO LineBufferedStream: stdout: java.lang.NullPointerException
21/08/05 22:21:01 INFO LineBufferedStream: stdout: at org.slf4j.LoggerFactory.reportActualBinding(LoggerFactory.java:349)
21/08/05 22:21:01 INFO LineBufferedStream: stdout: at org.slf4j.LoggerFactory.bind(LoggerFactory.java:152)
21/08/05 22:21:01 INFO LineBufferedStream: stdout: at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:124)
21/08/05 22:21:01 INFO LineBufferedStream: stdout: at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:417)
21/08/05 22:21:01 INFO LineBufferedStream: stdout: at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:362)
21/08/05 22:21:01 INFO LineBufferedStream: stdout: at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:388)
21/08/05 22:21:01 INFO LineBufferedStream: stdout: at org.fluentd.logger.sender.RawSocketSender.<clinit>(RawSocketSender.java:34)
21/08/05 22:21:01 INFO LineBufferedStream: stdout: at org.fluentd.logger.FluentLoggerFactory.getLogger(FluentLoggerFactory.java:72)
21/08/05 22:21:01 INFO LineBufferedStream: stdout: at org.fluentd.logger.FluentLoggerFactory.getLogger(FluentLoggerFactory.java:51)
21/08/05 22:21:01 INFO LineBufferedStream: stdout: at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)
21/08/05 22:21:01 INFO LineBufferedStream: stdout: at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:172)
21/08/05 22:21:01 INFO LineBufferedStream: stdout: at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:104)
21/08/05 22:21:01 INFO LineBufferedStream: stdout: at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:842)
21/08/05 22:21:01 INFO LineBufferedStream: stdout: at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:768)
21/08/05 22:21:01 INFO LineBufferedStream: stdout: at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:648)
21/08/05 22:21:01 INFO LineBufferedStream: stdout: at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:514)
21/08/05 22:21:01 INFO LineBufferedStream: stdout: at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:580)
21/08/05 22:21:01 INFO LineBufferedStream: stdout: at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:526)
21/08/05 22:21:01 INFO LineBufferedStream: stdout: at org.apache.log4j.LogManager.<clinit>(LogManager.java:127)
21/08/05 22:21:01 INFO LineBufferedStream: stdout: at org.slf4j.impl.Log4jLoggerFactory.<init>(Log4jLoggerFactory.java:66)
21/08/05 22:21:01 INFO LineBufferedStream: stdout: at org.slf4j.impl.StaticLoggerBinder.<init>(StaticLoggerBinder.java:72)
21/08/05 22:21:01 INFO LineBufferedStream: stdout: at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:45)
21/08/05 22:21:01 INFO LineBufferedStream: stdout: at org.apache.spark.internal.Logging$.org$apache$spark$internal$Logging$$isLog4j12(Logging.scala:222)
21/08/05 22:21:01 INFO LineBufferedStream: stdout: at org.apache.spark.internal.Logging.initializeLogging(Logging.scala:127)
21/08/05 22:21:01 INFO LineBufferedStream: stdout: at org.apache.spark.internal.Logging.initializeLogIfNecessary(Logging.scala:111)
21/08/05 22:21:01 INFO LineBufferedStream: stdout: at org.apache.spark.internal.Logging.initializeLogIfNecessary$(Logging.scala:105)
21/08/05 22:21:01 INFO LineBufferedStream: stdout: at org.apache.spark.deploy.SparkSubmit.initializeLogIfNecessary(SparkSubmit.scala:75)
21/08/05 22:21:01 INFO LineBufferedStream: stdout: at org.apache.spark.deploy.SparkSubmit.doSubmit(SparkSubmit.scala:83)
21/08/05 22:21:01 INFO LineBufferedStream: stdout: at org.apache.spark.deploy.SparkSubmit$$anon$2.doSubmit(SparkSubmit.scala:1039)
21/08/05 22:21:01 INFO LineBufferedStream: stdout: at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:1048)
21/08/05 22:21:01 INFO LineBufferedStream: stdout: at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
21/08/05 22:21:01 INFO LineBufferedStream: stdout: Exception in thread "main" java.lang.ExceptionInInitializerError
21/08/05 22:21:01 INFO LineBufferedStream: stdout: at org.fluentd.logger.FluentLoggerFactory.getLogger(FluentLoggerFactory.java:72)
21/08/05 22:21:01 INFO LineBufferedStream: stdout: at org.fluentd.logger.FluentLoggerFactory.getLogger(FluentLoggerFactory.java:51)
from fluent-logger-java.
Thanks for reporting. If you are using Spark, airframe-fluentd can be an alternative for a while, which can be used with Scala https://wvlet.org/airframe/docs/airframe-fluentd
I'll try to update slf4j version too
from fluent-logger-java.
Hi @xerial, is the above NullPointerException is fixed? we are seeing the exact same error.
from fluent-logger-java.
Related Issues (20)
- Bad thread interleaving may cause unexpected crash
- Current Error Handling does not return false on logging errors HOT 3
- NullPointerException when the Fluentd server is down
- API changes report for Fluent Logger HOT 1
- support fluentd with secure_forward HOT 1
- java.net.SocketException: Broken pipe HOT 4
- FluentLoggerFactory not invalidate cache after FluentLogger close
- Calling `.close()` does not clean up instance in `FluentLoggerFactory` HOT 2
- NPE in RawSocketSender HOT 1
- There is no way to set socket read timeout HOT 1
- Conflict with Spring cloud SpringApplication run
- Release 0.3.4? HOT 2
- Connection Reset on calling Fluentlogger.log() HOT 3
- Conflict with Spring Webflux
- How to pass credentials to connect remote fluentD aggregator HOT 1
- is this libarary can be used for fluent-bit? HOT 1
- log4j JNDI vulnerability HOT 4
- Add Support For Unix Domain Sockets HOT 1
- Is this library still maintained?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fluent-logger-java.