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 - ClassCastException: org.netbeans.modules.j2ee.dd.impl.web.WebAppProxy cannot be cast to org.netbeans.modules.schema2beans.BaseBean
Summary: ClassCastException: org.netbeans.modules.j2ee.dd.impl.web.WebAppProxy cannot ...
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: DD Editor (show other bugs)
Version: 7.0.1
Hardware: All All
: P3 normal (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-13 13:16 UTC by Peter Pis
Modified: 2011-03-17 10:32 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 169555


Attachments
stacktrace (4.65 KB, text/plain)
2010-05-13 13:16 UTC, Peter Pis
Details
stacktrace (2.48 KB, text/plain)
2011-01-25 13:06 UTC, mithridates
Details

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