The status of scheduled report in java application ?

Post Author: Jay_Misys
CA Forum: JAVA
My java application is running on application server (websphare / java application server)
I schduled the report published on crystal report server
the java code is like:
BIPlatform bipService = new BIPlatform(new Connection(new URL(servicesURL + "/biplatform")), oSession.getConnectionState());
ResponseHolder rh=bipService.get("path://InfoObjects/"+sCrystal_Reports_Folder + reportName +
"@SI_SCHEDULEINFO,SI_PROCESSINFO" ,oGetOptions);
InfoObjects oInfoObjects = rh.getInfoObjects();
CrystalReport oCrystalReport = (CrystalReport)oInfoObjects.getInfoObject(0);
SchedulingInfo schedulingInfo = oCrystalReport.getSchedulingInfo();
schedulingInfo.setRightNow(Boolean.TRUE);
oCrystalReport.setPluginProcessingInterface(procInfo);
oInfoObjects.setInfoObject(0,oCrystalReport);
bipService.schedule(oInfoObjects);
Pls help me  to get the status (running / sucessfully generated/ failed etc...) of scheduled report ? 

out = new FileOutputStream(matcher.group(1)+".open" , true);
                      FileChannel ch = out.getChannel();
                                   FileLock lock =  ch.lock(0L, Long.MAX_VALUE, false);
                               // Connect print stream to the output stream          
                                   p = new PrintStream( out );
                        p.println ("\n" + parms.getProperty( value ) + "\n");
                              p.flush();
                        p.close();
                              lock.release();Ok, I tried implementing locks but I dont know why it is not working...An exception is thrown and nothing is wriiten to the file. I have employed a complete lock on the file so that no other JVM application can use it.
Actually this is a server that grabs data sent from an Iframe and writes it down to a temp file. I open a file input stream, lock it and then use a printwriter strream to write the realyed data to the file. Any inputs as to what is wrong with the code snippet above?????

Similar Messages

  • Auto print out report for java application

    <p>Hi, </p><p>Now i&#39;m using eclipse 3.2 to develop a java application and using crystal report to create report.</p><p>I would like to directly printing out the report from the java application.</p><p>what the installer or plugin i need?</p><p>What the setting i need to set? </p><p>Can you give me the sample coding to directly print out the report from java application by passing parameter?</p><p>Thanks,</p><p>Hui Bee</p>

    There is a Consulting Solution called BOInterface that Business Objects Global Services sells and that helps you to achieve what you describe very easily.
    A description is <a href="http://www.mnsoft.org/bointerface0.0.html">here</a>.
    Particularly, see the <a href="http://www.mnsoft.org/boxinterfacedocs/com/bo/boxinterface/boreport/scheduler/BOReportSchedulerPrinter.html">BOReportSchedulerPrinter</a>. BOInterface comes with a complete example on scheduling to printer; that example can even itself be scheduled.
    Contact me via direct email for more information if this is interesting for you.
    HTH,
    M
    Matthias Nott -  Business Objects
    Service Line Leader Products EMEA
    [email protected]

  • Accessing XML Publisher Reports from Java application

    How to accesss the XDO Reports from Java application?
    I am wondering that we need to get the URL for accessing the report and call the URL with in Java program?
    Is that right? Is there any other option? Any help is greatly appreciated.

    You need to write some class based on the BI Publisher APIs taking data, template, output format, etc.
    Pehaps the following Blog of Tim Dexter shines some light on your question
    http://blogs.oracle.com/xmlpublisher/2007/02/27#a166
    Marcos

  • We have a requirement to print the w2 forms for employees using java application, how can i implement this. Please give some suggestion.

    We have a requirement to print the w2 forms for employees using java application, how can i implement this. Please give some suggestion.

    Anyone any ideas to help please?

  • Printing the datas through Crystal Report from Java

    How can I Print the datas through Crystal Report from java?

    How can I Print the datas through Crystal Report from
    java?
    What the hell are "the datas"?
    Jesus, I can understand this is a shrinking planet, Global community, and all that happy horse pucky. Typos or small grammar errors are no big deal, I make them all the time. But when I have to spend more time interpretting the question than figuring out the answer, it drives me crazy.

  • The following is working as a Java application but not as a DynPro App

    Hello,
    Please have a look at the following code:
    URL testURL = new URL("http://<host>/error.txt");
    HttpURLConnection c = (HttpURLConnection)(testURL.openConnection());
    c.setDoInput(true);
    c.setDoOutput(true);
    c.setRequestProperty("Connection","Keep-Alive");
    c.setRequestProperty("Proxy-Connection","Keep-Alive");
    c.setRequestMethod("GET");
    c.setUseCaches(false);
    c.connect();
    int cl = c.getContentLength();
    DataInputStream dis = new DataInputStream(c.getInputStream());
    This code is working well when I run it as an independent Java application but when I "plant" this code on a DynPro application I receive an I/O Exception at this line:
    DataInputStream dis = new DataInputStream(c.getInputStream());
    Can anyone please tell me why?

    503 error means a bit different thing. See http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
    <i><b>10.5.4 503 Service Unavailable</b>
    The server is currently unable to handle the request due to a temporary overloading or maintenance of the server. The implication is that this is a temporary condition which will be alleviated after some delay. If known, the length of the delay MAY be indicated in a Retry-After header. If no Retry-After is given, the client SHOULD handle the response as it would for a 500 response.
          Note: The existence of the 503 status code does not imply that a server must use it when becoming overloaded. Some servers may wish to simply refuse the connection.
    </i>
    Can you track requests from both stand-alone Java and WD application via some HTTP tunneling tool to check differences in headers, encoding, etc?
    VS

  • Dynamic Reports in java application

    Hi,
    I want to create dynamic reports in an java standalone application, I have downloaded the Jfreereport <http://sourceforge.net/projects/jfreereport>
    I'm not sure, whether it could get data from a JDBC source. (or is there anyother solution to generate dynamic reports in a java application?).
    Thanks in advance,
    Payam

    I generate reports from a webserver ( Tomcat ) in PDF using iText ( www.lowagie.com/iText ). It works great. JFreereport is also using this iText and you shouldn't have any problems using JDBC. Try to read the tutorial first about iText first. This will give you an idea how JFreereport works.
    - Dieter

  • Printing report in java application

    We have a java application with crystal report implementation. In this we have a option for printing the crystal report. While invoking the printing api we have the following error insteadof printing the report.
    "The maximum report processing jobs limit configured by your system administrator has been reached."
    Please help me for this issue.

    I think you need to set the following Registry Key:
    HKEY_LOCAL_MACHINE\SOFTWARE\CRYSTAL DECISIONS\10.0\REPORT APPLICATION SERVER\SERVER\PrintJobLimit

  • Crystal Reports into java application

    Can anyone help me out in generating Crystal Reports in a java application.

    Yes google the forums here, there is a link to a website that deals specifically with Java and CR, CE, RAS.
    HTH

  • How to Print reports with Java Application

    I'm developing a database application in java using rmi and swings. Now I want to take some printout of reports from that application. Is any report designer available for java applications. How can i solve this problem. Please help me.

    Hi
    I don't know i f exist a tool like you want, but, in Java
    the print job is implemented by a class implementing the Printable interface.
    A class "Printable" must implement the print method like is defined at scpec. This method, via the params, can do print by "drawing" the page and, finally, return an integer
    indicate if the print loop must continue or not.
    The drawing op over the printer Graphics context is realized by methos of Graphics object (if you want "print"
    some text you can do g.drawString("some text",x,y) and so on).
    See the tutorials for more info
    Hope this help

  • Changing an email address throughout the Enterprise on schedule reports

    We will be changing our email address from fsc.edu to fitchburgstate.edu.
    I have been told I need to manually change this address for all scheduled reports on the Enterprise.
    Is there an easier way to do this instead of going into each report?
    Thanks!

    SDK = Solution Developer Kit
    E.g.; you need a developer that knows .NET to create an application that will do the task.
    To develop a BOE/CRServer XI R2 .NET application you need the Enterprise .NET SDK. You have to get this from the Enterprise installer.  Launch the BOE/CR Server XI R2 installer and choose Server Install - not Client Install.  Choose a Custom install.  You'll be presented with a drop down list for the Enterprise components.  Deselect everything and then look for the Developer Components option.  You may have to drill down into one of the levels to find it.  Under Developer Components you'll see the BusinessObjects Enterprise .NET SDK.  Select it to install to the development machine.  This will allow you to work with the Enterprise .NET SDK on your VS2005 machine.
    You can install the .NET SDK using the Client Tools option, however it installs much more than you'll need (e.g. the publishing wizard, etc.).  The Client Tools option can also miss a couple of key DLLs and assemblies.  The best path to follow is the custom server install path outlined above.
    When you're ready to deploy your .NET application you will also need to install the .NET SDK onto the Web application server as well. This is because we are not fully managed by the .NET Framework.
    Check the following link:-
    http://www.sdn.sap.com/irj/sdn/businessobjects?rid=/webcontent/uuid/5001d5de-f867-2b10-00bf-8d27683c85a0 [original link is broken]
    This will give you details about BusinessObjects Enterprise .NET SDK.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • Calling oracle reports from java applications

    Hi:
    I was wondering if anyone can tell me how to invoke an oracle report from a java application.

    yes it is possible. There is a cgi script called viewreport.cgi. Have the jsp page call it (GET or POST method) and place the user parameters inside the form.

  • How to find out the status of a file in java

    Hi
    I have an application that writes xml files anytime it is invoked. I am writing all unique files to a windows directory.
    i also have an ftp client working on that directory that scans all the files and sends them to the server every few minutes.
    I want to find a way using which all the files except the one that is being currently written by the application are transferred.
    Is there a way to find out in java as to what file is being written to by the operating system at that point of time ? I have looked around for quite a long time and have not been able to find a solution to this problem.
    Any help will be deeply appreciated.

    out = new FileOutputStream(matcher.group(1)+".open" , true);
                          FileChannel ch = out.getChannel();
                                       FileLock lock =  ch.lock(0L, Long.MAX_VALUE, false);
                                   // Connect print stream to the output stream          
                                       p = new PrintStream( out );
                            p.println ("\n" + parms.getProperty( value ) + "\n");
                                  p.flush();
                            p.close();
                                  lock.release();Ok, I tried implementing locks but I dont know why it is not working...An exception is thrown and nothing is wriiten to the file. I have employed a complete lock on the file so that no other JVM application can use it.
    Actually this is a server that grabs data sent from an Iframe and writes it down to a temp file. I open a file input stream, lock it and then use a printwriter strream to write the realyed data to the file. Any inputs as to what is wrong with the code snippet above?????

  • How to avoid JS Error in the status bar when report doesnt contain value.

    Hi
    Whenever the tabular report doesnt show any records for the given input parameter (parameter passed using select list item).
    We are displaying error message in APex. But at the status bar, it is showing "Error" (unspecified
    error).
    Kindly let me know how to avoid this kind of error at status bar.
    Thanks
    Vijay

    Hi Vijay,
    Your javascript is probably trying to access one or more of the items within a displayed tabular form - the "f01", "f02" etc named items.
    If your script does something like:
    var x = document.getElementsByName("f01");
    ..rest of your code for f01 items..you can test if there are any "f01" items by doing:
    var x = document.getElementsByName("f01");
    if (x){
    ..rest of your code for f01 items..
    }If there are no items, x is null, so the "..rest of your.." script will not get executed and no errors will occur.
    Andy

  • The problem about multi-thread in java application

    i have problem with the multi-thread in java application, i don't know how to stop and restart a thread safely, because the function thread.stop(),thread.suspend() are both deprecated.
    now what i can only do is making the thread check a flag(true or false) to determine whether to start or to stop, but i think this thread will always be in the memory and maybe it will lower the performance of the system, as the program i am developping is working under realtime enviorement.
    please help me about it. thanks !

    hi,
    you can stop a thread by exiting it's run()-method which in terms can be done by checking the interrupted-flag:
    public void run(){
    while(interrupted()){ //if the thread consists of a loop
    or
    public void run(){
    if(interrupted())return;
    if(interrupted())return;
    or by the use of the return-statement anywhere withing the run-method. Afterwards, that is when the thread is no longer needed, you clear all the references to the specific thread object by setting them to null:
    Thread t;
    ... //working
    t.interrupt(); //interrupting
    while(t.isAlive()){
    Thread.yield(); //wait till thread t has stopped
    t=null;
    best regards, Michael

Maybe you are looking for

  • Passing the values to transaction in Report

    I need to call standard transaction in my displayed report and pass the parameters say, material and plant to that. these parameters from the displayed list. How to do this? Please help me Thanks

  • Gateway Notebook PC stopped connecting to Airport Express

    My older Gateway Notebook PC worked fine with the Airport Express until some time in March, 2008. Now, although it goes through the process of trying to connect, it fails to make the connection. The Apple products are working fine. I see in the forum

  • Save Layout and change Layout button.

    Hi Guys,             Im calling the below method of class: cl_gui_alv_grid.     gs_variant_lic-report = sy-repid.     gs_variant_lic-username = sy-uname.       CALL METHOD gi_alv_lic->set_table_for_first_display         EXPORTING           i_structur

  • Financial Reports February 2009

    I wonder if it is only me, which has not received any financial report for February 2009. Normally they show up around 10 in the month, but today it is already 16 Marts.

  • DB13 jobs cancelled due to "Permission denied" error.

    Hi all, DB13 jobs are cancelled due to "Permission denied" error. I pasted the error log below. Actually we have upgraded database from Oracle 9 to 10, then after these jobs are cancelling before that this was fine. What could be the problem cousing