Exceptionininitializererror - URGENTE!

4 respostas
G

Opa GUJZeiros, beleza?

Pra mim não… tou totalmente encucado num projeto aqui e este maldito erro me aparece.

Então, meu programa requisitará um serviço de um outro programa, tal serviço me retornará um vetor que eu popularei um Objeto, e o mostrarei em forma de Boleto; porém, ao instanciar um dado o objeto BoletViewer, está dando esse danado desse erro; já tentei de tudo, configurei tudo direitinho, o Manifest… etc.

Visto que para meu programa ser usado afim de utilizar serviços, as libs dele tem que está toda no mesmo jar, então só fiz pegar as libs já compiladas e adicionar ao meu Projeto; talvez isso esteja errado, não sei…

Segue o código do erro:

log4j:WARN No appenders could be found for logger (org.jrimum.bopepo.Boleto). log4j:WARN Please initialize the log4j system properly. Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError at org.jrimum.bopepo.view.BoletoViewer.<init>(BoletoViewer.java:105) at modelo.DadosFCB.geraFichaCompens(DadosFCB.java:63) at faturamento.control.Controlador.geraBoleto(Controlador.java:25) at faturamento.desktop.FCB.<init>(FCB.java:26) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at legus.JavaThread.run(JavaThread.java:66) at legus.desktop.control.DesktopControl.startJavaMenuThread(DesktopControl.java:375) at legus.desktop.view.ApplicationFrame$MenuItem.actionPerformed(ApplicationFrame.java:224) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.AbstractButton.doClick(Unknown Source) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(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) Caused by: java.lang.NullPointerException at org.jrimum.utilix.ClassLoaders.getResource(ClassLoaders.java:106) at org.jrimum.bopepo.view.PdfViewer.<clinit>(PdfViewer.java:84) ... 40 more

Obrigado!!!

4 Respostas

E

Qual é a linha 105 desse arquivo?

G
public static File groupInOnePdfWithTemplate(List<Boleto> boletos, String destPath, File templateFile) {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }
G

Isso daí é da LIB Bopepo que estou utilizando, respectivas linhas 103,104,105,106.

A

Carinha: olha a causa raiz: NullPointerException.

Isso significa que tem alguma coisa que você não está configurando corretamente antes de chamar o construtor. Muitas vezes essas apis dependem de algum arquivo de configuração, ou de alguma operação prévia. Em outros casos, será que você não está inadvertidamente preenchendo algum campo necessário ao construtor como nulo? Vê aí…

Criado 26 de janeiro de 2012
Ultima resposta 26 de jan. de 2012
Respostas 4
Participantes 3