ColdFusion

 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me



Go Back   Tutorialized ForumsWeb Design & DevelopmentColdFusion

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Tutorialized Forums Sponsor:
  #1  
Old October 22nd, 2008, 08:15 PM
urubulino urubulino is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: Oct 2008
Posts: 2 urubulino User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 24 sec
Reputation Power: 0
Ireport and Coldfusion 8

Hi ..
I have tried all but I couldn't solve this error when I tried to run ireport3.0.0 with coldfusion8.
when I run the report in iReport software it is ok but when i run in CF8 :

Unable to get next record.

The error occurred in C:\ColdFusion8\wwwroot\ireport.cfm: line 46

44 : // "Create" the report.. ie, run the sql query, etc... This creates a JasperPrint
45 : // object that can be converted to a PDF file, HTML file, etc...
46 : jasperPrint = jasperManager.fillReport(jasperReport, parameters, connection);
47 :
48 : // Save the report to a PDF file.


my cfml code without comments:


<cfscript>
system = CreateObject("java", "java.lang.System");
classpath = system.getProperty("java.class.path");
if (FindNoCase("jasperreportss", classpath) LTE 0)
{
classpath = classpath & ";C:\ColdFusion8\lib\commons-beanutils-1.7.jar;C:\ColdFusion8\lib\commons-collections-2.1.jar;C:\ColdFusion8\lib\commons-digester-1.7.jar;C:\ColdFusion8\lib\commons-logging-api-1.0.4.jar;C:\ColdFusion8\lib\commons-logging-1.0.4.jar;C:\ColdFusion8\lib\iReport.jar;C:\ColdFu sion8\lib\itext-1.3.1.jar;C:\ColdFusion8\lib\jasperreports-3.0.0.jar;C:\ColdFusion8\lib\jcmdline-1.0.2.jar;C:\ColdFusion8\lib\jcommon-1.0.0.jar;C:\ColdFusion8\lib\poi-3.0.1-FINAL-20070705.jar;C:\ColdFusion8\lib\ojdbc14.jar;";
system.setProperty("java.class.path", classpath);
}
clazz = CreateObject("java", "java.lang.Class");
clazz.forName("oracle.jdbc.driver.OracleDriver");
driverManager = CreateObject("java", "java.sql.DriverManager");
connection = driverManager.getConnection("jdbcracle:thin:@localhost:1521:XE","fcon","fcon");
jasperManager = CreateObject("java", "net.sf.jasperreports.engine.JasperManager");
jasperDesign = jasperManager.loadXmlDesign("C:\ColdFusion8\wwwroot\reports\simples.jrxml");
jasperReport = jasperManager.compileReport(jasperDesign);
parameters = CreateObject("java", "java.util.HashMap");
parameters.put("ReportTitle", "Basic JasperReport");
jasperPrint = jasperManager.fillReport(jasperReport, parameters, connection);
jasperManager.printReportToPdfFile(jasperPrint, "C:\ColdFusion8\wwwroot\reports\simples.pdf");
connection.close();
</cfscript>
<center>

Can somebody tell me how to fix it?

Thanks

Reply With Quote
Reply

Viewing: Tutorialized ForumsWeb Design & DevelopmentColdFusion > Ireport and Coldfusion 8


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap