Generate report using ELIXIR report server

hi all pls anyone help me teach how generate report in jsp from ms sql 2000 database.. i'm using Elixir report software www.elixirtech.com. Thanks for ur kind help.. pls email me to [email protected]
ramkumar

hi thanks for reply.. do u have any example code for generatereport.jsp
i have try this but show error
<%@ page import = "java.io.*,
com.elixirtech.ers2.client.ERSClient,
javax.servlet.http.*,
java.util.*"
%>
<%!
//Stream back to browser
public void generateReport(javax.servlet.http.HttpServletResponse response,
javax.servlet.http.HttpServletRequest request) throws Exception {   
          String contentType="application/vnd.ms-excel";
          String testFileName="test.xls";
     javax.servlet.ServletOutputStream sos = response.getOutputStream();
response.setContentType(contentType);
     response.setHeader("Content-Disposition", "Inline;filename="+testFileName);
String report="C:/home/RepertoireSDK-1.0.1/examples/ReportSamples/README.rml";
if(report!=null){
               ERSClient ersclient = new ERSClient("localhost", 7001 , "Anonymous", "anonymous");
               //ERSClient ersclient = new ERSClient("localhost", 8090 , "admin", "123456");
               try
                    Properties props = new Properties();
                    ersclient.renderReport(report,contentType, sos, props, "me");
               }catch (Exception ex){
               }finally{
               ersclient.close();
%>
<%
generateReport(response,request);
%>
<html>
<head>
<title>Sample Server JSP</title>
</head>
<body marginwidth="0" marginheight="0" bgcolor="#E7F0E0">
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
java.lang.IllegalStateException: getOutputStream() has already been called for this response
     org.apache.catalina.connector.Response.getWriter(Response.java:606)
     org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:195)
     org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:124)
     org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:117)
     org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:191)
     org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:115)
     org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:75)
     org.apache.jsp.Sample_005fReport_005fServer_005fBrowser_jsp._jspService(org.apache.jsp.Sample_005fReport_005fServer_005fBrowser_jsp:94)
     org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
i dont know what is the error please help tq

Similar Messages

  • Re: generate report using ELIXIR report server

    hi.. do u have any example code for generatereport.jsp
    i have try this but show error
    <%@ page import = "java.io.*,
    com.elixirtech.ers2.client.ERSClient,
    javax.servlet.http.*,
    java.util.*"
    %>
    <%!
    //Stream back to browser
    public void generateReport(javax.servlet.http.HttpServletResponse response,
    javax.servlet.http.HttpServletRequest request) throws Exception {
    String contentType="application/vnd.ms-excel";
    String testFileName="test.xls";
    javax.servlet.ServletOutputStream sos = response.getOutputStream();
    response.setContentType(contentType);
    response.setHeader("Content-Disposition", "Inline;filename="+testFileName);
    String report="C:/home/RepertoireSDK-1.0.1/examples/ReportSamples/README.rml";
    if(report!=null){
    ERSClient ersclient = new ERSClient("localhost", 7001 , "Anonymous", "anonymous");
    //ERSClient ersclient = new ERSClient("localhost", 8090 , "admin", "123456");
    try
    Properties props = new Properties();
    ersclient.renderReport(report,contentType, sos, props, "me");
    }catch (Exception ex){
    }finally{
    ersclient.close();
    %>
    <%
    generateReport(response,request);
    %>
    <html>
    <head>
    <title>Sample Server JSP</title>
    </head>
    <body marginwidth="0" marginheight="0" bgcolor="#E7F0E0">
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    java.lang.IllegalStateException: getOutputStream() has already been called for this response
    org.apache.catalina.connector.Response.getWriter(Response.java:606)
    org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:195)
    org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:124)
    org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:117)
    org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:191)
    org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:115)
    org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:75)
    org.apache.jsp.Sample_005fReport_005fServer_005fBrowser_jsp._jspService(org.apache.jsp.Sample_005fReport_005fServer_005fBrowser_jsp:94)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    i dont know what is the error please anyone help tq

    hi.. do u have any example code for generatereport.jsp
    i have try this but show error
    <%@ page import = "java.io.*,
    com.elixirtech.ers2.client.ERSClient,
    javax.servlet.http.*,
    java.util.*"
    %>
    <%!
    //Stream back to browser
    public void generateReport(javax.servlet.http.HttpServletResponse response,
    javax.servlet.http.HttpServletRequest request) throws Exception {
    String contentType="application/vnd.ms-excel";
    String testFileName="test.xls";
    javax.servlet.ServletOutputStream sos = response.getOutputStream();
    response.setContentType(contentType);
    response.setHeader("Content-Disposition", "Inline;filename="+testFileName);
    String report="C:/home/RepertoireSDK-1.0.1/examples/ReportSamples/README.rml";
    if(report!=null){
    ERSClient ersclient = new ERSClient("localhost", 7001 , "Anonymous", "anonymous");
    //ERSClient ersclient = new ERSClient("localhost", 8090 , "admin", "123456");
    try
    Properties props = new Properties();
    ersclient.renderReport(report,contentType, sos, props, "me");
    }catch (Exception ex){
    }finally{
    ersclient.close();
    %>
    <%
    generateReport(response,request);
    %>
    <html>
    <head>
    <title>Sample Server JSP</title>
    </head>
    <body marginwidth="0" marginheight="0" bgcolor="#E7F0E0">
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    java.lang.IllegalStateException: getOutputStream() has already been called for this response
    org.apache.catalina.connector.Response.getWriter(Response.java:606)
    org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:195)
    org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:124)
    org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:117)
    org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:191)
    org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:115)
    org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:75)
    org.apache.jsp.Sample_005fReport_005fServer_005fBrowser_jsp._jspService(org.apache.jsp.Sample_005fReport_005fServer_005fBrowser_jsp:94)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    i dont know what is the error please anyone help tq

  • Creating reports using oracle application server

    Hello All,
    I am a complete newbie with Oracle Application Server(OAS) and Oracle reports. My task is to generate HTML and PDF reports using OAS. The current application has a aspx pages(ASP.NET as front end) which calls a third party tool Fast Radar Report which fetches data as per the user need(like month, day, year, product name....) and displays it in a grid format. I have to remove the FastRadar part and use OAS's OracleAS Reports Services components to generate those reports
    I went through chapter 12 of Oracle.Application.Server.10g.Essentials by OReilly 2004 edition
    It briefly glances through that part. But, it seems to mention about Oracle Reports something like "Oracle Reports has a wizard-based frontend called Oracle Reports Developer that can build reports. Oracle Reports Developer is part of the Oracle Developer Suite. The reports created with Oracle Reports Developer can be deployed to the Web using OracleAS Reports Services support in Oracle Application Server."
    I am unclear what to do. Do I need to create the report format in Oracle Reports using wizard-based frontend called Oracle Reports Developer and then deploy it using OracleAS Reports Services?
    Or, is there a way to create the report format using OracleAS Reports Services without using Oracle Reports. I am told we have just OAS installed, don't know if Oracle reports is installed or not as it is done on a remote site.
    Any suggestions would be highly appreciated.
    Thanks a lot.

    Hi,
    One has to develop reports using Oracle Reports developer and then has to deploy it into the application server. To do so you need the Oracle developer suite installed, this has wizards which can be used to develop reports.
    This link might help you http://www.oracle.com/technology/products/reports/index.html.
    Mark it if it helps

  • Generate report using Word Report Generation VIs error

    When I Generate report using Word Report Generation VIs  ,the error is generated.
    This is  my Vi
    can somebody  tell the error reason?
    The attaché is Vi (one is 2011,other is 8.6)
    Attachments:
    report-8.6.vi ‏16 KB
    report2.vi ‏33 KB
    template.doc ‏40 KB

    Hi Ben64
                 Thank you! The problem is solved.
       BUT when I use the Word Easy Graph vi  ,the result is
    I want the Graph (curve),like as:
    How Can I do get the picture.
    I have other problem. I want to get default name for the new word file.
    liang

  • How to set DbConnections when scheduling a crystal report using Crystal Reports Server Java SDK?

    Post Author: Manjula
    CA Forum: JAVA
    Hi,
    Trying to schedule a report using Crystal Reports Server Java SDK. Want to pass DBConnections from API, though passing DBConnections, the report is not being scheduled and says "Failed to retrieve data from the database.Details:&#91;Database Vendor Code:6550&#93;.
    Would be thankful if someone could answer my point as applicable.
    Here is the code attached.
    ISDKList dbLogons = oReport.getReportLogons();int dbLogonSize = dbLogons.size();
    for(int i=0; i<dbLogonSize; ++i) {
    IReportLogon dbLogon = (IReportLogon)dbLogons.get(i);
    dbLogon.setDatabaseName("DBname");
    dbLogon.setUserName("usrname");
    dbLogon.setPassword("pwd");
    Thanks in advance.

    Post Author: Manjula
    CA Forum: JAVA
    Ted,
    Thank you for your valuable information.
    First, tried scheduling on Central Management Console and then with the java code.It worked fine, but here is another question for you.
    On the Console, a report exists with ServerName and UserName harcoded and when trying to set ServerName and UserName from the java code, its throwing exception. Where as Password is not set on Console, am able to set password from java.
    And DatabaseName is not set on Console (non editable), unable to set the same from java too. Why is it so?
    So, my question is - though ServerName,DatabaseName,UserName,Password exists on the Console report, can't I override those parameters from java?
    Would be greatful if you answer my question and provide me some guidance.
    Thanks in advance.

  • How to view multiple reports using crystal reports 2008

    Hi ,
    I am working on vb6 project where in i am trying to generate reports using crystal reports 2008.
    For this , i am making use of Interop Form Wrapper class in vb6.
    I have a business requirement where in i need to view multiple reports  on my screen.
    please suggest me as to how this can be achieved.
    Thanks in Advance
    Regards,
    Ramnath

    Hi Ludek,
    I  am directly now using crystal report viewer control in my vb6 project.
    As mentioned in previous mail, i have created a Interop Wrapper class over crystal report viewer control in .Net using visual studio 2008 and i am making use of wrapper class in my vb6 project.
    I am able to access all the properties that have been defined in my Interop wrapper Class but the only stuff i need is to view multiple reports generated one after the another for a single button click Event.
    Please find below the code that iam using to load and generate reports.
    Note:
    1. frm is the instance of my Interop Wrapper Class built over CR viewer control
    2. All the user defined methods of Wrapper class that you see below will internally call the actual crystalreportviewer   properties defined in my Wrapper class
    Say for e.g   frm.DisplayToolbar(True) will internally  execute  crystalreportViewer1.DisplayToolbar = True
    frm.SetReportSource(strRptFilePath,0)          
    frm.SetSelectionFormula(strrecordSelectionFormula)
    frm.DisplayToolbar(True)               
    frm.ShowExportOption(True)
    frm.ShowPrintOption(True)
    frm.ShowRefreshOption(True)
    frm.ShowPAgeNavigateOption(True)
    frm.ShowZoomOption(True)
    frm.ShowParameterPanelOption(True)
    frm.Show()
    Thanks in Advance
    Regards,
    Ramnath

  • Excise reports using XL reporter

    Hello experts
                         I generated Excise reports using files available in Indian  legal reports.How can we get drill down facility in these reports?
    Regards
    Manoj

    Hi Manoj........
    What kind of drill down you want in Excise XL reports?
    It works like normal XL Sheets...
    More you can import it in SAP Business One Menu....
    Regards,
    Rahul

  • Problem in Display the Crystal report using Crystal report Viewer 2008

    Hi All,
    I have developed crystal web project with crystal report using Eclipse IDE. when I deploy this web application using Tomcat server 6.0 in Windows xp, Windows Vista.. It is working fine..
    But When I deploy it into Windows 2000 server ,  I am not able to see Last 2 columns of the report page in the Viewer.
    But When I tried to Export as Excel, I got all the datas in the Report and also when I preview the report in Eclispe IDE using crystal viewer plugin it is working fine in Windows 2000 server also..
    Thanks in Advance for your help..
    Regards,
    SathiyaMBPS

    Windows 2000 is not supported in current versions of CR. Check the platforms PDF file.

  • Can i open a existing report using a report generation toolkit

    Hello All,
    Suppose I create a new excel report today and close the program, Tomorrow I open the same program and instead of creating a new excel file, i need to update the test results data into the excel file which was created yesterday, is this possible.
    I am confused because there is no option called Open report in report generation toolkit, it just has create new report option.
    Probably NI Guys can work on this...sorry if it is a;lready existing?
    Is there any method to open a existing report?
    Pls help.....
    Thanks
    Solved!
    Go to Solution.

    Hi,
    I have a similar problem. I'd like to use Report Generation Toolkit to enter data into some cells in the active worksheet of the active workbook but it seems impossible?! The user has in beforehand opened the desireed workbook and activated the desired worksheet. I use the 'New Report' VI with the template input set as the path of the active workbook (some self-made ActiveX calls to get the path). When this VI is run, howevere, the excel file is sort of re-opened and another worksheet becomes the active one.
    I tried to make a customized copy of New Report.vi, New Report subVI.vi and Excel_Open_Workbook.vi so that the Report object works with the currently active workbook and worksheet, but I failed due to my lack of knowledge in LV classes and such things. It would've been an ugly solution anyway to have custom low-level VIs that does not follow when the RepGen Toolkit develops in the future.
    Best regards,
    Andreas Nilsson

  • Sub report group tree in main report Using crystal report 12

    Hi experts,
        I have a strange requirement like, same data needs to be grouped two different ways in a same report.  Like
    Store1:
        Summary of sales on each item chart
    Store2:
        Summary of sales on each item chart
    .....it goes like this
    Department1(multiple stores)
          summary of sale on each item chart - store1
          summary of sale on each item chart - store2
         --........ it goes
    Department2
          summary of sale on each item chart - store3
    --........ it goes
       Its in single report, the first part is grouped only with store and in second part the store is under department. How to do this in same report?
        I achieved  this by creating a sub report to display the first part of data and in the main report sup report data plus the second part of data will be displayed. And its working well but now the problem is the group tree, I'm not able to see the sub report group tree in the main report.
       How to get the sub report group tree in the main report, Or is there any other better way is there so i can get both the data as well the group tree. Please help me to solve this. CryCryCry
    I'm using crystal report 2008(installed separately) with Visual Studio2008 (.Net3.5)
    Thanks in advance.

    Hi
    Thanks for the reply.
        Yea both data source are same(Datasource is SQL Stored Procedure). I cant use like that, because my client needs the group tree also. In case if there is no group tree, we can create one more group and supress it conditionaly. But here the problem is there is no way to suppress any of the group item in group tree as we can do it in the detail section.
        So please me with some different ways and also , please clarrify the following doubts
    1. Can we supress one or more items in the group tree.
    2. Can we get the sub report group tree in main report(Everything is working when i used the sub reports except the group tree). So I'm trying for different ways to do, but none is helping me
    Please help me

  • Performance of filtering a report using another report

    Hello,
    There are really two questions in this post:
    i) Is there an easier way to select all contacts who have never responded positively to a campaign than to filter our report using the output of another report which selects all contacts who responded positively to at least one campaign? While this approach works properly, I have only been able to successfully run the report on a small sample of the entire data set. The report including all contacts who responded positively to at least one campaign contains about 8k records, and our system contains about 12k contacts. When I ran the report on the full data set, I was unable to obtain any output even after waiting for up to 10~15 mins.
    ii) If I am using the right approach, does anyone know if CRMOD can handle a report filtered on another report with a data set the size of the one described above?
    Any help/comments would be greatly appreciated.
    Thanks,
    JP

    Hi,
    There are a few things I would suggest here:
    1. Run all your reports individually and export the results to excel. Use the VLOOKUP function in excel to get the dataset you're looking for, once you have the final set you can always create a custom checkbox field and import all your records flagging your field as a 'Y'. That will make things nice and simple for reporting and anything else as all of your records can be identified with a simple filter. I do however guess this is probably a fluctuating on-going process and this may not be appropriate
    2. In your reports add another 'Contact ID' column. Change the calculation to: RCOUNT(Contact.ID). This report should count the unique Id's in your report, you can then apply a filter on it e.g. My Column < 4000 or My Column > 4000. This will limit the number of rows in your report so that you can have multiple feeds. You will obviously need another report for each filter but it should trim the records numbers down for you an make this all possible
    3. Use the MINUS functionality as per my first suggestion on the 1st post, this does not have these limitations but it a pain to setup. You shouldn't have an issue with this if you're using the same subject area for each report, when you start combining lots of different subject areas then it all gets a little more tricky
    Thanks
    Oli @ Innoveer

  • Drill Down Report using Crystal reports in eclipse and jspviewer

    Hi
    I want to understand how to write a drill down report since I have a requirement for my project, so I tried to run the sample drill down.rpt that is available with Crystal Reports 2008 Complete Reference book by George Peck.
    I can see the results correctly( i.e. can drill down) in the preview tab . Since I am working inside the eclipse, the way I run the reports is first  "Create report viewer JSP" by right clicking the report and have a url mapping to this jsp. I am running the reports from a hyperlink that maps to the url which will launch the jsp.
    the jsp is:-
    <%@ page contentType="text/html; charset=UTF-8" pageEncoding="ISO-8859-1" %><%@ taglib uri="/crystal-tags-reportviewer.tld" prefix="crviewer" %><crviewer:viewer reportSourceType="reportingComponent" viewerName="Drill Down-viewer" reportSourceVar="Drill Down" isOwnPage="true" allowDrillDown="true">
         <crviewer:report reportName="reports/Drill Down.rpt" />
    </crviewer:viewer>
    The one that was created by  "Create report viewer JSP" did not had "allowDrillDown" attribute at all .But I added it since it isnt working.
    So when I launch my web app and click on the link to run the report, I get the report results but only to the summary level. When I double click the summary level I get a 404 error page.
    Can please anyone suggest what is going on.
    Thanks
    poonam

    Ok. So, you added the report to the project. Now we have to add the CR assemblies to the project, add the viewer (if need be) and fire it off. Simplest code would be:
    Public Sub New()
            ' This call is required by the designer.
            InitializeComponent()
            ' Add any initialization after the InitializeComponent() call.
            CrystalReportViewer1.ReportSource = ("path to report")
        End Sub
    In this case you are using the viewer SDK to runt he report. The report will prompt for any logon parameters - but you can code these also. You can load the report via the engine as bellow. Again, the report will prompt. I prefer to use the engine as it is way more "extensible"...
    Public Sub New()
            ' This call is required by the designer.
            InitializeComponent()
            ' Add any initialization after the InitializeComponent() call.
            Dim crReportDocument As New CrystalDecisions.CrystalReports.Engine.ReportDocument()
            crReportDocument.Load("path to report")
            'Bind the report to the viewer
            CrystalReportViewer1.ReportSource = crReportDocument
        End Sub
    If you have a report added to the project (strongly typed) the code would be:
    CrystalReportViewer1.ReportSource = New myReport()
    For more details, I'd recommend looking at the sample app vbnet_win_simplepreviewreport.zip available from the following location:
    https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
    The developer help files are here:
    [SAP Crystal Reports .NET SDK Developer Guide|http://help.sap.com/businessobject/product_guides/sapCRVS2010/en/crnet_dg_2010_en.zip]
    [SAP Crystal Reports .NET API Guide|http://help.sap.com/businessobject/product_guides/sapCRVS2010/en/crnet_api_2010_en.zip]
    - Ludek

  • Reports Services getting down when running reports using in process server

    Hi,
    I have applied patchset 3829014 (Containers for J2EE: Patchset PLACE HOLDER FOR OC4J STANDALONE RELEASE 9.0.4.1)
    to fix the Bug No. 2670561 CPU usage becomes 100% when there is a new HTTP connection
    request in the queue.
    Now after reploying the *.ear file and restarting OC4J_BI_FORMS services from Enterprise Manager and starting the Reports Services if I want to run the reports from the application contained in the ear file, I find the Reports Services is down and the browser throws a 500 - Internal Server Error.
    In the ipm.log file in Oracle_home\opmn\logs I find the following lines:
    05/01/08 17:15:55 [4] Process Alive: OC4J~OC4J_BI_Forms~default_island~1 (1162281586:636)
    05/01/08 17:17:32 [2] [libopmnoc4j] AJP13: Receiving response code: 500 while configured success code is: 200
    05/01/08 17:17:32 [2] [libopmnoc4j] Ping URL for proc: 1162281586 failed while pinging url:/reports/rwservlet/pingserver?start=auto
    05/01/08 17:17:32 [4] [libopmnoc4j] Process Ping Failed: OC4J~OC4J_BI_Forms~default_island~1 (1162281586:636)
    I can't get from where the response code of 500 is coming.
    I have consulted the Doc Id 261867.1 in Metalink and has tuned the opmn.xml file as suggested there but of no use.
    Urgent help in this regard is needed where I went wrong as my production Application Server has become inoperative.
    Thanks
    Nilay

    The ear file contains the front end application from where the reports are called. I have created a new J2EE instance and deployed the application in the form of ear file there.
    After tuning the opmn.xml file following Metalink Doc. Id 261867.1 adding a value of pingtimeout, I found the OC4J_BI_FORMS was not shutting down the inprocess reports server and I was unable to generate reports by giving values from URL. But when I deploy the ear file in the newly created J2EE instance, the OC4J_BI_FORMS is shutting down . Now when I try to start the infrastructure components the OC4J_SEcurity is showing Database dependancy failed although OID and HTTP server components are up.

  • Exception while generating pdf report using Jasper Report

    Hi experts,
    I am using Jdeveloper : 11.1.2.0.0
    Jaspersoft iReport Designer 4.5.0
    Database is Oracle 11g
    When i try to generate a pdf report ,a pdf file with empty content is generating.
    and exception occuring is
    net.sf.jasperreports.engine.JRException: Error executing SQL statement for : TestReport
         at net.sf.jasperreports.engine.query.JRJdbcQueryExecuter.createDatasource(JRJdbcQueryExecuter.java:229)
         at net.sf.jasperreports.engine.fill.JRFillDataset.createQueryDatasource(JRFillDataset.java:731)
         at net.sf.jasperreports.engine.fill.JRFillDataset.initDatasource(JRFillDataset.java:629)
         at net.sf.jasperreports.engine.fill.JRBaseFiller.setParameters(JRBaseFiller.java:1159)
         at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:802)
         at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:746)
         at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:58)
         at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:417)
         at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:247)
         at com.empAppln.view.EmployeeRegister.runReport(EmployeeRegister.java:153)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.el.parser.AstValue.invoke(Unknown Source)
         at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
         at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)
         at org.apache.myfaces.trinidadinternal.taglib.listener.FileDownloadActionListener.processAction(FileDownloadActionListener.java:124)
         at oracle.adfinternal.view.faces.event.rich.FileDownloadActionListener.processAction(FileDownloadActionListener.java:77)
         at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcast(UIXComponentBase.java:814)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:179)
         at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:159)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1129)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:353)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:204)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:121)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:457)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
         at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:889)
         at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:476)
         at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:204)
         at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:540)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:217)
         at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:924)
         at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1261)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1419)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3752)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3806)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1667)
         at weblogic.jdbc.wrapper.PreparedStatement.executeQuery(PreparedStatement.java:135)
         at net.sf.jasperreports.engine.query.JRJdbcQueryExecuter.createDatasource(JRJdbcQueryExecuter.java:222)
         ... 62 more
    Where TestReport is the name of the report...
    How can i solve this..
    Thanks
    gtg.

    from the error what i understud means.com.empAppln.view.*EmployeeRegister*
    this table is not exits in db. so throw error like this.
    table or view does not exist.and also,
    Stop filedownload if file is empty
    Edited by: ADF 7 on Jan 26, 2012 11:17 PM

  • Date parameter does not work in SharePoint 2010 report using SQL 2008 Server Reporting Service

    Here is the settings:
    SharePoint 2010 with SQL server 2008 reporting services configured
    When create a report for a SP list using SQL server report builder (3.0) the date parameter does not work.
    The data parameter is set as "date and time" type and field name equals the col name in the SP list
    When run the report, the whatever dates I select, the result is always the same, so the parameters do not take any effect.
    Is any step missing?
    Thanks for any advice !

    Hi ,
    How did you configure you "date and time" type parameter and field name equals the col name in the SP list?
    Have you tested if other type parameter worked?
    Have you tried typing the date format as 20140722 in your date parameter filed before run the report?
    http://whitepages.unlimitedviz.com/2012/02/using-sharepoint-filters-with-reporting-services-parameters-for-personalized-reports/
    Thanks,
    Daniel Yang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Daniel Yang
    TechNet Community Support

Maybe you are looking for

  • Issue in Integration of  BPM 11.1.1.5.0 Feature Pack with Primavera P6 R8.2

    The following error is occurring while initiating the workflow in P6 R8.2 of Web Access (My Workflows tab is not working). ERROR com.primavera.infr.srvcs.bpm.BPMNServiceImpl ?:? BPM service could not connect to BPM Identity service provider for datab

  • Adobe Creative Cloud Desktop failed to install, where to get help?

    Hi, I have contacted Adobe three times now to get my creative cloud app working again. Everything worked beautifully until last July while updating it crashed and I've never been able to successfully install the app again. The first call I had with t

  • Error while exporting data

    i get the following error while exporting data evn after running catexp.sql EXP-00056: ORACLE error 31600 encountered ORA-31600: invalid input value EMIT_SCHEMA for parameter NAME in function SET_TRANSFORM_PARAM ORA-06512: at "SYS.DBMS_SYS_ERROR", li

  • ABAP Query: add field on layout based on Company code

    Hello Experts, I currently working on ABAP Query report  for asset master issues and would like one more field added to layout for Company code XXXX . Is it possible to add fields to this layout based on company code . Thanks in Advance Nupur

  • Unable to Update Payment Method

    Hi, I have a Skype number on my account.  The annual auto-recharge on this subscription failed because I changed my bank card number a while back.  However, I was unable to change the Payment method on your site – I added a new, valid, card and every