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 64298 - visual designer crashes (mobility pack)
Summary: visual designer crashes (mobility pack)
Status: CLOSED FIXED
Alias: None
Product: javame
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 4.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: David Kaspar
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-14 08:23 UTC by nlstefan
Modified: 2006-10-23 16:41 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nlstefan 2005-09-14 08:23:36 UTC
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.
Comment 1 nlstefan 2005-09-15 09:01:09 UTC
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.
Comment 2 David Kaspar 2005-09-19 13:14:44 UTC
The problem was that List Element expected to be attached to a List component.

Fixed. See next mobility q-build.
Comment 3 Lukas Hasik 2006-01-17 13:57:31 UTC
verifying all old issues