What is Processing Method and Processing Class in Action Profile

Dear all,
I have defined an action for case management, to trigger an email after saving the case in Enterprise portal.
Action is getting initiated in case document after saving, but after a while it is showing message 'Incorrect'.
In the actions monitor report, error message showing that some problem in Processing Method.
In my action I have maintained settings as below.
Form name - SCMG_SMART_FORM_CASE
Processing class - CL_SCMG_CASE_CONTEXT_PPF
But I don't know what processing method should I give
I could not find and values under F4 functionality.
Please do advice me what method I can use here.
and why we use processing method and processing class.
your help will be highly appreciated.
Thank you
Raghu ram

Hi
DSD means Daily Salary Deduction for more check this table to understand abd DSD and the respective Processing class 77 V_T7INO1

Similar Messages

  • Final method and final class

    What is final method and final class in abap objects.

    ejp wrote:
    Since that doesn't work--or would overyy complex to implement... would be impossible to implement. Once the method-local copy goes out of existence, ipso facto it can never be changed. This is the whole point.I consider it impossible too, but I'm not a language/compiler/runtime expert, so I allowed for the possibility that there could be some way to do it--e.g. local variables that are references in inner classes live on the heap instead of the stack, or something. My point isn't that it's possible, just that if it were somehow to be done, it would by ugly, so we may as well consider it impossible--it just ain't gonna happen.
    we go with the logic, "Okay, we need to copies, but keeping them in sync is a nightmareNo, it is +meaningless.+No, it's not meaningless. If we have the two copies, and they're not final, then after the inner object is created, the method can continue running, and either the method or the inner object could modify its copy. As far as our code knows, it's the same variable, so there'd have to be some way to keep them in sync. That's either impossible or undesirably complex--like the above, it doesn't matter which--so it's final in order to get past the issue of keeping the copies in sync.

  • What is the cost and process for factory refurbish of a tx2-1375dx with a blown system board?cc=us

    What is the cost and process for factory refurbish of a tx2-1375dx with a blown system board?
    How would one go about arranging for such service?
    Why is it impossible to contact a real human for support, either via online chat or phone? 

    Last I checked I am a real human, it is just that I do not work for HP and can't speak for them. HP would not be the place I would go for a "refurbish" job. They charge an arm and a leg for out of warranty service. You simply need to find someone to replace the system board (motherboard). It is also very likely on that model that you could have your system board repaired. There are many services on ebay that will repair the motherboard at the component level. The cost would be at or under $100 or so. I have more advice to give but many times I write a detailed response only to have the user never come back. I do check my posts so if you want more ideas just please respond. The tx2-1000 was one of the models affected by the nVidia issue that caused so many HP laptops made in the 2007-2009 era to fail prematurely. 

  • PROCESSING.EVALUATION AND CUMULATION CLASS

    Hi,
    Can anyone send me the link/document for processing ,cumulation and evaluation class.
    I want to complete usage .
    I tried searching in forum but in vein.
    Regards
    Ananthi.M
    https://forums.sdn.sap.com/click.jspa?searchID=20061980&messageID=4685459
    https://forums.sdn.sap.com/click.jspa?searchID=20061980&messageID=4605028
    processing class
    I got these From the forum search                                                                               
    Regards
    Ananthi.M
    Edited by: Sikindar on Feb 18, 2010 1:27 PM

    I got these From the forum search                                                                               
    https://forums.sdn.sap.com/click.jspa?searchID=20061980&messageID=4685459
    https://forums.sdn.sap.com/click.jspa?searchID=20061980&messageID=4605028
    processing class
    Edited by: Sikindar on Feb 18, 2010 1:30 PM

  • What are process type and process variant in process chain?

    hi all,
    Can anyone explain me what is process type and process variant in process chain ?
    regds
    hari

    Hi Hari,
    this is standard SAP Links, u may understand ....
    http://help.sap.com/saphelp_nw04/helpdata/en/6e/192756029db54192427cf6853c77a7/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/67/13843b74f7be0fe10000000a114084/content.htm
    Thanks, KR

  • Transaction code to find Process message and Process Instruction

    Hi
    I am new to PP module
    Where do i find (In which Transaction) the list of
    a) Process Message Category
    b) Process message
    c) Process Instruction Category
    in SAP ERP system??
    Regards
    Sweety

    Hi
    Thank u all for responding
    Still I was not able to find certain Process Messages like YQ_AIR, YQ_RPM, YQ_TEMP, YQ_CONS, YQ_PHCO, YQ_PHCO2.
    and Process Instructions like
    YQ_AIR, YQ_ENDPI,YQ_HEAD, YQ_INSTR, YQ_LAY, YQ_MATLI, YQ_PROD, YQ_PTEXT,YQ_RPM, YQ_TEMP, YQ_CON1, YQ_CON2..
    do I need to do some (Basis) configuration to get these?? or the above mentioned Process Messages and Process Instructions are not pre defined??
    Regards
    Sweety

  • What is attribute changerun and process chain?

    hi experts,
    what is attribute changerun and processchain. pl explain these two with a business case.
    thanks & regards
    venkat

    Hi Venkata,
    For attribute changerun,
    It's used after you change (add/delete/modify) attribute in the master data. You've to make it in order to have an effect after you modify it.
    To get it :
    1. tcode : RSA1.
    2. Tools -> Apply Hierarchy/Attribute Change
    3. tap on Info-object list button (checking what master data you've modified before).
    4. tap on selection button for type of job
    5. Execute.
    link(s):
    http://help.sap.com/saphelp_nw2004s/helpdata/en/80/1a67ece07211d2acb80000e829fbfe/frameset.htm
    For process chain,
    Using this you can make a flow of process sequentially.
    e.g.
    the flow :
    1. generate program YWS001
    2. get the data from table zcrm001
    3. load data to ods : zods_001
    link(s):
    http://help.sap.com/saphelp_nw04/helpdata/en/8f/c08b3baaa59649e10000000a11402f/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/6e/192756029db54192427cf6853c77a7/content.htm
    Hopefully it can helps you a lot ..
    Regards,
    Niel
    (Many thanks for any points you choose to assign).

  • Process.getInputStream() and process.waitfor() block in web application

    Hi folks,
    i am really stuck with a problem which drives me mad.....
    What i want:
    I want to call the microsoft tool "handle" (see http://www.microsoft.com/technet/sysinternals/ProcessesAndThreads/Handle.mspx) from within my web-application.
    Handle is used to assure that no other process accesses a file i want to read in.
    A simple test-main does the job perfectly:
    public class TestIt {
       public static void main(String[] args){
          String pathToFileHandleTool = "C:\\tmp\\Handle\\handle.exe";
          String pathToFile = "C:\\tmp\\foo.txt";
          String expectedFileHandleSuccessOutput = "(.*)No matching handles found(.*)";
          System.out.println("pathToFileHandleTool:" + pathToFileHandleTool);
          System.out.println("pathToFile: " + pathToFile);
          System.out.println("expectedFileHandleSuccessOutput: " + expectedFileHandleSuccessOutput);
          ProcessBuilder builder = null;
          // check for os
          if(System.getProperty("os.name").matches("(.*)Windows(.*)")) {
             System.out.println("we are on windows..");
          } else {
             System.out.println("we are on linux..");
          builder = new ProcessBuilder( pathToFileHandleTool, pathToFile);
          Process process = null;
          String commandOutput = "";
          String line = null;
          BufferedReader bufferedReader = null;
          try {
             process = builder.start();
             // read command output
             bufferedReader = new BufferedReader(new InputStreamReader(process.getInputStream()));
              while((line = bufferedReader.readLine()) != null) {
                 commandOutput += line;
              System.out.println("commandoutput: " + commandOutput);
             // wait till process has finished
             process.waitFor();
          } catch (IOException e) {
             System.out.println(e.getMessage());
             e.printStackTrace();
          }  catch (InterruptedException e) {
             System.out.println(e.getMessage());
             e.printStackTrace();      }
          // check output to assure that no process uses file
          if(commandOutput.matches(expectedFileHandleSuccessOutput))
             System.out.println("no other processes accesses file!");
          else
             System.out.println("one or more other processes access file!");
    } So, as you see, a simple handle call looks like
    handle foo.txtand the output - if no other process accesses the file - is:
    Handle v3.2Copyright (C) 1997-2006 Mark RussinovichSysinternals - www.sysinternals.com
    No matching handles found.
    no other processes accesses file!(Wether the file exists or not doesnt matter to the program)
    If some processes access the file the output looks like this:
    commandoutput: Handle v3.2Copyright (C) 1997-2006 Mark RussinovichSysinternals - www.sysinternals.com
    WinSCP3.exe        pid: 1108    1AC: C:\tmp\openSUSE-10.2-GM-i386-CD3.iso.filepart
    one or more other processes access file!So far, so good.........but now ->
    The problem:
    If i know use the __exact__ same code (even the paths etc. hardcoded for debugging purposes) within my Servlet-Webapplication, it hangs here:
    while((line = bufferedReader.readLine()) != null) {if i comment that part out the application hangs at:
    process.waitFor();I am absolutely clueless what to do about this....
    Has anybody an idea what causes this behaviour and how i can circumvent it?
    Is this a windows problem?
    Any help will be greatly appreciated.....
    System information:
    - OS: Windows 2000 Server
    - Java 1.5
    - Tomcat 5.5
    More information / What i tried:
    - No exception / error is thrown, the application simply hangs. Adding
    builder.redirectErrorStream(true);had no effect on my logs.
    - Tried other readers as well, no effect.
    - replaced
    while((line = bufferedReader.readLine()) != null)with
    int iChar = 0;
                  while((iChar = bufferedReader.read()) != -1) {No difference, now the application hangs at read() instead of readline()
    - tried to call handle via
    runtime = Runtime.getRuntime();               
    Process p = runtime.exec("C:\\tmp\\Handle\\handle C:\\tmp\\foo.txt");and
    Process process = runtime.exec( "cmd", "/c","C:\\tmp\\Handle\\handle.exe C:\\tmp\\foo.txt");No difference.
    - i thought that maybe for security reasons tomcat wont execute external programs, but a "nslookup www.google.de" within the application is executed
    - The file permissions on handle.exe seem to be correct. The user under which tomcat runs is NT-AUTORIT-T/SYSTEM. If i take a look at handle.exe permission i notice that user "SYSTEM" has full access to the file
    - I dont start tomcat with the "-security" option
    - Confusingly enough, the same code works under linux with "lsof", so this does not seem to be a tomcat problem at all
    Thx for any help!

    Hi,
    thx for the links, unfortanutely nothing worked........
    What i tried:
    1. Reading input and errorstream separately via a thread class called streamgobbler(from the link):
              String pathToFileHandleTool = "C:\\tmp\\Handle\\handle.exe";
              String pathToFile = "C:\\tmp\\foo.txt";
              String expectedFileHandleSuccessOutput = "(.*)No matching handles found(.*)";
              logger.debug("pathToFileHandleTool: " + pathToFileHandleTool);
              logger.debug("pathToFile: " + pathToFile);
              logger.debug("expectedFileHandleSuccessOutput: " + expectedFileHandleSuccessOutput);
              ProcessBuilder builder = new ProcessBuilder( pathToFileHandleTool, pathToFile);
              String commandOutput = "";
              try {
                   logger.debug("trying to start builder....");
                   Process process = builder.start();
                   logger.debug("builder started!");
                   logger.debug("trying to initialize error stream gobbler....");
                   StreamGobbler errorGobbler = new StreamGobbler(process.getErrorStream(), "ERROR");
                   logger.debug("error stream gobbler initialized!");
                   logger.debug("trying to initialize output stream gobbler....");
                   StreamGobbler outputGobbler = new StreamGobbler(process.getInputStream(), "OUTPUT");
                   logger.debug("output stream gobbler initialized!");
                   logger.debug("trying to start error stream gobbler....");
                   errorGobbler.start();
                   logger.debug("error stream gobbler started!");
                   logger.debug("trying to start output stream gobbler....");
                   outputGobbler.start();
                   logger.debug("output stream gobbler started!");
                   // wait till process has finished
                   logger.debug("waiting for process to exit....");
                   int exitVal = process.waitFor();
                   logger.debug("process terminated!");
                   logger.debug("exit value: " + exitVal);
              } catch (IOException e) {
                   logger.debug(e.getMessage());
                   logger.debug(e);
              }  catch (InterruptedException e) {
                   logger.debug(e.getMessage());
                   logger.debug(e);
         class StreamGobbler extends Thread {
              InputStream is;
             String type;
             StreamGobbler(InputStream is, String type) {
                 this.is = is;
                 this.type = type;
             public void run() {
                  try {
                     InputStreamReader isr = new InputStreamReader(is);
                     BufferedReader br = new BufferedReader(isr);
                     String line=null;
                     logger.debug("trying to call readline() .....");
                     while ( (line = br.readline()) != null)
                         logger.debug(type + ">" + line);   
                 } catch (IOException ioe) {
                         ioe.printStackTrace(); 
         }Again, the application hangs at the "readline()":
    pathToFileHandleTool: C:\tmp\Handle\handle.exe
    pathToFile: C:\tmp\openSUSE-10.2-GM-i386-CD3.iso
    expectedFileHandleSuccessOutput: (.*)No matching handles found(.*)
    trying to start builder....
    builder started!
    trying to initialize error stream gobbler....
    error stream gobbler initialized!
    trying to initialize output stream gobbler....
    output stream gobbler initialized!
    trying to start error stream gobbler....
    error stream gobbler started!
    trying to start output stream gobbler....
    output stream gobbler started!
    waiting for process to exit....
    trying to call readline().....
    trying to call readline().....Then i tried read(), i.e.:
         class StreamGobbler extends Thread {
              InputStream is;
             String type;
             StreamGobbler(InputStream is, String type) {
                 this.is = is;
                 this.type = type;
             public void run() {
                  try {
                     InputStreamReader isr = new InputStreamReader(is);
                     BufferedReader br = new BufferedReader(isr);
                     logger.debug("trying to read in single chars.....");
                     int iChar = 0;
                     while ( (iChar = br.read()) != -1)
                         logger.debug(type + ">" + iChar);   
                 } catch (IOException ioe) {
                         ioe.printStackTrace(); 
         }Same result, application hangs at read()......
    Then i tried a dirty workaround, but even that didnt suceed:
    I wrote a simple batch-file:
    C:\tmp\Handle\handle.exe C:\tmp\foo.txt > C:\tmp\handle_output.txtand tried to start it within my application with a simple:
    Runtime.getRuntime().exec("C:\\tmp\\call_handle.bat");No process, no reading any streams, no whatever.....
    Result:
    A file C:\tmp\handle_output.txt exists but it is empty..........
    Any more ideas?

  • Process chain AND process

    Hi,
    I have a process chain that has two parallel processes of loading DSO and Infocube data. There are two infopackages on one side and two on the other side. The two processes are connected with and AND process at the end and after that there is a datastore activation process.
    When I executed the process chain, the infopackages on both sides started loading data. The two infopackages on the left side finished first while the second infopackage on the right side had not finished yet when the AND process errored. I get the following message:
    This AND process is not waiting for event RSPROCESS , parameter
    47VKUORHMXQKR2AN73AVAR0C9
    After the AND process I have a Datastore generation process and I want it to continue only when all infopackages have been loaded.
    Why does the process stop at AND even though all infopackages have not finished yet?
    thanks
    Michalis

    There was no error message in ST22 or SM37. There was very little info to go on. I just deleted the requests and run the process chain again and there's no error. However the process chain does fail at a later step.
    Update Datastore Object Data (Further update)
    I don't know what that further update is for. It was automatically selected in my Process chain when I selected the infopackage for the DSO.
    There's a MESSAGE_TYPE_X error.
    Information on where terminated
        Termination occurred in the ABAP program "SAPLRSM2" - in "RSSM_MON_WRITE_3".
        The main program was "RSBATCH1 ".
        In the source code you have the termination point in line 2659
        of the (Include) program "LRSM2U16".
        The program "SAPLRSM2" was started as a background job.
        Job Name....... "BI_PROCESS_ODSPROCESS"
        Job Initiator.. "CSPAPADM"
        Job Number..... 14103000
    Source Code Extract
    Line  SourceCde
    2629       CALL FUNCTION 'RSSM_GET_TIME'
    2630         EXPORTING
    2631           i_datum_utc  = rsreqdone-tdatum
    2632           i_uzeit_utc  = rsreqdone-tuzeit
    2633         IMPORTING
    2634           e_timestamps = l_s_status-t_timestamp.
    2635       IF rsreqdone-tstatus(3) = icon_green_light(3) OR
    2636          rsreqdone-tstatus(3) = icon_red_light(3).
    2637         CALL FUNCTION 'RSSM_GET_TIME'
    2638           IMPORTING
    2639             e_timestamps = l_s_status-ts_proc_ended.
    2640         l_not_yellow = 'X'.
    2641       ENDIF.
    2642       IF l_not_yellow = 'X'.
    2643         CALL FUNCTION 'RSSTATMAN_SET_STATUS'
    2644           EXPORTING
    2645             i_s_status    = l_s_status
    2646             i_with_commit = 'X'.
    2647         IF l_s_status-t_status(3) = icon_green_light(3) AND
    2648            l_s_status-dta_type   = 'ODSO' AND
    2649            t_data-aufrufer <= '70'.
    2650           CALL FUNCTION 'RSS2_CALLBACK_ODSADM_ODS_SUCC'
    2651             EXPORTING
    2652               i_ods = l_s_status-dta(30)
    2653               i_rnr = l_s_status-rnr.
    2654         ENDIF.
    2655       ENDIF.
    2656     ENDLOOP.
    2657     IF sy-subrc <> 0.
    2658       IF t_data-aufrufer <> '09'.
    2660       ENDIF.
    2661     ELSE.
    2662       IF l_not_yellow = 'X'.
    2663         CALL FUNCTION 'RSB1_OSNAME_TO_ICNAME'
    2664           EXPORTING
    2665             i_osource        = g_s_minfo-oltpsource
    2666 *           I_OSTYPE         = RSAOT_C_OSTYPE-TRAN
    2667           IMPORTING
    2668             e_icname         = l_icname
    2669           EXCEPTIONS
    2670             name_error       = 1
    2671             OTHERS           = 2.
    2672         IF sy-subrc = 0.
    2673           CALL FUNCTION 'RSAWB_MAINTAIN_DTA'
    2674             EXPORTING
    2675               i_method                   = rsatr_c_dta_get
    2676 *             I_TYPE                     =
    2677               i_objvers                  = rs_c_objvers-active
    2678               i_dta                      = l_icname
    Any idea what that means? Also do I need that further update step in my process chain?

  • Difference betwn Process insturction and Process Message...

    Dear all,
    What is meant by Process Instruction category and Process Message category. what is the difference between this two and it is applicable in PI sheet.
    What is control recipe destination.
    pls explain this question clearly
    regards,
    s.sakthivel

    Hi,
    You can go through below links for better understanding...
    http://help.sap.com/saphelp_45B/helpdata/en/d5/e264b20437d1118b3f0060b03ca329/frameset.htm
    Process flow in Process industry
    Process Instruction Category
    Process Message Category
    Regards
    Edited by: Julfikar Ali on Aug 21, 2009 11:06 AM

  • What is isWeak method of DESKeySpec class doing?

    [Question.1]
    According to JavaDoc, isWeak method of DESKeySpec is checking if the given DES key material is weak or semi-weak.
    What is the method checking concretely?
    What do weak and semi-weak mean?
    [Question.2]
    I want to do the same check for AES key, but there isn't AESKeySpec class like DESKeySpec.
    Are there any ways to implement the check without isWeak method?

    Due to the way the DES algorithm works, it is possible for certain keys to give sub keys that reduce the cryptographic strength of the cipher. Some more details are at: http://en.wikipedia.org/wiki/Weak_key#Weak_keys_in_DES.
    AES does not have this test as the algorithm is considered to not have weak keys.
    Shane

  • ICR - Process 001 and Process 003 - Setting Ledgers

    Hello,
    I must create the ledgers (I1 and I3) for ICR Process 001 and 003, but I don't know as setting them.
    Can you help me?
    Thank you so much.
    Best regards
    Giampaolo

    Hello Giampaolo,
    BCF is not relevant for ICR in my opinion. Why do you need this?
    Best regards,
    Ralph

  • Process costs and process template

    Hi,
    Somebody may help me to clarify these problems:
    1. Which exact costs are included in the so-called "Process costs" in PS component?
    2. Is process template used to allocate only the overheads collected by costing sheet?
    Thanks in advance!

    Hi Aluri,
    i think ur chain is loading parallelly then after successfully completing both in parallel with "AND" option then after it was loading sequential.
    not worry if AND fails, AND option if for after successfull completion of parallel loads, it starts the next process, check r u getting REPEAT option?? then start the REPEAT, hope the chain runs successfull for remaining process.
    check in table RSPCPROCESSLOG, RSPCLOGS table
    execute the program /ssa/bwt
    and logs tab in RSA1, analyze the process.
    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.

  • Process Chains AND process error

    Hello all,
    I have process chain for weekly master data loading. In one step after loading master data we have AND process and there after Attribute Change Run process.
    When I ran process chain the Master Data load process is successful ( upto that it is green in log view ) . After this process AND process is showing RED.
    The display message is as follows:
    This AND process is not waiting for event RSPROCESS , parameter
    423HLT8HZUIQTNDHWZJFNPBRC
    Please let me know if any one has SOLUTION  to this. Thanks in advance.
    Yours
    SRM

    HI SRM,
    That means, The proess after AND is watining for one process, the same
    process which ur process waiting is already using by some other process.
    That means for one process two process chains are calling at a time.
    So this process chain failed due to the process is running by other process
    chain.
    Now, after 10 or 30 min run again your process chain. if it runs successfully
    then maintain the time gap between the two process chain which are using
    the same process.
    Hope the answers is suitable for u.
    Thanks
    Rajesh

  • Process.getInputStream and Process.getOutputStream

    Hi,
    I'm using JDK 1.4.0 for Linux. I need to execute an external program. Then get the output from the program and provide input to the program. Below is the code I wrote. This code works fine if I execute "passwd" to change password. But when I execute "scp2" or "ftp", it just blocks. I don't know why. I've spent days to figure out this problem. But I still haven't got a clue. I'd really appriciate help from you.
    Thanks.
    public class TestProcess {
    public static void main(String[] args) {
    System.
    try {
    Process p = Runtime.getRuntime().exec("scp2 /home/fms/txt root@localhost:./txt");
    //Process p = Runtime.getRuntime().exec("passwd");
    BufferedReader ireader = new BufferedReader(new InputStreamReader(p.getInputStream()));
    BufferedReader ereader = new BufferedReader(new InputStreamReader(p.getErrorStream()));
    PrintWriter writer = new PrintWriter(p.getOutputStream(), false);
    StreamReader inputReader = new StreamReader("Input", ireader);
    inputReader.start();
    StreamReader errorReader = new StreamReader("Error", ereader);
    errorReader.start();
    Thread.currentThread().sleep(20000);
    String password = "password\r\n";
    for (int i=0; i<password.length(); i++) {
    writer.write(password.charAt(i));
    writer.flush();
    Thread.currentThread().sleep(1);
    System.out.println("Password entered.");
    Thread.currentThread().sleep(20000);
    for (int i=0; i<password.length(); i++) {
    writer.write(password.charAt(i));
    writer.flush();
    Thread.currentThread().sleep(1);
    System.out.println("Password entered.");
    p.waitFor();
    ereader.close();
    ireader.close();
    writer.close();
    System.out.println(p.exitValue());
    } catch (Exception e) {
    System.out.println(e.getMessage());
    class StreamReader extends Thread {
    Reader input;
    int c;
    char[] chars = new char[1000];
    String line;
    String threadName;
    public StreamReader(String threadName, Reader input) {
    this.input = input;
    this.threadName = threadName;
    public void run() {
    try {
    while ((c = input.read(chars)) != -1) {
    line = new String(chars, 0, c);
    System.out.print(threadName + " " + line);
    } catch (Exception e) {
    System.out.println(e.getMessage());
    System.out.println(threadName + " quit.");

    why are u using BufferedReader? That's useless because read(char[]) isn't overwritten by BufferedReader.
    did u read the description of Reader.read(char[])??
    try to use this class...
    public class TestProcess
    private PrintWriter writer;
    private Process proc;
    private StreamReader inputReader;
    private StreamReader errorReader;
    public TestProcess(String strFilename)
    throws Exception
    proc = Runtime.getRuntime().exec(strFilename);
    writer = new PrintWriter(proc.getOutputStream(), false);
    inputReader = new StreamReader("Input", new InputStreamReader(proc.getInputStream()));
    errorReader = new StreamReader("Error", new InputStreamReader(proc.getErrorStream()));
    new Thread(inputReader).start());
    new Thread(errorReader.start());
    public void write(char c)
    writer.write(c);
    writer.flush();
    public void waitFor()
    p.waitFor();
    public int exitValue()
    return p.exitValue();
    public void close()
    proc.destroy();
    writer.close();
    class StreamReader
    implements Runnable
    private Reader input;
    private String threadName;
    public StreamReader(String threadName, Reader input)
    this.input = input;
    this.threadName = threadName;
    public void run()
    try
    while ((c = input.read()) != -1)
    System.out.print(c);
    catch (Exception e)
    System.out.println(e.getMessage());
    System.out.println(threadName + " quit.");
    }...didn''t test it. good luck ;)
    if there are still problems, please tell me where it hangs.
    ~elchaschab

Maybe you are looking for

  • I use a iphone and MacBook Pro using mail on each.  How can I see the same mail boxes on the laptop that I see on the iPhone?

    I use a iphone and MacBook Pro using mail on each.  How can I see the same mail boxes on the laptop that I see on the iPhone?

  • Web page will not open

    I am trying to open Amazon.com on my desktop and all that keeps coming up is a page that looks nothing like Amazon.com and mentions Wikimedia and says this wiki does not exsist yet. Perhaps you are looking for one of our other projects. It has links

  • Need help QT 7

    I used QT 6, when I downloaded QT 7 Pro I can not to open .mov and can not import .avi files. I get a message '-43 the file could not be found'. I use Core2Duo, XP. Please help me.

  • Wowza with Flash Media Live Encoder

    Video Quality Problem: Action Script netStream X Flash Media Encoder Hi, We're running Wowza to stream a live webcam from a Flex web application (using ActionScript 3 netStream method) for a 1 to 1 video chat. We are able to stream it properly, but t

  • Planning - Time Balance Last Weirdness

    Hi, In my planning (Workforce) build I have some FTE accounts that are specified as "Time Balance Last" for aggregation purposes. I am wondering how this is supposed to work because it seems t be a little bit clumsy the way it is working in this buil