Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356999 - on using miglayout giving the exception
Summary: on using miglayout giving the exception
Status: CLOSED INVALID
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: WindowBuilder (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: Konstantin Scheglov CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-07 15:38 EDT by anat28dec CLA
Modified: 2021-06-04 16:45 EDT (History)
3 users (show)

See Also:


Attachments
bug info (4.46 KB, application/x-zip-compressed)
2011-09-07 15:39 EDT, anat28dec CLA
no flags Details
Simple test program that triggers the problem. (8.85 KB, application/x-zip-compressed)
2014-02-04 15:29 EST, Roger Araújo CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.