...it's an error difficult to reproduce, so, i'm not sure but a solution can be use, instead of loading the class, the Classloader.getResource, with the name of the class... In this way, it's possible to use the "classpath" concept (also in presence of custom classloading) and manipulate the String manifestation of the URL obtained, to create the metadata to enrich the stacktrace... |