This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 197978 - NoClassDefFoundError: Could not initialize class org.hibernate.cfg.JDBCMetaDataConfiguration
Summary: NoClassDefFoundError: Could not initialize class org.hibernate.cfg.JDBCMetaDa...
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Hibernate (show other bugs)
Version: 6.x
Hardware: All All
: P4 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-22 00:33 UTC by Kisa-chan-
Modified: 2016-07-07 08:53 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 173742


Attachments
stacktrace (1.26 KB, text/plain)
2011-04-22 00:33 UTC, Kisa-chan-
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kisa-chan- 2011-04-22 00:33:38 UTC
Build: NetBeans IDE 6.9.1 (Build 201011082200)
VM: Java HotSpot(TM) 64-Bit Server VM, 17.0-b17, Java(TM) SE Runtime Environment, 1.6.0_21-b07
OS: Windows 7

User Comments:
GUEST: gerando classes de um banco com hibernate

GUEST: I've choosen menuitem "Hibernate Mapping Files and POLOs from Database"  and I got nothing.

darwindesvira: I want to create POJO file as entity, but this exception is appear..

GUEST: I'm trying to create a POJO and hibernate hbm.xml configuration file

GUEST: Hibernate plugin fail on "New Hibernate Mapping files and POJOs from Database"

Kisa-chan-: Mapping Files with Hibernate




Stacktrace: 
java.lang.NoClassDefFoundError: Could not initialize class org.hibernate.cfg.JDBCMetaDataConfiguration
   at org.netbeans.modules.hibernate.wizards.HibernateCodeGenWizard.generateClasses(HibernateCodeGenWizard.java:311)
   at org.netbeans.modules.hibernate.wizards.HibernateCodeGenWizard.instantiate(HibernateCodeGenWizard.java:419)
   at org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.instantiate(TemplateWizard.java:1019)
   at org.openide.loaders.TemplateWizard.handleInstantiate(TemplateWizard.java:591)
   at org.openide.loaders.TemplateWizard.instantiateNewObjects(TemplateWizard.java:412)
   at org.openide.loaders.TemplateWizardIterImpl.instantiate(TemplateWizardIterImpl.java:256)
Comment 1 Kisa-chan- 2011-04-22 00:33:41 UTC
Created attachment 107892 [details]
stacktrace
Comment 2 Sergey Petrov 2011-10-31 14:13:49 UTC
Suppose hibernate library was update manually and isn't compatible with nb POJO wizard or some files was removed.
Comment 3 Sergey Petrov 2011-11-15 16:25:00 UTC
There is direct instantiation of JDBCMetaDataConfiguration, and it's from hibernate library, if it was removed from nb distribution it may cause this issue, it's just the same as remove any jar from nb, it's not an issue in this case. But it there is another use case, please provide details starting from nb distribution (zip/installer/full/java etc)? project type? any modifications to libraries? steps starting from project creation up to pojo generation. Please provide more details and rise priority if appropriate back to P3.
Comment 4 Martin Balin 2016-07-07 08:53:52 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss