| While performance testing the our APP with Hibernate we see Hibernate Exceptions ( Unable to load class xyz ) coming from the Hibernate ClassLoaderServiceImpl class Whenever Hibernate code creates concrete SQL queries from HQL it calls its method 1. QuerySplitter.concreteQueries(String query, SessionFactoryImplementor factory) which internally calls String importedClassName = getImportedClass(token, factory); which internally calls SessionFactoryImpl.getImportedClassName(String className) which has following logic if (result == null) { try { ((ClassLoaderService)this.serviceRegistry.getService(ClassLoaderService.class)).classForName(className); this.imports.put(className, className); return className; } catch (ClassLoadingException cnfe) { return null; } In the case of toke / classname not found it throws and exception and it returns the null As we are using tools like dyntrace for looking to application memory leaks it shows this error even though it has no relevance , Is it possible to suppress such exceptions or no exception is thrown if no class is found for that token in Hibernate |