Getting java to wait for a process to end

I have an application running Javac i need it to wait for this process to end before it does anything else.
I have tried using theProc.waitFor() (the Process i have created), but this hangs my application. I know there is nothing wrong with the class paths and java itself. I have checked the process list and Javac is still in it. WHY?
Can someone suggest anything.

http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

Similar Messages

  • Timed out waiting for Business process

    Hi,
    I created a web application using evision in JCAPS 512. It works properly. But some times i am getting an error message as
    "Timed out waiting for business process" when i try to access the web page usign url.
    But if i invoke page again then application works properly.
    I have increased server response timeout value also. But couldn't get
    the reason when it will occur.
    Please let me know what is the reason for this problem. If this error occurs please let me know is it possible to show some other page instead of displaying error to user.
    Regards
    Venkatesh.S

    Good day.
    I have a similar problem and I have managed to pinpoint when it fails but unfortunately I don't know how to fix it yet.
    In my scenario, I have 2 separate processes:
    the first process reads data from a Seebeyond SRE instance and stores it on a local Java CAPS queue.
    The second process is an EVision process that reads the data from this queue and displays it on a page.
    Whenever I am not connected to the network linking my Java CAPS instance to the Seebeyond SRE instance (first process cannot connect ) I get this problem on the EVision side every second time I request a page. This means I can view the first message on the queue and then I have to restart the Logical Host
    This doesn't make sense to me, since The EVision process is a completely separate process, deployed in it's own WAR file.

  • Can't open iphoto in airbook. Asking to upgrade then says must rebuild library then warning about missing files. When click rebuild all I get is continued- waiting for iphoto library- and, never rebuilds

    can't open iphoto in airbook. Asking to upgrade then says must rebuild library then warning about missing files. When click rebuild all I get is continued- waiting for iphoto library- and, never rebuilds

    -1.The photo library needs to be upgraded to work with this version of iPhoto.
    Your photo library will not be readable by previous versions of iPhoto after the upgrade. The upgrade process for very large libraries may take an hour or more to complete.
    2. iPhoto is unable to open this library.
    The library has issues that require rebuilding to correct
    3. Warning
    Would you like to rebuild the library "iPhoto Library"? 
    The library "iPhoto Library" is missing required database files and must be rebuilt before it can be opened.
    4. Waiting for iPhoto library
    iPhoto will open as soon as the iPhoto library is available
    Time Machine might be backing it up

  • SHUTDOWN: waiting for detached processes to terminate

    HI
    I have cold backups running every night and before the backup session starts, we have a cronjob 'srvctl stop -p prod' where our db servers are running on RAC.
    but starts from last saturday, our backup session for raw device failed. when look at the alert log, it gives as (example on 15th November 2006)
    Tue Nov 21 01:33:31 2006
    Thread 1 advanced to log sequence 2855
    Current log# 1 seq# 2855 mem# 0: /u01/oracle/oradata/prod/redo_1_01_01.log
    Current log# 1 seq# 2855 mem# 1: /u01/oracle/oradata/prod/redo_1_01_02.log
    Tue Nov 21 02:37:24 2006
    Reconfiguration started
    List of nodes: 0,
    Global Resource Directory frozen
    one node partition
    Communication channels reestablished
    Server queues filtered
    Master broadcasted resource hash value bitmaps
    Non-local Process blocks cleaned out
    Resources and enqueues cleaned out
    Resources remastered 13089
    147420 GCS shadows traversed, 0 cancelled, 18306 closed
    63793 GCS resources traversed, 0 cancelled
    98369 GCS resources on freelist, 162162 on array, 162162 allocated
    set master node info
    147420 GCS shadows traversed, 0 replayed, 18306 unopened
    Submitted all remote-enqueue requests
    Update rdomain variables
    0 write requests issued in 129114 GCS resources
    1 PIs marked suspect, 0 flush PI msgs
    Dwn-cvts replayed, VALBLKs dubious
    All grantable enqueues granted
    Tue Nov 21 02:37:27 2006
    Reconfiguration complete
    Tue Nov 21 02:37:28 2006
    Instance recovery: looking for dead threads
    Instance recovery: lock domain invalid but no dead threads
    Tue Nov 21 02:37:29 2006
    Shutting down instance: further logons disabled
    Shutting down instance (immediate)
    License high water mark = 90
    Tue Nov 21 02:37:29 2006
    ALTER DATABASE CLOSE NORMAL
    Tue Nov 21 02:37:29 2006
    SMON: disabling tx recovery
    SMON: disabling cache recovery
    Tue Nov 21 02:37:34 2006
    Thread 1 closed at log sequence 2855
    Tue Nov 21 02:37:38 2006
    Completed: ALTER DATABASE CLOSE NORMAL
    Tue Nov 21 02:37:38 2006
    ALTER DATABASE DISMOUNT
    Completed: ALTER DATABASE DISMOUNT
    ARCH: Archiving is disabled
    Shutting down archive processes
    archiving is disabled
    Archive process shutdown avoided: 0 active
    ARCH: Archiving is disabled
    Shutting down archive processes
    archiving is disabled
    Archive process shutdown avoided: 0 active
    Tue Nov 21 02:42:49 2006
    SHUTDOWN: waiting for detached processes to terminate.Tue Nov 21 07:16:38 2006
    Starting ORACLE instance (normal)
    Seems like it was hang when 'shutdown immediate' command is issued. can somebody help me? what should i do?
    Thanks
    Best regards,
    Nonie

    Hi nonie
    Oracle shutdown Problem
    If the following message is in the Oracle alert file:
    SHUTDOWN: waiting for detached processes to terminate
    you should change the SERVER and SRVR parameters from SHARED to DEDICATED in the file <ORACLE_HOME>\network\ADMIN\tnsnames.ora.
    http://serviceportal.fujitsu-siemens.com/i/en/support/technics/fgm/unix/nsr40a_en.htm
    hope this helps
    Taj.

  • HT1386 I am getting the message waiting for changes to be applied on my IPhone 4

    I try to sync my I Tunes with my I phone 4 and I keep getting the message waiting for changes to be applied.
    What do I need to do to correct this?

    If you right click on the iPhone's icon on the left of the iTunes display, you should be able to find an option to eject your iPhone.  Then connect it and start the sync again.

  • When syncing my iPad with my computer I keep getting the notice ' waiting for changes to be applied '.  What is this all about ?

    When syncing my iPad with my computer I keep getting the notice ' waiting for changes to be applied '.  What is this all about ?

    If everything is working OK, I believe it simply means that the iPad and iTunes are communicating and that any changes that you made to the sync configuration are waiting to go through. If you updated apps on the iPad and they get transferred into iTunes or if you download new songs onto the iPad and they are being transferred into iTunes, any app data that moves back and forth - those would be changes that need to be applied.
    If you can't finish the sync and that's why you are asking, can you provide more specific details?

  • HT1386 I SUDDENLY GET THE MESSAGE "WAITING FOR SYNC TO START" AND THEN SEVERAL MINUTES LATER A MESSAGE SAYING SYNC HAS FAILED BECUASE IT DIDN'T START!

    I SUDDENLY GET THE MESSAGE "WAITING FOR SYNC TO START" AND THEN SEVERAL MINUTES LATER A MESSAGE SAYING SYNC HAS FAILED BECAuSE IT DIDN'T START!

    Se if this previous discussion helps:
    Sync Session Failed to Start iTouch iOS5: Apple Support Communities

  • PIXMA MX432. I can't print now. I only get the "please wait for a while.

    I installed a new ink cartridge in my PIXMA MX432. I can make copies just fine, but I can't print. I only get the "please wait for a while" message.

    Hello TomClark.
    For testing purposes, please turn the printer off and back on.  Then restart your computer.  Once this has been done, try printing again. 
    If the error persists, please contact our support group using the "Contact Us" link below for additional assistance.
    This didn't answer your question or issue? Find more help at Contact Us.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • I have an Iphone 3gs. I can't get it to sync. Every time I try I get the response 'waiting for changes to be applied'. I've tried doing a reset but it still won't sync. Any ideas?

    I have an Iphone 3GS. I can't get it to sync. Every time I try I get the response 'waiting for changes to be applied'. I do not have voice memos. Any suggestions?

    This is a user forum, not a channel to address Adobe. As your fellow users and volunteers, we'll be happy to help you if we can.
    You can download the CS6 trial version just like anybody else.
    Once you download it, you can install it, input your serial number, register it and apply all necessary updates.
    An alternative, if you know how to access your Adobe account, under My Products you'll find your Photoshop CS6 registration, next to which you should find a link to download CS6 if you originally bought it as a download

  • My iTouch keeps getting stuck on "Waiting for changes to be applied"

    Hi, I just bought an iTouch 5 only 2 months ago and I'm having trouble because it won't sync my music. It keeps getting stuck on "waiting for changes to be applied." I have over 3000 songs and I have several playlists, it wouldn't sync all at once so I tried syncing it by playlist. It worked for a few songs and every time I add more, it just gets stuck. I've been trying to solve this for weeks now and it's stressing me out. I've read the stuff in this forum and I've tried people's solutions but I still haven't solved this problem.

    Why did you start a new discussion?
    https://discussions.apple.com/thread/6286849?tstart=0

  • Getting java.lang.NumberFormatException: For input string: "63420;https=127.0.0.1" Error while creating bpel service in oracle soa suite12c

    Hi ,
    I am getting below error when I try to create a bpel project in oracle soa suite 12C, can any one help on this issue why it is happing, earlier am able to create bpel service.
    java.lang.NumberFormatException: For input string: "63420;https=127.0.0.1"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    at java.lang.Integer.parseInt(Integer.java:492)
    at java.lang.Integer.parseInt(Integer.java:527)
    at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.getNewReaderInstance(CachedWSDLReader.java:379)
    at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader$1.initialValue(CachedWSDLReader.java:299)
    at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader$1.initialValue(CachedWSDLReader.java:295)
    at java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:160)
    at java.lang.ThreadLocal.get(ThreadLocal.java:150)
    at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.getReaderImpl(CachedWSDLReader.java:309)
    at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.getExtensionRegistry(CachedWSDLReader.java:425)
    at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.readWSDLWithExtensionRegistry(CachedWSDLReader.java:468)
    at oracle.tip.tools.ide.utils.xml.wsdl.WSDLUtil.parseWSDL(WSDLUtil.java:1398)
    at oracle.tip.tools.ide.bpel.v2.datamodels.util.TemplateUtil.createProcessWSDL(TemplateUtil.java:1208)
    at oracle.tip.tools.ide.bpel.v2.designer.builder.model.ProcessBuilderUtil.createWSDLFiles(ProcessBuilderUtil.java:198)
    at oracle.tip.tools.ide.bpel.v2.designer.builder.model.ProcessBuilder.createIDEProject(ProcessBuilder.java:73)
    at oracle.tip.tools.ide.bpel.v2.designer.builder.ui.CreationDialogPanel.doCreate(CreationDialogPanel.java:57)
    at oracle.tip.tools.ide.bpel.shared.designer.processbuilder.ui.BPELCreationDialog.handleOK(BPELCreationDialog.java:199)
    at oracle.tip.tools.ide.bpel.shared.designer.processbuilder.ui.BPELCreationDialog.actionPerformed(BPELCreationDialog.java:239)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
    at java.awt.Component.processMouseEvent(Component.java:6516)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3320)
    at java.awt.Component.processEvent(Component.java:6281)
    at java.awt.Container.processEvent(Container.java:2229)
    at java.awt.Component.dispatchEventImpl(Component.java:4872)
    at java.awt.Container.dispatchEventImpl(Container.java:2287)
    at java.awt.Component.dispatchEvent(Component.java:4698)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
    at java.awt.Container.dispatchEventImpl(Container.java:2273)
    at java.awt.Window.dispatchEventImpl(Window.java:2719)
    at java.awt.Component.dispatchEvent(Component.java:4698)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
    at java.awt.EventQueue.access$200(EventQueue.java:103)
    at java.awt.EventQueue$3.run(EventQueue.java:694)
    at java.awt.EventQueue$3.run(EventQueue.java:692)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
    at java.awt.EventQueue$4.run(EventQueue.java:708)
    at java.awt.EventQueue$4.run(EventQueue.java:706)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
    at oracle.javatools.internal.ui.EventQueueWrapper._dispatchEvent(EventQueueWrapper.java:169)
    at oracle.javatools.internal.ui.EventQueueWrapper.dispatchEvent(EventQueueWrapper.java:151)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:154)
    at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:182)
    at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:221)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:219)
    at java.awt.Dialog.show(Dialog.java:1082)
    at java.awt.Component.show(Component.java:1655)
    at java.awt.Component.setVisible(Component.java:1607)
    at java.awt.Window.setVisible(Window.java:1014)
    at java.awt.Dialog.setVisible(Dialog.java:1005)
    at oracle.tip.tools.ide.bpel.shared.designer.processbuilder.ui.BPELCreationDialog.display(BPELCreationDialog.java:83)
    at oracle.tip.tools.ide.bpel.shared.designer.manager.BPELDesignerManager.launchCreationDialog(BPELDesignerManager.java:53)
    at oracle.tip.tools.ide.bpel.shared.designer.manager.BPELDesignerManager.launchCreationDialog(BPELDesignerManager.java:48)
    at oracle.tip.tools.ide.bpel.shared.plugins.soa.sca.BPELComponent.createImplementation(BPELComponent.java:46)
    at oracle.tip.tools.ide.fabric.gui.controller.ActionComponentEdit.add(ActionComponentEdit.java:118)
    at oracle.tip.tools.ide.fabric.gui.controller.ActionComponentEdit.process(ActionComponentEdit.java:95)
    at oracle.tip.tools.ide.fabric.gui.controller.DiagramController.processActionRequest(DiagramController.java:358)
    at oracle.tip.tools.ide.fabric.gui.controls.DiagramSOAPopupHandler.actionPerformed(DiagramSOAPopupHandler.java:117)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
    at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833)
    at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877)
    at java.awt.Component.processMouseEvent(Component.java:6516)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3320)
    at java.awt.Component.processEvent(Component.java:6281)
    at java.awt.Container.processEvent(Container.java:2229)
    at java.awt.Component.dispatchEventImpl(Component.java:4872)
    at java.awt.Container.dispatchEventImpl(Container.java:2287)
    at java.awt.Component.dispatchEvent(Component.java:4698)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
    at java.awt.Container.dispatchEventImpl(Container.java:2273)
    at java.awt.Window.dispatchEventImpl(Window.java:2719)
    at java.awt.Component.dispatchEvent(Component.java:4698)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
    at java.awt.EventQueue.access$200(EventQueue.java:103)
    at java.awt.EventQueue$3.run(EventQueue.java:694)
    at java.awt.EventQueue$3.run(EventQueue.java:692)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
    at java.awt.EventQueue$4.run(EventQueue.java:708)
    at java.awt.EventQueue$4.run(EventQueue.java:706)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
    at oracle.javatools.internal.ui.EventQueueWrapper._dispatchEvent(EventQueueWrapper.java:169)
    at oracle.javatools.internal.ui.EventQueueWrapper.dispatchEvent(EventQueueWrapper.java:151)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
    Thanks in advance.
    Cheers,
    bala

    Please paste composite.xml and bpel source file here. Looks like one of the endpoints is getting goofed up.

  • How to get OIM workflow waiting for a task successfully completed?

    The requirement is to get OIM provisiong workflow pending and wait for a external status ready. When the external status not ready, I return "REJECTED" which mapped to "P" in "Task->Reponse" tab. Meanwhile, in the "Task->General" tab, I set the "Retry Count" to 5 and "Retry Period in Minutes" to 1.
    I have hoped that once the task return "REJECTED", the workflow enter status "Pending". One minute later, the task re-instanced by OIM to have another check for whether the external status ready. If ready, return "COMPLETED". If not yet, return "REJECTED" and workflow re-enter pending. And on and on, until to max to 5 times attempt. But in fact, OIM workflow never attempt to re-enter the task again after the 1st time "REJECTED" returned.
    How to do with this?

    Use the code snippet below to get the task status. Based on this you can filter rejected tasks.
    userintf = (tcUserOperationsIntf) ioUtilityFactory.getUtility("Thor.API.Operations.tcUserOperationsIntf");
    provintf = (tcProvisioningOperationsIntf)ioUtilityFactory.getUtility("Thor.API.Operations.tcProvisioningOperationsIntf");
    long userKey=100;
    tcResultSet userresultSet = userintf.getObjects(userKey);
    for(int i=0;i<userresultSet.getRowCount();i++)
         userresultSet.goToRow(i);
         long processKey = userresultSet.getLongValue("Process Instance.Key");
         tcResultSet provresultSet = provintf.getProcessDetail(processKey);
         for(int j=0; i<provresultSet.getRowCount();j++)
              provresultSet.goToRow(j);
              String taskName = provresultSet.getStringValue("Process Definition.Tasks.Task Name");
              String taskStatus = provresultSet.getStringValue("Process Instance.Task Details.Status");
    Let me know if you have any queries...

  • How to get rid of "Waiting for Activation" on old iphone 3G?

    Ok I just upgraded to the new 4 & planned on giving my old 3G to my son to play games, music, photos etc.
    I'm in the process of re-syncing it with everything for him
    But there seems to be a message on the screen "Waiting for Activation, this may take some time"
    How do I get that to go away as I will NOT be activating this phone again, but it will basically be used like an ipod touch?
    Thanks.

    Turn Airplane mode on followed by turning on wi-fi access.
    The no longer activated SIM card will need to be inserted in the iPhone to restore the iPhone with iTunes if wanted or needed and to install a firmware update or to complete the process - the SIM card that was used with the iPhone when it was activated.

  • Getting 'java.lang.OutOfMemoryError' while importing process flows.

    Hello,
    We are getting 'java.lang.OutOfMemoryError' error while importing process flows in our QA environment. This environment is not new. The same process flows were working perfectly fine till last week.
    This week we had to delete the project in QA and reimport all the objects. Import went fine for all, except process flows. We could deploy all other objects as well.
    We have tried increasing JVM in run_service.sh and owbclient.sh files by increasing -Xmx, -Xmx and Dlimit. We increased as far as 2048M ( This is the max memory available on our server)
    We are using OWB version 10.2.0.2 and Oracle 10G over Linux. Did anyone of you face the same issue ? Please le us know the solution.
    Thanks
    Madhavi

    Hi Madhavi,
    Which locale language is shown in your OWB client configuration? We had this issue in previous versions (I haven't found it in this version, but I'm used to work with English since these previous versions) So we always adjust Preferences (Tools -> Preferences...) to see Appearance -> Locale -> English.
    Try to change the locale language if it's your case.
    Regards
    ANA GH

  • ITunes keeps getting stuck on "waiting for changes to be applied"

    The problem started last night, I can't sync music from my iTunes onto my 5th Gen iPod Touch. I follow the normal steps and it goes through the first 4 ok I persume.
    When it gets to the 5th step, which is "waiting for changes to be applied" it spends ages loading, but then doesn't want complete the sync and the music I want isn't on my iPod Touch.
    I just want some answers as to why this is happening and what can be done to solve this.
    I'm on version iOS 7.0.3  on my iPod I believe and my iTunes and iTunes 11.1.2.32
    I beleive these are the up to date versions of both, could it possibly be a glitch in the update process? Help please. Thank you.

    "Waiting for changes to be applied": Apple Support Communities

Maybe you are looking for