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 124959 - NullPointerException at org.netbeans.modules.form.RADVisualContainer.getContainerDelegate
Summary: NullPointerException at org.netbeans.modules.form.RADVisualContainer.getConta...
Status: VERIFIED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: issues@guibuilder
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-09 13:08 UTC by Michel Graciano
Modified: 2008-04-08 11:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 19063


Attachments
stacktrace (3.93 KB, text/plain)
2008-01-09 13:08 UTC, Michel Graciano
Details
NetBeans simple project to simulate the error. Error happens always you try to save the form. (1.15 MB, application/octet-stream)
2008-01-15 13:57 UTC, Michel Graciano
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michel Graciano 2008-01-09 13:08:21 UTC
Build: NetBeans IDE 6.0 (Build 200711261600)
VM: Java HotSpot(TM) Client VM, 1.6.0_03-b05
OS: Linux, 2.6.22-14-generic, i386

User Comments: 
Reloading a form.
Comment 1 Michel Graciano 2008-01-09 13:08:27 UTC
Created attachment 54865 [details]
stacktrace
Comment 2 Jan Stola 2008-01-09 16:39:49 UTC
I am sorry, I am not able to reproduce this issue and the exception is not sufficient to track the problem down. Are 
you still able to reproduce it? If so, could you, please, attach the .java and .form file of the problematic form. 
Thank you in advance.
Comment 3 Michel Graciano 2008-01-09 17:09:55 UTC
I can't reproduce it too. :(
I just know that I reset to default value the JScrollPane preferredsize property and try to do a Reload Form action.
I will try more use cases asap, since I have some SingX components on the referred view and no way to test this now.

Regards.
Comment 4 Jan Stola 2008-01-11 10:28:01 UTC
Closing as non-reproducible for now, but feel free to reopen it if/when you are able to provide steps to reproduce.
Comment 5 Michel Graciano 2008-01-15 13:54:17 UTC
The problem is happen several times. I am attaching a example project which you can simulate it. The problem just occur
when my panel extends another panel, as you can see.

Regards.
Comment 6 Michel Graciano 2008-01-15 13:55:35 UTC
I am increasing the priority since I have data loss and the workaround is edit tha generated code by hand.
Comment 7 Michel Graciano 2008-01-15 13:57:33 UTC
Created attachment 55068 [details]
NetBeans simple project to simulate the error. Error happens always you try to save the form.
Comment 8 Michel Graciano 2008-01-15 15:48:52 UTC
I created the follow BeanInfo for my class AND all works now:

public class TarefaPaneBeanInfo extends SimpleBeanInfo {
   public BeanDescriptor getBeanDescriptor() {
      BeanDescriptor desc = new BeanDescriptor(TarefaPane.class);
      desc.setValue("containerDelegate", "getContentPane");
      return desc;
   }
}

Why NetBeans don't use the BeanInfo from super class?
Comment 9 Jan Stola 2008-01-15 17:02:03 UTC
Fixed, the attached form can be saved by now.

Modified file:
/cvs/form/src/org/netbeans/modules/form/GandalfPersistenceManager.java
new revision: 1.206; previous revision: 1.205
Comment 10 Michel Graciano 2008-01-18 21:46:45 UTC
There is a way to make a patch to 6.0? This error are taking a long time for me, maybe for another users who will use
SwingX on nb too.

Regards.
Comment 11 kate 2008-04-08 08:53:21 UTC
verified

Product Version: NetBeans IDE Dev (Build 200804040802)
Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)