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 245737 - ClassCastException: org.netbeans.modules.java.j2seproject.J2SEProject cannot be cast to org.uml.project.UMLProject
Summary: ClassCastException: org.netbeans.modules.java.j2seproject.J2SEProject cannot ...
Status: VERIFIED FIXED
Alias: None
Product: updatecenters
Classification: Unclassified
Component: Pluginportal (show other bugs)
Version: 8.0.1
Hardware: All All
: P3 normal (vote)
Assignee: sevarac
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-16 15:28 UTC by Jiri Kovalsky
Modified: 2014-08-08 11:23 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 210735


Attachments
stacktrace (1.15 KB, text/plain)
2014-07-16 15:28 UTC, Jiri Kovalsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Kovalsky 2014-07-16 15:28:40 UTC
Build: NetBeans IDE 8.0 (Build 201403101706)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.65-b04, Java(TM) SE Runtime Environment, 1.7.0_65-b17
OS: Linux

User Comments:
jkovalsky: Tried to create new UML Class Diagram on my MemoryView test project. This exception occurred after I clicked "Finish" button.




Stacktrace: 
java.lang.ClassCastException: org.netbeans.modules.java.j2seproject.J2SEProject cannot be cast to org.uml.project.UMLProject
   at org.uml.filetype.ClassDiagramWizardIterator.instantiate(ClassDiagramWizardIterator.java:61)
   at org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.instantiate(TemplateWizard.java:1046)
   at org.openide.loaders.TemplateWizard.handleInstantiate(TemplateWizard.java:605)
   at org.openide.loaders.TemplateWizard.instantiateNewObjects(TemplateWizard.java:439)
   at org.openide.loaders.TemplateWizardIterImpl.instantiate(TemplateWizardIterImpl.java:248)
   at org.openide.loaders.TemplateWizardIteratorWrapper.instantiate(TemplateWizardIteratorWrapper.java:160)
Comment 1 Jiri Kovalsky 2014-07-16 15:28:42 UTC
Created attachment 148089 [details]
stacktrace
Comment 2 Jiri Kovalsky 2014-07-16 15:34:37 UTC
Zoran, can you please fix this exception? Thanks a lot!
Comment 3 sevarac 2014-07-16 18:22:29 UTC
I guess you've tried to add class diagram to java project. You should first create UML project and then create UML diagram as a part of UML project. However this might be an interesting idea, does it makes sense to create UML diagrams as a part of Java project?
Comment 4 Jiri Kovalsky 2014-07-17 14:26:40 UTC
Why not?

BTW, is it possible to close UML Diagram project?
Comment 5 sevarac 2014-08-02 23:02:01 UTC
Fixed. At the moment it will be posible to create class diagrams only within the UML Projects
Comment 6 Jiri Kovalsky 2014-08-08 11:22:49 UTC
Product Version: NetBeans IDE Dev (Build jet-main-799-on-20140807)
Java: 1.8.0_11; Java HotSpot(TM) Client VM 25.11-b03
Runtime: Java(TM) SE Runtime Environment 1.8.0_11-b12
System: Linux version 3.13.0-24-generic running on i386; UTF-8; en_US (nb)

Works fine now. Thanks for the fix Zoran!