For BE/B.Tech/BCA/MCA/ME/M.Tech Major/Minor Project for CS/IT branch at minimum price Text Message @ 9424820157

Jasper Reports Interview Questions

Jasper Reports Interview Questions



1.What is the difference between iReport and JasperReport?
Basically, iReport is the report designer and JasperReport is the reporting engine.

2.How are JasperReports and iReports created?
Jasper Reports are created manually using jrxml file and compiling it. On the other hand, iReport gives one a more user-friendly environment for developing reports.

3.How to determine the version of Java used by iReport designers in an environment?
In order to determine the specific version of Java used by the installation of iReport designer, the setting in thecon/ireporpro.con or in the ireport/etc/ireportpro. con should be used.

4.What are the steps for identifying the default Java version used for generating iReport?
When iReprot designer is using the default Java installation for the environment, opening a command line and executing the following command would help – java-version

5.What is the command line for setting jdkhome specifically for iReport?
When the jdkhome is set specifically for the iReport, opening a command line and going to the bin directory within the listed directories in the setting for executing the command java-version would help to identify the java version.

6.How to change the version of Java used by the iReport?
To change the version of Java used by iReport, the following setting has to be added or updated.
<irepor-install-directory>/fonf/ireportpro.conf
or <ireport-install-directory>/ireport/etc/ireportpro.conf.
The use of the command line would depend on the installation made.

7.What is the command line for changing the version of Java used by the iReport?
The command line for changing the version of Java used by the iReport is
jdkhome=”C:\Program Files\Java\jdk1.7″

8.What are the restrictions for using the command line for changing the version of Java used by iReport?
User must ensure that the command line does not have any hash at the beginning of the line after it is updated. Because in such case it would no more be command line but would become comment only.

9.Can JRE be selected to generate iReport?
JRE was created using the JSmooth and one can modify the file ireport/etc/ireport.jsmooth using the jsmooth to force use of particular JVM.

10.How to solve the problem of running iReport when it generates Java error?
The config file is available in the etc folder where the jdkhome has been set. The path that is to be given there is the jdk path and not jre path. Installation of jdk is essential for the purpose.

11.How to resolve the windows installer problem in Java?
User has to first check whether he or she is running the program in a container or as a standalone. Checking this would enable the person to get the right JAVA_HOME version for running the iReport.

12.How to add user-defined functions In iReport?
User can use Java code in iReport using the scriptlets.

13.What is achieved by scriptlets?
.What is achieved by scriptlets? Scriptlets are the bridges that get the Java Code in iReport. iReport.scriptlet is a Java class that extends JRDefaultScriptlet where one can write user-defined functions that can later be accessed easily in the report

14.How to run user-defined functions in iReport?
A few simple steps help to run the user-defined functions. The first step is to go to Tools-options- claspath tab –ADD Jar- choose Jar file. In iReport the Scriptlet node in Report Inspector chooses the property named ‘Scriplet Class’. Keying in the location of the user-defined function would help.

15.What is JAR?
In iReport JAR is made on building the project containing the Scriptlet.

16.What is the specific necessity of the class containing user-defined function?
The class containing the user-defined functions needs to be extended by the JRDefaultScriptlet.

17.What is the parameter for using user-defined function in iReport?
The parameter in iReport for using the user-defined function is $P{REPORT SCRIPTLET} which is a predefined parameter for the user.

18.What is the process of using a user-defined function in iReport?
The user defined function is used with the $ P{REPORT SCRIPTLET}.userDefinedFun(). This function returns values from the scriptlet.

19.What are other user-defined functions used in iReport?
Other user-defined functions in iReport are $P{REPORT SCRIPTLET}.userDefinedfun($F{field}). These functions give fluidity to Java from the Jasper to Java code.

20.Is there any way to know how the report looks?
There is a PDF export that would show exactly how the report looks.

No comments:

Post a Comment



Please go through below tutorials:


Mule 4 Tutorials

DEPLOY TO CLOUDHUB C4E CLIENT ID ENFORCEMENT CUSTOM POLICY RABBIT MQ INTEGRATION
XML TO JSON WEBSERVICE CONSUMER VM CONNECTOR VALIDATION UNTIL SUCCESSFUL
SUB FLOW SET & REMOVE VARIABLE TRANSACTION ID SCATTER GATHER ROUND ROBIN
CONSUME REST WEBSERVICE CRUD OPERATIONS PARSE TEMPLATE OBJECT TO JSON LOAD STATIC RESOURCE
JSON TO XML INVOKE IDEMPOTENT FILTER FOR EACH FLAT TO JSON
FIXWIDTH TO JSON FIRST SUCCESSFUL FILE OPERATIONS EXECUTE ERROR HANDLING
EMAIL FUNCTIONALITY DYNAMIC EVALUATE CUSTOM BUSINESS EVENT CSV TO JSON COPYBOOK TO JSON
CHOICE ASYNC

Widely used Connectors in Mule 3

CMIS JETTY VM CONNECTOR SALESFORCE POP3
JMS TCP/IP WEBSERVICE CONSUMER QUARTZ MONGO DB
FILE CONNECTOR DATABASE CONNECTOR


Widely used Scopes in Mule 3

SUB FLOW REQUEST REPLY PROCESSOR CHAIN FOR EACH CACHE
ASYNC TCP/IP COMPOSITE SOURCE POLL UNTIL SUCCESSFUL
TRANSACTIONAL FLOW

Widely used Components in Mule 3

EXPRESSION CXF SCRIPT RUBY PYTHON
JAVASCRIPT JAVA INVOKE CUSTOM BUSINESS EVENT GROOVY
ECHO LOGGER


Widely used Transformers in Mule 3

MONGO DB XSLT TRANSFORMER REFERENCE SCRIPT RUBY
PYTHON MESSAGE PROPERTIES JAVA TRANSFORMER GZIP COMPRESS/UNCOMPRESS GROOVY
EXPRESSION DOM TO XML STRING VALIDATION COMBINE COLLECTIONS BYTE ARRAY TO STRING
ATTACHMENT TRANSFORMER FILE TO STRING XML TO DOM APPEND STRING JAVASCRIPT
JSON TO JAVA COPYBOOK TO JSON MAP TO JSON JSON TO XML FLATFILE TO JSON
FIXWIDTH TO JSON CSV TO JSON


Widely used Filters in Mule 3

WILDCARD SCHEMA VALIDATION REGEX PAYLOAD OR
NOT MESSAGE PROPERTY MESSAGE IDEMPOTENT FILTER REFERNCE
EXPRESSION EXCEPTION CUSTOM AND


Exception Strategy in Mule 3

REFERENCE EXCEPTION STRATEGY CUSTOM EXCEPTION STRATEGY CHOICE EXCEPTION STRATEGY CATCH EXCEPTION STRATEGY GLOBAL EXCEPTION STRATEGY


Flow Control in Mule 3

CHOICE COLLECTION AGGREGATOR COLLECTION SPLITTER CUSTOM AGGREGATOR FIRST SUCCESSFUL
MESSAGE CHUNK AGGREGATOR MESSAGE CHUNK SPLITTER RESEQUENCER ROUND ROBIN SOAP ROUTER