NoClassDefFoundError (initialization failure) - Websphere and IBM MQ

喜你入骨 提交于 2019-12-05 01:38:58

The "(initialization failure)" means that the static initializer ("<clinit>") method of the class previously threw an unchecked exception. When this occurs, the JVM marks the class as bad, and subsequent attempts to use or access the class result in NoClassDefFoundError. Search your logs for errors that include "Reason.<clinit>" in the stack trace to find the underlying cause.

(In general, the NoClassDefFoundError should include a "Caused by" with the exception that occurred in the static initializer, but for some reason, the cause either wasn't present or you didn't include it in your stack trace.)

It does look like a message catalog is missing. I'm reading the stack dump as the thrown exception (NoClassDefFound) is trying to access something in it's constructor. The missing class may be the actual cause or the missing message may be hiding the actual exception, depending on how it was thrown of course. Can you put a catch block in and manually walk the nested exceptions?

Even if this exception isn't part of a nested exception, it could also mean it was instantiated inside a catch block of an unknown exception. I wouldn't expect that issue in IBM's MQ code but you never know.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!