my dog learned polymorphism*
The moose likes MongoDB and the fly likes Error in Jasper Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » MongoDB
Bookmark "Error in Jasper " Watch "Error in Jasper " New topic
Author

Error in Jasper

vivek dhiman
Ranch Hand

Joined: Aug 05, 2011
Posts: 111

Hi
I am trying to call .jrxml from java. I have the below code but its giving me error.


Error is


Any Suggestions how to solve it.
James Boswell
Bartender

Joined: Nov 09, 2011
Posts: 1012
    
    5

How have you configured the connection to the database for the report?
vivek dhiman
Ranch Hand

Joined: Aug 05, 2011
Posts: 111

Below is the code.



JRXML Code :

James Boswell
Bartender

Joined: Nov 09, 2011
Posts: 1012
    
    5

Looking at the test 'ReportTest' which comes with the MongoDB connector, I think you need to set up your connection along these lines:

i.e. Pass the connection as a parameter to the report.
vivek dhiman
Ranch Hand

Joined: Aug 05, 2011
Posts: 111

Hi

Finally this code worked for me.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error in Jasper
 
Similar Threads
cannot pass to value to a jasper parameter
iReport 0.5.1 cannot compile any report
doubts in iReport and JasperReports
org.xml.sax.SAXException when generating Jasper report
Problem: Jasper Report 3.7.2 and Oracle JDeveloper 11g