Status of process

Hi
Is it possible to find out through a java program whether a process is running or not . In my case i start a java process(brings up rmi launcher at a specified port)
How do i find out if this process is running at that port or not or is it running or not
THROUGH a java program .
Please help
Thanks

Do you mean you want to find out if it is listening at that port? Then just try to connect to the port.

Similar Messages

  • Cancelamento de NF-e parado (batch status 05, process status 02)

    Bom dia pessoal,
    Ontem tivemos um problema no GRC/PI de um cliente, onde por alguma razão o certificado estava sendo rejeitado. Depois de vários problemas causados por isso, foi resetado o j2ee e o sistema voltou a operar normalmente.
    As sequelas disso foram duas notas para as quais foi solicitado o cancelamento, agora elas estão com status de processamento 02 (Sent to Signature Service) e batch status 05 (Result Received).
    Seguindo uma orientação para um caso parecido (),
    peguei os MsgIDs das mensagens dessas NFs na /xnfe/acknowledg (ambas com SIGNC), encontrei-as no SXI_MONITOR do PI, onde elas são listadas 2x cada, com os seguintes status
    1 - Status = Transfer to Process Engine (, Ack. Status = branco
    2 - Status = Processed Successfully, Ack. Status = Still awaiting acknowledgment (bola verde com interrogação)
    Ao tentar dar restart nas mensagens, recebo a seguinte mensagem de erro:
    You cannot restart XML message E07AFA5FD584CEF1B15C3C4A927627EC with this status/type
    Message no. XMS_ADM085
    Diagnosis
    You want to reschedule an XML message that has already been processed (Restart). However, the XML message status or type does not permit a restart.
    System Response
    You can only restart asynchronous XML messages.
    Furthermore, you can only reschedule XML messages with errors. You cannot restart correctly processed XML messages or XML messages with the status Being Processed.
    Tem algo que possa ser feito sem ter que alterar tabelas?
    Como a equipe responsável pelo PI/GRC fica fora do BR, é bem complicado conseguir autorização para qquer coisa nesse sentido em PRD.
    ps.: Agora cliquei no "Expand all messages", para cada um dos MsgIDs, apareceram 2 novas linhas, uma com status = Scheduled (bandeira verde) e outra com status Scheduled for Outbound Processing (seta preta), ambos com o awaiting ack.
    => SMQ1 e SMQ2 ambas sem entradas.
    Obrigado!
    Eduardo Hartmann

    Eduardo,
    O NFe type = 2 (cancelamento)?
    Se sim, me parece que o pedido de cancelamento foi enviado pra assinatura e nao teve resposta, provavelmente devido ao fato de o J2EE estar fora. Nesse caso, o batch status é irrelevante (ele só é relevante pro processo de envio de NFe, não pra cancelamento/inutilização).
    O "correto" seria vc identificar onde a mensagem de assinatura parou (i.e. se em alguma fila - SMQ1/SMQ2, se tem q restartar o BPM etc.). Mas como o passo de assinatura é stateless, diferentemente do processamento da SEFAZ, vc poderia simplesmente "marretar" um status de erro de assinatura de cancelamento na /xnfe/nfe_hist (verifique o valor apropriado do error status no domínio do campo) e restartar a assinatura do cancelamento pelo monitor de NFe do GRC, aba de erro de assinatura.
    Abs,
    Henrique.

  • Print Preview of PO with message status as "Processed"

    Hello,
    I need to make available the print preview of Purchase Order even when the Processing status of output is "Processed".
    Normally the print preview works when the status is "Processing" or when there are still print relevent changes existing in PO. When the message is output by ME9F, there are no more print relevent canges and SAP does not allow preview option in PO. I want to make this functionality available.
    Any solution?
    CMV

    Hi!
    You can check the table NAST (field VSTAT) for the statuses.
    Application 'EF' for PO.
    Objkey is the PO number.
    Regards
    Tamá

  • SRM 7.0 Purchase Order Response always in status "In process" after confirm

    Hello experts,
    this problem is similar to the thread [SRM-SUS Purchase Order Response always "In Status"; which has been not finally responded.
    My problem exists in an environment without SUS.
    When a buyer confirms a PO response (POR) without any change, the system generates a new PO response with status "In process".  This new POR has also to be confirmed or rejected but the system generates again a new PO response with status "In process".
    So we have a very nice loop for the purchaser without escape!
    We are on SRM 7.0 SP07. The other thread mentioned that SAP will create some OSS notes, but I found nothing about this problem.
    Any ideas?
    Regards
    Joe

    Hi Gurus.
    I want to share my experience with this case.
    We have the same scenario, Confirm PO, the result is PO confirmed, but we receive a response from ECC and this Confirmed PO changes its status to "In Process" / "En Tratamiento".
    The new relevant information is that we added 2 new fields to the item PO, these fields are filled ok and sent to ECC.
    In a first time these new fields were lost due to the response from ECC. To avoid this situation I implemented the BADI BBP_DOC_CHANGE_BADI for BUS2230, and method BBP_SUSPO_CHANGE to copy from the BBP_PDISC (Object BUS2230) rows the values to the new rows in the same table BBP_PDISC (Object BUS2201).
    With this change the new documents are confirmed directly and not changed to "In Process"/ "En tratamiento".
    That was my experience, now I have a question...
    In the correct business process for SAP SRM SUS  when you confirm full a PO...
    * this will be blocked or no?
    * Can be modified the confirmed items?
    * This depends of customizing?

  • Email/print in status "Not processed" when RFQ is published

    Hello,
    We are running SRM 5.0.
    We have set up the event schema for BUS2200 (RFQ) to react on events: PUBLISHED, PUBLISHED_AGAIN etc. And assigned the event schema to RFQ's transaction types, eg BID.
    However, when an RFQ is published, the email is not sent to vendor (whose default medium is MAI) or printed on vendor's default printer (if the medium is set to PRN). The output log under bidder/bids tab shows something like :
    Status: Not processed       
    Medium: Print      
    When I clicked on the action button "Output pushbutton", the status would be changed to "Successful" and the email would be sent or the print job would be printed then.
    I have checked the PPTTRIGG table and all the entries in there are of DISPATCH = 1 or 4. Not 3, which seems to indicate an "immediate processing".
    My question is how I would configure the system so that the email/print when the RFQ is published could be processed immediately.
    Thanks.

    Hello Masa,
    I realized it as well. I was then a little puzzled why SRM didn't allow "immediate processing" for the "processing time" parameter in the action definition. Do you know if there is a particular reason for that?
    Thanks,

  • BPM Status "In Process" - Message reached ECC successfully ??!!!

    Hi,
       I need help to resolve one issue which we are facing : (this is kinda strange)
    ==========================================================================
    We are using a BPM in one of our scenario where acknowledgements are sent in and out from PI to ECC. The BPM is relatively complex.
    The issue we are facing is : -
    The BPM shows status "In Process" but the messages have reached ECC and the functional team has confirmed the receipt of the message. All the tables / databases are updated as desired. We were yet to receive the response from ECC but strangely the BPM is not completed but the message has moved out of PI to ECC and updated the tables!!
    My question is : - How come the messages reached ECC even though it showed that the BPM is not completed?
    ==========================================================================
    Action points which I have taken : -
    1.) I have digged in sxmb_moni_bpe and went through the messages in the payload couldn't find anything there which could have answered my question.
    2.) Matched the data and went through all the message flow comparing the time stamp - didnt find much here too!
    3.) The graphical message flow shows "Response from ECC" - in Wait state and a white block but still the messages got updated. Found it really strange!! .. If the BPM does not get completed, the messages should not move out!!
    ============================================================================
    workaround :-
    1.) I thought of putting a wait step and an exception that if the messages do not reach PI within the stipulated time, it will throw and error in PI. But still  the question needs to be answered as to "How come the messages reached ECC even though it showed that the BPM is not completed?"
    Kindly suggest.

    I didnt find anything much there .. and moreover it is a Production system where we faced the issue so anyway I did nt have access to it. We have confimed from ECC functional team on the same and have logically deleted the process from PI.
    Thanks anyway!

  • Workflow step in status "In Process"

    Hi Friends,
    I am working on SAPXI support project.
    Actually i have an issue related with BPM, there is a workflow(wk) which is completed but the one of the step in this wk is status "In process", but i can see all the steps in this wk are either completed or logically deleted except one step which is called as "Main Process Block".
    Due to this there are countinues CCMS alerts genereted in TC RZ20. So kindly suggested me on how to complete this Step either i have to delete or complete or anyother solution.
    Please dont give me any blogs or links, kindly suggest with your experince in Support project.
    Regards
    Sai

    Hi Sai,
    goto tcode SWIA and enter the work Item ID and click on Complete mannually.
    Thanks!

  • Status of process chain

    hi all,
    This is the scenario. I  have  a badi in ecc in which i save the new projects and after saving a project it triggers a job in ecc ,which in turns trigger the process chain.When i try to save several projects in ecc in quick succession, say 3 projects A,B,C then there are 3 jobs which are active in ecc,which inturns triggers the process chain 3 times and hence the p.c gets locked and fails.
    In the badi, we had rfc fm which checks the status of the process chain whether its ACTIVE from rspcprocesslog table and then if the status become to G:successfully completed, the second job shold trigger.however its not working.
    in the rspcprocesslog(BI side), we find that the status field in the table is having  only two values F:completed or G:successsfully completed, whereas  other values such as ACTIVE ,cancelled are not getting stored.
    so i would like to know
    1. whether this table holds only  G or F values and why the status like Active or cancelled is not gettin g stored.?
    2. apart from these tables what is the method by which i can know the status of process chain or status of thelast process of the chain can be found.?
    3.  is there any way to check for the information we get in sm 37 job log in BI side for the last process present in the process chain? *is  the job log stored in some table ,if so what is the table name?*
    so can anyone please suggest to  make the second job in ecc to  get scheduled only when the process chain which got triggered for the first job is completed other than the two mentioned(rspcprocesslog, and job log)?

    Hi,
    You can find the necessary logs & status of the process chains in the RSPCLOGCHAIN table.
    ANALYZED_STATUS field stores the values of process status.
    G -> Completed
    R -> Ended with errors
    A -> Active
    X -> Cancelled.
    Many thanks,
    Arda.

  • WS20000075: work item of 1st release step stays in status In process

    Hi All,
    I have activated and set up standard flow WS20000075 but the work item of 1st release (PO release strategy with 3 levels) step stays in status In process. The work item for the 2nd and 3rd release step are completed as expected.
    What could cause only the work item of the 1st release step to stay In process?
    Thanks a lot in advance

    Hi,
    I cannot see in what field the release code is filled in EKKO.
    See here SWEL after 1st release:
    And SWEL after 2nd release:
    EKKO after 1st release
    EKKO after 2nd release
    release strat
    Release strategy

  • How to Implement HTTP Request Status Code Processing

    I actually have two questions. First, I wondering how to add multiple status code processing to an http request. Secondly, I was wondering how to go about using alternate http requests to different servers in case the primary server is down. What kind of parameter would the program use to determine that the server is unavailable and switch to another server??
    Currently, the program I've written calls an rdf server (http://www.rdfabout.com/sparql) using a sparql query,
    the server returns an xml string, the program parses it, and calculates numbers
    from the string. The program works, but the problem is that the server is down occasionally.
    When the server is down, we need to add calls to another server to
    increase reliability. So, the next task is to call this server:
    http://www.melissadata.com/lookups/ZipDemo2000.asp
    I need to do exactly the same things I did with the rdf server. The
    difference will be constructing a request and a bit different parsing of
    the response.
    current SPARQL query is defined as follows:
    PREFIX dc:  <http://purl.org/dc/elements/1.1/>
    PREFIX census: <http://www.rdfabout.com/rdf/schema/census/>
    PREFIX census1: <tag:govshare.info,2005:rdf/census/details/100pct/>
    DESCRIBE ?table WHERE {
    <http://www.rdfabout.com/rdf/usgov/geo/census/zcta/90292> census:details
    ?details .
    ?details census1:totalPopulation ?table .
    ?table dc:title "SEX BY AGE (P012001)" .
    }current HTTP Request is defined as follows:
    import java.net.*;
    import java.net.URL;
    import java.net.URLConnection;
    import java.io.*;
    import java.io.DataOutputStream;
    import java.io.BufferedReader;
    import java.io.StringReader;
    import java.io.InputStreamReader;
    import java.io.PrintStream;
    import java.util.Scanner;
    import java.util.regex.Matcher;
    import java.util.regex.Pattern;
    import java.util.Arrays; 
    public class MyConnection
         static Scanner sc = new Scanner(System.in);//allows user to input zipcode
        public static void main(String[] args) throws Exception
             int zip;//zipcode is declared as integer format
            //User defines zip through input
            //proceed to put SPARQL query into string, which is then used to call the server
            String requestPart1 =
            "query=PREFIX+dc%3A++%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%3E+%0D%0APREFIX+census%3A+%3Chttp%3A%2F%2Fwww.rdfabout.com%2Frdf%2Fschema%2Fcensus%2F%3E+%0D%0APREFIX+census1%3A+%3Ctag%3Agovshare.info%2C2005%3Ardf%2Fcensus%2Fdetails%2F100pct%2F%3E+%0D%0A%0D%0ADESCRIBE+%3Ftable+WHERE+%7B+%0D%0A+%3Chttp%3A%2F%2Fwww.rdfabout.com%2Frdf%2Fusgov%2Fgeo%2Fcensus%2Fzcta%2F";
            String requestPart2 = "" + zip; // zipcode is transformed from int to string format and plugged into SPARQL query here
            String requestPart3 =
            "%3E+census%3Adetails+%3Fdetails+.+%0D%0A+%3Fdetails+census1%3AtotalPopulation+%3Ftable+.+%0D%0A+%3Ftable+dc%3Atitle+%22SEX+BY+AGE+%28P012001%29%22+.+%0D%0A%7D%0D%0A&outputMimeType=text%2Fxml";
            String response = "";
            URL url = new URL("http://www.rdfabout.com/sparql");//designates server to connect to
            URLConnection conn = url.openConnection();//opens connection to server
            // Set connection parameters.
            conn.setDoInput (true);
            conn.setDoOutput (true);
            conn.setUseCaches (false);
            // Make server believe we are form data…
            conn.setRequestProperty("Content-Type","application/x-www-form-urlencoded");
            DataOutputStream out = new DataOutputStream (conn.getOutputStream ());
            // Write out the bytes of the content string to the stream.
            out.writeBytes(requestPart1 + requestPart2 + requestPart3);
            out.flush ();
            out.close ();
            // Read response from the input stream.
            BufferedReader in = new BufferedReader (new InputStreamReader(conn.getInputStream ()));
            String temp;
            while ((temp = in.readLine()) != null)
                 response += temp + "\n";
            temp = null;
            in.close ();
            //parsing stuff is taken care of after here
    }What remains now is to:
    1) add status code processing: notify if the server is not available, ect.
    2) add ability to connect to additional server if primary server is down.
    I'm thinking an if/else statement, which I've tried a few different ways,
    but I don't quite know how to implement that...Also trying to add the
    status code processing/error handling, but I'm not sure how to do that
    for multiple/different errors, such as 404, 503, 504, ect.. try/catch statements?
    So yeah, just been scratching my head on this trying to figure out how to work it..
    If you can help me out on this, I've been going nuts trying to figure this out...

    I think your issue comes form the fact that you are not casting URLConnection to HttpURLConnection.
    Doing the cast would allow you to use getResponseCode() - among other methods - and test for a response different than 200.
    Read: [http://mindprod.com/jgloss/urlconnection.html|http://mindprod.com/jgloss/urlconnection.html]

  • WF: Object DECISION Method PROCESS - stays in status in process forever

    Dear Friend,
    Could you, please, give me any ideas why Workflow Task based on business objects/method DECISION->PROCESS stays in status in process?
    It happens after upgrade to ERP2005 from 4.6c. In old version it works perfectly.
    Thanks a lot for help.

    Hi,
    If a Workitem has Status "In Process" then it means it is under execution and it is not completed. however it might get completed and the status is still can be "In Process". The reason for this would be the Workitem might have gone in Deadline monitoring. Check the Workflow Task whether any deadline is assigned or not. I guess it got assigned in your case. And another important thing is there must be a background program that is scheduled which takes care of such deadline monitoring Tasks. Check whether this program is ticked or not in transaction SWU3. So altogether you have to check two things.
    hope this helps you.
    thanks,
    sksingh

  • Workflow status 'in process'

    Hello All!
    I've created workflow with only task step. Workflow started and has status 'in process', then task completed but workflow still has status 'in process'. As i understand i need workflow status 'Completed' after task execution.
    Where can i set up this?
    Many thanks in advance!

    Please check SWU3 is properly configured.
    Also check for any Dump in ST22.
    Thanks
    Arghadip

  • Create APG ( approval granted) status in process order through user status

    Dear Gurus,
    My business requirement is to create APG ( approval granted) sytem status in process order through user status functionality, if possible.
    This needs to be activated while creating process order itself. Any help is greatly appreciated.
    Warm Regards,
    Satish

    As of this date, we have still not implemented a fix, but I did get some information from someone else who has.
    I'll post his information here for all to see.  Hope you find it helpful.
    From: Joe
    Yes we managed to do it.
    After several false starts and CMOD/projects which suffered because only the default keys (for order number, aufpl etc) were in place and not the actual, we coded up the IN_UPDATE method in the WORKORDER_UPDATE badi. This gives us the final format after the DB save (but before the commit). The update of the STATUS using the SAP std function module was actioned successfully but the status profile was not actually passed through. We assumed that this was because of the update task - so we introduced an INSERT into JSTO instead (a bit naughty I know, but desperate needs etc). If you require anything more let me know.
    Best Regards
    Joe

  • Issue:Task started under work item ID999893(Current status: In Process)

    Hi Experts,
    I am doing a test scenario in IDES on business workflow. While executing my custom work-flow to check output,am  getting a message like " Task started under work item ID999893(Current status: In Process) ".
    Kindly suggest me how to resolve this issue.
    Regards,
    Prashanthi

    Hi,
    My task is based on user decision, intended person will get approve or reject mail for that am using Am using "User decision" and "Mail" steps. Now  recipient also receive a work item in SAP Inbox. When executing workitem.. not getting a screen to choose one among approve or reject as part of the user decision.
    Please suggest me.
    Regards,
    Prasanthi

  • SWEQADM - Event hanging in status IN PROCESS

    We have activated the event queue (SWEQADM) for all our workflows. Now I have discovered that we do have a lot of events which are stuck in status IN PROCESS. When we go to the event queue browser and try to deliver the event we get the following message:
    'The event cannot be delivered in status "In Process" '
    Do any of you have experience of this? Any ideas on why they are stuck in status IN PROCESS, and how we should be able to process them.

    Hello Kicki,
    The most likely cause for events to remain in process as you describe is that something goes wrong during the receiver processing.  This could either be an error causing a short dump (ST22) or else a basis-related problem, look at SM58 for stuck RFCs or SM13 for update problems.
    More clues might be in the events themselves: is it just one event or a particular set of events or do they appear to be random? If the latter is the case, it would point to more towards a basis related problem.
    Also, you mentioned that you switched it on for ALL workflows. Any particular reason?  As you have already noticed the event queue adds an extra layer into the process which equates to an extra point of failure. Unless you are using it to direct workflows to specific servers, you are probably better off only sending high volume events to the queue.
    Hope that helps.
    Cheers,
    Mike

  • User Status for process orders

    Dear Experts,
    We are using user statuses for process orders & with this we are resricting or allowing certain business transactions.
    My question is can we automatically set the two consecutive user statuses ?
    Means when the GR for process order is done i have set the user status as GR.
    Next user status is CLSD.
    So after completing the closing of process order by settlement transactions can i set the staus as CLSD automatic?
    I am trying to do it but i am getting error as-
    "Status CLSD is not allowed (ACT 30000292 0010)"
    Your help is highly appriciated
    Regards
    Vivek

    Hi,
    1) Still your order is carrying cost, it has not settled properly
    2) you can check in CO02 itself, Go to tool bar at top
    3) here Go to > Costs > Analysis & check whether order is set to Zero
    4) you can check in KKBC_ORD also
    Also, pls refer below link
    Re: HOW automatic order status change to CLSD
    regards,
    Sankaran

Maybe you are looking for

  • Why can't I preview a pdf portfolio?

    When I first heard about acrobat.com sharing possibilities I was thrilled. However, now I am not so sure it is the right thing for me anymore. If someone can verify that I am understanding this correctly: I made a portfolio in acrobat and wanted to u

  • Set_item_property Internal Code

    Hi Does any one know where is the basic internal programmes written for these standard reusable syntaxs....... like set_item_property Thanks S

  • New phone, does not receive 2G EDGE signals, only ...

    Hi all,  Just bought the nokia 800 a couple of days ago and already ran into a major problem: my phone only works on 3g HSPA, if the 3g signal becomes very low as is usual for my area, it sits there with no service at all instead of switching to 2g.

  • RADIUS Authentication for Enable PW

    Hi Everyone, I have my RADIUS authentication working for login passwords but not for the enable password. My config is below; aaa new-model aaa authentication login default group radius local aaa accounting network default start-stop group radius Whe

  • Safari automatically opens the same page repeatedly

    I just spent the last hour searching this forum for solutions and I found one. I just can't find the original post with answer to mark it as helpful! I also lost the Apple Support Link but if you search 3rd part add-ons, the solution is there. In my