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 217717

Summary: NullPointerException at org.netbeans.modules.form.VisualReplicator.updateContainerLayout
Product: guibuilder Reporter: Exceptions Reporter <exceptions_reporter>
Component: CodeAssignee: issues@guibuilder <issues>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: P3    
Version: 7.3   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 192049
Attachments: stacktrace

Description Exceptions Reporter 2012-09-03 06:29:31 UTC
This bug was originally marked as duplicate of bug 185330, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 20120903-5e5210486fb9)
VM: Java HotSpot(TM) Client VM, 23.3-b01, Java(TM) SE Runtime Environment, 1.7.0_07-b10
OS: Linux

Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.form.VisualReplicator.updateContainerLayout(VisualReplicator.java:299)
   at org.netbeans.modules.form.VisualReplicator.updateAddedComponents(VisualReplicator.java:345)
   at org.netbeans.modules.form.FormDesigner$FormListener.run(FormDesigner.java:2565)
   at org.netbeans.modules.form.FormLAF$3.run(FormLAF.java:333)
   at org.openide.util.Mutex.doEventAccess(Mutex.java:1363)
   at org.openide.util.Mutex.readAccess(Mutex.java:273)
Comment 1 Exceptions Reporter 2012-09-03 06:29:33 UTC
Created attachment 123806 [details]
stacktrace
Comment 2 Tomas Pavek 2012-09-03 17:13:40 UTC
The preceding exception in the log seems to be the culprit:

java.lang.NullPointerException
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:186)
	at org.jdesktop.swingx.plaf.LookAndFeelAddons.getUI(LookAndFeelAddons.java:266)
	at org.jdesktop.swingx.JXTaskPaneContainer.updateUI(JXTaskPaneContainer.java:124)
	at org.jdesktop.swingx.JXTaskPaneContainer.<init>(JXTaskPaneContainer.java:114)
	at sun.reflect.GeneratedConstructorAccessor115.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
	at java.lang.Class.newInstance0(Class.java:372)
	at java.lang.Class.newInstance(Class.java:325)
	at org.netbeans.modules.form.CreationFactory.createDefaultInstance(CreationFactory.java:178)
	at org.netbeans.modules.form.RADComponent.createBeanInstance(RADComponent.java:252)
[catch] at org.netbeans.modules.form.RADComponent.cloneBeanInstance(RADComponent.java:412)
	at org.netbeans.modules.form.VisualReplicator.cloneComponent(VisualReplicator.java:699)
...
Comment 3 Tomas Pavek 2012-09-03 17:14:23 UTC
Looks like the problem described in bug 127881. Should be verified and marked as duplicate of that bug.
Comment 4 Quality Engineering 2015-02-04 03:27:33 UTC
Reported for 7.3.x or earlier, no new info since then -> closing as worksforme, please reopen in case you see it.