Erro com iReport

3 respostas
Ratao

Olá pessoal!
Estou tentando criar um PDF, porem esta dando o seguinte erro:

net.sf.jasperreports.engine.JRException: Class not found when loading object from file : pedido.jasper
	at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:96)
	at net.sf.jasperreports.engine.JasperFillManager.fillReportToFile(JasperFillManager.java:443)
	at RelatorioJava.RelatoriosPedido.buscaPedido(RelatoriosPedido.java:36)
	at prodados.CadPedido$19.actionPerformed(CadPedido.java:2131)
	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.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
	at java.awt.AWTEventMulticaster.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.ClassNotFoundException: org.apache.commons.collections.SequencedHashMap
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClassInternal(Unknown Source)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Unknown Source)
	at java.io.ObjectInputStream.resolveClass(Unknown Source)
	at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
	at java.io.ObjectInputStream.readClassDesc(Unknown Source)

Alguém sabe o que é??? Estou batendo cabeça aqui e nada, vou continuar pesquisando, se conseguir posto aqui. :smiley:

3 Respostas

andredeividi

Ola
vc deve ter um subRelatorio que no qual ele num esta achando ou naum esta
compilado

pedido.jasper.

é uma dica

Ratao

Agora tah dando um novo erro:

Exception in thread "main" java.lang.NoClassDefFoundError: com/lowagie/text/pdf/FontMapper
	at net.sf.jasperreports.engine.JasperExportManager.exportReportToPdfFile(JasperExportManager.java:121)
	at net.sf.jasperreports.engine.JasperExportManager.exportReportToPdfFile(JasperExportManager.java:82)
	at RelatorioJava.RelatoriosPedido.buscaPedido(RelatoriosPedido.java:53)
	at RelatorioJava.RelatoriosPedido.main(RelatoriosPedido.java:71)

Alguem sabe o que é?

Ratao

Só importar o itext.x.x.x.jar (x = versao)

Criado 15 de junho de 2007
Ultima resposta 19 de jun. de 2007
Respostas 3
Participantes 2