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.
I am currently working on a midlet and i am building my GUI with the MIDP visual design component, however everytime when i close NetBeans, the visual designer crashes. the Inspector window says i don't have any screens in my project. when i open the flow design, it gives the following error code: Annotation: Exception occurred in Request Processor java.lang.ClassCastException: org.netbeans.modules.mvd.model.DDynamicClassComponent at org.netbeans.modules.mvd.model.midp2.Midp2ListElementDC.setCommandAction(Midp2ListElementDC.java:88) at org.netbeans.modules.mvd.model.midp2.Midp2ListElementDC.setProperty(Midp2ListElementDC.java:120) at org.netbeans.modules.mvd.model.helpers.PropertyAccessor$Accessor.writeProperty(PropertyAccessor.java:173) at org.netbeans.modules.mvd.model.helpers.PropertyAccessor$Accessor.access$100(PropertyAccessor.java:107) at org.netbeans.modules.mvd.model.helpers.PropertyAccessor.writeProperty(PropertyAccessor.java:71) at org.netbeans.modules.mvd.model.DComponent.writeProperty(DComponent.java:292) at org.netbeans.modules.mvd.model.DDocument.loadCore(DDocument.java:1376) at org.netbeans.modules.mvd.model.DDocument.load(DDocument.java:1182) at org.netbeans.modules.mvd.ui.editors.Designer.loadDesignData(Designer.java:921) at org.netbeans.modules.mvd.ui.editors.Designer$4.run(Designer.java:486) at org.openide.util.Task.run(Task.java:189) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:721) i have also added some custom components to the visual designer and somehow i have the feeling that is has some trouble with that.
i have some more information about this bug in netbeans IDE. for my midlet i made a class that extends the javax.microedition.lcdui.List class. i added this class to the component palette so that i could easilly use my own List class. The problem is that when you use your own "custom components". the visual designer cant find the appropriate class in the classpath. when i changed the class to a normal List in the .mvd file the problem was solved and the visual designer worked.
The problem was that List Element expected to be attached to a List component. Fixed. See next mobility q-build.
verifying all old issues