Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 18208 - Javabean Customizer image load fails
Javabean Customizer image load fails
Status: CLOSED DUPLICATE of bug 13038
Product: guibuilder
Classification: Unclassified
Component: Code
PC Windows ME/2000
: P1 (vote)
: 3.x
Assigned To: issues@guibuilder
Depends on:
  Show dependency treegraph
Reported: 2001-11-30 00:23 UTC by Ben
Modified: 2003-06-30 18:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT


Note You need to log in before you can comment on or make changes to this bug.
Description Ben 2001-11-30 00:23:39 UTC
While trying to open the customizer for the QuickTable javabean in the Swing 
Form, I am getting the following error.

In the customizer constructor, we are trying to load a gif file, which is 
located in the same directory where the customizer class is present in the jar 
file using the following code.

  ImageIcon imgIcon = new ImageIcon(this.getClass().getResource

This customizer works fine in Jbuilder/IBm Visual age.

Thu Nov 29 19:12:29 EST 2001: java.lang.NullPointerException: Posted StackTrace
Annotation: Exception occurred in Request Processor
org.openide.util.RequestProcessor$Holder: Posted StackTrace(task 
org.netbeans.core.ModuleActions$1@164690 [-16, 1, -1])
        at org.openide.util.RequestProcessor$Task.createHolder
        at org.netbeans.core.ModuleActions.invokeAction(
        at org.openide.awt.Actions$ButtonBridge.actionPerformed
        at javax.swing.AbstractButton.fireActionPerformed
        at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed
        at javax.swing.DefaultButtonModel.fireActionPerformed
        at javax.swing.DefaultButtonModel.setPressed
        at javax.swing.AbstractButton.doClick(
        at java.awt.Component.processMouseEvent(
        at java.awt.Component.processEvent(
        at java.awt.Container.processEvent(
        at java.awt.Component.dispatchEventImpl(
        at java.awt.Container.dispatchEventImpl(
        at java.awt.Component.dispatchEvent(
        at java.awt.LightweightDispatcher.retargetMouseEvent
        at java.awt.LightweightDispatcher.processMouseEvent(
        at java.awt.LightweightDispatcher.dispatchEvent(
        at java.awt.Container.dispatchEventImpl(
        at java.awt.Window.dispatchEventImpl(
        at java.awt.Component.dispatchEvent(
[catch] at java.awt.EventQueue.dispatchEvent(
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy
        at java.awt.EventDispatchThread.pumpEventsForHierarchy
        at java.awt.EventDispatchThread.pumpEvents(
Thu Nov 29 19:12:29 EST 2001: java.lang.NullPointerException: null
        at javax.swing.ImageIcon.<init>(
        at quick.dbtable.DBTableCustomizer.<init>(
        at java.lang.Class.newInstance0(Native Method)
        at java.lang.Class.newInstance(
        at org.netbeans.modules.form.RADComponentNode.getCustomizer
        at org.netbeans.core.NbNodeOperation.customize(
        at org.openide.actions.CustomizeAction.performAction
        at org.openide.util.actions.NodeAction.performAction(
        at org.openide.util.actions.NodeAction.actionPerformed
        at org.netbeans.core.ModuleActions$
[catch] at org.openide.util.RequestProcessor$
Comment 1 Marian Mirilovic 2001-11-30 08:34:37 UTC

this issue seems like fixed now, it's also duplicate of issue 13038.
Try to download new NetBeans 3.3. build, I hope it's fixed there. 
If you can report it on new version of NB, please REOPEN.
IMHO: This isn't P1, P1 - means critical and data lost.

Thanx for report.

*** This issue has been marked as a duplicate of 13038 ***
Comment 2 Quality Engineering 2003-06-30 18:20:55 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 3 Quality Engineering 2003-06-30 18:32:47 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo