This week's book giveaway is in the Reactive Progamming forum.
We're giving away four copies of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams and have Adam Davis on-line!
See this thread for details.
Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming 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
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

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
  • Quote
  • Report post to moderator
hi,
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


as

o h id:CHECKNEWPRODUCT
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

xml--



changes in web.xml



my service class



 
Wink, wink, nudge, nudge, say no more, it's a tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!