Process.waitFor doesn't waitFor process to terminated

I have searched this website and found may people have this problem, but no one has answer the question. Does that mean there is no way around this?
This is from the API:
The Runtime.exec methods may not work well for special processes on certain native platforms.
Is this everyones problem?
This is the code I'm using:
String[] callAndArgs = {"open", fileLoc};
proc = rt.exec(callAndArgs2);
proc.waitFor();This doesn't waitFor the open file to be closed. How can I waitFor for the open file to be closed? Is there away around this? Any input would be greatly appreciated. Thank you.

Yes - you are kind of out of luck. The OS is spawning a new process to open that document, so the thread that you initiate with exec is ending, causing control to return to the Java app's .waitFor call.
Many OSes do have the ability to shell out a command and actually wait for the process to end, but you'd have to invoke a native (JNI) method to do this. For example, I know you can do this with Windows by obtaining the process ID from the ShellExecute command and then performaing a wait on the process ID.
At this point, though, you are out of the realm of Java programming.
- K

Similar Messages

  • I am downloading the Creative Cloud desktop app on my Mac, and it starts to download but just stalls in the process and doesn't get any closer to finishing. Anyone have any suggestions. I've restarted my computer multiple times and restarted the download,

    I am downloading the Creative Cloud desktop app on my Mac, and it starts to download but just stalls in the process and doesn't get any closer to finishing. Anyone have any suggestions. I've restarted my computer multiple times and restarted the download, but to no avail.

    uninstall anything cc that's already installed, clean (Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6) and the reinstall, Adobe: Creative, marketing, and document management solutions

  • Unable to create an internet shortcut (simple process, but doesn't work)

    There really aren't any details. The process just doesn't work & research suggests that it may well be browser related.

    Make sure that you drag a valid link or favicon and not selected text on the desktop to create that shortcut.
    * SaveLink: https://addons.mozilla.org/en-US/firefox/addon/savelink/
    * Deskcut: https://addons.mozilla.org/en-US/firefox/addon/deskcut/

  • Process validation doesn't work

    Hi,
    when I try to change a process on my application (APEX 3.0.1.00.07), the process validation doesn't work, although the checkbox "Do not validate PL/SQL code (parse PL/SQL code at runtime only)" is not checked.
    The process will be validate only once on create, but not on change. I think, it's a bug

    Yes, that has been noted, thanks.
    Scott

  • TS1424 ITune download continues to process but doesn't complete. What could be the issue

    ITune download continues to process but doesn't complete. What could be the issue

    If your country's iTunes Store allows you to redownload purchased tracks, I'd delete your current copies of the dodgy tracks and try redownloading fresh copies. For instructions, see the following document:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    Otherwise, I'd report the problem to the iTunes Store.
    Log in to the Store. Click on "Account" in your Quick Links. When you're in your Account information screen, go down to Purchase History and click "See all".
    Find the items that are not playing properly. If you can't see "Report a Problem" next to the items, click the "Report a problem" button. Now click the "Report a Problem" links next to the items.

  • Process chain doesn't trigger an action with an incorrect event.

    Hello everybody,
    I have a problem with process chains. I connected two process, process two must run if process one fails, and i must receive a message that inform the failure of process one.
    When i execute my process chain, the jobs are launched. The job for process one is canceled due to the failure, so the job for process two must be launched, but this doesn't occur.
    Could you help me with this problem please?
    I really appreciate your help.

    Hi,
    Try this post:
    How-to trigger a process chain using ABAP?
    Check these links:
    Docs in sdn
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/8da0cd90-0201-0010-2d9a-abab69f10045
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/19683495-0501-0010-4381-b31db6ece1e9
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/36693695-0501-0010-698a-a015c6aac9e1
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9936e790-0201-0010-f185-89d0377639db
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3507aa90-0201-0010-6891-d7df8c4722f7
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/263de690-0201-0010-bc9f-b65b3e7ba11c
    Process Chains
    Steps for Creating Process chain!
    http://help.sap.com/saphelp_nw04/helpdata/en/67/13843b74f7be0fe10000000a114084/frameset.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/events/sap-teched-03/using%20process%20chains%20in%20sap%20business%20information%20warehouse
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/19683495-0501-0010-4381-b31db6ece1e9
    Hope the following links will give u a clear idea about process chains and clear ur doubts.
    Business Intelligence Old Forum (Read Only Archive)
    http://help.sap.com/saphelp_nw2004s/helpdata/en/8f/c08b3baaa59649e10000000a11402f/frameset.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/8da0cd90-0201-0010-2d9a-abab69f10045
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/19683495-0501-0010-4381-b31db6ece1e9
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/36693695-0501-0010-698a-a015c6aac9e1
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9936e790-0201-0010-f185-89d0377639db
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3507aa90-0201-0010-6891-d7df8c4722f7
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/263de690-0201-0010-bc9f-b65b3e7ba11c
    /people/siegfried.szameitat/blog/2006/02/26/restarting-processchains
    ****Assign Points If Helpful****
    Regards,
    Ravikanth

  • HT4539 I'm trying to purchase gem on farm story...from my iPad...it shows to be processing but doesn't go any further...I've only had this problem since I updated to iOS 6

    I'm having trouble making purchases from my iPad....it's says its processing but doesn't go thur...this happened after I updated to iOS

    First thing to try is to reset your device. Press and hold the Home and Sleep buttons simultaneously until the Apple logo appears. Let go of the buttons and let the device restart. See if that fixes your problem.

  • Propagate Data from User Profile to Resource Process Form doesn't work

    Hi,
    i've created a new custom task for Propagate Data from User Profile to Resource Process Form with a gtc connector but the task is never triggered!!!
    i need clues to resolve this .
    thnks.!!
    oim 11g 11.1.1.5 bp4. high availability with 2 nodes and a balancer.

    Hi Rajiv:
    ->Did you make that entry in Lookup as mentioned in that thread/post ?
    ANSW: yes.
    ->Did you use exact naming convention for your tasks ?
    ANSW: yes i put the same name that i put in the lookup into my process from.
    In which process definition have you created your task. Make sure it should be other than "Xellerate User" process definition.
    ANSW: PROCESS DEFINITION: * iPlanet User
    *TB_BAN1_AUR_GTC
    *TB_BAN5_AUR_GTC
    *TB_BAN3_AUR_GTC
    etc.. GTC conector.
    i have a test environment where this functionality works succesfully and i put the same in my production environmnet and the task never is triggered.

  • Processing Static (via automatic row processing) & Dynmaic fields

    Hi,
    I have a page that has 2 sections. Section S is statically driven which I'd like to process via a Automatic Row Process DML. Section D is for dynamic fields which I process via a PL/SQL script.
    I need to process Section D (dynamic) first.
    Now they're 2 things that I'm noticing when I try this. Can someone please confirm.
    - After my process of Section D it seems to make a commit. I know this since I have a error in Section S, and the values from Section D are committed to the DB. I need to make sure a commit only occurs after all page processes have completed error free.
    - My Automatic Row Process DML for Section S doesn't seem to work at all. It can't seem to read the values at all. I know this since I have several columns which are "NOT NULL" and the appropriate error messages are being raised. The Automatic Row Fetch for Section S does work properly.
    For the time being the work around is writing a process for the entire page which includes both Section S and Section D. The thing is I thought that HTMLDB would be able to help me out a lot with Section S since it had static fields etc.

    Martin - I would try to debug these two processes separately. If the Auto DML process isn't firing, perhaps the button used to submit the page isn't setting the request to one of the standard values recognized by the Auto DML package ('INSERT','CREATE','CREATE_AGAIN','CREATEAGAIN' for inserts and 'SAVE','APPLY CHANGES','UPDATE','UPDATE ROW','CHANGE','APPLY' or like 'APPLY%CHANGES%' for update).
    A commit happens whenever session state is changed, so if your process saves an item value, that would do it. If you think that is not the cause of the commit, let me know the details of the process and I'll take a closer look. There is no way to prevent the commit when session state is updated.
    Scott

  • BOMM - Metadata manager busobj.exe process limit number of report processed

    Hello,
    We're facing the following problem, we have a BOMM setup which is running flawless for universes and webi reports. But we have a huge amount (+8000) Deski reports all stored in the same folder.
    While the integrator is processing the Deski reports at a certain point in time it goes wrong, we found out that to process the Deski reports BOMM launches a busobj.exe process which uses 2 GB of RAM at the moment the integrator stalls. The integrator does not give an out of memory error, it just stops processing and seems to timeout.
    What I am now looking for is a parameter that can limit the number of Deski reports processed by the busobj.exe process, before it is terminated to free up the memory. We thought that the pplimit parameter would do just that, but it is not.
    In the log we see all kinds of parameters, but there's very little information about what they do.  These are arguments for which we would like to get some more information:
    - maxSelect (defaults to 1000000)
    - mtc
    - ppc (number of concurrent jobs, but this seems not to influence the number of busobj sessions)
    - pplimit
    - ptc
    our setup:
    BOE = 3.1 SP2.5
    BOMM Version: 12.1.0.6
    Kind regards
    Guy

    Thank you Manoj,
    This was already helpful, it confirmed our thoughts about the parameters.
    I can not confirm your first comment about the fact that the busobj process closes after eacht report, I've monitored the processing on the server and during the run of the integrator the same busobj process was active (same PID).
    Currently we try to process 100 reports at a time by manipulating the date modified on our dev enivronment by checking the reports in scope out and back in, and then starting the integrator.
    The reports average around 200KB in size and none of them is set to refresh on open. Base on the logs it takes around 1 minute to process a single report. Depending on the fact if it is processing the associated universes or not. Disk space is not the issue.
    I noticed similar behaviour when we used a VBA-script to feed our own mm, and I had to write code to limit the number of reports processed by the busobj process to around 100. I did this by closing the busobj process after 100 reports and then start a new batch of 100 reports in a new busobj process. I think busobj does not cleanup after closing the report, and with every report opened within the same process the memory usage of the process grows, until it reaches 1.8 GB and then the process just hangs.
    I can open cases, if you can tell me on how to make sure it reaches you I'll just create one. Do you already have a release date for the fixpack you are talking about?
    Regards
    Guy

  • Process Chain Cancelling in Background Process

    Hello Experts,
    In our production system Process Chain is canceling in background process.
    Please tell me the reason and how to solve this issue.
    Details of Process Chain Background Job
    1. BI_PROCESS_TRIGGER
    Job Step
    No. Program name/command Prog. type Spool list Parameters     User     Lang.
    1  RSPROCESS            ABAP                  &0000000030331 BWREMOTE EN
    Job Log
    Time     Message text                                                                                Message class Message no.
    01:15:07 Job started                                                                                00           516
    01:15:07 Step 001 started (program RSPROCESS, variant &0000000030331, user ID BWREMOTE)                                                      00           550
    01:15:09 Process LOADING, variant ZPAK_451AS94L9YNMVG6A9YUF9IZAC is not scheduled waiting for event RSPROCESS 47XA6NPFYU2DUSU108RURIN1G     RSPC          006
    01:15:09 Job cancelled                                                                                00           518
    2.    BI_PROCESS_ABAP
    Job Step
    No. Program name/command Prog. type Spool list Parameters     User     Lang.
    1  RSPROCESS            ABAP            24193 &0000000026265 BWREMOTE EN
    Job Log
    Time     Message text                                                                                Message class Message no.
    00:28:24 Job started                                                                                00           516
    00:28:24 Step 001 started (program RSPROCESS, variant &0000000026265, user ID BWREMOTE)                                                      00           550
    00:28:32 SQL: 05/15/2008 00:28:32 BWREMOTE                                                                                DBMAN         099
    00:28:32 TRUNCATE TABLE "/BIC/AZWM_O1600"                                                                                DBMAN         099
    00:28:34 SQL-END: 05/15/2008 00:28:34 00:00:02                                                                                DBMAN         099
    00:31:55 Spool request (number 0000024193) created without immediate output                                                                  SY           355
    00:31:55 Processing completed successfully for analysis process ZWM_APD01                                                                  RSAN_PR        021
    00:31:58 Process DTP_LOAD, variant DTP_46VZNUL0G6OB9NQVSVS0L4NTF is not scheduled waiting for event RSPROCESS 46ZDK9I8Z4K5485D5K38BFCIS     RSPC          006
    00:31:59 Job cancelled                                                                                00           518
    Please provide me a solution to move forward.
    Thanks in advance
    Khadar

    Hello Expert,
    I just had setup sand box for BI system.
    we are currently on SP 9.
    We will be importing SP15 shortly..
    I am trying to run a Process chain but it is giving error...
    It's giving the following error..
    Job BI_PROCESS_DROPINDEX could not be scheduled. Termination with returncode 8
    Message no. RSPC065
    Diagnosis
    Program RSPROCESS is to be scheduled as job BI_PROCESS_DROPINDEX under user RFCUSER.
    System Response
    Scheduling terminated with return code 8. The meanings of the return codes are as follows:
    SY-SUBRC = 4:
    Scheduling terminated by user
    SY-SUBRC = 8:
    Error when scheduling job (JOB_SUBMIT)
    SY-SUBRC = 12:
    Error in internal number assignment
    Procedure
    Check the system log for more detailed information.
    Execute Function
    Could you please throw some light on it...
    Regards,
    Manmadha

  • Process chain Error: This AND process is not waiting for event RSPROCESS

    Hi All,
    I am facing an error in the process chain in PRD.
    Error message: This AND process is not waiting for event RSPROCESS.
    We had a process chain which had two sub chains which run parallel and below of this we had AND process type and below of the AND process we had 4 more jobs.
    Once the two subchains got successfully loaded, the and process should turn to green and further 4 jobs should start.
    It is a daily load , it worked fine from past years,but suddenly the AND processtype is getting failed.The thing is in the two subchains if one got completed, the AND process process is not waiting for 2nd subchain to get completed.The AND process is turning to RED (status: cancelled) . I tried to repeat the AND process once after above 2 subchains loaded, but it didnt worked.
    And i removed the existing AND process and created a new one and placed it in same place and activated and schedules again.but still it is getting failed with same error.
    Thanks in advance,
    Sai Chand.S

    Hi,
    If you did any transports related to that metachain we face similar kind of issues.
    not only the AND process , we need to remove all the process before executing the AND process and create it again.
    It helps you, you said your in production So you should take the proper approvals and do it.
    Regards,
    Yerrabelli.

  • List of issues and fixes for procure to pay process and order to cash process for a trading company

    Dear All Gurus
    Kindly tell me where I can find the list of all issues arising in procure to pay process
    and order to cash process and there fixes for a trading company in support project
    Thanking You
    Abdul Baseer

    Hi Abdul,
    There are no standard list to provide, you should identify the issue through regression testing and raise an SR or create a thread accordingly we can help you.
    Note:- Issues are vary to instance to instance, version to version, installation to upgrade etc..

  • Is it possible to run process chain from the certain process/point?

    Hello
    Is it possible to run process chain from the certain process?
    How?
    Thanks

    Hello,
    yes it possible! use the following steps.
    1. Goto the process which you want the chain to start from.Goto display messages>> Chain tab. In the generated instance note the variant and instance.
    2. Goto table RSPROCESSLOG and give variant and instance and get logid details.
    3. t codese37>> run FM RSPROCESSFINISH.
    4. give the deatils u have got in RSPROCESSLOG table here and say execute.
    This will solve ur problem.
    Hope this helps!
    Reg
    Deepmala

  • Sequential processing of messages with bpm process

    hi,
    i have a bpm process that i want to process my messages sequential. for this i initially have played around with crerating my own queue but that didn t work. then i mocved to use the collect pattern and then process the messages. this works only for around 150 messages and the others are staying stuck in the queue for the bpm process the queue is in status stop. if a drop in another file then the queue get cleared and the new messages are placed in it and it still stays in stop and i need to delete queu and start again. Is there a solutio for this that the queue will collect the messages and when the bpm proces is finished it will start again ?
    i have tried to avoid using the collect pattern and worked with my bpm process to let it use a specific queue  but that also didn t work. i can process 1 message and then the rest stays in the queue? any help would be welcome

    Hey
    is there any reason specific reason for using BPM?
    you can use EOIO to transfer your files sequentially.
    thanx
    ahmad

Maybe you are looking for

  • Clicking on a link no longer starts/opens that site in Firefox since update to 6.0.2

    For example, clicking on a link to a website in an email returns an Outlook error. This started immediately after updating Firefox to version 6.0.2. For the moment I can't repeat the error without making Firefox my default browser again. Until I find

  • Sending email with 3 excel attachments

    Hi, Is there a function that I can use to send 3 different excel attachments in an email? Points will be rewarded. Thanks.

  • ABAP query issue when logoff error message query not created

    Hi All , I created a ABAP query using SQ01 . I saved it and i'm able to see the output . But , if i logoff from the system and relogin again to system and trying to execute the query , it is showing an error message " The query has not been created "

  • Basic pl/sql doubt

    Declare cursor curname is select * from employees where employee_id in (100,101); v_emp curname%rowtype; begin open curname;--this stage the query is executed and datas are available in Active set which is the area oracle allocated for this cursor lo

  • How to authenticate LDAP by using CN and DC only, ignore OU

    Hi guys, Anyone here experience is authenitcate via LDAP using only CN and DC as PRINCIPAL? Currently I am having an OU in my LDAP where I want to skip that part during authentication. Please show me some sample code if you happen to do it before. Th