Jasper report font formating problem

hi,
i face a problem when i try to format the font during generate jasper report.
i add the following code into the jrxml file, but it stil don't work.
<textElement>
<font isBold="true" isItalic="true" isUnderline="true" pdfFontName="Times-Bold"/>
<textElement/>
<text><![CDATA[Signed for and on behalf of )]]></text>
note: i add the isBold="true", isUnderline="true" and pdfFontName="Times-Bold".
can anybody helps me? Is quite urgent.
thanks a lot!!
eric

So i tried the same in Java.As a stand alone java code? or as a code in your webapp? Please make sure the required jar files are in your web-inf\lib

Similar Messages

  • XML Publisher to Excel Report : Date format problem

    Hi,
    I am trying to create an Excel report with XML Publisher. I have an issue with the Date Fomatting.
    In the XML template, I have set the "Date" column in date format. But the excel output report "Date" column returns as "General text" (string) and it is sorted as text, not as date.
    Can anyone please help me out?
    Thanks!!!

    Hi,
    Did this post solve your problem? I have the same issue that I need to solve.
    I have an xsl-fo template with dates in it.
    The dates are in english.
    My excel is setup to use danish.
    When I export to excel it knows the month jan, feb, mar, apr, ... which are the same in danish and english.
    But months where it differs like may (danish maj) the cell is a general text instead of date.
    Is there anyway you can set/transform the date in the xsl-fo template so it does not care about the language in excel?
    Thank you in advance.
    BR Kenneth

  • Report painter formatting problem

    Hi
    I was working on a report in GR32 and seems screwed up.Now the report's decimal is not coming up.When I goto formating and select the decimal option , decimal comes up but spacing between columns get affected.Can anybody tells me how to fix the formating issue of columns. I mean adding decimal,comma and space between columns ?
    Thanks
    Satya

    i am explainig for report painter reports ( similar way must be there for report writer)
    go to grr2
    you will see on top of the columns 'format group    :   0' written.
    when you go to formatting -> columns  you will seee a format group on the top and below you will see the width , decimal places etc.
    say you want to have  column a very wide and column B needs to be filled with only one or 2 numbers then on top of column A you can the format group to 0. Then click on formatting-> columns and make the widht eg 20.
    for column B on top of the column change the format group to 1. Then go to formatting -> columns then select the format group as 1 and then make the width to 2.
    This way you can have different widths, decimals etc for differenet columns
    Assign points if helfpfull,
    Regards,
    Zaid Azam

  • Reports layout/format problem when called from forms

    hi,
    using forms and reports builder 10g OS winxp
    i have created web and paper layout report with pre-defined template gray (rdf). when i run the web layout there is no problem.
    when i call this report from form using
    web.show_document('http://machine:8889/reports/rwservlet?report=mail_report.rdf&destype=cache&desformat=HTML&userid=abc/xyz@dbname&para1='||:parameter1, '_blank');
    the layout (cell bgcolors of the table) does not appear.
    pl guide what am i missing out.
    thanks

    Hi,
    that has nothing to do with forms. Your call inside web.show_document is a servlet-call. With this you get the paper layout of a report. If you want to get the web-layout, you have to call the report with a jsp-call. In your case that might look like http://machine:8889/reports/mail_report.jsp?userid=.....
    If you store your report as jsp-file, you can use it for paper & web-layout, as rdf only paper-layout is possible.
    http://download.oracle.com/docs/cd/B25016_08//doc/dl/bi/B14048_02/pbr_arch.htm#i1005927
    http://download.oracle.com/docs/cd/B25016_08//doc/dl/bi/B14048_02/pbr_run.htm#g1022421
    Regards
    Rainer

  • Foreign Font formatting problem

    I'm using Pages 1.0
    When I use a foreign font in my document many of the punctuation keys on the keyboard are used for letters in this language, and it appears that Pages recognizes them still as punctuation and does automatic formatting accordingly. For example, the hyphen key and semicolon key are letters in the language I'm using but Pages keeps putting line breaks and hypens there, thus messing up my document with automatic formatting. I know how to turn off the hypens, but is there a way to turn off all automatic formatting?
    Thanks for any help.

    However, I
    don't quite understand the difference between
    keyboard layouts and various language fonts. When I
    activate the mongolian keyboard layout, no matter
    which font I choose, it basically looks the same.
    How do you get Mongolian fonts to work with the
    mongolian keyboard layout.
    Any Mongolian fonts you have from the past that are coded to replace Latin and thus work with the US layout will not work with the keyboard you downloaded, which works only with Unicode fonts (the basis for OS X operations in general). So if you want different fonts than Lucida Grande, you will need to download some of those mentioned, or if you have Office2004 installed I think these should work: Arial, Monaco, Times, and Times New Roman. You can tell which fonts on your system have the right characters by using Character Palette (Edit > Special Characters) and checking the font variation pane for 04af and 04e9. A better list of fonts is at:
    http://m10lmac.blogspot.com/2006/11/typing-mongolian-cyrillic.html

  • Problem while incrementing a variable in Jasper Reports

    Hi
    I am using Jasper Reports for designing reports. These reports will be used by my Java application.
    But there is problem while I am trying to increment a variable depending on some condition.
    Requirement: I have to display information about all the residents in a hospital in a single report. Resident information will be fetched from the XML file. When a resident ID is found in the XML, then the variable(resno) shoud be incremented. I have set the initial value to 1.
    Problem: Only for the first resident, resno is showing as 1. For all the remaining residents, its showing as 0 (zero).The variable 'resno' is not incrementing for each resident.
    Even the ResidentID is not null. All the ResidentID's exists in the XML file.
    Please find the code below.
    <variable name="resno" class="java.lang.Integer" incrementType="Group" incrementGroup="residentbrk" calculation="Count">
    <initialValueExpression><![CDATA[new Integer(1)]]></initialValueExpression>
    </variable>
    <group name="residentbrk" isStartNewPage="true">
    <groupExpression><![CDATA[$F{ResidentID}]]></groupExpression>
    <groupHeader>
    <band height="16">
    <textField hyperlinkType="None">
    <reportElement positionType="Float" x="0" y="-1" width="96" height="17"/>
    <textElement>
    <font isBold="true"/>
    </textElement>
    <textFieldExpression class="java.lang.String"><![CDATA[$R{residentno}]]></textFieldExpression>
    </textField>
    <textField hyperlinkType="None">
    <reportElement positionType="Float" x="96" y="-2" width="64" height="18"/>
    <textElement/>
    <textFieldExpression class="java.lang.Integer"><![CDATA[$V{resno}]]></textFieldExpression>
    </textField>
    </band>
    </groupHeader>
    </group>
    Could you please provide a solution for this.

    Not clear at all. May be like this
    declare
    v_temp varchar2(100);
    v_final number;
    begin
    --loop
    v_temp:='sun';
    v_temp:=translate(lower(v_temp), '1abcdefghijklmnopqrstuvwxyz', '1');
    dbms_output.put_line('Temp:'||v_temp);
    v_temp := v_temp || 'Mon5.1';
    v_temp:=translate(lower(v_temp), '1abcdefghijklmnopqrstuvwxyz', '1');
    dbms_output.put_line('Temp:'||v_temp);
    v_temp:= v_temp || 'Tue';
    v_temp:=translate(lower(v_temp), '1abcdefghijklmnopqrstuvwxyz', '1');
    dbms_output.put_line('Temp:'||v_temp);
    v_final:=to_number(v_temp);
    dbms_output.put_line('v_final'||v_final);
    --coalesce
    --end loop;
    end;
    /

  • Jasper Report in HTML format

    Hi
    When I try to open the jasper report on browser ,It displays
    the report but not clear.The image does not display on the client.
    below is my code ,please help me......
    MY Code:
    /*3 Preview in HTML format */
    File imagedir=null;
    JRHtmlExporter exp = new JRHtmlExporter();
    StringBuffer sbuf = new StringBuffer();
    exp.setParameter(JRHtmlExporterParameter.JASPER_PRINT, print);
    exp.setParameter(JRHtmlExporterParameter.OUTPUT_STRING_BUFFER, sbuf);
    exp.setParameter(JRHtmlExporterParameter.IMAGES_DIR,imagedir);
    exp.exportReport();
    out.print(sbuf.toString());
    Thanks
    By sathesh

    Alright there is a dedicated ImageServlet(provided in jasper reporting framework) which is used to Link Static image content along with your HTML report content.
    and here is how you have to do it is ??
    is by setting few parameters for JRExporter Object and making use of image servlet provided under jasper libraries.
    ImageServlet configurations in web.xml:
    <servlet>
            <servlet-name>ImageServlet</servlet-name>
            <servlet-class>
                net.sf.jasperreports.j2ee.servlets.ImageServlet
            </servlet-class>
    </servlet>
    <servlet-mapping>
            <servlet-name>ImageServlet</servlet-name>
            <url-pattern>/imageServlet</url-pattern>
    </servlet-mapping>Html Exporter code..
    JRExporter exporter = null;
    JasperPrint jasperPrint = null;
    Connection conn = null;
    String sourceFile = ReportService.getReportSourceFile(request);
    Map map = ReportService.getParameterMap(sourceFile,request);
    String contentType = ReportService.getContentType(sourceFile,request);
    if(contentType.startsWith("text/html")){
    PrintWriter printWriter = response.getWriter();
    try{
       /* Fetching Connection from a Connection Pool VIA a service*/
      conn = DbUtils.getConnection();
      /* Creating a JasperPrint Object*/
      jasperPrint = JasperFillManager.fillReport(sourceFile,map,conn);
    exporter = new JRHtmlExporter();                          
      request.getSession().setAttribute(ImageServlet.DEFAULT_JASPER_PRINT_SESSION_ATTRIBUTE, jasperPrint);
       /* printWriter here is a reference for  response.getWriter() */
      exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
      exporter.setParameter(JRExporterParameter.OUTPUT_WRITER,printWriter);                  
      // gonna set url pattern given for Image servlet with a reponse parameter <url-pattern>/imageServlet</url-pattern> 
      exporter.setParameter(JRHtmlExporterParameter.IMAGES_URI,"imageServlet?image=");              
       response.setContentType(contentType);
       /* Would write the HTML content to ServletStream Provided */
      exporter.exportReport();
    }catch(Exception exp){
         exp.printStackTrace();
    }finally{
      try{
         if(conn != null && !conn.isClosed())
           conn.close();
      }catch(Exception ep){
         ep.printStackTrace();
      }finally{
           conn = null;
           sourceFile = null;
           map = null;
    }For any other issues with report format and others try to go through my post.However, you might have to edit your customized settings in terms of image rendering problems or to some customized implementations.
    http://forum.java.sun.com/thread.jspa?threadID=5203324&messageID=9811077
    Hope that might help :)
    REGARDS,
    RaHuL

  • Image Display Problem while exporting jasper report in EXCEL

    Hi
    I am using Jasper reports for my reporting work using java code.
    when i export my report in PDF then , report is ok and displaying Image properly.
    but when i export my report in EXCEL then , there is no image in my report, rest part is fine.
    Can anyone please help me in getting image in excel format also.
    thanks in advance
    Praveen

    I have not any problem in picture or logo.
    But I have an another problem.
    My Excel format produce multiple column,that is unefficient format.
    If you have not this problem please mail me at --- [email protected]

  • How to generate jasper report in pdf format using swing

    hi all,
    im new to swing and jasper.. can anybody provide me some example on how to generate the jasper report in pdf format? i will call the reportManager from sessionBean.. below is my code:
    1)delegate:
    public GenerateReportDto generateIntoPdfReport(String fileName, String outputFileName, Map parameters){
    GenerateReportDto generateReportDto = getAuditTrailServiceRemote().generateIntoPdfReport(fileName, outputFileName, parameters);
    return generateReportDto;
    2)sessionBean:
    public GenerateReportDto generateIntoPdfReport(String fileName, String outputFileName, Map parameters){
    //Map parameters = new HashMap();
    ReportManager reportManager = new ReportManager();
    3)ReportManager()
    public void generateIntoPdfReport(String fileName, String outputFileName, Map parameters) {
              Connection conn = null;
              try {
                   conn = dataSource.getConnection();
                   //Generate the report to bytes
                   File reportFile = new File(fileName);               
                   byte[] bytes =
                        JasperRunManager.runReportToPdf(
                             reportFile.getPath(),
                             parameters,
                             conn
              //conn.close();
              //Write the bytes to a file
              ByteBuffer buf = ByteBuffer.wrap(bytes);
              File file = new File(outputFileName);
              // (if the file exists)
              boolean append = false;
              // Create a writable file channel
              FileChannel wChannel = new FileOutputStream(file, append).getChannel();
              // Write the ByteBuffer contents; the bytes between the ByteBuffer's
              // position and the limit is written to the file
              wChannel.write(buf);
              // Close the file
              wChannel.close();
              } finally {
                   if (conn != null) {
    conn.close();
    Any help would be highly appreciated. Thanks in advance

    Hi ,
    One 'simple' way is by using the DBMS_SCHEDULER db package and the procedure CREATE_JOB(....) using as job_type the value 'EXECUTABLE'...
    Read for further info in 'PL/SQL Packages and Types Reference'.
    If you have access to OEM ... you can configure this there using wizard.....
    Other way is to use the External Procedure call capabiblity of Oracle DB Server...:
    http://www.oracle.com/pls/db102/ranked?word=external+procedure+call&remark=federated_search
    My greetings,
    Sim

  • PDF Format Oracle Reports font issue

    My process is generating the batch oracle Reports.
    Their key map is:
    Key1: %* server=server1 userid=xxxs/xxx@xxxx report=D:\sample.rdf destype=file desformat=PDF
    My process is calling IAS server to generate report. IAS ser is generating and saving the report in the specified location.Reports are running on the server locally and DESTYPE=FILE. So the Oracle Reports output is saved on the server itself. Whenever i open the report on my machine/server i have font issue. Some of the reports has very tiny font. It seems the reports generated by using oracle reports which is Arial Unicode font type is causing the problem. If any reports other then Arial Unicode font like Arial Westrn, those reports are fine. We have 1000s of reports. So we don't want to change each report font type. For me it seems the issue is with the font on the server. Is there anyway to ask App server use Arial Westrn if Arial Unicode not found. How to make these configuration changes in the server. Any suggestions please.

    Maybe this helps or at least points you in some direction ...
    Have a look at font aliasing when configuring Application Server : http://download.oracle.com/docs/cd/B14099_19/bi.1012/b14048/pbr_font.htm#i1006140
    If your Application Server is located on Windows I would suggest to install the fonts there.
    In Unix, this a more complex task.

  • PDF Format Oracle Reports font size is not consistent.

    My process is generating the batch oracle Reports.
    Their key map is:
    Key1: %* server=server1 userid=xxxs/xxx@xxxx report=D:\sample.rdf destype=file desformat=PDF
    My process is calling IAS server to generate report. IAS server is generating and saving the report in the specified location. The problem is sometimes the report font size is very tiny (especially headers & footers), it is happening for few reports. What could be the reason is there anyway to make sure that always the generated reports font size is good.

    it is happening for few reportsSo is the problem that the same reports-module sometimes has the right font and sometimes not, or is there one report which has always the wrong font?

  • Problem in using Jasper Reports with JFrames

    Hi,
    I am using Jasper Reports in Swings.
    I could Generate Jasper Reports from JFrames with out any problem,
    but while closing the Report, the JFrame is also getting closed automatically.
    this should not happen for my application.
    So, how could i restrict the JFrame from exiting when Jasper Reports are closed.
    Thanx in advance.
    Reddy

    Create jasperviewer object as JasperViewer jasperViewer = new JasperViewer(jasperPrint, false);

  • Problems with jasper report pdf exporting

    Hello,
    I coded a simple servlet to view a jasper report (created with iReport) after clicking on the right button in the jsp.
    Here is the problem:
    net.sf.jasperreports.engine.JRRuntimeException: Error evaluating expression :
         Source text : (java.awt.Image)it.businesslogic.ireport.chart.DefaultChartFactory.drawChart(new String[]{"chartName=Pie3D","depthFactor=0.2","titlePosition=1","width=245","plotBackground=[255,255,255]","serie1=SERIE_CONTA_RISPOSTE","serie0=SERIE_RISPOSTA","foregroundAlpha=0.33","tooltips=false","chartBackground=[255,255,255]","subtitle=","title=","legend=true","quality=2","height=168","antialias=true"}, (it.businesslogic.ireport.IReportScriptlet)$P{REPORT_SCRIPTLET})
         net.sf.jasperreports.engine.fill.JRFillSubreport.prepare(JRFillSubreport.java:604)
         net.sf.jasperreports.engine.fill.JRFillElementContainer.prepareElements(JRFillElementContainer.java:343)
         net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:311)
         net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:275)
         net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:1302)
         net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:631)
         net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:228)
         net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:128)
         net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:730)
         net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:632)
         net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:63)
         net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:402)
         net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:234)
         net.sf.jasperreports.engine.JasperRunManager.runReportToPdf(JasperRunManager.java:203)
         customer_care.servlet.Reporting.getReport(Reporting.java:74)
         customer_care.servlet.Reporting.processRequest(Reporting.java:50)
         customer_care.servlet.Reporting.doGet(Reporting.java:89)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    Here is the code:
    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            byte[] byte_array = null;
            try{
                File reportFile = new File(this.getServletConfig().getServletContext().getRealPath("/reports/torte_call_center_agenzie.jasper"));
                if (!reportFile.exists()) throw new JRRuntimeException("File jasper non trovato");
                String nomeFile = reportFile.getPath();
                Map parameters = new HashMap();
                parameters.put("codice_questionario", "2");   //just for testing
                ConnettitiAlDB c = new ConnettitiAlDB();
                Connection conn = c.Connettiti(Conf.db_principale);
                byte_array = JasperRunManager.runReportToPdf(fullpath_filename, parameters, connessione);
                conn.close();
            catch(JRException e){
                e.printStackTrace();
            catch(SQLException e) {
                e.printStackTrace();
            response.setContentType("application/pdf");
         response.setContentLength(byte_array.length);
         ServletOutputStream ouputStream = response.getOutputStream();
         ouputStream.write(byte_array, 0, byte_array.length);
         ouputStream.flush();
         ouputStream.close();
         }Any suggestion? That would be vital to me!
    Thanks in advance

    catching the JRRuntimeException and printing its stacktrace i saw that the jfree chart lib was missing.
    i put it in my libraries but now i got this error:
    java.lang.NoSuchMethodError: com.lowagie.text.pdf.PdfContentByte.transform(Ljava/awt/geom/AffineTransform;)V
         net.sf.jasperreports.engine.export.JRPdfExporter.exportText(JRPdfExporter.java:1468)
         net.sf.jasperreports.engine.export.JRPdfExporter.exportElements(JRPdfExporter.java:484)
         net.sf.jasperreports.engine.export.JRPdfExporter.exportPage(JRPdfExporter.java:448)
         net.sf.jasperreports.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:413)
         net.sf.jasperreports.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:250)
         net.sf.jasperreports.engine.JasperExportManager.exportReportToPdf(JasperExportManager.java:188)
         net.sf.jasperreports.engine.JasperRunManager.runReportToPdf(JasperRunManager.java:205)
         customer_care.servlet.Reporting.getReport(Reporting.java:77)
         customer_care.servlet.Reporting.processRequest(Reporting.java:50)
         customer_care.servlet.Reporting.doGet(Reporting.java:92)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    com.lowagie.text.pdf.PdfContentByte.transform is inside the iText library.
    I had an old version so I updated it but nothing changed.
    Any suggestion?
    Thanks

  • Report Downloading in HTML Format - Problem...

    Dear All,
    While I am downloading any report in HTML Format.
    At that time I want to cahnge the font format in SAP.
    please tell how to do this.
    Regards,
    Dharmesh

    Hi Dharmesh,
    Send me the ZPROGRAM you have developed.
    Darshan Patel

  • Problem with Jasper Reports

    hi evrybody... i'm having a problem while using Jasper Reports. I'm trying to Export a jrxml file generated by JasperAssistant plug-in in eclipse. but all i'm having is an exception. the following is my code and the said exception:
    CODE:
    public class DataSourceApp
    private static final String TASK_HTML = "html";
    private static final String TASK_XLS = "xls";
    private static final String TASK_CSV = "csv";
    private static final String TASK_RUN = "run";
    public static void main(String[] args)
    String fileName = null;
    String taskName = null;
    taskName = "html";
    fileName = "path\\DataSourceReport.jasper";
    try
    long start = System.currentTimeMillis();
    if (TASK_HTML.equals(taskName))
    JasperPrint jPrint = new JasperPrint();
    HashMap parameters = new HashMap();
    Connection con = null;
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    con=DriverManager.getConnection("jdbc:odbc:BOM_DSN","","");
    jPrint = JasperFillManager.fillReport("path\\DataSourceReport.jrxml", parameters, con);
    JasperExportManager.exportReportToHtmlFile(fileName);
    System.err.println("HTML creation time : " + (System.currentTimeMillis() - start));
    System.exit(0);
    catch (JRException e)
    e.printStackTrace();
    System.exit(1);
    catch (Exception e)
    e.printStackTrace();
    System.exit(1);
    EXCEPTION:
    java.io.StreamCorruptedException: invalid stream header
         at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:737)
         at java.io.ObjectInputStream.<init>(ObjectInputStream.java:253)
         at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:84)
         at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:161)
         at datasource.DataSourceApp.main(DataSourceApp.java:184)
    NESTED BY :
    java.io.StreamCorruptedException: invalid stream header
         at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:737)
         at java.io.ObjectInputStream.<init>(ObjectInputStream.java:253)
         at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:84)
         at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:161)
         at datasource.DataSourceApp.main(DataSourceApp.java:184)
    NESTED BY :
    net.sf.jasperreports.engine.JRException: Error loading object from file : C:\Eclipse\eclipse\workspace\test\BOM_Package\DataSourceReport.jrxml
         at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:89)
         at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:161)
         at datasource.DataSourceApp.main(DataSourceApp.java:184)
    Caused by: java.io.StreamCorruptedException: invalid stream header
         at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:737)
         at java.io.ObjectInputStream.<init>(ObjectInputStream.java:253)
         at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:84)
         ... 2 more
    hope you can help me asap.. thanks!
    --joms                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    HI All
    I am working on Jasper report Project and when i am filling the report through
    JasperFillManager.fillreport(String sourceFileName,Map parameters,Connection conn)
    I am getting following exception:(I have included common-collections 3.2.jar in my classpath)
    java.lang.NoClassDefFoundError: org/apache/commons/collections/ReferenceMap
         at net.sf.jasperreports.engine.design.JRAbstractJavaCompiler.<clinit>(JRAbstractJavaCompiler.java:58)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at java.lang.Class.newInstance0(Class.java:350)
         at java.lang.Class.newInstance(Class.java:303)
         at net.sf.jasperreports.engine.JasperCompileManager.getCompiler(JasperCompileManager.java:489)
         at net.sf.jasperreports.engine.JasperCompileManager.loadEvaluator(JasperCompileManager.java:243)
         at net.sf.jasperreports.engine.fill.JRFillDataset.createCalculator(JRFillDataset.java:411)
         at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:418)
         at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:77)
         at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:59)
         at net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:147)
         at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:57)
         at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:402)
         at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:234)
    Please Suggest ;Thanks in advance

Maybe you are looking for

  • How to open a new browser window from a JSP page?

    Hi, I am picking up records from the database and displaying each record in a seperate text area field using the JSP code. I should be able to display the content ( available in the text area) in a seperate window if the user clicks on one icon. Is i

  • How to add a BUTTON on a page

    Hello, 1) I need to add BUTTON on a page, so that whenever a user clicks, it will display a report and also prints it. 2) Are there any triggers associated to a page, like when page click etc. I have requirement, like whenever a user clicks the tab,

  • Behaviors+Firefox = Problems?

    Hi all. I've created a html page with a SWF file in it. I have a couple html links set with behavoirs to control the SWF (goto frame 3, etc.). Everything works great in IE, but not in Firefox. When I click the link, it opens up a load of Errors, any

  • Cursor lagging when detecting networks

    My mouse cursor is very very laggy when I turn on my airport and while Leopard is detecting networks. Sometimes, if the wifi network signal is weak, when I mouse over the network with the weak signal, it lags more (during 5 sec or something). It is q

  • O/p of butterworth filter and o/p of butterworthcoeff- cascade coeff- IIR filter is different?

    Hello All, I am designing a system wherein i need to make use of a IIR butterworth Low pass filter . I tried implementing the same in Labview using 2 methods: 1st method: Selected Signal processing-->Filters-->ButterworthFilter.vi Got the o/p.... att