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.
Summary: | Palette blank, IDE asked for problem to be reported | ||
---|---|---|---|
Product: | guibuilder | Reporter: | bobcollis <bobcollis> |
Component: | Code | Assignee: | issues@guibuilder <issues> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | msauer |
Priority: | P3 | ||
Version: | 5.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | NetBeans log file |
Description
bobcollis
2006-03-26 15:43:57 UTC
Created attachment 29405 [details]
NetBeans log file
Could you please tell us how to reproduce this problem? Is it reproducible also with a new userdir (try runninng netbeans with "--userdir some_directory" switch)? Thanks.. Tried restarting IDE with --userdir switch. This correctly starts IDE and palette is useable. Could you please tell me wheere the default userdir is so that I can delete it? To replicate this problem, simply try to install the MediaPlayer bean from JMF 2.1.1e into the palete within the IDE. Just to clarify. IF the IDE is started with a new user directory, and I attempt to add the MediaPlayer bean from JMF2.1.1e. When I expand the beans node in the palette, the player bean is not visible, and the IDE complains about the java.lang.error exception described in the initial bug report. Defaulf userdir in case of windows %HOMEDRIVE%%HOMEPATH%.netbeans\<netbeans version> I reproduced your problem, it really ends up with a never-ending stream of exceptions. I'll reassign this to form module to evaluate if the problem is on out side.. This is caused by the corrupted MediaPlayerBeanInfo. Note that even the following simple line throws java.lang.Error Introspector.getBeanInfo(javax.media.bean.playerbean.MediaPlayer.class); It throws Exception in thread "main" java.lang.Error: java.beans.IntrospectionException: Method "controllerUpdate" should have argument "ControllerUpdateEvent" at javax.media.bean.playerbean.MediaPlayerBeanInfo.getEventSetDescriptors (MediaPlayerBeanInfo.java:150) at java.beans.Introspector.getTargetEventInfo(Unknown Source) at java.beans.Introspector.getBeanInfo(Unknown Source) at java.beans.Introspector.getBeanInfo(Unknown Source) I have made the form module more robust against problems like this. E.g. the exceptions should not affect the Palette and your regular work. On the other hand the MediaPlayer bean remains unusable in the form module because of its corrupted BeanInfo. It would be ideal to ignore the invalid BeanInfo and to create a correct one using a special mode of the Introspector. I have filled an enhancement about this (see issue 77708). Modified files: /cvs/form/src/org/netbeans/modules/form/FormUtils.java new revision: 1.116; previous revision: 1.115 /cvs/form/src/org/netbeans/modules/form/HandleLayer.java new revision: 1.145; previous revision: 1.144 /cvs/form/src/org/netbeans/modules/form/RADComponent.java new revision: 1.159; previous revision: 1.158 /cvs/form/src/org/netbeans/modules/form/palette/PaletteItem.java new revision: 1.45; previous revision: 1.44 |