Help running program

Hello,
I am having trouble running my program in the command prompt. I got it to compile etc.
Its a program that involves inputting a list of numbers. BUt when I press "Enter" after inputting the list, nothing happens. Is there something to signify that I have stopped inputting numbers? For example, in Linux, when you press Ctrl+D, it signifies the end of the inputting of numbers and the program runs.
Any help appreciated. Thanks.

Okay, I'm using a class file, and a driver file which calls the methods.
Here is the Driver.java file
package integer;
class Driver
  public static void main(String args[])
   IntegerList list = new IntegerList();
   list.readIn( "Please input a lost of integers : " );
   list.mostCommon();
}Here is IntegerList.java
package integer;
import java.util.ArrayList;
import java.util.Scanner;
class IntegerList extends ArrayList< Integer >
// Various Methods for Manipulating a List of Integers
   //===========================================================================
   public void readIn( String prompt )
   // Output 'prompt, then input integers from 'System.in',
   // appending them, in order, onto the end of this list
      Scanner input = new Scanner( System.in );
      System.out.printf( "%s", prompt );
      while ( input.hasNext( ) )
         add( input.nextInt( ) );
   //===========================================================================
   public void writeOut( String title )
   // Output 'title' and all the values in this list on a single line
      System.out.printf( "%s", title );
      for ( int item : this )
         System.out.printf( "%d ", item );
      System.out.printf( "%n" );
   //===========================================================================
   public int count( int item )
   // Return the number of times that 'item' occurs in this list.
      int counter=0;
      for ( int num : this )
         if ( item == num )
            counter++;
      System.out.printf( "%d ", counter );
      return counter;
   //===========================================================================
   public int mostCommon( )
      int max=0;
      int result=0;
      for ( int item : this )
            result=count(item);
            if ( result > max )
                  max = result;
                  result = item;
      System.out.printf( "%d ", max );
      return max;     
   //===========================================================================
}

Similar Messages

  • Need help in using [RUN PROGRAM] Activity against a server in another domain

    Hi Experts,
    We have two domains with two way trust enabled. Orch server exists in DomainA and target server exists in DomainB.
    We are trying to execute some scripts(g:IPCONFIG) from orch server to target server using RUN PROGRAM activity. This is  running fine and give expected results, if I give Built-in Administrator credentials in Security Tab. But I'm getting some
    strange values like chinese/japanese language strings, If I use a DomainB/DomainA user (Part of local admin of the target server) in security tab as well as Advanced tab-->Runas.
    Things I tried:
    - DomainA/DomainB user in Security Tab as well as RunAs tab  ---> Strange Strings
    - DomainA/DomainB user in Security Tab and BuiltIn Administrator in RunAs tab  ---> Strange Strings
    - BuiltIn Administrator in Security Tab ---> Expected result
    - BuiltIn Administrator in Security Tab and DomainA/DomainB user in RunAs tab  --> ProgramExitCode = -10xxxxxx
    But our requirement is to run the script on the target server as Domain User(Part of local admin).
    Thanks in Advance
    Thanks and Regards, Narayana Babu

    Hi Experts,
    We have two domains with two way trust enabled. Orch server exists in DomainA and target server exists in DomainB.
    We are trying to execute some scripts(g:IPCONFIG) from orch server to target server using RUN PROGRAM activity. This is  running fine and give expected results, if I give Built-in Administrator credentials in Security Tab. But I'm getting some
    strange values like chinese/japanese language strings, If I use a DomainB/DomainA user (Part of local admin of the target server) in security tab as well as Advanced tab-->Runas.
    Things I tried:
    - DomainA/DomainB user in Security Tab as well as RunAs tab  ---> Strange Strings
    - DomainA/DomainB user in Security Tab and BuiltIn Administrator in RunAs tab  ---> Strange Strings
    - BuiltIn Administrator in Security Tab ---> Expected result
    - BuiltIn Administrator in Security Tab and DomainA/DomainB user in RunAs tab  --> ProgramExitCode = -10xxxxxx
    But our requirement is to run the script on the target server as Domain User(Part of local admin).
    Thanks in Advance
    Thanks and Regards, Narayana Babu

  • Can't Run program in Debug Mode

    To: [email protected]
    cc:
    Subject: Can't Run program in Debug Mode
    Has anyone else experienced this problem? We have written a non-express
    program that uses the Express generated services project as a supplier
    plan. However, when we try running this program in debug mode about 50%
    (or more) of the time we abend while Forte is trying to partition the
    application. Since we have many database classes in our Business Model we
    are wondering if Forte is timing out during the partition phase or if the
    server partition is running out of memory . The following error messages
    are produced by Forte. Any suggestions???
    =======================
    Error messages on client:
    =======================
    SYSTEM ERROR: Unable to start the partition testacadprogoffer_CL0_Part1 on
    any
    of the nodes to which it has been assigned. See the remainder of the
    error
    stack for more information.
    Class: qqsp_ResourceException
    Error #: [1602, 593]
    Detected at: qqcf_StandardConfig::LoadRemotePartition at 5
    Last TOOL statement: method overview.StartApplication
    Error Time: Tue Dec 02 12:56:01
    Exception occurred (locally) on partition "Express_cl7_Client",
    (partitionId = F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9:0x3,
    taskId =
    [F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9:0x3.226]) in application
    "FTLaunch_cl0", pid 65 on node DWILBUR_NTWS in environment
    CentralEnv.
    SYSTEM ERROR: Unable to start partition testacadprogoffer_CL0_Part1 on node
    admin2.
    Class: qqsp_ErrorDescriptor
    Error #: [1602, 592]
    Detected at: qqcf_StandardConfig::LoadRemotePartition at 3
    Error Time: Tue Dec 02 12:56:01
    Exception occurred (locally) on partition "Express_cl7_Client",
    (partitionId = F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9:0x3,
    taskId =
    [F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9:0x3.226]) in application
    "FTLaunch_cl0", pid 65 on node DWILBUR_NTWS in environment
    CentralEnv.
    SYSTEM ERROR: Lost contact with remote server while trying to load
    partition
    testacadprogoffer_CL0_Part1. Check server log file for more information
    about
    the specific problem.
    Class: qqsp_ResourceException
    Error #: [1301, 102]
    Detected at: qqem_IPartitionAgent::Startup at 5
    Error Time: Tue Dec 02 12:56:01
    Exception occurred (locally) on partition "Express_cl7_Client",
    (partitionId = F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9:0x3,
    taskId =
    [F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9:0x3.226]) in application
    "FTLaunch_cl0", pid 65 on node DWILBUR_NTWS in environment
    CentralEnv.
    INFORMATION: The connection to the partner was terminated by the
    Communication
    Manager for the reasons below.
    Class: qqsp_DistAccessException
    Detected at: qqdo_PartitionMgr::StopLocation at 1
    Error Time: Tue Dec 02 12:56:00
    Distributed method called: qqrt_ForteExecAgentProxy.LoadPartition!6
    (object name Unnamed) from partition "Forte_Executor", (partitionId =
    F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9, taskId =
    [F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9.229]) in application
    "FTLaunch_cl0", pid 65 on node DWILBUR_NTWS in environment CentralEnv
    Exception occurred (locally) on partition "Express_cl7_Client",
    (partitionId = F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9:0x3,
    taskId =
    [F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9:0x3.226]) in application
    "FTLaunch_cl0", pid 65 on node DWILBUR_NTWS in environment
    CentralEnv.
    INFORMATION: Network partner closed connection. This usually means the
    process at the other end of the wire failed. Please go look there and
    find
    out why.
    Class: qqsp_DistAccessException
    Detected at: qqcm_HoseFSM::ReceivedClose at 2
    Error Time: Tue Dec 02 12:56:00
    Exception occurred (locally) on partition "Express_cl7_Client",
    (partitionId = F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9:0x3,
    taskId =
    [F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9:0x3.226]) in application
    "FTLaunch_cl0", pid 65 on node DWILBUR_NTWS in environment
    CentralEnv.
    INFORMATION: Received close: Connection aborted (10053).
    Class: qqsp_DistAccessException
    Detected at: qqcm_HoseFSM::ReceivedClose at 1
    Error Time: Tue Dec 02 12:56:00
    Exception occurred (locally) on partition "Express_cl7_Client",
    (partitionId = F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9:0x3,
    taskId =
    [F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9:0x3.226]) in application
    "FTLaunch_cl0", pid 65 on node DWILBUR_NTWS in environment
    CentralEnv.
    =======================
    Log messages on server:
    =======================
    Attached to manager for node admin2.
    aud Tue Dec 2 09:34:36 : Loading partition testacadprogoffer_cl0_Part2
    built on <unknown>.
    Attached to manager for node admin2.
    aud Tue Dec 2 09:41:58 : Shutting down partition as requested.
    aud Tue Dec 2 09:41:59 : Unloaded partition testacadprogoffer_cl0_Part2.
    aud Tue Dec 2 09:49:44 : Loading partition testacadprogoffer_cl0_Part2
    built on <unknown>.
    Attached to manager for node admin2.
    aud Tue Dec 2 10:00:11 : Shutting down partition as requested.
    aud Tue Dec 2 10:00:12 : Unloaded partition testacadprogoffer_cl0_Part2.
    aud Tue Dec 2 10:18:34 : Loading partition testacadprogoffer_cl0_Part3
    built on <unknown>.
    Attached to manager for node admin2.
    aud Tue Dec 2 10:27:00 : Shutting down partition as requested.
    aud Tue Dec 2 10:27:00 : Unloaded partition testacadprogoffer_cl0_Part3.
    aud Tue Dec 2 10:47:03 : Loading partition
    EvaluateApplRequirementsBO_CL0_Part1 built on <unknown>.
    Attached to manager for node admin2.
    aud Tue Dec 2 11:09:26 : Shutting down partition due to failure of agent
    owner's partition.
    aud Tue Dec 2 11:09:26 : Shutting down partition as requested.
    aud Tue Dec 2 11:09:26 : Unloaded partition
    EvaluateApplRequirementsBO_CL0_Part1.
    aud Tue Dec 2 12:36:14 : Loading partition testacadprogoffer_CL0_Part1
    built on <unknown>.
    Attached to manager for node admin2.
    aud Tue Dec 2 12:45:17 : Shutting down partition as requested.
    aud Tue Dec 2 12:45:17 : Unloaded partition testacadprogoffer_CL0_Part1.
    FATAL ERROR: Out of Memory (reason = qqOS_MM_EX_OUT_OF_MEMORY)
    FATAL ERROR: Out of Memory (reason = qqOS_MM_EX_OUT_OF_MEMORY)
    Task 11: qqcm_HoseRecvServiceTask::Run: Caught unexpected exception
    FATAL ERROR: ************* Out of Memory, requested (1K) available (0K)
    Class: qqsp_ResourceException with ReasonCode: SP_ER_OUTOFMEMORY
    Detected at: qqos_MemoryManager
    Error Time: Tue Dec 2 12:49:01
    Exception occurred (locally) on partition "Forte_Executor",
    (partitionId = F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10f3, t
    askId = [F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10f3.11]) in application
    "Forte Runtime", pid 14020 on node admin2 in environ
    ment CentralEnv.
    FATAL ERROR: ************* Out of Memory, requested (1K) available (0K)
    Class: qqsp_ResourceException with ReasonCode: SP_ER_OUTOFMEMORY
    Detected at: qqos_MemoryManager
    Error Time: Tue Dec 2 12:48:57
    FATAL ERROR: Out of Memory (reason = qqOS_MM_EX_OUT_OF_MEMORY)
    FATAL ERROR: Out of Memory (reason = qqOS_MM_EX_OUT_OF_MEMORY)
    ERROR: TMgr.RunThread: task cm.Recv failed terminating.
    Probably caused by a FATAL exception.
    David Wilbur email: [email protected]
    University of Windsor phone: 519-253-3000 ext. 2779
    Windsor, Ontario Canada
    -----------------------------------------------

    Hi,
    We have had the same problem in a non-express application
    with a heavy server partition. In our case, the error was not
    systematic, depending on the server workload at the time we
    tried to partition and run.
    The work-around we're using is to put the -fm flags (increasing the x
    parameter to say 30000) in the 'server arguments' of your server
    partition
    properties in the partition workshop. Note that if your server is a Unix
    platform,
    you need to put double-quotes before and after the parenthesis in the -fm
    syntax.
    Hope this helps,
    Vincent Figari
    BTW, what Forte version are you using ?
    On Tue, 2 Dec 1997 13:44:24 -0500 "David Wilbur"<[email protected]>
    writes:
    >
    >
    >
    >
    >
    To: [email protected]
    cc:
    Subject: Can't Run program in Debug Mode
    Has anyone else experienced this problem? We have written a
    non-express
    program that uses the Express generated services project as a supplier
    plan. However, when we try running this program in debug mode about
    50%
    (or more) of the time we abend while Forte is trying to partition the
    application. Since we have many database classes in our Business
    Model we
    are wondering if Forte is timing out during the partition phase or if
    the
    server partition is running out of memory . The following error
    messages
    are produced by Forte. Any suggestions???
    =======================
    Error messages on client:
    =======================
    SYSTEM ERROR: Unable to start the partition
    testacadprogoffer_CL0_Part1 on
    any
    of the nodes to which it has been assigned. See the remainder of
    the
    error
    stack for more information.
    Class: qqsp_ResourceException
    Error #: [1602, 593]
    Detected at: qqcf_StandardConfig::LoadRemotePartition at 5
    Last TOOL statement: method overview.StartApplication
    Error Time: Tue Dec 02 12:56:01
    Exception occurred (locally) on partition "Express_cl7_Client",
    (partitionId = F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9:0x3,
    taskId =
    [F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9:0x3.226]) in
    application
    "FTLaunch_cl0", pid 65 on node DWILBUR_NTWS in environment
    CentralEnv.
    SYSTEM ERROR: Unable to start partition testacadprogoffer_CL0_Part1 on
    node
    admin2.
    Class: qqsp_ErrorDescriptor
    Error #: [1602, 592]
    Detected at: qqcf_StandardConfig::LoadRemotePartition at 3
    Error Time: Tue Dec 02 12:56:01
    Exception occurred (locally) on partition "Express_cl7_Client",
    (partitionId = F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9:0x3,
    taskId =
    [F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9:0x3.226]) in
    application
    "FTLaunch_cl0", pid 65 on node DWILBUR_NTWS in environment
    CentralEnv.
    SYSTEM ERROR: Lost contact with remote server while trying to load
    partition
    testacadprogoffer_CL0_Part1. Check server log file for more
    information
    about
    the specific problem.
    Class: qqsp_ResourceException
    Error #: [1301, 102]
    Detected at: qqem_IPartitionAgent::Startup at 5
    Error Time: Tue Dec 02 12:56:01
    Exception occurred (locally) on partition "Express_cl7_Client",
    (partitionId = F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9:0x3,
    taskId =
    [F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9:0x3.226]) in
    application
    "FTLaunch_cl0", pid 65 on node DWILBUR_NTWS in environment
    CentralEnv.
    INFORMATION: The connection to the partner was terminated by the
    Communication
    Manager for the reasons below.
    Class: qqsp_DistAccessException
    Detected at: qqdo_PartitionMgr::StopLocation at 1
    Error Time: Tue Dec 02 12:56:00
    Distributed method called:
    qqrt_ForteExecAgentProxy.LoadPartition!6
    (object name Unnamed) from partition "Forte_Executor",
    (partitionId =
    F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9, taskId =
    [F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9.229]) in
    application
    "FTLaunch_cl0", pid 65 on node DWILBUR_NTWS in environment
    CentralEnv
    Exception occurred (locally) on partition "Express_cl7_Client",
    (partitionId = F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9:0x3,
    taskId =
    [F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9:0x3.226]) in
    application
    "FTLaunch_cl0", pid 65 on node DWILBUR_NTWS in environment
    CentralEnv.
    INFORMATION: Network partner closed connection. This usually means
    the
    process at the other end of the wire failed. Please go look there
    and
    find
    out why.
    Class: qqsp_DistAccessException
    Detected at: qqcm_HoseFSM::ReceivedClose at 2
    Error Time: Tue Dec 02 12:56:00
    Exception occurred (locally) on partition "Express_cl7_Client",
    (partitionId = F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9:0x3,
    taskId =
    [F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9:0x3.226]) in
    application
    "FTLaunch_cl0", pid 65 on node DWILBUR_NTWS in environment
    CentralEnv.
    INFORMATION: Received close: Connection aborted (10053).
    Class: qqsp_DistAccessException
    Detected at: qqcm_HoseFSM::ReceivedClose at 1
    Error Time: Tue Dec 02 12:56:00
    Exception occurred (locally) on partition "Express_cl7_Client",
    (partitionId = F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9:0x3,
    taskId =
    [F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9:0x3.226]) in
    application
    "FTLaunch_cl0", pid 65 on node DWILBUR_NTWS in environment
    CentralEnv.
    =======================
    Log messages on server:
    =======================
    Attached to manager for node admin2.
    aud Tue Dec 2 09:34:36 : Loading partition
    testacadprogoffer_cl0_Part2
    built on <unknown>.
    Attached to manager for node admin2.
    aud Tue Dec 2 09:41:58 : Shutting down partition as requested.
    aud Tue Dec 2 09:41:59 : Unloaded partition
    testacadprogoffer_cl0_Part2.
    aud Tue Dec 2 09:49:44 : Loading partition
    testacadprogoffer_cl0_Part2
    built on <unknown>.
    Attached to manager for node admin2.
    aud Tue Dec 2 10:00:11 : Shutting down partition as requested.
    aud Tue Dec 2 10:00:12 : Unloaded partition
    testacadprogoffer_cl0_Part2.
    aud Tue Dec 2 10:18:34 : Loading partition
    testacadprogoffer_cl0_Part3
    built on <unknown>.
    Attached to manager for node admin2.
    aud Tue Dec 2 10:27:00 : Shutting down partition as requested.
    aud Tue Dec 2 10:27:00 : Unloaded partition
    testacadprogoffer_cl0_Part3.
    aud Tue Dec 2 10:47:03 : Loading partition
    EvaluateApplRequirementsBO_CL0_Part1 built on <unknown>.
    Attached to manager for node admin2.
    aud Tue Dec 2 11:09:26 : Shutting down partition due to failure of
    agent
    owner's partition.
    aud Tue Dec 2 11:09:26 : Shutting down partition as requested.
    aud Tue Dec 2 11:09:26 : Unloaded partition
    EvaluateApplRequirementsBO_CL0_Part1.
    aud Tue Dec 2 12:36:14 : Loading partition
    testacadprogoffer_CL0_Part1
    built on <unknown>.
    Attached to manager for node admin2.
    aud Tue Dec 2 12:45:17 : Shutting down partition as requested.
    aud Tue Dec 2 12:45:17 : Unloaded partition
    testacadprogoffer_CL0_Part1.
    FATAL ERROR: Out of Memory (reason = qqOS_MM_EX_OUT_OF_MEMORY)
    FATAL ERROR: Out of Memory (reason = qqOS_MM_EX_OUT_OF_MEMORY)
    Task 11: qqcm_HoseRecvServiceTask::Run: Caught unexpected exception
    FATAL ERROR: ************* Out of Memory, requested (1K) available
    (0K)
    Class: qqsp_ResourceException with ReasonCode: SP_ER_OUTOFMEMORY
    Detected at: qqos_MemoryManager
    Error Time: Tue Dec 2 12:49:01
    Exception occurred (locally) on partition "Forte_Executor",
    (partitionId = F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10f3, t
    askId = [F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10f3.11]) in
    application
    "Forte Runtime", pid 14020 on node admin2 in environ
    ment CentralEnv.
    FATAL ERROR: ************* Out of Memory, requested (1K) available
    (0K)
    Class: qqsp_ResourceException with ReasonCode:
    SP_ER_OUTOFMEMORY
    Detected at: qqos_MemoryManager
    Error Time: Tue Dec 2 12:48:57
    FATAL ERROR: Out of Memory (reason = qqOS_MM_EX_OUT_OF_MEMORY)
    FATAL ERROR: Out of Memory (reason = qqOS_MM_EX_OUT_OF_MEMORY)
    ERROR: TMgr.RunThread: task cm.Recv failed terminating.
    Probably caused by a FATAL exception.
    David Wilbur email: [email protected]
    University of Windsor phone: 519-253-3000 ext. 2779
    Windsor, Ontario Canada

  • Access to a FG from another running program

    Group, Is there any way to "get a hold of" a reference of a functional global running inside another vi?  I have a program that uses a functional global to pass data between vi's of a program.  I have this program starting up as a service when I start the computer so I don't really have access to its front panel.  Part of the data that the FG holds is a STOP flag and will shut down mulitple parts of this program.  I would like to build another program that I can start and run at will that will set the STOP flag in the "hidden" running program.  I am not sure quite how to do this.
    Thanks
    Todd

    What you are essentially asking to do is to access an internal resouce of another program. Doesn't really matter if it's a LabVIEW program. In your case you could enable the ActiveX server for the other program so you can access the VI that way. The LabVIEW Help contains information on how to enable the ActiveX server for an app and how to use it from another application. You could also use shared variables. You can take a look at this overview for more ideas:
     Community: Inter-Application Communication

  • Does win8/8.1/10 kill long-running programs automatically as stated in specs? reasons why?

    does win8/8.1/10 kill/end-task long-running programs automatically as stated in specs? how specifically does it detect a locked-up process?
    has this been put into windows 7 at any time to make it similar to windows 8?
    Please supply accurate answers. thank you.
    My understanding the reason for this change was to handle locked-up programs.
    I do have a number of long-running processes. some examples of mine and scenarios for other users:
    simulations on a Workstation or HPC Server
    doing a directory tree walk on a hard disk with >=1TB of data
    reference articles I have found on the subject:
    windows 7
    http://windows.microsoft.com/en-us/windows/exit-program-not-responding#1TC=windows-7
    windows 8
    From some of what I understand, you can also get the "Program Not Responding" or similarly titled dialog box when:
    bug in the source code of the program in question. for instance, while(1){} such as forever loops (win7)
    similar program bug when declaring a function one way but defining it a different way and then calling it (mismatch in function signature) (win7)
    similar to above with DLLs in using MSVCRT*.DLL or other
    (?) can't remember for sure on this, but I think some badly formed calls or it was invalid values or data type mismatch to Win32 API can do this from buggy code. (win7)
    for (x=0; x < 16777216; x++) {your code here...} in other words, large values for loop termination (win7)
    this is a repost of http://answers.microsoft.com/en-us/windows/forum/windows_8-performance/does-win88110-kill-long-running-programs/d35c3c9e-c6f4-4bbf-846a-2041bf2167a0?tm=1427518759476
    here due to a request to do so.

    does win8/8.1/10 kill/end-task long-running programs automatically as stated in specs? how specifically does it detect a locked-up process?
    has this been put into windows 7 at any time to make it similar to windows 8?
    Please supply accurate answers. thank you.
    My understanding the reason for this change was to handle locked-up programs.
    Hi Jim,
    First, I have to admit that I'm not fully understanding the question, If a program is not responding, it means the program is interacting more slowly than usual with Windows, typically could be a confliction of software or hardware resources between
    two programs, lack of system resources, or a bug in the software or drivers. In that case, we can choose to wait or end the program. This design is similiar in Windows 7, Windows 8 and other OS.
    For deeper analysis, system determines whether the system considers that a specified application is not responding using a "IsHungAppWindow function",
    https://msdn.microsoft.com/en-us/library/ms633526.aspx
    And this link also give some explanation: Preventing Hangs in Windows Applicationshttps://msdn.microsoft.com/en-us/library/windows/desktop/dd744765%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396
    While I'm not a developer, to better understand this, I recommend you contact members in the MSDN Forum:
    https://social.msdn.microsoft.com/Forums/en-US/home
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Error when trying to run "Program - Publish FSG Report"

    We're using 11i (11.5.10.2) version
    I am trying to run 'Program - Publish FSG Report' but receiving the following error message in the View log file on "Financial Statement Generator (XML Report Publisher)".
    XML Report Publisher 5.0
    Updating request description
    Waiting for XML request
    Retrieving XML request information
    Preparing parameters
    Process template
    --XDOException
    java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
         at java.lang.reflect.Method.invoke(Method.java:611)
         at oracle.apps.xdo.common.xml.XSLT10gR1.invokeParse(XSLT10gR1.java:473)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:188)
         at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:156)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:916)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:869)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:204)
         at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1497)
         at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:913)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:1766)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:1277)
         at oracle.apps.xdo.oa.cp.JCP4XMLPublisher.runProgram(JCP4XMLPublisher.java:807)
         at oracle.apps.fnd.cp.request.Run.main(Run.java:148)
    Caused by: oracle.xdo.parser.v2.XMLParseException: End tag does not match start tag 'fsg:RptLine'.
         at oracle.xdo.parser.v2.XMLError.flushErrors1(XMLError.java:324)
         at oracle.xdo.parser.v2.XMLReader.popXMLReader(XMLReader.java:526)
         at oracle.xdo.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1287)
         at oracle.xdo.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:314)
         at oracle.xdo.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:281)
         at oracle.xdo.parser.v2.XMLParser.parse(XMLParser.java:266)
         ... 16 more
    Ref Publish FSG: Error: XML: XDOException, End Tag Does Not Match Start Tag [ID 339009.1]
    I tried to apply the patch#12700905, then retest the issue, but I receiving the following error message in the output file on "Program - Publish FSG Report"
    DECLARE
    ERROR at line 1:
    ORA-06550: line 133, column 8:
    PLS-00306: wrong number or types of arguments in call to 'SUBMIT_XML_REQUEST'
    ORA-06550: line 133, column 5:
    PL/SQL: Statement ignored
    Has anybody can help me?
    Thanks
    Sam

    Hi Sam.
    You will need to apply Patch 5728162 . To see the complete solution see MOS Doc ID 787396.1
    Hope this helps.
    Octavio

  • Payment Run program for china country code

    Hi all,
    We have a requirement where, after running a payment program we need a generate a dme file. till now we were using rffod__u which is for derman,
    But our requirement is for china.
    Can anyone suggest which is the payment run program that is used for china.
    Please give replies as early as possible
    Thanks and Regards
    Veda

    Hi,
    you can go to F110 T.CODE
    Run date:Todays date
    Identification:Country and any number.
    It should help you.
    *reward points if it useful.
    regards

  • Payment Run Program (FPY1)

    Hello Experts,
    I am trying to understand payment run process (FPY1) and outbound direct debit file generation using standard transactions. We are using NACHA defined ACH format (which is a standard format used by US based banks). I found below event Modules for Payment Medium Formats: FKK_PAYMEDIUM_ACH_00, FKK_PAYMEDIUM_ACH_20, FKK_PAYMEDIUM_ACH_30, FKK_PAYMEDIUM_ACH_40. Unfortunately I am not able to determine their usefulness.
    As per my understanding FPY1 updates DPAYH table and then run program "SAPFKPY3" to generate a file but then whats the use of function modules mentioned above?
    Also, when I ran "SAPFKPY3" it generated message saying "Format ACH: No payment mediums created - No payment media were created for payment group 0 for format ACH." I am damn sure I am missing something, but don't know what.
    Any suggestions would be of great help. Thanks.
    Kind Regards,
    Nikhil J.

    Hi Nikhil,
    The FMs that you have mentioned in your post are used to create the ACH format file that is send to the banks.
    FKK_PAYMEDIUM_ACH_20-For File Header
    FKK_PAYMEDIUM_ACH_30-For Batch header
    FKK_PAYMEDIUM_ACH_40-For Payment Details
    You can view these FMs by going to Transaction Code-FQP3. Select in the ACH format and clicking on "Event Module for Payment medium formats.
    So, the ACH file that gets created during the FPY1 run is actually done by the standard program SAPFKPY3 with the help of these preconfigured FM's linked to the ACH payment medium format.
    Now to the error that you are getting.Firstly Check whether the payment proposal list is getting generated or not.
    If the payment proposal is not there, then there is some basic problem in the configuration settings. 
    (a) Check the company code for which you are running the  FPY1 run, is the Payment medium linked with that in the config.
    IMG->Financial Accounting->Contract Accounts Receivable and Payable->Payments->Incoming/Outgoing Payment Creation->
    Define Payment Methods
    IMG->Financial Accounting->Contract Accounts Receivable and Payable->Payments->Incoming/Outgoing Payment Creation->
    Define Specifications for Paying Company Code
    If the payment proposal is there, then the problem is only there in the payment medium format.
    (a) Check the FM's are linked to the ACH format in FQP3.
    (b) Note 1064779 also involves some manual activities to be performed apart from the code changes.
         The manual activites are as follows and has to be perfomed one after another.
    Hope it helps....
    Thanks,
    Amlan

  • Cannot write the suitable source codes for running program

    I want to write a program that help student to compile program and run program by using some test cases. For the compiled part, i have been wrote it successfully, but for the run part, i cannot pass the test cases to the program for running. Could any ppl help me to find the problem on the followng codes, why the error will on there? how do i change it? Thanks!
    //<!--start get Program Test Case File-->
    java.io.BufferedReader TestCaseBuf = null;
    Connection con = null;
    Statement stmt = null;
    ResultSet rs = null;
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    con = DriverManager.getConnection("jdbc:odbc:compas", "sa", "password");
    stmt = con.createStatement();
    String strSQL = "SELECT testValue FROM TEST_CASE WHERE progID='"+progID+"'";
    stmt = con.createStatement();
    rs = stmt.executeQuery(strSQL);
    try
    while (rs.next())
    TestCaseBuf = new java.io.BufferedReader(new java.io.InputStreamReader(rs.getBinaryStream("testValue")));                         
    finally
    if (rs != null)
         rs.close();
    if (stmt != null)
         stmt.close();
    //<!--end get Program Test Case File-->
    //<!--start run program -->
    String[ ] args2 = new String[ ]
         "java", "-cp", System.getProperty("user.dir"), FileName
    try
         Runtime rt = Runtime.getRuntime();
         Process proc = rt.exec(args2);
         java.io.BufferedReader ireader = new java.io.BufferedReader(new java.io.InputStreamReader(proc.getInputStream()));
         java.io.PrintWriter pwriter = new java.io.PrintWriter(proc.getOutputStream());
    String atestcase = null;
         String line= null;
         try
    while ((atestcase = TestCaseBuf.readLine()) != null) <------------I found that error seems on here!!!!
         pwriter.write(atestcase+"\r");
    pwriter.flush();     
    if (atestcase != null)
              if ((line = ireader.readLine()) != null)
              FileOutput = FileOutput + line +"\r\n";
    else {break; }
         } //while
         catch (java.io.IOException e)
         out.println("[IOException]. Printing Stack Trace");
         e.printStackTrace();
         pwriter.close();
         ireader.close();
    catch (java.io.IOException e)
    out.println("[IOException]. Printing Stack Trace");
    e.printStackTrace();
    //<!--end run program -->

    Whats the error message??
    Just a guess, but could be (without seeing the error) that you've already closed the TestCaseBuf reader by closing the result set, hence when you go to read it, you're reading on closed reader.
    Give this a go...Put the //<!--run program --> code into the result set while loop
    while (rs.next())
    TestCaseBuf = new java.io.BufferedReader(new java.io.InputStreamReader(rs.getBinaryStream("testValue")));
    //<!--start run program -->
    ...some code
    //<!--end run program -->
    } Hard to tell without the error message

  • How to get main class name in running program?

    How can I get classname, which main method is executed? Of course in running program?
    Please help,
    Chris

    Something like (not tested this)StackTraceElement[] foo = new Throwable().getStackTrace();
    String whichClass = foo[foo.length-1].getClassName();

  • Workflow  fo payment run program F110 ;  Create new one

    Hi All,
      I am very new to Workflow concept.. I have the requirement to define
      the work flow for and trigger it from custion report based on some conditions for
      Pyment run program data.
      the requirement is:  Need to send email ntification to Apropriate person.
    Can any one know how to create custom work low and how to trigger it from
    custom report?  please send me some detail steps to proceed further..
    Its very urgent it seems..
    Thanks,

    Well, rag rao, you have come to the wrong place then. This is a voluntary service so don't expect people to respond 'urgently to your requests. The other issue is, you are asking for step by step guide to design a workflow, are you aware that there is <b>plenty</b> of this info on SAP Help!
    Finally, I think you should come clean and say to your employer/team lead that you have no workflow skills but will need more time to develop.

  • Exception "Cannot run program" while using ProcessBuilder class

    Hi Java-Folks,
    I try to start a program within a Java application using the ProcessBuilder class. This is the first time I use ProcessBuilder so I do not have any deep knowledge of it. Here is a snippet of my code:
    static void connectToHost(String Host) {
    ProcessBuilder pb = new ProcessBuilder("connect.exe"), Host);
    Map<String, String> env = pb.environment();
    env.put("SHELLWIDTH", "64");
    pb.directory(new File("C:\\MyProgram\\ExApp\\shell"));
    try (
    Process p = pb.start();
    } catch (IOException ex) {
    Logger.getLogger(ShellUtil.class.getName()).log(Level.SEVERE, null, ex);
    }Using this method I get an IOException which says *"Cannot run program "connect.exe" (in directory "C:\MyProgram\ExApp\shell"): CreateProcess error=2, The system couldn't find the specified file"*
    Does anybody have an idea why this is not working? I tried to start another application like "notepad.exe" and that works fine. So it seems related to the fact
    that the program I want to start is only available in a certain directory and not via the PATH env-variable.
    I would appreciate any help or hint :-)
    Regards,
    Lemmy

    Okay I guess I misinterpreted the JavaDocs regarding the directory method. The exception message is a little bit confusing too, because it seems like Java tries to find the Application within the specified
    working directory.
    I tried to use the full path with the ProcessBuilder constructor and it looks like this variant is working. I still have some trouble with the application itself but I was able to start another program which is
    not in the PATH var, using the full path to the executable.
    Thanks for the help so far.
    Bye
    Lemmy

  • Run Program activity not exiting

    I'm running SCOrch 2012 R2 and am having trouble with a runbook hanging. Here are the facts
    My runbook executes a script (the code for which, I have included below) that gets a list of AD users and exports that list to a .csv file. 
    When run manually, from a Powershell window, the script executes and returns the expected file, before returning to the prompt.
    When run through the SCOrch, the script runs fine, with the output file created and the Powershell process exiting.
    The commands I'm using to execute the script manually and through the runbook, are the same (see below) and the run-as accounts are the same.
    The runbook never gets past the step that runs the Powershell script.
    The activity looks like this: 
    Command execution
    Command: cmd.exe /c | C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe –c "C:\it\getADUserProperties-Parameterized.ps1 -SearchPath 'ou=customer,dc=domain,dc=tld' -DomainName domain.tld | Export-Csv C:\it\userList.csv -NoTypeInformation"
    Run as account credentials specified
    The rest of the options are set to the default values
    The question is, why doesn't the Run Program activity close when powershell.exe exits? I know it won't matter, but here is the script anyway:
    <#
    .Synopsis
    Get Active Directory user list with a user-specified set of properties
    .DESCRIPTION
    Get a list of Active Directory users from a user-specified list of containers (or the root of the domain) and return a user-specified set of attributes.
    This script can connect to non-native domains (domains that the executing computer is not a member of) if DNS is configured properly. If accessing a
    non-native domain, the script will prompt for credentials.
    .NOTES
    Author: Mike Hashemi
    V1 date: 15 August 14
    .LINK
    .PARAMETER DomainName
    Defines which DNS domain to connect to.
    .PARAMETER SearchPath
    Default value = cn=users,dc=domain,dc=tld. This parameter represents the AD to search and can contain multiple values.
    .PARAMETER OutputProperties
    Default value = Name,Enabled. This parameter represents a comma-spearated list of AD attributes to return.
    .EXAMPLE
    .\getADUserProperties-Parameterized.ps1 -DomainName domain.tld
    This example will output the name and enabled status of all users in "cn=users,DC=domain,DC=tld" and below.
    .EXAMPLE
    .\getADUserProperties-Parameterized.ps1 -OutputProperties name,telephoneNumber | Export-Csv C:\userList.csv -NoTypeInformation
    This example will output the name and telephone number of all users in "cn=users,DC=domain,DC=tld" and below. Output will be sent to c:\userList.csv.
    #>
    [CmdletBinding()]
    param(
    [Parameter(Mandatory=$True)]
    [string]$DomainName,
    [string[]]$SearchPath = 'cn=users,DC=domain,DC=tld',
    [string]$OutputProperties = 'Name,Enabled'
    Import-Module ActiveDirectory
    If ((Get-Module ActiveDirectory -ErrorAction SilentlyContinue) –eq $null) {
    Write-Error "This script requires the Powershell Module: 'ActiveDirectory'. Please make sure you've got the correct tools installed."
    Exit
    Else {
    Foreach ($ou in $SearchPath) {
    Try {
    Write-Verbose ("Getting users from {0}." -f $ou)
    Get-ADUser -Filter * -SearchBase $ou -Properties $OutputProperties.Split(",") -Server $DomainName | Select $OutputProperties.Split(",")
    Catch [System.Security.Authentication.AuthenticationException] {
    Write-Output ("Connection failed. Prompting for credentials to {0}" -f $DomainName)
    $cred = Get-Credential -Message "Enter credentials for $DomainName."
    Write-Verbose ("Getting users from {0}. with user: {1}" -f $ou, $cred.Username)
    Get-ADUser -Filter * -SearchBase $ou -Properties $OutputProperties.Split(",") -Server $DomainName -Credential $cred | Select $OutputProperties.Split(",")
    Thanks.

    mhashemi,
    I had a simliar issue as you did where my runbook would run until it got to the "Run .Net Script" Activity and then the Runbook would just stop. What I found was you can not have the command "Exit" in your script. The command "Exit"
    will force the Activity to close and will not output any variables.
    I am not the only one to find this issue.
    Check out the article labeled
    "Run .Net Script (powershell), "exit" and published data" on technet under
    System Center Orchestrator > System Center Orchestrator - General
    (not able to post the link, I am restricted)
    Doesn't sound like there is going to be a fix anytime soon
    Hope this helps
    -Ozarkclay

  • Error running program AI_CRM_CPY_PROCTYPE in SOLMAN 7.1

    Hi Gurus.
    I'm trying to run program AI_CRM_CPY_PROCTYPE  to copy transaction type SMIN to ZMIN in SOLMAN 7.1 SP3.
    When I choose button "start copy process", the program terminates with error "ASSIGN_BASE_TOO_SHORT".
    Do I need to change something in the screen before I choose the "start copy process"? Can you please help me how to correctly run this report to copy transaction type.
    The Central Correction Note for was already applied in our SOLMAN system.
    Thanks,
    Tess

    Hi,
    In SOLMAN 7.1, Use SOLMAN_SETUP, and go to IT Service Management-> Change Request Management.
    Apply the master note for Charm in step and in Step 3, Copy Transaction Type via Report.
    Please use the above method, it should work.
    Regards,
    Sunny

  • Want to resize JTable after run programe by mouse

    I want to resize JTable by mouse after run programe.
    (want to resize Jtable anytime)
    please help me. thank you

    You cannot do that directly, you can only cause the container which holds the JTable to change size. As long as that container has a LayoutManager like BorderLayout then the JTable will resize with the container (Like a JFrame)

Maybe you are looking for

  • Word wrap with JTextPane

    Ok, at the risk of sounding stupid: How do you turn off the word wrap on a JTextPane. Thanks in advance, Ed

  • Problems when printing Sapscript...

    We have imported a number Sapscripts in Russian into our unicode system. Looking at the Sapscript I can see Russian text in both the first and next page of the form. However, when printing the first page looks perfect and displays in Russian, however

  • Mac OS X 10.6 fullscreen video menu bar

    this is wired, the same thing happened in the 10.1 flash player beta and took quite some time for adobe to figure that out. When i go in fullscreen video (yutube,vimeo) with Flash Player 11 Beta the Menu Bar just doesn´t disappear. it stays on top of

  • 3GS is getting error 3194 while trying to update to ios4.3.3

    I understand that it's to prevent downgrading the firmware, but I am not doing this. I am updating from ios4.0.1 and itunes gives me 3194 every time. I also have not jailbroken it nor do I want to. How can I fix this problem and just get the firmware

  • I bought PE 13 italian, but want now to have/use PE13 english due to better doc/material available

    I have product key for Photoshop Elements 13 and Premeier Elements 13 italian versions. Now... the PDF manuals in italian are stuck to ver11, while english pdf manuals are updated to ver13; I also bought an Adobe book - PSE13 classroom in a book - th