2004 IR Help Posted August 23, 2006 Share Posted August 23, 2006 By: Jeroni - jeroni Problems with fillparameter 2005-10-05 07:12 Hi. I'm trying to launch a report from my java application, but there's no way, when it tries to fill the report I receive the following error: java.lang.NoClassDefFoundError: net/sf/jasperreports/engine/fill/JRFillParameter at Contrato.customizedInit(Contrato.java:75) at net.sf.jasperreports.engine.fill.JRCalculator.init(JRCalculator.java:130) at net.sf.jasperreports.engine.fill.JRBaseFiller.loadCalculator(JRBaseFiller.java:636) at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:331) at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:127) at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:119) at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:111) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:222) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:209) at com.okkum.astrolabi.rcp.PanelListadoContratos$14.handleEvent(PanelListadoContratos.java:596) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143) at com.okkum.astrolabi.rcp.Application.run(Application.java:18) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334) at org.eclipse.core.launcher.Main.basicRun(Main.java:278) at org.eclipse.core.launcher.Main.run(Main.java:973) at org.eclipse.core.launcher.Main.main(Main.java:948) Can somebody please help me? By: bryan523 - bryan523 RE: Problems with fillparameter 2005-10-06 01:14 Can u show us ur java coding? By: Xavier Gil - xgilest RE: Problems with fillparameter 2005-10-11 04:22 This is the coding, but what its really disapinting is that it works at the begining of summer and now it doesn't. <code> try { InputStream stream = JasperPruebas.class.getResourceAsStream("./reports/contratosincoche.jasper"); Class.forName("org.postgresql.Driver"); c = DriverManager.getConnection("jdbc:postgresql://192.168.0.69/okkumProves","postgres","1234"); map.put(new String("reserva"), dr.getIdreserva().toString()); jp = JasperFillManager.fillReport(stream, map, c); JRPdfExporter jr = new JRPdfExporter(); String nombreSalida = new String(Messages.getString("directoriReports")+"reserva"+dr.getIdreserva().toString()+".pdf"); jr.setParameter(JRExporterParameter.INPUT_FILE_NAME, stream); jr.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, nombreSalida); jr.setParameter(JRExporterParameter.JASPER_PRINT, jp); jr.exportReport(); Runtime rt = Runtime.getRuntime(); rt.exec(Messages.getString("confAcrobat")+" "+nombreSalida); rellenarTabla(t, "", "", "", ""); } catch (JRException ex) { ex.printStackTrace(); } catch (SQLException ex) { // TODO Auto-generated catch block ex.printStackTrace(); } catch (Throwable ex) { // TODO Auto-generated catch block ex.printStackTrace(); } </code> Link to comment Share on other sites More sharing options...
ramesh_n Posted August 30, 2007 Share Posted August 30, 2007 Hi, I am facing the same problem in my code, If you find any solution for this issues. Please share with me. Thanks in advance, Regards,Ramesh N Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now