Class 문제는 예외 형태에 따라 initialization·loader·linkage 경로를 나눠 진단한다
같은 class 이름만 보고 파일 하나를 찾으면 defining loader와 module, 최초 initialization cause를 놓칩니다.
| 증상 | 먼저 확인 | 핵심 증거 |
|---|---|---|
| ExceptionInInitializerError | 첫 static 실패 | cause chain·class+init log |
| 이후 NoClassDefFoundError | 같은 loader의 erroneous state | 최초 장애 log |
| 같은 이름 ClassCastException | 서로 다른 defining loader | identityHash·module·code source |
| service/resource 누락 | context class loader | thread context loader |
| LinkageError | caller/callee descriptor·version | javap·module path |
핵심: binary name과 defining loader의 쌍, 최초 예외, code source를 한 증거 묶음으로 남깁니다.