Win a copy of Microservices in Action this week in the Web Services forum!
  • 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:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!