• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

net.sf.jasperreports.engine.JRException: java.io.FileNotFoundException

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

sir i try call the jasper report but system give me this error






net.sf.jasperreports.engine.JRException: java.io.FileNotFoundException: \report\report2.jasper
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:79)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:232)


 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
FileNotFoundException. It should give you a hint, doesn't it ? But I find it strange that the file reported ( \report\report2.jasper ) does not correspond to the file name in your source code (../report/report1.jasper). Is this the stack trace for this sample ?
 
ayyappan Bas
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Christophe Verré wrote:FileNotFoundException. It should give you a hint, doesn't it ? But I find it strange that the file reported ( \report\report2.jasper ) does not correspond to the file name in your source code (../report/report1.jasper). Is this the stack trace for this sample ?



can you still elaborate clearly the solution for the Above same code ?what mistake is i making in the given code?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
FileNotFoundException = File Is Not Found = Check the path of your file.
If you use a relative path, make sure that the current directory is correct.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was stucked by the same problem. need help please
 
Ew. You guys are ugly with a capital UG. Here, maybe this tiny ad can help:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic