-
-
Save mmlac/2e2b38dc3fbd0e5b0da4 to your computer and use it in GitHub Desktop.
Log4J 2.1 bug report
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name := "breaklog4jul" | |
version := "1.0" | |
scalaVersion := "2.10.4" | |
libraryDependencies ++= Seq( | |
"com.twitter" % "util-app_2.10" % "6.22.1", | |
"com.twitter" % "finagle-stats_2.10" % "6.22.0" | |
) | |
libraryDependencies ++= Seq( | |
"org.apache.logging.log4j" % "log4j-api" % "2.1", | |
"org.apache.logging.log4j" % "log4j-core" % "2.1", | |
"org.apache.logging.log4j" % "log4j-slf4j-impl" % "2.1", | |
"org.apache.logging.log4j" % "log4j-jul" % "2.1", | |
"org.apache.logging.log4j" % "log4j-jcl" % "2.1" | |
) | |
libraryDependencies += "com.twitter" % "twitter-server_2.10" % "1.8.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package foo.bar | |
import com.twitter.server.TwitterServer | |
/** | |
* Created by mmlac on 11/7/14. | |
*/ | |
object Foo extends TwitterServer { | |
def main(): Unit = { | |
log.debug("this is a test!") | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console. | |
Exception in thread "main" java.lang.ExceptionInInitializerError | |
at com.twitter.server.Admin$class.$init$(Admin.scala:13) | |
at foo.bar.Foo$.<init>(Foo.scala:8) | |
at foo.bar.Foo$.<clinit>(Foo.scala) | |
at foo.bar.Foo.main(Foo.scala) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134) | |
Caused by: java.lang.NullPointerException | |
at org.apache.logging.log4j.core.Logger$PrivateConfig.filter(Logger.java:301) | |
at org.apache.logging.log4j.core.Logger.isEnabled(Logger.java:122) | |
at org.apache.logging.log4j.spi.ExtendedLoggerWrapper.isEnabled(ExtendedLoggerWrapper.java:87) | |
at org.apache.logging.log4j.spi.AbstractLogger.logIfEnabled(AbstractLogger.java:699) | |
at org.apache.logging.log4j.jul.WrappedLogger.log(WrappedLogger.java:50) | |
at org.apache.logging.log4j.jul.ApiLogger.log(ApiLogger.java:106) | |
at com.twitter.finagle.util.LoadService$$anonfun$apply$9.apply(LoadService.scala:186) | |
at com.twitter.finagle.util.LoadService$$anonfun$apply$9.apply(LoadService.scala:181) | |
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244) | |
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244) | |
at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59) | |
at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:47) | |
at scala.collection.TraversableLike$class.map(TraversableLike.scala:244) | |
at scala.collection.AbstractTraversable.map(Traversable.scala:105) | |
at com.twitter.finagle.util.LoadService$.apply(LoadService.scala:181) | |
at com.twitter.finagle.http.HttpMuxer$.<init>(HttpMuxer.scala:118) | |
at com.twitter.finagle.http.HttpMuxer$.<clinit>(HttpMuxer.scala) | |
... 9 more |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment