Running long processes

I have a series of pages that perform the following
functions:
1. Query the database and present a list of selectable items
with checkboxes next to each item. The user selects any number of
items to report on.
2. The selected items within the form are sent to a
processing page that generate CFDOCUMENT pdf reports via a series
of queries to the database for each item. The generated reports are
saved to a temporary directory on the server and when the last
report is created, they are zipped up and emailed to the user.
All of this works quite well except that it can be a fairly
long process especially if a fair number of items are selected. I
can override the CF page timeout with the CFSETTING tag but there
is an issue with the browser timing out. I had implemented a
progress bar with a series of CFFLUSH commands to keep the browser
receiving content, eliminating the browser timeout. However, the
page now seems to ignore the flush commands and just displays it
all at the end instead of incrementally. This seemed to happen when
I changed the submitting form to one that posts the form data
instead of calling the processing page with url variables. This was
required when I went to a multiselect option. I'm not sure if this
is the cause but I have tried everything I can to get the CFFLUSH
flushing again to no avail.
Is there a way to get the server to process the request in
background mode? Since the user makes a request and doesn't receive
any meaningful content on the screen after the request (they just
expect the email to be sent), is there any way to make the server
process the request even if the user disconnects or goes onto
another page? This would be ideal. If not, does anyone have
suggestions on getting CFFLUSH to work again. I have tried all the
obrious things like checking for tags that are incompatible with
the CFFLUSH tag and the IE need to have a certain amount of content
sent to it before the CFFLUSH. Simple test pages seem to work.

RE: bpdevlin
I think you're on the right track. Capture and store whatever
data you need (even credentials if necessary) in a new database
table. As a side-note; if you are concerned about the credentials
being in the database, you could consider using encryption.
You could then create a new scheduled process with
<cfschedule>, and have that process run pretty much
immediately (by scheduling the task for a date in the past). That
process would query the database for the data it needs, and then
proceed with its "work". Once it's done "working", it could report
a "done" status back to the database, or simply delete the record
entirely.
The front-end could periodically check for this "done" status
(or for the absence of the record in the database), to know when it
can send the user to the "view report/results" page. There are a
lot of ways to accomplish this; one simple approach I've taken in
the past is to embed a 1-pixel X 1-pixel <iframe> in the page
that runs the "check if done" script over and over again. While
this is happening, the main page/window could show an animated GIF
that simply says "Please wait while we process your request...."
(or something along those lines)
There are a lot of different ways you could approach this,
but I just thought I'd throw a few ideas out there to get your
creative juices flowing :)
Best of luck with it.

Similar Messages

  • Checking for status of a long-running BPEL process

    Hi experts,
    I have one BPEL process for originating customers' loan which usually involves various steps which takes around 15-20 mins to complete per instance. I would like to implement a user interface that can check the process's progress and display how it is going to the user.
    I have thought of using an asynchronous process that updates a global variable listing status of each step inside the process and use a poller to invoke another operation (like "checkStatus" operation) of this process to retrieve this variable and display the value to the users. It may be achieved by using "OnEvent" activity waiting for "checkStatus" operation. It will run in parallel with the main process, have access to the global variable and reply this variable immediately to the caller.
    It sounds like an idea in theory but invoking a web service operation for polling status is very heavy-weight and may impact performance during high-load.
    I am just wondering if there is other solution to this problem as I believe the status checking is a very common expected requirement in long-running BPEL process. What might be the best practice to implement this?
    Look forward to your responses.
    Thanks and regards,
    Edited by: Nghia Pham on Nov 5, 2012 4:48 PM

    Hi.
    I apologize for the slow reply. I am just back from overseas and did not have chance to go to the forum!
    Thank you a lot for your responses!
    The BAM looks like a suggested out-of-the-box solution. But it ties too much to Oracle API and will be hard to customise the way you want to interpret the status to end-users. If you want to display the process status with BAM in a web application interface, ADF is the only solution (please correct me if I am wrong). I would prefer a stand-alone, free of proprietary API solution so that we can build a screen that is technology-independent. As ADF UI is not our only supported view technology. For example, a PHP web client should be able to interpret the BPEL process status.
    Will really appreciate your suggested solution.
    Thanks and regards,

  • UCE backup so long running vaccumdb process

    If I kill the child process vacuumdb the Next process running reindexdb. Can I allow to run this process or I want kill the all releated Backup process. If I allow to run reindexdb process what will append the database will corrupt? I have killed already the vaccumdb (the vaccumdb process not completed fully). When I check the backup.sh script after vaccumdb the next step is reindexdb.
    Thanks

    there is a risk that killing vacuumdb can lead to database corruption. it can normally take a long time for vacuumdb to complete(especially if the backup script isn't run regularly or the db is very large)

  • Very hard to implement a long process dll or applicatio​n in TestStand such as firmware download task.

    Hi All
    In my daily projects there are many firmware download tasks on mass production for kinds of products sucha s phone, mp3, game box and so on. The common download is performed via USB or serial port.
    Firmware download is often a long process what will take up to hundreds of seconds. The download application or dll is often provided by customer or the chipset supplier, I have ever call a download dll in TestStand, the only way is to run the dll in another threading and at the UI threading I monitor the dll's log file for status, it looks a very stupid way to do, things oftn lose control.
    This time I have to automatically download firmwares to a mp3(Sigmatel chipset), Sigmatel provided an application for parallel downloading what is very unstable, the application often hangs or crash, I tried to update the application source code but Sigmatel says they will not support if I change something.
    If someone use the application, he needs to press the START button, if fail, press the STOP firstly, if crash..... everything lose control. In my opinion, even if I change the application to a dll, there are still long processes, I must let TestStand wait there for the log file information? I do not think that is a good idea.
    My thought is this is a usual task in manufacturing, could someone please advice me how do you handle this kind of testing in your test station? How to run a long process task in TestStand and communicatio with it and keep everything in control.
    Thanks.
    帖子被paulbin在04-06-2008 07:49 PM时编辑过了
    *The best Chinese farmer*

    Hi,
    I have used a VC++ dll
    Here are some snipptes
    void CProcessLoaderApp:ostMessageToProcess(LPPROCESS_INFORMATION lpProcessInformation,UINT Msg, WPARAM wParam, LPARAM lParam)
     FINDWINDOWHANDLESTRUCT fwhs;
     fwhs.ProcessInfo = lpProcessInformation;
     fwhs.hWndFound  = NULL;
    EnumWindows ( EnumWindowCallBack, (LPARAM)&fwhs ) ;
     PostMessage ( fwhs.hWndFound, Msg, wParam, lParam );
    BOOL CALLBACK CProcessLoaderApp::EnumWindowRcs5SystemTestCallBac​k(HWND hwnd, LPARAM lParam)
     FINDWINDOWHANDLESTRUCT * pfwhs = (FINDWINDOWHANDLESTRUCT * )lParam;
     DWORD ProcessId;
     CString Title;
     GetWindowThreadProcessId ( hwnd, &ProcessId );
     // note: In order to make sure we have the MainFrame, verify that the title
     // has Zero-Length. Under Windows 98, sometimes the Client Window ( which doesn't
     // have a title ) is enumerated before the MainFrame
     CWnd::FromHandle( hwnd )->GetWindowText(Title);
     if ( ProcessId  == pfwhs->ProcessInfo->dwProcessId && Title.Compare("MyApplicationName_ReplaceThatStuff"​) == 0)
      pfwhs->hWndFound = hwnd;
      return false;
     else
      // Keep enumerating
      return true;
     MainStuff:
    SetCursorPos(10,23);
     m_App.PostMessageToProcess(&g_pi,WM_LBUTTONDOWN,0​x01,0x000A0017);
      WaitForSingleObject(Event,200);
     m_App.PostMessageToProcess(&g_pi,WM_LBUTTONUP,0x0​0,0x000A0017);
      WaitForSingleObject(Event,200);
    Greetings
    juergen
    =s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=

  • What is the best way to run two process in one VI

    Hi all...
    I'm trying to run two process in the same VI at the same time, which do different operations.
    One loop collect data from COM port, the other loop collect data from sound card. And two process should work independently.
    So can I simply put two while loops in the VI?
    The attachments are my VIs. 
    Thank you!!
    Attachments:
    AC_Radar_Receive.vi ‏81 KB
    RadarAudioPlug.vi ‏435 KB

    You haven't said what your long term goal is, but putting two loops in the same VI that are doing different things is a poor design choice. The problem is that it limits your options for reusing or expanding your code. Queues, events and notifiers all work equally well whether the processes are in a single VI or spread across a dozen VIs.
    Mike.. 
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Servlet starting a long process

    Good day!
              We have a servlet that starts a long process (potentially an hour). We dont
              want to keep the connection open that long however. Currently we solve this
              problem by starting a second thread from within the servlet, and letting it
              run.
              However, this has a problem. This thread uses EJBs that are passed from the
              original thread. Weblogic's 6.1 docs say "To avoid undesireable
              interactions with WebLogic Server threads, do not let your threads call into
              WebLogic Server components."
              We've noticed one such unpleasant interaction if the servlets and ejbs are
              on the same server, but in different apps.
              So I'm wondering:
              A) what do people do when using threads to avoid this issue
              B) what alternative to threading do other people use in situations like
              this
              

    For example, you can do it like this (using time services):
              http://dima.dhs.org/misc/LongRunningTask.jsp
              deepak <[email protected]> wrote:
              > i also want to do something like this & thought of forwarding the
              > request to a JSP from servlet and then do the processing part below
              > the forward.
              > Is this a correct way ?
              > regards
              > deepak
              > Mark Spotswood <[email protected]> wrote in message news:<[email protected]>...
              >> Two possibilties I can think of are:
              >> 1. Use a timer (set to fire immediately) to fire the EJB (but be aware that
              >> our timer services have been deprecated in favor of the JMX timer
              >> service)
              >> For more info on this, look at:
              >> http://e-docs.bea.com/wls/docs70/time/index.html
              >> 2. Use a message driven bean.
              >> http://e-docs.bea.com/wls/docs70/ejb/message_beans.html#1050867
              >> Hope this is helpful.
              >> --
              >> mark
              >>
              >> Mark Birenbaum wrote:
              >>
              >> >Good day!
              >> >
              >> >We have a servlet that starts a long process (potentially an hour). We dont
              >> >want to keep the connection open that long however. Currently we solve this
              >> >problem by starting a second thread from within the servlet, and letting it
              >> >run.
              >> >
              >> >However, this has a problem. This thread uses EJBs that are passed from the
              >> >original thread. Weblogic's 6.1 docs say "To avoid undesireable
              >> >interactions with WebLogic Server threads, do not let your threads call into
              >> >WebLogic Server components."
              >> >
              >> >We've noticed one such unpleasant interaction if the servlets and ejbs are
              >> >on the same server, but in different apps.
              >> >
              >> >So I'm wondering:
              >> >A) what do people do when using threads to avoid this issue
              >> >B) what alternative to threading do other people use in situations like
              >> >this
              >> >
              >> >
              Dimitri
              

  • CVC Locked by User message during DP macro run in process chain

    Hi Gurus,
    During the process chain for macro run the following are the observations:
    (a) DP Background Macro is part of a long process chain containing many other steps.
    (b) Out of 10000 CVC's executed only 2000 CVC's give error in the job log " The selected data is locked by user XXXX"
    (c) The process chain is delivered successful ie green, it ignores the wrong 2000 CVCs which are locked.
    (d) The same job when triggered in background as standalone runs successful and does not show any error in the job log as well. All fine.
    (e) The CVC's are mutually exclusive, so do not conflict with any parallel job.
    Would appreciate if someone has come across such a situation and can suggest actions.
    Regards,
    PK

    Hi Folks,
    During the process chain for macro run the following are the observations:
    (a) DP Background Macro is part of a long process chain containing many other steps.
    (b) Out of 10000 CVC's executed only 2000 CVC's give error in the job log " The selected data is locked by user BATCHAPO"
    (c) The process chain is delivered successful ie green, it ignores the errors 2000 CVCs which are locked.
    (d) The same job when triggered in background as standalone runs successful and does not show any error in the job log as well. All fine.
    (e) The CVC's are mutually exclusive, so do not conflict with any parallel job.
    Would appreciate if someone has come across such a situation and can suggest actions.
    Regards,
    PK

  • VCP Plans running long

    Hi
    our VCP Plan Programs are running long. There is no particular program which is running that I am unable to identify. We are running Executions and ATP plans after collections.  Either collections is running long or VCP ATP plan is running long or both. Please suggest.
    Ideal run time for collections is 40 mins. but it is taking 100 min + for the same. ATP plan used to complete in 50 -60 mins now it is taking 120mins.
    Thanks,

    Hi,
    On the Collections,Can you please plot the time taken by PDP or PDP Workers, Refresh Snapshot or ODS over few days. If the behaviour is not consistent, then you may try running the GSS on ERP instance and VCP instance at 50% or may be at 100%.
    Are there any other activities like backup being scheduled at the same time the Collections and plans are run?
    You may also monitor the DB sessions and see what are the other processes/concurrent programs that are running at the same time.

  • Dealing with ExtendScript hangs and long processing times?

    Just curious if an ExtendScript for some reason hangs (or takes really long time to run), you just have to kill it externally right? Or is there some other Adobe scripting feature I'm not aware of that deals with that scenario?
    So I'm guessing the best option to deal with hangs or long processing time is to:
    have an external monitoring tool/service to check up on the ExtendScript execution and handle appropriately as needed (kill it, log info)
    use the COM API (e.g. VBScript, though other COM compatible languages ok) or Applescript API (called directly or called by other programming languages) instead of ExtendScript for their additional programming and/or multi-threading capabilities

    Using whose in Snow Leopard is a lot slower for some reason. SInce you are already using a shell script, you might try using find. Various shell scripts to copy, find, move, etc, can also use wildcard characters.

  • When I attempt to open firefox an error message appears telling me that firefox is already running, but I can't find it running. How do I do so or in any case close the already running Firefox process?

    When I attempt to open Firefox instead of Firefox opening, an error message appears saying "Firefox is already running but isn't responding. To open another window please close the existing Firefox process or restart the system.", but I can't find that process of Firefox in order to kill it, and after restarting the system there is still the problem. I have found an emergency fix to at least get online, and that is to use"Firefox_Profile_Manager" in the start menu's "run" start menu, but the
    Firefox that then opens is that one doesn't carry over what I had in my bookmarks but starts bookmarks anew.

    Sounds like it is hanging when you exit and later try to restart Firefox.
    * How to stop the running Firefox process
    ** In Task Manager, does firefox.exe show in the '''<u>Processes</u>''' tab?
    ** See: http://kb.mozillazine.org/Kill_application
    **Windows 7 users: http://www.techrepublic.com/blog/window-on-windows/reap-the-benefits-of-windows-7s-task-manager/2576
    * What may cause Firefox to hang at exit
    **Windows 7 Task Manager: http://www.techrepublic.com/blog/window-on-windows/reap-the-benefits-of-windows-7s-task-manager/2576
    ** http://support.mozilla.com/en-US/kb/Firefox+hangs
    ** http://kb.mozillazine.org/Firefox_hangs
    ** https://support.mozilla.com/en-US/kb/Firefox+is+already+running+but+is+not+responding
    * You may need to try Firefox Safe Mode
    ** You may need to use '''Safe Mode''' to locate the problem: ***See: http://kb.mozillazine.org/Safe_Mode
    ***Firefox 4 users, hold the Shift key while clicking the Firefox 4 desktop icon to enter Safe Mode.
    ***Firefox Safe Mode is a diagnostic mode that disables Extensions and some other features of Firefox.
    ****In Firefox 4, Safe Mode also disables Plugins and Hardware Acceleration.
    ****If you are using a theme, switch to the DEFAULT theme: Tools > Add-ons > Themes '''<u>before</u>''' starting Safe Mode (In Firefox 4, Tools > Add-ons > Appearance). See: http://support.mozilla.com/en-US/kb/Using%20themes%20with%20Firefox#w_managing-themes-and-personas
    ****When entering Safe Mode, do not check any items on the entry window, just click "Continue in Safe Mode".
    ****Test to see if the problem you are experiencing is corrected.
    *** If the problem does not occur in Safe-mode then disable all of your Extensions and Plug-ins and then try to find which is causing it
    ***#by enabling '''<u>one at a time</u>''' until the problem reappears.
    ***#You can also enable a few at a time (3-5), keeping track of what you just re-enabled to see if the problem re-occurs; this will help narrow down the possibilities if you have a large number of add-ons.
    ***#'''<u>You MUST close and restart Firefox after EACH change</u>''' via File > Restart Firefox (on Mac: Firefox > Quit).
    ***#You can use "Disable all add-ons" on the Safe Mode start window.
    **See the following for more information
    *** http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes
    *** http://support.mozilla.com/en-US/kb/Troubleshooting+plugins
    *** http://support.mozilla.com/en-US/kb/Basic+Troubleshooting
    <br />
    <br />
    '''You need to update the following:'''
    *Adobe Shockwave for Director Netscape plug-in, version 11.5
    *Adobe PDF Plug-In For Firefox and Netscape "9.3.2"
    *Shockwave Flash 10.2 r153
    *Next Generation Java Plug-in 1.6.0_17 for Mozilla browsers
    #'''''Check your plugin versions''''' on either of the following links':
    #*http://www.mozilla.com/en-US/plugincheck/
    #*https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    #*'''Note: plugin check page does not have information on all plugin versions'''
    #*There are plugin specific testing links available from this page:
    #**http://kb.mozillazine.org/Testing_plugins
    #'''Update Shockwave for Director'''
    #*NOTE: this is not the same as Shockwave Flash; this installs the Shockwave Player.
    #*Use Firefox to download and SAVE the installer to your hard drive from the link in the article below (Desktop is a good place so you can find it).
    #*When the download is complete, exit Firefox (File > Exit)
    #*locate and double-click in the installer you just downloaded, let the install complete.
    #*Restart Firefox and check your plugins again.
    #*'''<u>Download link and more information</u>''': http://support.mozilla.com/en-US/kb/Using+the+Shockwave+plugin+with+Firefox
    #'''Update Adobe Reader (PDF plugin):'''
    #*From within your existing Adobe Reader ('''<u>if you have it already installed</u>'''):
    #**Open the Adobe Reader program from your Programs list
    #**Click Help > Check for Updates
    #**Follow the prompts for updating
    #**If this method works for you, skip the "Download complete installer" section below and proceed to "After the installation" below
    #*Download complete installer ('''if you do <u>NOT</u> have Adobe Reader installed'''):
    #**SAVE the installer to your hard drive (save to your Desktop so that you can find it after the download). Exit/Close Firefox. Run the installer you just downloaded.
    #**Use either of the links below:
    #***https://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox ''(click on "Installing and updating Adobe Reader")''
    #***''<u>Also see Download link</u>''': http://get.adobe.com/reader/otherversions/
    #*After the installation, start Firefox and check your version again.
    #'''Update the [[Managing the Flash plugin|Flash]] plugin''' to the latest version.
    #*Download and SAVE to your Desktop so you can find the installer later
    #*If you do not have the current version, click on the "Player Download Center" link on the "'''Download and information'''" or "'''Download Manual installers'''" below
    #*After download is complete, exit Firefox
    #*Click on the installer you just downloaded and install
    #**Windows 7 and Vista: may need to right-click the installer and choose "Run as Administrator"
    #*Start Firefox and check your version again or test the installation by going back to the download link below
    #*'''Download and information''': http://www.adobe.com/software/flash/about/
    #**Use Firefox to go to the above site to update the Firefox plugin (will also install plugin for most other browsers; except IE)
    #**Use IE to go to the above site to update the IE ActiveX
    #*'''Download Manual installers'''.
    #**http://kb2.adobe.com/cps/191/tn_19166.html#main_ManualInstaller
    #**Note separate links for:
    #***Plugin for Firefox and most other browsers
    #***ActiveX for IE
    #'''Update the [[Java]] plugin''' to the latest version.
    #*Download site: http://www.oracle.com/technetwork/java/javase/downloads/index.html (Java Platform: Download JRE)
    #**'''''Be sure to <u>un-check the Yahoo Toolbar</u> option during the install if you do not want it installed.
    #*Also see "Manual Update" in this article to update from the Java Control Panel in Windows Control Panel: http://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox#Updates
    #* Removing old versions (if needed): http://www.java.com/en/download/faq/remove_olderversions.xml
    #* Remove multiple Java Console extensions (if needed): http://kb.mozillazine.org/Firefox_:_FAQs_:_Install_Java#Multiple_Java_Console_extensions
    #*Java Test: http://www.java.com/en/download/help/testvm.xml

  • Running a process within a java program

    Hi
    I have code that runs a process for performance monitoring on an installed system. When I run the code standalone as below, it runs fine. If I include the code below inside another java program, the process fails to execute and the status returned is non-zero (failed to execute).
    The process requires the PATH and LD_LIBRARY_PATH to be set which seem to be set correctly when i print them out. So, I am not sure why the process doesnot run when included within another running java program.
    Can someone please point out what I maybe missing?
    Thanks!!
    public class RunPerf
      private static final String CLASS_NAME = "RunPerf"; private static Process proc = null;
    public static void main(String[] args)
        String INSTALLPERF_SAW_UNIX_COMMAND = "sawexe" + " " + "-perf";
             StringBuffer path1 = new StringBuffer(30);StringBuffer ldlibpath1 = new StringBuffer(30);
        System.setProperty("user.home", "/home/user");
        StringBuilder commandToExecute = new StringBuilder();
       commandToExecute.append(System.getProperty("user.home"));
       commandToExecute.append(File.separator);
       commandToExecute.append("web");
       commandToExecute.append(File.separator);
       commandToExecute.append("bin");
       commandToExecute.append(File.separator);
         String path = System.getProperty("user.home")+"/server/bin/" + File.pathSeparator + System.getProperty("user.home")+ "/web/bin";
           path1.append( path );
           path1.append( File.separator );
           path1.append( System.getProperty("java.library.path") );
           path1.append( File.separator );
          String env_value = null;
         String[] ldargs = {"LD_LIBRARY_PATH"};
         for (String env: ldargs) {
                env_value = System.getenv(env);
             System.out.println("LD_LIBRARY_PATH value before setting property= " + env_value);
                if (env_value != null) {
               String newldlibpath = System.getProperty("user.home")+ "/server/bin/" + File.pathSeparator + System.getProperty("user.homee")+ "/web/bin" ;
                ldlibpath1.append(newldlibpath);
                ldlibpath1.append(File.separator);
                   ldlibpath1.append(env_value);
                   ldlibpath1.append( File.separator);
                    System.out.format("%s=%s%n", env,ldlibpath1.toString());
                } else {
                    System.out.format("%s is not assigned.%n", env);
                 commandToExecute.append(INSTALLPERF_SAW_UNIX_COMMAND);
                   String[] envp =   { "USER_HOME =" + "/home/user",          "PATH=" + path1.toString(), "LD_LIBRARY_PATH=" + ldlibpath1.toString() };
               int status = executeCommand1(commandToExecute.toString(), envp,null);
                   if(status != 0){
                          System.out.println("Unable to run perf Unix") ;
         public static int executeCommand1(String command,String[] envp, Logger logger) {
            String METHOD_NAME = "executeCommand1";
            if (logger == null) { logger = Logger.getAnonymousLogger();}
            logger.entering(CLASS_NAME, METHOD_NAME, new Object[] { command, envp});
            Runtime runtime = Runtime.getRuntime();
            runtime.addShutdownHook(new Thread() {
                        public void run() {
                            if (proc != null) {     try {  proc.destroy();  if (proc != null) { proc.destroy();  }
                                } catch (Exception e) {
                                    e.printStackTrace(); }      }      }     });               
                           int retVal = 0;
          File cwd = new File(System.getProperty("user.home")+ "/web/bin/");               
                           try {
                               if (envp != null) {   proc = runtime.exec(command, envp,cwd); }
                                       else {  proc = runtime.exec(command); }
                               Thread t_err =        new Thread(new StreamReader(proc.getErrorStream()));
                               t_err.start();
                               Thread t_in =     new Thread(new StreamReader(proc.getInputStream()));
                               t_in.start();
                               retVal = proc.waitFor(); } catch (IOException e) {        retVal = -1;   logger.severe("IOException");      }
                                     catch (Exception e) { retVal = -1;        logger.severe("Exception");                  }
                     logger.exiting(CLASS_NAME, METHOD_NAME, retVal);
                     return retVal;
    static class StreamReader implements Runnable {
            InputStream in;
            public StreamReader(InputStream genericStream) {   in = genericStream;   }
            public void run() {
                try {
                    String strTemp = null;
                    BufferedReader buffReader = new BufferedReader(new InputStreamReader(in));
                    while ((strTemp = buffReader.readLine()) != null) {
                        System.out.println(strTemp);                }
                } catch (Exception e) {               e.printStackTrace();            }        }    }}

    Either set up a script before the program runs or have the
    program write a script file which contains the statements
    that need to be executed. Then you will be able to
    execute the script with a call to
    Runtime.getRuntime().exec()Mark

  • Error while running the process chain

    Hi, I am getting following error while running the process chain.
    "Lock NOT set for: Deleting the data completely from a data target"
    Please suggest.
    amit

    hi,
    This is due to a lock on the objects which is being used by ur load.
    Even if master data used by this would be in a lock by an attribute change run. wait till that attribute change run finishes and then repeat.
    If this target itself is locked by someother process like rollup , compression , this error would appear. In this case also repeat the step after those locking process finish.
    some general locks during loading:
    Sometimes parallel processing in DTP might lead to this, its better set the DTP and infopackage in serial processing. In this case change the settings and then repeat the process.
    There is a specific case in which the Serial DTP gets locked by itself, in this case repeat it untill it succeeds.
    You can identify the above scenario as below. This is applicable only if the DTPs processing mode is serial.
    if u see in SM 37 this load would have three DTP processes running.
    it should have only two.
    In this case cancel the process and repeat it untill u get it right.
    hope this helps u
    regard,
    ranjith
    Edited by: Ranjith  Kumar Murugesan on Sep 12, 2008 10:44 AM
    Edited by: Ranjith  Kumar Murugesan on Sep 12, 2008 10:46 AM

  • Error while running BPEL Process with Oracle Apps Adapter.

    Hi All,
    I am trying to configure the oracle apps adapter in JDeveloper.
    Here my EBS is running on different database where as SOA is installed on different database.
    I am able to properly configure the adapter & deploy the process to weblogic server.
    But when I am trying to run the process I am getting following errorr.
    <p>
    The JCA Binding Component was unable to establish an outbound JCA CCI connection due to the following issue: BINDING.JCA-12510\nJCA Resource Adapter location error.\nUnable to locate the JCA Resource Adapter via .jca binding file element <connection-factory/>\nThe JCA Binding Component is unable to startup the Resource Adapter specified in the <connection-factory/> element: location='*<JNDI Name passed in Oracle apps Adapter.>*'.\nThe reason for this is most likely that either \n 1) the Resource Adapters RAR file has not been deployed successfully to the WebLogic Application server or \n 2) the '<jndi-name>' element in weblogic-ra.xml has not been set to <JNDI Name passed in Oracle apps Adapter.>
    </p>
    Please suggest the solution for the same.
    its really urgent . waiting for reply.
    Edited by: aumathe on Dec 16, 2010 2:33 PM

    Have you created a connection pool with the JNDI specified while configuring adapter in Oracle Apps adapter on weblogic admin console. You should create it at Deployments --> OracleAppsAdapter --> Configuration--> Outbound Connection pools
    Make sure to update the adapter after creating a connection pool so that changes can take effect.
    Regards,
    Anuj

  • RFC ERROR while running BI Process Chain

    I'm recieving the following error while running certain Process Chains in BI.
    RFC error: FAILED
    RFC Message: FAILED
    The system log in BI shows the following.
    Communication error, CPIC return code 017, SAP return code 672
    672 Logon to Netweaver failed
    Other process chains work correctly via CPS.
    Any Ideas?
    Thanks

    This looks like a BW problem. Do you get the same message when you submit it manually in SAP?

  • Select query running long time

    Hi,
    DB version : 10g
    platform : sunos
    My select sql query running long time (more than 20hrs) .Still running .
    Is there any way to find sql query completion time approximately. (Pending time)
    Also is there any possibilities to increase the speed of sql query (already running) like adding hints.
    Please help me on this .
    Thanks

    Hi Sathish thanks for your reply,
    I have already checked in V$SESSION_LONGOPS .But it's showing TIME_REMAINING -->0
    select TOTALWORK,SOFAR,START_TIME,TIME_REMAINING from V$SESSION_LONGOPS where SID='10'
    TOTALWORK      SOFAR START_TIME      TIME_REMAINING
         1099759    1099759 27-JAN-11                    0Any idea ?
    Thanks.

Maybe you are looking for

  • How do I mark outgoing emails as urgent or important with iPhone 5C?

    Hi all, I'd like to know how to mark outgoing emails as urgent or important using the iPhone 5C.  I currently have iOS 7.1.1.  The only thread I saw on this was from 2012  (saying that the feature doesn't exist) so I'm hoping the status has changed.

  • Granting view/select access to packages and procedures

    We have role that we grant to users allowing them select access to tables, views, etc. They also need to be able to view the contents of packages, etc. Does anyone no a way of granting them access (other than grant execute) so they can only view the

  • Manual Idoc Creation

    Hi Someone today pointed to me that its possible to create/trigger a IDoc manually, i mean we have one inbound IDoc in Production server data comes from External vendor creates SO there is some problem in that Idoc. to replicate the same scenario in

  • Cannot create DMR through DP91 amount to be billed is zero

    Hi Gurus, im trying to create DMR through DP91 but when i process DP91 amount to be billed is already zero, i checked my Work order history log i cannot find the Sales order who billed the service. is anyone can help on how to determine what sales or

  • Form problems on website

    I've created a fillable form which works fine on my PC, but when I upload it to my website the fillable part disappears. Help! Thanks, Pam