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 152363 - NPE in Scenario (SwingGlueLayer.java:204)
Summary: NPE in Scenario (SwingGlueLayer.java:204)
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: Macintosh Mac OS X
: P1 blocker (vote)
Assignee: pbenes
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-04 20:50 UTC by Martin Brehovsky
Modified: 2008-11-07 20:34 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Brehovsky 2008-11-04 20:50:54 UTC
When trying to use code completion in the last RC2 build, it fails with the following exception, running in this environment:
Product Version: NetBeans IDE 6.5 RC2 (Build 200810270001)
Java: 1.5.0_16; Java HotSpot(TM) Client VM 1.5.0_16-133
System: Mac OS X version 10.5.5 running on i386; MacRoman; en_US (nb)

java.lang.NullPointerException
	at com.sun.embeddedswing.SwingGlueLayer.getAncestorWithClientProperty(SwingGlueLayer.java:204)
	at com.sun.embeddedswing.EmbeddedPopupFactory.getPopup(EmbeddedPopupFactory.java:38)
	at org.netbeans.modules.editor.completion.CompletionLayoutPopup.show(CompletionLayoutPopup.java:333)
	at org.netbeans.modules.editor.completion.CompletionLayoutPopup.showAlongOccupiedBounds(CompletionLayoutPopup.java:365)
	at org.netbeans.modules.editor.completion.CompletionLayoutPopup.showAlongAnchorBounds(CompletionLayoutPopup.java:345)
	at org.netbeans.modules.editor.completion.CompletionLayout.updateLayout(CompletionLayout.java:257)
	at org.netbeans.modules.editor.completion.CompletionLayout$CompletionPopup.show(CompletionLayout.java:381)
	at org.netbeans.modules.editor.completion.CompletionLayout.showCompletion(CompletionLayout.java:137)
[catch] at org.netbeans.modules.editor.completion.CompletionImpl$7.run(CompletionImpl.java:898)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
	at com.sun.embeddedswing.EmbeddedEventQueue.dispatchEvent(EmbeddedEventQueue.java:343)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 1 Dusan Balek 2008-11-05 09:04:05 UTC
Caused by presence of the JavaFX library Scenario.jar on the NetBeans runtime classpath. Reassigning.
Comment 2 David Strupl 2008-11-05 09:16:17 UTC
Putting scenario into NetBeans is very dangerous. They have their own event queue, own popup factory etc. They replace
swing default impls ...
Comment 3 pbenes 2008-11-05 17:45:44 UTC
The problem has been finally tracked down in scenario library. See the issue
http://openjfx.java.sun.com/jira/browse/RT-1930 for more details. It should be solved soon.
Comment 4 Lark Fitzgerald 2008-11-06 14:10:10 UTC
This is marked fixed.  Martin, please verify.
Comment 5 Lark Fitzgerald 2008-11-06 15:34:08 UTC
Asked to reopen.  The SDK containing this fix has not been built/added to NB yet.
Comment 6 Lark Fitzgerald 2008-11-07 14:16:13 UTC
SDK has been updated.  Please verify.
Comment 7 Martin Brehovsky 2008-11-07 20:34:50 UTC
Verified