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 74002 - Palette blank, IDE asked for problem to be reported
Summary: Palette blank, IDE asked for problem to be reported
Status: RESOLVED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-26 15:43 UTC by bobcollis
Modified: 2006-10-23 16:40 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NetBeans log file (408.07 KB, text/xml)
2006-03-26 15:46 UTC, bobcollis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bobcollis 2006-03-26 15:43:57 UTC
Attempted to experiment with MediaPlayer bean from JMF2.1.1e.  This locked up
the IDE.  I tried rebooting, but the IDE came back totally blank (just windows
os buttons, and title bar).  The title bar indicated the last project, so I
deleted the project, and restarted IDE again.  This time the IDE started up, but
when I tried to create a new project and add a JFrame, the palette was blank.

The bottom right was flashing the problem icon.  I clicked this, and was asked
by the IDE to report a bug.  It instructed me to include a copy of my log file
(however, I cannot see how to do this, sorry, new to bugzilla - have made a backup).

After this the IDE locks up.  By repeating the above process and hovering the
mouse over the problem icon in bottom right, IDE shows tooltip
'java.beans.IntrospectionException: Method "controlleUpdate" should have
argument "ControllerUpdateEvent".
Comment 1 bobcollis 2006-03-26 15:46:12 UTC
Created attachment 29405 [details]
NetBeans log file
Comment 2 Max Sauer 2006-04-05 12:32:26 UTC
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..
Comment 3 bobcollis 2006-04-10 10:34:13 UTC
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.
Comment 4 bobcollis 2006-04-10 10:46:43 UTC
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.
Comment 5 Peter Pis 2006-04-14 08:19:09 UTC
Defaulf userdir in case of windows %HOMEDRIVE%%HOMEPATH%.netbeans\<netbeans version>
Comment 6 Max Sauer 2006-05-10 09:39:01 UTC
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..
Comment 7 Jan Stola 2006-06-12 10:37:21 UTC
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