Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 356999

Summary: on using miglayout giving the exception
Product: z_Archived Reporter: anat28dec
Component: WindowBuilderAssignee: Konstantin Scheglov <Konstantin.Scheglov>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: anat28dec, clayberg, roger.rf
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
bug info
none
Simple test program that triggers the problem. none

Description anat28dec CLA 2011-09-07 15:38:56 EDT
Internal Error
WindowBuilder encountered unexpected internal error. 

This could be caused by a WindowBuilder bug or by a misconfiguration issue, conflict, partial update, etc.



Show stack trace. 
Hide stack trace. 

Stack trace:
java.lang.NullPointerException
	at org.eclipse.wb.internal.swing.MigLayout.model.MigLayoutInfo.getIntervalsForOrigins(MigLayoutInfo.java:1506)
	at org.eclipse.wb.internal.swing.MigLayout.model.MigLayoutInfo.refresh_afterCreate2(MigLayoutInfo.java:1235)
	at org.eclipse.wb.core.model.ObjectInfo.refresh_afterCreate2(ObjectInfo.java:635)
	at org.eclipse.wb.core.model.ObjectInfo.refresh_afterCreate2(ObjectInfo.java:635)
	at org.eclipse.wb.core.model.ObjectInfo.refreshCreate0(ObjectInfo.java:553)
	at org.eclipse.wb.core.model.ObjectInfo.access$0(ObjectInfo.java:546)
	at org.eclipse.wb.core.model.ObjectInfo$5$1.run(ObjectInfo.java:486)
	at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:139)
	at org.eclipse.wb.core.model.ObjectInfo$5.run(ObjectInfo.java:484)
	at org.eclipse.wb.internal.swing.utils.SwingUtils$2.run(SwingUtils.java:76)
	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$000(Unknown Source)
	at java.awt.EventQueue$1.run(Unknown Source)
	at java.awt.EventQueue$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)
Comment 1 anat28dec CLA 2011-09-07 15:39:43 EDT
Created attachment 202930 [details]
bug info
Comment 2 Eric Clayberg CLA 2011-09-07 20:36:47 EDT
Unable to reproduce. Please provide a complete test case that will reproduce the problem and reopen the case. Also provide details on exactly what you were doing when the exception occurred.
Comment 3 Roger Araújo CLA 2014-02-04 15:28:12 EST
Could you please reopen this bug? I'm attaching a simple test program that triggers the problem. It has two classes:

1. NormalFrame.java: this creates a JPanel, sets its layout to MigLayout, adds a few components to it, and then adds the panel to a JFrame. This frame can be opened in Design mode without problems.

2. BuggyFrame.java: this creates a JXCollapsiblePane (from SwingX), sets its layout to MigLayout, adds a few components to it, and then adds the pane to a JFrame. This frame fails to load in Design mode.

To trigger the error, open BuggyFrame.java in the Eclipse Editor. In the lower left part of the editor window, click on the Design tab, and the error should show up.
Comment 4 Roger Araújo CLA 2014-02-04 15:29:06 EST
Created attachment 239633 [details]
Simple test program that triggers the problem.
Comment 5 Eric Clayberg CLA 2014-02-05 13:30:30 EST
Reproduced using test case. Thanks!
Comment 6 Wim Jongman CLA 2021-02-27 12:56:47 EST
Closing. Please reopen if this is still an issue.