Hello
everyone,
I
would like to fill my succsessly compiled Report directly. Therefore I put the
compiled jasper-file directly in the root into my jar-file and used this
method
JasperPrint jp =
JasperFillManager.fillReport("FallakteHBReport.jasper",
fallAkte,
new JRTableModelDataSource(m_tModel)); But I am getting a File not found Exception like this
below
What I
am doing wrong and what do I need to do for a
Reportfilling using the method above?
java.io.FileNotFoundException:
FallakteHBReport.jasper
at
net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:117)
at
net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:291)
at
de.mc.etnbestterm.gui.FallAktenResumeePanel.setReport(FallAktenResumeePanel.java:102)
at
de.mc.etnbestterm.gui.FallDokuPanel.m_tabPane_stateChanged(FallDokuPanel.java:677)
at
de.mc.etnbestterm.gui.FallDokuPanel.access$800(FallDokuPanel.java:33)
at
de.mc.etnbestterm.gui.FallDokuPanel$9.stateChanged(FallDokuPanel.java:245)
at
javax.swing.JTabbedPane.fireStateChanged(JTabbedPane.java:287)
at
javax.swing.JTabbedPane$ModelListener.stateChanged(JTabbedPane.java:219)
at
javax.swing.DefaultSingleSelectionModel.fireStateChanged(DefaultSingleSelectionModel.java:116)
at
javax.swing.DefaultSingleSelectionModel.setSelectedIndex(DefaultSingleSelectionModel.java:50)
at
javax.swing.JTabbedPane.setSelectedIndexImpl(JTabbedPane.java:468)
at
javax.swing.JTabbedPane.setSelectedIndex(JTabbedPane.java:461)
at
javax.swing.plaf.basic.BasicTabbedPaneUI$MouseHandler.mousePressed(BasicTabbedPaneUI.java:3060)
at
java.awt.Component.processMouseEvent(Component.java:5097)
at
java.awt.Component.processEvent(Component.java:4897)
at
java.awt.Container.processEvent(Container.java:1569)
at
java.awt.Component.dispatchEventImpl(Component.java:3615)
at
java.awt.Container.dispatchEventImpl(Container.java:1627)
at
java.awt.Component.dispatchEvent(Component.java:3477)
at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3195)
at
java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at
java.awt.Container.dispatchEventImpl(Container.java:1613)
at
java.awt.Window.dispatchEventImpl(Window.java:1606)
at
java.awt.Component.dispatchEvent(Component.java:3477)
at
java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at
java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
NESTED BY : java.io.FileNotFoundException:
FallakteHBReport.jasper
at
net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:117)
at
net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:291)
at
de.mc.etnbestterm.gui.FallAktenResumeePanel.setReport(FallAktenResumeePanel.java:102)
at
de.mc.etnbestterm.gui.FallDokuPanel.m_tabPane_stateChanged(FallDokuPanel.java:677)
at
de.mc.etnbestterm.gui.FallDokuPanel.access$800(FallDokuPanel.java:33)
at
de.mc.etnbestterm.gui.FallDokuPanel$9.stateChanged(FallDokuPanel.java:245)
at
javax.swing.JTabbedPane.fireStateChanged(JTabbedPane.java:287)
at
javax.swing.JTabbedPane$ModelListener.stateChanged(JTabbedPane.java:219)
at
javax.swing.DefaultSingleSelectionModel.fireStateChanged(DefaultSingleSelectionModel.java:116)
at
javax.swing.DefaultSingleSelectionModel.setSelectedIndex(DefaultSingleSelectionModel.java:50)
at
javax.swing.JTabbedPane.setSelectedIndexImpl(JTabbedPane.java:468)
at
javax.swing.JTabbedPane.setSelectedIndex(JTabbedPane.java:461)
at
javax.swing.plaf.basic.BasicTabbedPaneUI$MouseHandler.mousePressed(BasicTabbedPaneUI.java:3060)
at
java.awt.Component.processMouseEvent(Component.java:5097)
at
java.awt.Component.processEvent(Component.java:4897)
at
java.awt.Container.processEvent(Container.java:1569)
at
java.awt.Component.dispatchEventImpl(Component.java:3615)
at
java.awt.Container.dispatchEventImpl(Container.java:1627)
at
java.awt.Component.dispatchEvent(Component.java:3477)
at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3195)
at
java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at
java.awt.Container.dispatchEventImpl(Container.java:1613)
at
java.awt.Window.dispatchEventImpl(Window.java:1606)
at
java.awt.Component.dispatchEvent(Component.java:3477)
at
java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at
java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
NESTED BY : net.sf.jasperreports.engine.JRException:
FallakteHBReport.jasper
at
net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:117)
at
net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:291)
at
de.mc.etnbestterm.gui.FallAktenResumeePanel.setReport(FallAktenResumeePanel.java:102)
at
de.mc.etnbestterm.gui.FallDokuPanel.m_tabPane_stateChanged(FallDokuPanel.java:677)
at
de.mc.etnbestterm.gui.FallDokuPanel.access$800(FallDokuPanel.java:33)
at
de.mc.etnbestterm.gui.FallDokuPanel$9.stateChanged(FallDokuPanel.java:245)
at
javax.swing.JTabbedPane.fireStateChanged(JTabbedPane.java:287)
at
javax.swing.JTabbedPane$ModelListener.stateChanged(JTabbedPane.java:219)
at
javax.swing.DefaultSingleSelectionModel.fireStateChanged(DefaultSingleSelectionModel.java:116)
at
javax.swing.DefaultSingleSelectionModel.setSelectedIndex(DefaultSingleSelectionModel.java:50)
at
javax.swing.JTabbedPane.setSelectedIndexImpl(JTabbedPane.java:468)
at
javax.swing.JTabbedPane.setSelectedIndex(JTabbedPane.java:461)
at
javax.swing.plaf.basic.BasicTabbedPaneUI$MouseHandler.mousePressed(BasicTabbedPaneUI.java:3060)
at
java.awt.Component.processMouseEvent(Component.java:5097)
at
java.awt.Component.processEvent(Component.java:4897)
at
java.awt.Container.processEvent(Container.java:1569)
at
java.awt.Component.dispatchEventImpl(Component.java:3615)
at
java.awt.Container.dispatchEventImpl(Container.java:1627)
at
java.awt.Component.dispatchEvent(Component.java:3477)
at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3195)
at
java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at
java.awt.Container.dispatchEventImpl(Container.java:1613)
at
java.awt.Window.dispatchEventImpl(Window.java:1606)
at
java.awt.Component.dispatchEvent(Component.java:3477)
at
java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at
java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
Caused
by: java.io.FileNotFoundException: FallakteHBReport.jasper
... 31 more
thanks a lot in advance
Malte
|