{"record":{"id":"b475b415e3c5dafa","repo":"hibernate/hibernate-orm","slug":"unable-to-create-instance-from-incoming-classdetai","errorCode":null,"errorMessage":"Unable to create instance from incoming ClassDetails - %s","messagePattern":"Unable to create instance from incoming ClassDetails - (.+?)","errorType":"exception","errorClass":"HibernateException","httpStatus":null,"severity":"error","filePath":"hibernate-core/src/main/java/org/hibernate/boot/models/xml/internal/DynamicModelHelper.java","lineNumber":748,"sourceCode":"\t}\n\n\tprivate static TypeDetails resolveCollectionType(Class<?> collectionType, XmlDocumentContext xmlDocumentContext) {\n\t\tfinal var classDetails = xmlDocumentContext\n\t\t\t\t.getBootstrapContext()\n\t\t\t\t.getModelsContext()\n\t\t\t\t.getClassDetailsRegistry()\n\t\t\t\t.resolveClassDetails( collectionType.getName() );\n\t\treturn new ClassTypeDetailsImpl( classDetails, TypeDetails.Kind.CLASS );\n\t}\n\n\t@Nonnull\n\tprivate static <T> T createInstance(ClassDetails classDetails) {\n\t\ttry {\n\t\t\t//noinspection unchecked\n\t\t\treturn (T) classDetails.toJavaClass().getConstructor().newInstance();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow new HibernateException( \"Unable to create instance from incoming ClassDetails - \" + classDetails );\n\t\t}\n\t}\n}\n","sourceCodeStart":730,"sourceCodeEnd":752,"githubUrl":"https://github.com/hibernate/hibernate-orm/blob/fad1729dce015f908198d57a8d80274a30f905a5/hibernate-core/src/main/java/org/hibernate/boot/models/xml/internal/DynamicModelHelper.java#L730-L752","documentation":"Error \"Unable to create instance from incoming ClassDetails - %s\" thrown in hibernate/hibernate-orm.","triggerScenarios":"An hbm.xml / orm.xml mapping document violates a mapping rule during bootstrap.","commonSituations":"Legacy XML mappings with invalid combinations (column+formula, mixed inheritance, missing identifiers, bad extends references).","solutions":["Check the named class exists on the classpath and has an accessible constructor; inspect the wrapped cause for details."],"exampleFix":"Check the named class exists on the classpath and has an accessible constructor; inspect the wrapped cause for details.","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fad1729dce015f908198d57a8d80274a30f905a5","analyzedAt":"2026-08-22T04:13:57.527Z","schemaVersion":2},"datasetVersion":"2026-08-22T09:17:25.309Z"}