1

I have these filling up in the catalina log file causing disk space issues when javaagent is attached. I have no idea from where there are getting triggered. What could be the reason ?

java.lang.StackOverflowError
at java.base/java.util.concurrent.ConcurrentHashMap.putIfAbsent(ConcurrentHashMap.java:1541)
at java.base/java.lang.ClassLoader.getClassLoadingLock(ClassLoader.java:668)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:569)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:576)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:576)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:576)
...........
  • Exact java version? – Johannes Kuhn Oct 19 '21 at 18:25
  • 1.8.0_275 and saw this on 11.0.10 also. So i think its not about version. I am using URLClassloader and trying to load the class. This cannot happen until the current classloader is parent to itself. I am clearly setting the current context classloader as the parent. Any thoughts ? – Amarnath Reddy Oct 20 '21 at 10:57
  • The version is important to make sense of the line number. – Johannes Kuhn Oct 20 '21 at 14:55
  • Looks like this is Java 11: https://github.com/openjdk/jdk11u/blob/master/src/java.base/share/classes/java/lang/ClassLoader.java#L576. What java agent is attached? – Johannes Kuhn Oct 20 '21 at 15:17
  • This is an interesting question. An [MCVE](https://stackoverflow.com/help/mcve) would be helpful. – kriegaex Oct 21 '21 at 07:18

0 Answers0