• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

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

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • 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 Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • 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
  • 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 Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
I was stucked by the same problem. need help please
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!