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 - ClassCastException: org.netbeans.modules.xml.XMLDataObject cannot be cast to org.netbeans.modules.hibernate.loaders.cfg.HibernateCfgDataObject
Summary: ClassCastException: org.netbeans.modules.xml.XMLDataObject cannot be cast to ...
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Hibernate (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
: 201598 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-01-28 17:52 UTC by Maksim Khramov
Modified: 2016-07-07 08:56 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 176213


Attachments
stacktrace (6.56 KB, text/plain)
2012-01-28 17:52 UTC, Maksim Khramov
Details

Note You need to log in before you can comment on or make changes to this bug.
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