• 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 ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

jasper reports html format not displayed inspite of doing all the changes mentioned in similar post

Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am new to jasper reports.I have written a action and service class for Jasper Reports xml is reports.xml,
My problem is red cross are displayed in HTML format , i searched many websites found the code for htmlexporter,i added that code in my service class but still i am not getting the output properly,it shows red cross ,like it shows when image not found,i also made changes in web.xml
I am creating .jrxml through ireport-nb-3.6.1,using eclipse,hibernate
creating .jasper file from class compilation and filling it with list which is generated using hql.

when i give PDF format i get the result,but when i give HTML format i don't get to see proper result all i get is ugly page with small red image not found cross.
I need to embed these in my application please help.

i am getting an exception on line where there is JasperPrint loadobject method


net.sf.jasperreports.engine.JRException: Error loading object from file : F:\supriya.projects\kite\kite1\kite\WebContent\jasper\kitereport2.jprint
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:94)
at reports.JasperService.report1(JasperService.java:333)
at reports.JasperAction.report1(JasperAction.java:40)

caused by: java.io.EOFException
at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source)

i am providing the code below ..please help me,if any one has any clue about it.
i am trying this from long time..
and yes all jars are properly added.
And i might have written some code completely wrong also i am new to jasper..so please help me out


changes in web.xml

my service class

    Bookmark Topic Watch Topic
  • New Topic