How to run a report out of the web container?

Hi All,
<p>
Does anyone have tips on running a report outside of the web container?  I'd like to be able to JUnit the scenarios I'm coding up without having an app server running.  What is the ReportClientDocument expecting in the request, response, and context?  The code as shown just returns the enclosed error.
<p>
All I'm really trying to do is have the report execute and be able to assert that the data is appropriately retrieved from the data source.  If there's a way to do that without the Viewer, that would be cool, too.
<p>
Any tips would be much appreciated.   Sorry about the poorly formatted code and error... the code tags don't seem to be working...
<p>
Thanks,
<p>
Eric
<pre>public void testReportRunning() throws ReportSDKExceptionBase{
          ReportClientDocument rcd = initReportClientDoc("./test/data/EBTest1.rpt");
          assertTrue(rcd.isOpen());
          CrystalReportViewer crv = new CrystalReportViewer();
          crv.setReportSource(rcd.getReportSource());
        String htmlContent = crv.getHtmlContent(new MockHttpServletRequest(), new MockHttpServletResponse(), new MockServletContext());
        System.out.println(htmlContent);
com.businessobjects.report.web.shared.WebReportingException---- Error code:0
     at com.businessobjects.report.web.e.if(Unknown Source)
     at com.businessobjects.report.web.e.a(Unknown Source)
     at com.crystaldecisions.report.web.ServerControl.a(Unknown Source)
     at com.crystaldecisions.report.web.ServerControl.a(Unknown Source)
     at com.crystaldecisions.report.web.ServerControl.getHtmlContent(Unknown Source)
     at com.tririga.crystalpoc.ReportAccessorTest.testReportRunning(ReportAccessorTest.java:82)
     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:585)
     at junit.framework.TestCase.runTest(TestCase.java:164)
     at junit.framework.TestCase.runBare(TestCase.java:130)
     at junit.framework.TestResult$1.protect(TestResult.java:106)
     at junit.framework.TestResult.runProtected(TestResult.java:124)
     at junit.framework.TestResult.run(TestResult.java:109)
     at junit.framework.TestCase.run(TestCase.java:120)
     at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
     at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)</pre>
Edited by: Eric Batzdorff on Jun 12, 2009 12:24 AM
Edited by: Eric Batzdorff on Jun 12, 2009 12:24 AM
Edited by: Eric Batzdorff on Jun 12, 2009 12:25 AM

There's no documentation as to what's the minimum HTTPServletContext, HTTPServletRequest and HTTPServletResponse the CrystalReportViewer expects. 
There certainly are plenty of unit testing frameworks for Java Web Apps out there, if that's where you're headed.
Sincerely,
Ted Ueda

Similar Messages

  • How to run java class from over the web

    hi i ftped my java files to an asp web site.
    if it were my local computer i would open up the c prompt and run it with the command java ....
    but is there a way for me to execute this java file in the same way
    stephen

    1. the code is a java application.
    How may I run this java application on the web server
    when I do not have access to the command prompt. I would discuss this with the administrator of the web server. You will need at a minimum a JRE installed on the server and permission to execute commands remotely. If the administrator decides to grant you that permission (which is not likely unless the two of you work for the same company), he should also be able to explain to you how to do that.

  • How to run a report jsp on a Web Server

    Hi,
    I've been working as plsql developer for many years, but I'm completely new on Oracle Reports.
    My question is very simple.
    I've tried to create a report by using the Wizard and once finished I see that, if I try to save the report, it's saved as .jsp
    Does this mean that I can simply save my .jsp on a Web Server (for instance Tomcat) and run it on a browser?
    Thanks!

    No, you need the Reports Server (as part of the Application Server or Weblogic, depending on your version).
    I try to save the report, it's saved as .jspThat depends. You can save it as a .rdf file too (so called Paper Layout). I think this option is used more often.

  • How to run a .jar application via the web

    I have a java application called up.jar which runs a gui application when run via the command line:
    javaw com.vignette.integrate.runtime.ZipFileRuntime up.jar
    I want to run this in a web browser but am just starting to learn html and java. Can anyone please knock a quick script together that I can use to get this to run!!!?
    Thanks
    Ian

    The short answer is, it doesn't work like that.
    A longer answer: Something that runs as an application doesn't necessarily work as an applet (i.e., in a browser) and making it run as an applet usually can't be done without knowing the details about the code in question.
    However it's possible that the jar already contains code that allows it to be invoked as an applet. Did you check vignette.com to see if they have any documentation on this?

  • How to run a procedure before executing the report in BI Publisher

    Dear All,
    I got a requirement when I should execute a procedure before running the report.
    Here is my requirement
    I have created a temp table and created a stored procedure (temp_proc) which will insert sysdate value.
    create table temp (emp_name varchar(10));
    create or replace procedure temp_proc
    is
    begin
    insert into temp values(sysdate);
    commit;
    end;
    I have written a query in the Data Model section with a new Dataset as SQL Query Type. Now I want to run this report so that the procedure should be executed and it should insert a value in the temp table. I cannot create a datatemplate instead of sql query as it will consume more time.
    I am using BI Publisher 10.1.3.4.2 Standalone version. Please help me out.

    Hi,
    better to ask a question about BI Publisher in BI Publisher Forum than here in Reports Forum.
    You can create a template in your rtf wich you reference in your header. With BI Desktop in Winword you can use a different header for first page than the others.
    Regards
    Rainer

  • How to run a report in back ground

    how to run a report in background with out using job open, submit , close is there any other function module to run report in background.

    Hi,
               There are two ways for you to handle,
    one manually setting up the job through SM36 which is better and convinient,
    secondly through program using FM's JOB_OPEN, SUBMIT, JOB_CLOSE.
    Find below steps in doing both:
    Procedure 1:
    1. Goto Trans -> SM36
    2. Define a job with the program and variant if any
    3. Click on start condition in application tool bar
    4. In the pop-up window, click on Date/Time
    5. Below you can see a check box "Periodic Job"
    6. Next click on Period Values
    7. Select "Other Period"
    8. Now give '15' for Minutes
    9. Save the job
    Procedure 2 via Program:
    Below is a sample code for the same. Note the ZTEMP2 is the program i am scheduling with 15mins frequency.
    DATA: P_JOBCNT LIKE TBTCJOB-JOBCOUNT,
    L_RELEASE(1) TYPE c.
    CALL FUNCTION 'JOB_OPEN'
    EXPORTING
    JOBNAME = 'ZTEMP2'
    IMPORTING
    JOBCOUNT = P_JOBCNT
    EXCEPTIONS
    CANT_CREATE_JOB = 1
    INVALID_JOB_DATA = 2
    JOBNAME_MISSING = 3
    OTHERS = 4.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    SUBMIT ZTEMP2 VIA JOB 'ZTEMP2' NUMBER P_JOBCNT
    TO SAP-SPOOL WITHOUT SPOOL DYNPRO
    WITH DESTINATION = 'HPMISPRT'
    WITH IMMEDIATELY = SPACE
    WITH KEEP_IN_SPOOL = 'X' AND RETURN.
    CALL FUNCTION 'JOB_CLOSE'
    EXPORTING
    JOBCOUNT = P_JOBCNT
    JOBNAME = 'ZTEMP2'
    STRTIMMED = 'X'
    PRDMINS = 15
    IMPORTING
    JOB_WAS_RELEASED = L_RELEASE
    EXCEPTIONS
    CANT_START_IMMEDIATE = 1
    INVALID_STARTDATE = 2
    JOBNAME_MISSING = 3
    JOB_CLOSE_FAILED = 4
    JOB_NOSTEPS = 5
    JOB_NOTEX = 6
    LOCK_FAILED = 7
    INVALID_TARGET = 8
    OTHERS = 9.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Hope the above helps you.
    <b>Reward points</b>
    REGARDS

  • How to run a report from oracle 10g form in .csv format

    dear all,
    how to run a report from oracle 10g form in .csv format? i've already run in pdf & excel format.
    i'm using
    SET_REPORT_OBJECT_PROPERTY (ro_report_id, report_desformat, 'PDF'); --for pdf
    SET_REPORT_OBJECT_PROPERTY (ro_report_id, report_desformat, 'SPREADSHEET'); ---for excel
    Please Help..

    i have already tried.
    but the report show in htm or html format. that file will not save into csv. please help.

  • How to run a report in form 10g

    How to run a report in form 10g;

    RUN_REPORT_OBJECT - check the on line help and there is a great paper on otn.oracle.com/products/forms and click on 9i papers (it will be relevant for 10g as well)>
    Regards
    Grant Ronald
    Forms Product Management

  • How to Run a Report automatically in Background for every night

    Hi,
    How to run a report program in Background automatically for every nigh.
    Thanks
    Ramesh

    Hi Ramesh,
    You can use SM36 and use the "Job Wizard" to define a background job in simple step by step procedure
    Or
    Goto SM37 and specify a job name.
    Next specify the ABAP Program Name of the report you want to execute under Job Step.
    Then click on "Extended Job Selection" and goto the Period Tab.
    There select "Only Periodic Jobs" and then specify the frequency of execution based on Months, Weeks, Days, Hours or Minutes.
    Hope this helps,
    Regards,
    Madhur
    Message was edited by: Madhur Chopra

  • How to run a report in SAP

    hi sap gurus
    can anybody tell me about how to run a report in sap (ABAP). what is the TCode for that one.while i am trying to post asset master it is asking to start a report first and then post. kindly reply me soon
    thanx in advance

    Hi,
    - normal ABAP reports are executed by a TCode or SE38
    - reports relating to assets are located at SPRO-Info Systems-Accounting-Fixed Assets
    Rgds.

  • How to run OBIEE Reports in Multi-Org Environment?

    How to run OBIEE Reports in Multi-Org Environment of EBS.

    hi Rainer,
    My Forms and Reports Server is in Same System only. Actually i am giving this path
    http://vagee.ail/reports/rwservlet?
    server=rep_vagee_oracle10g_apps_server&report=D:\FP2
    \dealer_reports\oc_dealer.rep&userid=fp2/fp2erp@info
    &destype=cache&desformat=pdf&ODSNO=OC0809/00110&branch=DLR002
    In My AS System Running Successfully. But Client systems Page cannot be display message is displaying.
    but generally i m able to access the reports server using this path
    http://vagee.ail/reports/rwservlet?
    then Reports server page is displaying but
    when i specify that report server name
    http://vagee.ail/reports/rwservlet?server=rep_vagee_oracle10g_apps_server
    page cannot be displayed.
    what will be the problem. please help me. thank you.
    Regards,
    Kalyan.

  • How to run a Concurrent Program from the back end?

    Hi,
    How to run a Concurrent Program from the back end?
    Is it Possible to see that Concuurent Request id which we run from the back end, in the front end?
    If yes, then Please Give reply how to write the code
    Thanks in Advance,
    Bharathi.S

    This is documented in Chapter 20 of the Application Developers Guide http://download.oracle.com/docs/cd/B53825_03/current/acrobat/121devg.pdf. These MOS Docs also have some information available
    221542.1 - Sample Code for FND_SUBMIT and FND_REQUEST API's
    235359.1 - How to Launch Planning Data Pull MSCPDP using FND_REQUEST.SUBMIT_REQUEST
    HTH
    Srini

  • How to use one report column into the another report in obiee

    How to use one report column into the another report in obiee

    i dont want to use column as a filter for another report it should be report column for another report
    Thanks,
    Vivek

  • How to create a report out of public view(s) with job errors & e-mail

    I would like to finish nightly OWB jobs with a process that will generate a report out of the public views with any errors and e-mail them. Has anybody done anything like this.
    Thanks!

    yes we have done it
    go through the below link
    http://blogs.oracle.com/warehousebuilder/2007/05/mailing_map_errors.html
    cheers
    Nawneet

  • HT4191 I have Notes that transferred to email when I set up a new email acct. They no longer appear in Notes. I can only access them in the email acct. How do I get them out of the email acct and back to the Notes app?

    I have Notes that transferred to an Email acct when I set up the acct. The Notes no longer appear in the Notes app only in the Email acct. How do I get them out of the Email acct and back to Notes? I stopped at an Apple store and they told me to copy them from the email back to Notes. But when I was in the email acct, I could not find a way to copy them. Shouldn't Notes remain in Notes unless I specifically send them somewhere else?

    Go into Settings > Mail, Contacts, Calendars, select that email account on the right-hand side of the screen and turn Notes 'on' for it - they should then appear in the Notes app instead of as an email folder in the Mail app (they will still be linked to that email account, so you may need to tap the 'Accounts' button at at the top left of the list of notes)

Maybe you are looking for

  • Why don't tabs that are open on my iPhone appear in Show All Tabs on my MacBook Air?

    When I select Show All Tabs in Safari 8.0.3 on an early 2014 MacBook Air, I see the tabs that are open on my iPad but not those that are open on my iPhone 6. I recently updated the phone to iOS 8.2. All my devices are connected to my iCloud account a

  • Privilege to create AWR and Statspack report to normal user

    Hello, I want to give right to one of the database user to create STATSPACK report in one database (no license there) and and to generate AWR report in other (licensed diagnostic+tuning pack). Is there any privilege which I can give to create these r

  • IBook G4 cannot mount FAT devices

    Hi, Since yesterday, I cannot use any FAT device. ie MP3 reader, Camera, USB reader, HD. I formatted a SD card with Mac format, it works, I format it with my Minolta, it won't work any more. Have I to reinstall OSX ? Thank You

  • Bluetooth Streaming & iCloud Streaming Issue

    When my iPhone 4 is connected via Bluetooth to my car stereo, music and podcasts that are on my phone play fine.  When the music is downloading via iCloud, the iPhone will periodically stop streaming via bluetooth.  When I look at the phone, the musi

  • IPhone 3GS/4 using iOS 5, experience so far?

    Hey fellow community members, It has been a couple of months since iOS 5's release. I currently own a iPhone 3GS which is running on iOS 5.0.1. It used to be running smoothly, and still is, although I notice a few crashes here and there due to low me