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 143930 - Sample ClientEditor cannot be run on solaris (sunray)
Summary: Sample ClientEditor cannot be run on solaris (sunray)
Status: RESOLVED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-14 14:38 UTC by Jana Maleckova
Modified: 2008-08-15 12:17 UTC (History)
0 users

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 Jana Maleckova 2008-08-14 14:38:09 UTC
Product Version: NetBeans IDE Dev (Build 20080812130418)
Java: 1.5.0_14; Java HotSpot(TM) Client VM 1.5.0_14-b03
System: SunOS version 5.10 running on sparc; ISO646-US; en (nb)

Description:
============
I have created Sample project ClientEditor, built it and tried to run. I got NPE in output win
Other Sample projects seems to be OK in this manner
Seems to be a problem with L&F on solaris ???

StackTrace:
==========
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
        at clienteditor.ClientEditor.addPropertyChangeListener(ClientEditor.java:72)
        at javax.swing.plaf.synth.SynthPanelUI.installListeners(SynthPanelUI.java:49)
        at javax.swing.plaf.synth.SynthPanelUI.installUI(SynthPanelUI.java:38)
        at javax.swing.JComponent.setUI(JComponent.java:653)
        at javax.swing.JPanel.setUI(JPanel.java:131)
        at javax.swing.JPanel.updateUI(JPanel.java:104)
        at javax.swing.JPanel.<init>(JPanel.java:64)
        at javax.swing.JPanel.<init>(JPanel.java:87)
        at javax.swing.JPanel.<init>(JPanel.java:95)
        at clienteditor.ClientEditor.<init>(ClientEditor.java:44)
        at clienteditor.ClientEditor$1.run(ClientEditor.java:334)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 1 Jan Stola 2008-08-15 10:02:58 UTC
Reproducible - it occurs when the sample is run on any Synth look and feel e.g. on GTKLookAndFeel on Solaris or Linux 
or on NimbusLookAndFeel on Windows. I will modify the template to avoid this exception.
Comment 2 Jan Stola 2008-08-15 12:17:03 UTC
Fixed - the fix of this issue even led to the simplification of this sample.

Modified file: http://hg.netbeans.org/main/rev/2afbf40b7366