Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Federico Nardone
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
1_right_local.jpg
[Thumbnail for 1_right_local.jpg]
 
Federico Nardone
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And now, the image of wrong report (in remote). Please help me! Thank...
2_wrong_remote.jpg
[Thumbnail for 2_wrong_remote.jpg]
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How is the sub report getting the data? It sounds like you have some configuration which is hard coded to the local server.
 
Federico Nardone
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmm, sorry I can't help you any further, I'm not actually a Jasper user
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic