Java.lang.ExceptionInInitializerError

2 respostas
Mateus_Avelar

Boa noite pessoal…

Será que alguem pode me ajudar… parece ser algo simples mas estou com dificuldades para entender o pq do erro…

muito estranho, num momento estava funcionando, e derrepente, nao funciona mais… estou usando o NetBeans 6.5.1

Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError at mail.Config.initComponents(Config.java:211) at mail.Config.<init>(Config.java:37) at mail.Config$9.run(Config.java:477) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:235) at java.awt.EventQueue.dispatchEvent(EventQueue.java:602) 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: java.lang.NullPointerException at java.io.File.<init>(File.java:239) at mail.Core.<clinit>(Core.java:75) ... 11 more CONSTRUÍDO COM SUCESSO (tempo total: 4 segundos)

Obrigado a todos.

2 Respostas

B

mail.Core passou algum argumento nulo para o construtor de File.

Mateus_Avelar

Este é um arquivo, ele nao recebe valor nenhum mas vem de outra classe, por isso ele é static.

nao estava utilizando ele para nada, já existia, mas nao era usado, talvez seja por isso que deu erro de uma hora para outra.

nao tinha me atentado a este erro justamente por isso…

mas de qualquer forma, muito obrigado mesmo… nao iria desconfiar deste arquivo nunca…

vlw

Criado 12 de abril de 2009
Ultima resposta 12 de abr. de 2009
Respostas 2
Participantes 2