This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes [Java & Jasper Report] Simple and very detailed question about subreport Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "[Java & Jasper Report] Simple and very detailed question about subreport "null" field" Watch "[Java & Jasper Report] Simple and very detailed question about subreport "null" field" New topic
Author

[Java & Jasper Report] Simple and very detailed question about subreport "null" field

Federico Nardone
Greenhorn

Joined: Mar 17, 2009
Posts: 4
Hi all!

My JSP Web application include simply report without subreport, and other report with subreport, all developed in Jasper Report with IReport tool. All simply report work perfectly in local and in remote, the other report (with subreport) work perfectly in local (see attach 1_right_local) but wrong in my remote server (see attach 2_wrong_remote). Why?

(very thank all! I send the 2 attach file. I thik, depending another properties or setting in IReport).

Archimede


[Thumbnail for 1_right_local.jpg]

Federico Nardone
Greenhorn

Joined: Mar 17, 2009
Posts: 4
And now, the image of wrong report (in remote). Please help me! Thank...


[Thumbnail for 2_wrong_remote.jpg]

Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

How is the sub report getting the data? It sounds like you have some configuration which is hard coded to the local server.


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
Federico Nardone
Greenhorn

Joined: Mar 17, 2009
Posts: 4
NO!

I tryed change a subreport with a data-less and connection-less (only static text) and i see the same problem. It's not a data / connection problem. How can i solve this problem? The follow code, i use to subreport open, and in locale work good:

parameters.put("SUBREPORT_DIR", context.getRealPath(rptFolder + "//" + subpath + "//" + "rptFatCanFor_subFor.jasper"));
parameters.put("SUB_SUBREPORT_DIR", context.getRealPath(rptFolder + "//" + subpath + "//" + "rptFatCanFor_subFor_subFat.jasper"));

(...)

jp = JasperFillManager.fillReport(context.getResourceAsStream("/" + rptFolder + "/" + subpath + "/" + rptFileName + ".jasper"), parameters, Conn);

(...)
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Hmm, sorry I can't help you any further, I'm not actually a Jasper user
 
Consider Paul's rocket mass heater.
 
subject: [Java & Jasper Report] Simple and very detailed question about subreport "null" field
 
Similar Threads
Jasper with StoredProcedures
Passing dataSource to subreport in ireport
My first post (thank): report with subreport open
Set Subreport absolute path
Jasper Report or iReport or Both