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 186098

Summary: ClassCastException: org.netbeans.modules.j2ee.dd.impl.web.WebAppProxy cannot be cast to org.netbeans.modules.schema2beans.BaseBean
Product: javaee Reporter: Peter Pis <ppis>
Component: DD EditorAssignee: issues@javaee <issues>
Status: RESOLVED FIXED    
Severity: normal CC: mithridates, murraypetera, ranjan_compmail
Priority: P3    
Version: 7.0.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 169555
Attachments: stacktrace
stacktrace

Description Peter Pis 2010-05-13 13:16:14 UTC
Build: NetBeans IDE Dev (Build 201005122200)
VM: Java HotSpot(TM) Client VM, 16.0-b13, Java(TM) SE Runtime Environment, 1.6.0_18-b06
OS: Linux

User Comments:
ppis: Editng DD file.




Stacktrace: 
java.lang.ClassCastException: org.netbeans.modules.j2ee.dd.impl.web.WebAppProxy cannot be cast to org.netbeans.modules.schema2beans.BaseBean
   at org.netbeans.modules.schema2beans.Schema2BeansUtil$ReindentationListener.propertyChange(Schema2BeansUtil.java:477)
   at org.netbeans.modules.j2ee.dd.impl.web.WebAppProxy.setProxyVersion(WebAppProxy.java:99)
   at org.netbeans.modules.j2ee.dd.impl.web.WebAppProxy.setOriginal(WebAppProxy.java:85)
   at org.netbeans.modules.j2ee.dd.impl.web.WebAppProxy.merge(WebAppProxy.java:463)
   at org.netbeans.modules.j2ee.dd.api.web.DDProvider$FCA.fileChanged(DDProvider.java:319)
   at org.openide.filesystems.FCLSupport$DispatchEventWrapper.dispatchEventImpl(FCLSupport.java:142)
Comment 1 Peter Pis 2010-05-13 13:16:17 UTC
Created attachment 98943 [details]
stacktrace
Comment 2 mithridates 2011-01-25 13:06:33 UTC
Created attachment 105330 [details]
stacktrace

Erratically deleted WEB-INF folder in Web Pages.
Exception was thrown after "local history"->"revert deleted" on Web Pages-Folder.
Comment 3 Exceptions Reporter 2011-01-25 13:06:45 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=169555
Comment 4 Martin Fousek 2011-03-17 10:28:07 UTC
ClastCastException appeared when the version of DD was removed, saved document and then was added back and saved again (because the previous action set to WebAppProxy null version).

Fixed in http://hg.netbeans.org/web-main/rev/b964e0c612aa.