Erro não referenciado na aplicação

1 resposta
S

Estou com um erro em um sistema. Esse erro aparece em alguns momentos, dependendo de algumas condições, não controláveis, de operação.

Não existe indicação na pilha de erro de algum método meu, por isso ta difícil identificar o que esta provocando o erro.

Alguém tem alguma idéia do que possa ser, ou como melhor debugar?

Valeu,

Exception in thread “AWT-EventQueue-0” java.lang.NullPointerException

at javax.swing.plaf.basic.BasicProgressBarUI.updateSizes(Unknown Source)

at javax.swing.plaf.basic.BasicProgressBarUI.getBox(Unknown Source)

at javax.swing.plaf.metal.MetalProgressBarUI.paintIndeterminate(Unknown Source)

at javax.swing.plaf.basic.BasicProgressBarUI.paint(Unknown Source)

at javax.swing.plaf.ComponentUI.update(Unknown Source)

at javax.swing.JComponent.paintComponent(Unknown Source)

at javax.swing.JComponent.paint(Unknown Source)

at javax.swing.JComponent.paintChildren(Unknown Source)

at javax.swing.JComponent.paint(Unknown Source)

at javax.swing.JComponent.paintChildren(Unknown Source)

at javax.swing.JComponent.paint(Unknown Source)

at javax.swing.JComponent.paintChildren(Unknown Source)

at javax.swing.JComponent.paint(Unknown Source)

at javax.swing.JLayeredPane.paint(Unknown Source)

at javax.swing.JComponent.paintChildren(Unknown Source)

at javax.swing.JComponent.paint(Unknown Source)

at javax.swing.JComponent.paintWithOffscreenBuffer(Unknown Source)

at javax.swing.JComponent.paintDoubleBuffered(Unknown Source)

at javax.swing.JComponent._paintImmediately(Unknown Source)

at javax.swing.JComponent.paintImmediately(Unknown Source)

at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)

at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)

at java.awt.event.InvocationEvent.dispatch(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(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)

1 Resposta

davidbuzatto

Leia o erro java.lang.NullPointerException

Você está tentando acessar uma referência nula no seu código. Se estiver usando o NetBeans o depurador dele é muito bom. Se não estiver usando depurador vai no println mesmo :smiley:

Até mais!

Criado 27 de julho de 2007
Ultima resposta 28 de jul. de 2007
Respostas 1
Participantes 2