Exception in thread "main" java.lang.StackOverflowError
at sun.util.calendar.AbstractCalendar.getTime(AbstractCalendar.java:175)
at java.util.Date.normalize(Date.java:1257)
at java.util.Date.normalize(Date.java:1204)
at java.util.Date.getTimeImpl(Date.java:890)
at java.util.Date.<init>(Date.java:256)
at java.util.zip.ZipUtils.dosToJavaTime(ZipUtils.java:74)
at java.util.zip.ZipFile.getZipEntry(ZipFile.java:570)
at java.util.zip.ZipFile.getEntry(ZipFile.java:313)
at java.util.jar.JarFile.getEntry(JarFile.java:240)
at java.util.jar.JarFile.getJarEntry(JarFile.java:223)
at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:1005)
at sun.misc.URLClassPath$JarLoader.findResource(URLClassPath.java:983)
at sun.misc.URLClassPath.findResource(URLClassPath.java:188)
at java.net.URLClassLoader$2.run(URLClassLoader.java:569)
at java.net.URLClassLoader$2.run(URLClassLoader.java:567)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findResource(URLClassLoader.java:566)
at java.lang.ClassLoader.getResource(ClassLoader.java:1093)
at org.apache.spark.Logging$class.initializeLogging(Logging.scala:119)
at org.apache.spark.Logging$class.initializeIfNecessary(Logging.scala:106)
at org.apache.spark.Logging$class.log(Logging.scala:45)
at org.apache.spark.SecurityManager.log(SecurityManager.scala:134)
at org.apache.spark.Logging$class.initializeLogging(Logging.scala:122)
at org.apache.spark.Logging$class.initializeIfNecessary(Logging.scala:106)
at org.apache.spark.Logging$class.log(Logging.scala:45)
at org.apache.spark.SecurityManager.log(SecurityManager.scala:134)
at org.apache.spark.Logging$class.initializeLogging(Logging.scala:122)
at org.apache.spark.Logging$class.initializeIfNecessary(Logging.scala:106)
at org.apache.spark.Logging$class.log(Logging.scala:45)
at org.apache.spark.SecurityManager.log(SecurityManager.scala:134)
at org.apache.spark.Logging$class.initializeLogging(Logging.scala:122)
at org.apache.spark.Logging$class.initializeIfNecessary(Logging.scala:106)
at org.apache.spark.Logging$class.log(Logging.scala:45)
at org.apache.spark.SecurityManager.log(SecurityManager.scala:134)
at org.apache.spark.Logging$class.initializeLogging(Logging.scala:122)
at org.apache.spark.Logging$class.initializeIfNecessary(Logging.scala:106)
at org.apache.spark.Logging$class.log(Logging.scala:45)
at org.apache.spark.SecurityManager.log(SecurityManager.scala:134)
at org.apache.spark.Logging$class.initializeLogging(Logging.scala:122)
at org.apache.spark.Logging$class.initializeIfNecessary(Logging.scala:106)
at org.apache.spark.Logging$class.log(Logging.scala:45)
at org.apache.spark.SecurityManager.log(SecurityManager.scala:134)
at org.apache.spark.Logging$class.initializeLogging(Logging.scala:122)
at org.apache.spark.Logging$class.initializeIfNecessary(Logging.scala:106)
at org.apache.spark.Logging$class.log(Logging.scala:45)
at org.apache.spark.SecurityManager.log(SecurityManager.scala:134)
at org.apache.spark.Logging$class.initializeLogging(Logging.scala:122)
at org.apache.spark.Logging$class.initializeIfNecessary(Logging.scala:106)
at org.apache.spark.Logging$class.log(Logging.scala:45)
at org.apache.spark.SecurityManager.log(SecurityManager.scala:134)
at org.apache.spark.Logging$class.initializeLogging(Logging.scala:122)
at org.apache.spark.Logging$class.initializeIfNecessary(Logging.scala:106)
at org.apache.spark.Logging$class.log(Logging.scala:45)
at org.apache.spark.SecurityManager.log(SecurityManager.scala:134)
at org.apache.spark.Logging$class.initializeLogging(Logging.scala:122)
at org.apache.spark.Logging$class.initializeIfNecessary(Logging.scala:106)
at org.apache.spark.Logging$class.log(Logging.scala:45)
at org.apache.spark.SecurityManager.log(SecurityManager.scala:134)
at org.apache.spark.Logging$class.initializeLogging(Logging.scala:122)
解决办法:
检查引入的log4j 包有重复。删除重复的。