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 207873

Summary: ClassCastException: org.netbeans.modules.xml.XMLDataObject cannot be cast to org.netbeans.modules.hibernate.loaders.cfg.HibernateCfgDataObject
Product: javaee Reporter: Maksim Khramov <mkhramov>
Component: HibernateAssignee: Sergey Petrov <sj-nb>
Status: RESOLVED WONTFIX    
Severity: normal CC: jleon89
Priority: P3    
Version: 7.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 176213
Attachments: stacktrace

Description Maksim Khramov 2012-01-28 17:52:04 UTC
Build: NetBeans IDE Dev (Build 201201070601)
VM: Java HotSpot(TM) 64-Bit Server VM, 20.5-b03, Java(TM) SE Runtime Environment, 1.6.0_30-b12
OS: Windows 7

User Comments:
mkhramov: hibernate.cfg.xml was created from scratch without standard wizard.
After that opened project properties window on Frameworks node.




Stacktrace: 
java.lang.ClassCastException: org.netbeans.modules.xml.XMLDataObject cannot be cast to org.netbeans.modules.hibernate.loaders.cfg.HibernateCfgDataObject
   at org.netbeans.modules.hibernateweb.framework.HibernateWebModuleExtender.showConfigPanelForCustomizer(HibernateWebModuleExtender.java:181)
   at org.netbeans.modules.hibernateweb.framework.HibernateWebModuleExtender.<init>(HibernateWebModuleExtender.java:98)
   at org.netbeans.modules.hibernateweb.framework.HibernateFrameworkProvider.createWebModuleExtender(HibernateFrameworkProvider.java:85)
   at org.netbeans.modules.web.project.ui.customizer.CustomizerFrameworks.initFrameworksList(CustomizerFrameworks.java:134)
   at org.netbeans.modules.web.project.ui.customizer.CustomizerFrameworks.<init>(CustomizerFrameworks.java:109)
   at org.netbeans.modules.web.project.ui.customizer.WebCompositePanelProvider.createComponent(WebCompositePanelProvider.java:147)
Comment 1 Maksim Khramov 2012-01-28 17:52:06 UTC
Created attachment 115346 [details]
stacktrace
Comment 2 Sergey Petrov 2012-05-17 12:51:08 UTC
*** Bug 201598 has been marked as a duplicate of this bug. ***
Comment 3 Sergey Petrov 2012-05-31 10:53:08 UTC
ide restart should wok as a workaround if config is created manually
Comment 4 Martin Balin 2016-07-07 08:56:23 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