Jump to content
Changes to the Jaspersoft community edition download ×

Blank report, but no Exceptions from jasper


2005 IR Help

Recommended Posts

By: Erich Oliphant - eoliphan

Blank report, but no Exceptions from jasper

2004-05-16 08:27

Hi,

I have a report that I can run from the various jasper tools (JasperAssistant, etc) w/ no problem. However when I attempt to run it from my web application. No content is generated. I get a valid PDF or HTML document (i can open the PDF w/ acrobat, the HTML has <html>,<head> etc tags) with no report content. Not even the static text in the report.

 

I get no errors/exceptions from Jasper. I can see the query from the report hitting my database successfully.

 

Any ideas? Is there a debug mode or something that might provide more info?

 

Here's the relevant code snippet:

 

IResourceResolver resResolver = cycle.getEngine().getResourceResolver();

URL reportPath = resResolver.getResource("priacq.jasper");

File reportPathFile = new File(reportPath.getPath());

 

Map reportParams = new HashMap();

reportParams.put("priprodcode",sb.toString());

reportParams.put("sales",md.getSalesActual().toString());

reportParams.put("companyname",md.getCompanyName());

reportParams.put("BaseDir",reportPathFile.getParentFile());

conn = CacheUtil.getJDBCConnection();

if (conn != null)

{

 

JasperRunManager.runReportToPdfFile(reportPathFile.getPath(),"c:/report.pdf",reportParams,conn);

 

}

 

 

 

 

By: Erich Oliphant - eoliphan

RE: Blank report, but no Exceptions from jasp

2004-05-16 09:13

Hi,

I think this was due to an error in my query. I have it working now. However, is Jasper "swallowing" JDBC exceptions. My query had 1 logic problem and 1 outright syntax error, but I did not see any errors in my logs.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...