0

Our server has been in production for years without issues, but today it crashed out of the blue.

Last in the logs:

    Exception in thread "main" java.lang.NoClassDefFoundError: aasxknsakadskdskdskdsakmxxads
    Caused by: java.lang.ClassNotFoundException: aasknsakadskdskdskdsakmads
        at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:266)

Could not find the main class: aasxknsakadskdskdskdsakxxmads. Program will exit.

While its obvious what caused the crash, i have no clue as to why. We have no new production code, nothing has changed as far as we know. I'm not sure how to investigate this, to me it seems like some sort of dynamic class-loading hack attempt?

I'm at a loss so any pointers on how to investigate / prevent this would be extremely appreciated.

Tomcat/6.0.28

Mathias
  • 121
  • 3
  • Look earlier in the logs - any reload? Anything not usual? Check access logs for URLs that aren't part of your regular application calls. – ETL Feb 12 '15 at 17:31
  • Have you changed the class name to "aasxknsakadskdskdskdsakmxxads" to post on SO? Or is that actually what's being printed out? If the missing class is a real "com.company..." then perhaps a .class file has been accidentally deleted? – jas_raj Feb 16 '15 at 17:13
  • Hey, well i did change it a bit, but it basically looks like that. No package info. Thats one of the reasons its freaking me out a bit. – Mathias Feb 17 '15 at 09:51

0 Answers0