java.lang.NullPointerException

neuroph | amodk | 5 years ago
  1. Speed up your debug routine!

    Automated exception search integrated into your IDE

  2. 0

    GitHub comment 29#11666982

    GitHub | 4 years ago | sodanovels
    java.lang.NullPointerException
  3. 0

    From the mailing list: {noformat} java.lang.NullPointerException at com.izforge.izpack.installer.bootstrap.InstallerGui$1.run(InstallerGui.java:64) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:673) at java.awt.EventQueue.access$300(EventQueue.java:96) at java.awt.EventQueue$2.run(EventQueue.java:634) at java.awt.EventQueue$2.run(EventQueue.java:632) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105) at java.awt.EventQueue.dispatchEvent(EventQueue.java:643) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177) at java.awt.EventDispatchThread.run(EventDispatchThread.java:138) Caused by: com.izforge.izpack.api.exception.ContainerException: java.lang.NullPointerException at com.izforge.izpack.core.container.AbstractContainer.initialise(AbstractContainer.java:311) at com.izforge.izpack.core.container.AbstractContainer.initialise(AbstractContainer.java:283) at com.izforge.izpack.installer.container.impl.GUIInstallerContainer.<init>(GUIInstallerContainer.java:43) at com.izforge.izpack.installer.bootstrap.InstallerGui$1.run(InstallerGui.java:48) ... 14 more Caused by: java.lang.NullPointerException at javax.swing.ImageIcon.<init>(ImageIcon.java:204) at com.izforge.izpack.installer.container.provider.IconsProvider.parseXML(IconsProvider.java:99) at com.izforge.izpack.installer.container.provider.IconsProvider.loadCustomIcons(IconsProvider.java:77) at com.izforge.izpack.installer.container.provider.IconsProvider.provide(IconsProvider.java:35) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.picocontainer.injectors.MethodInjector.invokeMethod(MethodInjector.java:141) at org.picocontainer.injectors.MethodInjector.access$000(MethodInjector.java:37) at org.picocontainer.injectors.MethodInjector$2.run(MethodInjector.java:125) at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:272) at org.picocontainer.injectors.MethodInjector.decorateComponentInstance(MethodInjector.java:132) at org.picocontainer.injectors.CompositeInjector.decorateComponentInstance(CompositeInjector.java:58) at org.picocontainer.injectors.Reinjector.reinject(Reinjector.java:142) at org.picocontainer.injectors.ProviderAdapter.getComponentInstance(ProviderAdapter.java:96) at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64) at org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91) at org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:692) at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:646) at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:671) at com.izforge.izpack.core.container.AbstractContainer.getComponent(AbstractContainer.java:131) at com.izforge.izpack.installer.container.impl.GUIInstallerContainer.initFrame(GUIInstallerContainer.java:105) at com.izforge.izpack.installer.container.impl.GUIInstallerContainer.resolveComponents(GUIInstallerContainer.java:94) at com.izforge.izpack.installer.container.impl.InstallerContainer.fillContainer(InstallerContainer.java:79) at com.izforge.izpack.core.container.AbstractContainer.initialise(AbstractContainer.java:303) ... 17 more {noformat} This is occuring due to these lines in IconsProvider: {noformat} url = InstallerFrame.class.getResource(icon.getAttribute("res")); img = new ImageIcon(url); {noformat} The URL needs to be checked for null.

    JIRA | 4 years ago | Tim Anderson
    java.lang.NullPointerException

  1. archenroot 1 times, last 3 weeks ago
  2. rexgreenza 8 times, last 3 months ago
  3. bpbhat77 6 times, last 5 months ago
2 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NullPointerException

    No message provided

    at javax.swing.ImageIcon.<init>()
  2. Java RT
    ImageIcon.<init>
    1. javax.swing.ImageIcon.<init>(ImageIcon.java:204)
    1 frame
  3. org.neuroph.netbeans
    TCRVisualPanel1$1.itemStateChanged
    1. org.neuroph.netbeans.ide.project.type.ocr.tcr.TCRVisualPanel1.updateImage(TCRVisualPanel1.java:223)
    2. org.neuroph.netbeans.ide.project.type.ocr.tcr.TCRVisualPanel1.fontComboItemStateChanged(TCRVisualPanel1.java:199)
    3. org.neuroph.netbeans.ide.project.type.ocr.tcr.TCRVisualPanel1.access$000(TCRVisualPanel1.java:15)
    4. org.neuroph.netbeans.ide.project.type.ocr.tcr.TCRVisualPanel1$1.itemStateChanged(TCRVisualPanel1.java:97)
    4 frames
  4. Java RT
    DefaultComboBoxModel.addElement
    1. javax.swing.JComboBox.fireItemStateChanged(JComboBox.java:1205)
    2. javax.swing.JComboBox.selectedItemChanged(JComboBox.java:1262)
    3. javax.swing.JComboBox.contentsChanged(JComboBox.java:1309)
    4. javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:100)
    5. javax.swing.DefaultComboBoxModel.setSelectedItem(DefaultComboBoxModel.java:88)
    6. javax.swing.DefaultComboBoxModel.addElement(DefaultComboBoxModel.java:126)
    6 frames
  5. org.neuroph.netbeans
    TCRWizardIterator.current
    1. org.neuroph.netbeans.ide.project.type.ocr.tcr.TCRVisualPanel1.fillCombos(TCRVisualPanel1.java:56)
    2. org.neuroph.netbeans.ide.project.type.ocr.tcr.TCRVisualPanel1.<init>(TCRVisualPanel1.java:25)
    3. org.neuroph.netbeans.ide.project.type.ocr.tcr.TCRWizardPanel1.getComponent(TCRWizardPanel1.java:22)
    4. org.neuroph.netbeans.ide.project.type.ocr.tcr.TCRWizardIterator.createSteps(TCRWizardIterator.java:175)
    5. org.neuroph.netbeans.ide.project.type.ocr.tcr.TCRWizardIterator.getPanels(TCRWizardIterator.java:39)
    6. org.neuroph.netbeans.ide.project.type.ocr.tcr.TCRWizardIterator.current(TCRWizardIterator.java:93)
    6 frames
  6. org.openide.loaders
    TemplateWizardIteratorWrapper.current
    1. org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.current(TemplateWizard.java:983)
    2. org.openide.loaders.TemplateWizardIterImpl.current(TemplateWizardIterImpl.java:143)
    3. org.openide.loaders.TemplateWizardIteratorWrapper.current(TemplateWizardIteratorWrapper.java:92)
    3 frames
  7. org.openide
    WizardDescriptor.updateState
    1. org.openide.WizardDescriptor.updateStateOpen(WizardDescriptor.java:887)
    2. org.openide.WizardDescriptor.updateState(WizardDescriptor.java:861)
    2 frames
  8. org.openide.loaders
    TemplateWizard.updateState
    1. org.openide.loaders.TemplateWizard.updateState(TemplateWizard.java:734)
    1 frame
  9. org.netbeans.modules
    NewFileWizard.updateState
    1. org.netbeans.modules.project.ui.NewFileWizard.updateState(NewFileWizard.java:122)
    1 frame
  10. org.openide
    WizardDescriptor$Listener.stateChanged
    1. org.openide.WizardDescriptor$Listener.stateChanged(WizardDescriptor.java:2028)
    1 frame
  11. org.openide.util
    WeakListenerImpl$Change.stateChanged
    1. org.openide.util.WeakListenerImpl$Change.stateChanged(WeakListenerImpl.java:329)
    1 frame
  12. org.openide.loaders
    TemplateWizard.setTemplate
    1. org.openide.loaders.TemplateWizardIterImpl.fireStateChanged(TemplateWizardIterImpl.java:273)
    2. org.openide.loaders.TemplateWizardIterImpl.setIterator(TemplateWizardIterImpl.java:119)
    3. org.openide.loaders.TemplateWizardIteratorWrapper.setIterator(TemplateWizardIteratorWrapper.java:79)
    4. org.openide.loaders.TemplateWizard.setTemplateImpl(TemplateWizard.java:196)
    5. org.openide.loaders.TemplateWizard.setTemplate(TemplateWizard.java:214)
    5 frames
  13. org.netbeans.modules
    TemplateChooserPanel.storeSettings
    1. org.netbeans.modules.project.ui.TemplateChooserPanel.storeSettings(TemplateChooserPanel.java:161)
    2. org.netbeans.modules.project.ui.TemplateChooserPanel.storeSettings(TemplateChooserPanel.java:71)
    2 frames
  14. org.openide
    WizardDescriptor.setValue
    1. org.openide.WizardDescriptor.setValueOpen(WizardDescriptor.java:1352)
    2. org.openide.WizardDescriptor.setValue(WizardDescriptor.java:1330)
    2 frames
  15. org.netbeans.core
    NbPresenter$ButtonListener.actionPerformed
    1. org.netbeans.core.windows.services.NbPresenter$ButtonListener.actionPerformed(NbPresenter.java:1321)
    1 frame
  16. Java RT
    EventQueue.dispatchEvent
    1. javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    2. javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
    3. javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    4. javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    5. javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
    6. java.awt.Component.processMouseEvent(Component.java:6290)
    7. javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
    8. java.awt.Component.processEvent(Component.java:6055)
    9. java.awt.Container.processEvent(Container.java:2039)
    10. java.awt.Component.dispatchEventImpl(Component.java:4653)
    11. java.awt.Container.dispatchEventImpl(Container.java:2097)
    12. java.awt.Component.dispatchEvent(Component.java:4481)
    13. java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4575)
    14. java.awt.LightweightDispatcher.processMouseEvent(Container.java:4236)
    15. java.awt.LightweightDispatcher.dispatchEvent(Container.java:4166)
    16. java.awt.Container.dispatchEventImpl(Container.java:2083)
    17. java.awt.Window.dispatchEventImpl(Window.java:2482)
    18. java.awt.Component.dispatchEvent(Component.java:4481)
    19. java.awt.EventQueue.dispatchEventImpl(EventQueue.java:648)
    20. java.awt.EventQueue.access$000(EventQueue.java:84)
    21. java.awt.EventQueue$1.run(EventQueue.java:607)
    22. java.awt.EventQueue$1.run(EventQueue.java:605)
    23. java.security.AccessController.doPrivileged(Native Method)
    24. java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    25. java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
    26. java.awt.EventQueue$2.run(EventQueue.java:621)
    27. java.awt.EventQueue$2.run(EventQueue.java:619)
    28. java.security.AccessController.doPrivileged(Native Method)
    29. java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    30. java.awt.EventQueue.dispatchEvent(EventQueue.java:618)
    30 frames
  17. org.netbeans.core
    TimableEventQueue.dispatchEvent
    1. org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:148)
    1 frame
  18. Java RT
    Dialog.show
    1. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    2. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    3. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
    4. java.awt.Dialog$1.run(Dialog.java:1044)
    5. java.awt.Dialog$3.run(Dialog.java:1096)
    6. java.security.AccessController.doPrivileged(Native Method)
    7. java.awt.Dialog.show(Dialog.java:1094)
    7 frames
  19. org.netbeans.core
    NbPresenter.run
    1. org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:1038)
    2. org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:1072)
    3. org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:1060)
    4. org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:126)
    4 frames
  20. org.openide.util
    Mutex.readAccess
    1. org.openide.util.Mutex.doEventAccess(Mutex.java:1361)
    2. org.openide.util.Mutex.readAccess(Mutex.java:271)
    2 frames
  21. org.netbeans.core
    NbPresenter.show
    1. org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:1045)
    1 frame
  22. Java RT
    Dialog.setVisible
    1. java.awt.Component.show(Component.java:1584)
    2. java.awt.Component.setVisible(Component.java:1536)
    3. java.awt.Window.setVisible(Window.java:841)
    4. java.awt.Dialog.setVisible(Dialog.java:984)
    4 frames
  23. org.openide.loaders
    TemplateWizard.instantiate
    1. org.openide.loaders.TemplateWizard.instantiateImpl(TemplateWizard.java:498)
    2. org.openide.loaders.TemplateWizard.instantiate(TemplateWizard.java:365)
    2 frames
  24. org.netbeans.modules
    LookupSensitiveAction.actionPerformed
    1. org.netbeans.modules.project.ui.actions.NewFile.doPerform(NewFile.java:157)
    2. org.netbeans.modules.project.ui.actions.NewFile.actionPerformed(NewFile.java:129)
    3. org.netbeans.modules.project.ui.actions.LookupSensitiveAction.actionPerformed(LookupSensitiveAction.java:170)
    3 frames
  25. Java RT
    EventQueue.dispatchEvent
    1. javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    2. javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
    3. javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    4. javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    5. javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
    6. java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:273)
    7. java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
    8. java.awt.Component.processMouseEvent(Component.java:6290)
    9. javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
    10. java.awt.Component.processEvent(Component.java:6055)
    11. java.awt.Container.processEvent(Container.java:2039)
    12. java.awt.Component.dispatchEventImpl(Component.java:4653)
    13. java.awt.Container.dispatchEventImpl(Container.java:2097)
    14. java.awt.Component.dispatchEvent(Component.java:4481)
    15. java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4575)
    16. java.awt.LightweightDispatcher.processMouseEvent(Container.java:4236)
    17. java.awt.LightweightDispatcher.dispatchEvent(Container.java:4166)
    18. java.awt.Container.dispatchEventImpl(Container.java:2083)
    19. java.awt.Window.dispatchEventImpl(Window.java:2482)
    20. java.awt.Component.dispatchEvent(Component.java:4481)
    21. java.awt.EventQueue.dispatchEventImpl(EventQueue.java:648)
    22. java.awt.EventQueue.access$000(EventQueue.java:84)
    23. java.awt.EventQueue$1.run(EventQueue.java:607)
    24. java.awt.EventQueue$1.run(EventQueue.java:605)
    25. java.security.AccessController.doPrivileged(Native Method)
    26. java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    27. java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
    28. java.awt.EventQueue$2.run(EventQueue.java:621)
    29. java.awt.EventQueue$2.run(EventQueue.java:619)
    30. java.security.AccessController.doPrivileged(Native Method)
    31. java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    32. java.awt.EventQueue.dispatchEvent(EventQueue.java:618)
    32 frames
  26. org.netbeans.core
    TimableEventQueue.dispatchEvent
    1. org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:148)
    1 frame
  27. Java RT
    EventDispatchThread.run
    1. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    2. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    3. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    4. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    5. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    6. java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    6 frames