Ipconfig command (ran thru the process) not getting terminated

We are working on a web based application that requires running ipconfig /all command as a process from Java class to fetch the MAC address.
Using the tool called "handle.exe", what we have found is that even after the process is destroyed, the ipconfig process exists & eventually there are lots of such handles for ipconfig.
We are using jdk 1.4.2_03 with tomcat 4.1.27. I am copying the piece of code below to give an idea of what we are doing:
Runtime runtime = Runtime.getRuntime();
proc = runtime.exec( "ipconfig /all" );
BufferedReader reader = new BufferedReader(new InputStreamReader(proc.getInputStream()));
try
String line;
// On Windows, read multiple lines until the Physical Address is found
while ((line = reader.readLine()) != null)
// logic to retrieve the MAC address from the output above
catch (IOException e)
// print the message
proc.destroy();
Any help/pointers will be appreciated.
Thanks in advance.. SDM

I've found the same problem with a similar peice of code.
One thing you can do to reduce the leakage is to explicitly close the process object's input, output & error streams, but that still leaves a leak of one handle per exec call.
This does seem to be an ipconfig thing rather than a java thing as I don't get the same leak with other commands.
I used the free process explorer from http://www.sysinternals.com/ when investigating this problem

Similar Messages

  • I just order 8 calendars from iPhoto and they came to me fine. Now I need to order two more but when I go thru the process I get a message  saying:unable to assemble calendar. There is a probleme with the photo with the file name"(Null)"   more........ .

    Would someone be able to explain to me the following issue with Iphoto?
    I ordered 8 same calendars for my soccer team and received them fine. Although a couple of pictures on it are a little off (out of focus). I need to order two more of the same calendars but when I go thru the process ireceive an error message saying:
    "Unable to to assemble  calendar" There is a problem with the photo with the file name "(Null)" The full resolution version of this photo either cannot be located or is corrupt. Please replace this photo or delete it from your calendar.
    How can  I fine this "corrupt" photo? How did it go thru with the first batch of calendars but won't go thru now?
    Thank you for your help.   

    Apply the two fixes below in order as needed:
    Fix #1
    Launch iPhoto with the Command+Option keys held down and rebuild the library.
    Since only one option can be run at a time start
    with Option #4 and then #1 as needed.
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    1 - download iPhoto Library Manager and launch.
    2 - click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    3 - Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option.
    4 - In the next  window name the new library and select the location you want it to be placed.
    5 - Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments.  However, books, calendars, cards and slideshows will be lost. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • TS4139 I had 2 MobileMe email addresses, but only went thru ICloud process with one (my main address). Now the secondary address is not working with iCloud. Did I have to go thru the process with both addresses? Can I get that address back?

    I had 2 MobileMe email addresses, but only went thru iCloud process with one (my main address). Now the secondary address is not working with iCloud. Did I have to go thru the process with each address? Can I still get that secondary address to work with iCloud?

    It was totally separate. I just now went back to a previous email from Apple to that secondary address which urged me to transition to iCloud. I followed the link and it prompted me thru the process and the address is now able to send/receive emails. Thanks.

  • I go through the process of burning a DVD from a Premier Pro Project and at the end of the process I get an encoding error and the dvd does not start burning.  How do I fix this?

    I go through the process of burning a DVD from a Premier Pro Project and at the end of the process I get an encoding error and the dvd does not start burning.  How do I fix this?

    adam@honestmusky wrote:
    Yes I am using encore.  I used to have no problem doing this, but I had to get a new computer and now something isn't working right.
    How about some DETAILS?
    -Premiere Pro Video Editing Information FAQ http://forums.adobe.com/message/4200840
    Also describe the EXACT steps you take to go from Premiere Pro to Encore

  • HT201401 I have my a song purchased from Itunes and would like to use part of it for a ringtone and get all the way thur the process of getting it to my phone but it goes to sync to my phone it doesn't show up in my phone like it says it is suppose to und

    I have my a song purchased from Itunes and would like to use part of it for a ringtone and get all the way thur the process of getting it to my phone but it goes to sync to my phone it doesn't show up in my phone like it says it is suppose to under ringtones. Does anyone have any tips on how to do this.

    http://osxdaily.com/2010/09/04/make-free-iphone-ringtones-in-itunes-10/
    https://discussions.apple.com/message/17777381 - making a ringtone
    Getting ringtones folder to show in iTunes - https://discussions.apple.com/thread/2629494 - iTunes > Preferences. Under the General tab below Show, confirm Ringtones is selected

  • While creating the credit note getting error

    hi
    while creating the credit note getting error
    MsgType       Message                                       Msg.no.
    E                  Enter country                                 216
    E                  Sales document  was not changed   219  
    pls suggest me

    Is COPA activated? If yes go to teh button PA and give country value in the line item.
    Reward if useful
    sarma

  • How to see the history of the commands ran in the Airwave CLI (bash) and also in the DB (psql)

    Q: How to check the old commands (history of commands) ran in the Airwave CLI and also in the DB (pgsql) ?
    A: Any commands we ran on the Airwave CLI or in the DB they are logged in a file in /root directory.
    we could log in to the Airwave CLI and execute the below commands to see the history in the files below:
    # cd /root
    # ls  -al
    This above command will print out a list of files, among those are the below two files:
    .bash_history  (If we open the file either with cat or less, we will see the list of commands which we executed on the Airwave CLI)
    .psql_history  (This file will have all the sql commands executed in Airwave DB)
    These files will have the history from the installation, unless, if any user manaully edits or deletes the file. 

    Hi Heather,
    it is correct that there is no sample iView that shows the History of Crystal Reports that are stored in Crystal Enterprise but there a sample codes on our web site and there are sample codes as part of the SDK documentation that show how to call the history and you should be able to take the code and create your own Java or ASP iView based on that.
    the link to our developer library :
    http://www.businessobjects.com/products/dev_zone/default.asp?intcmp=products12
    hope this helps
    Ingo

  • Trying to print from Macbook 10.4.11 using Brother DCP-J125 printer from usb getting messagge on screen The process " Ratsterobrother 145 " terminated unexpectedly on signal 5. Why cant I print from computer?

    Trying to print from Macbook  OS X 10.4.11 computer to a newly purchased printer which is a Brother DCP-J125 connected through USB.
    When I try to print Iget a message saying : The process " Rasterobrother 145 " terminated unexpectedly on signal 5. What does this mean? Why cant I print? What does this message mean? Is it from my computer or from my printer?
    Any help or advice would be appreciated.

    Trying to print from Macbook  OS X 10.4.11 computer to a newly purchased printer which is a Brother DCP-J125 connected through USB.
    When I try to print Iget a message saying : The process " Rasterobrother 145 " terminated unexpectedly on signal 5. What does this mean? Why cant I print? What does this message mean? Is it from my computer or from my printer?
    Any help or advice would be appreciated.

  • Asynch task workitem not getting terminated

    hi,
    Even after triggering event which is the terminating event of my task the workitem is not getting terminated. I am passing object key to in swe_event_create function module.
    Is there any setting required in transaction swe2.
    Regards,
    Sukhwinder

    Hi ,
    Did you define the Outcome in your work item . Activate the event and define the consequent steps . This will take care automatically.
    Check you binding too.
    Regards
    Ajay

  • I use a 10.8 system and can not get Terminal or Textmate to accept a password. I actually can't type it when prompted. Any ideas?

    I use a 10.8 system and can not get Terminal or Textmate to accept my password by that I mean, neither will even allow me to TYPE it in.
    I need this to edit hosts files. I've used Macs for years but am not that wise on the inner workings. HELP!?

    If you type a password into Terminal it will not appear on the screen at all, just enter it and press return.

  • I have a first gen ipod which is being recalled, and after going thru the process of registering my ipod I did not receive a barcode to send my old ipod back to apple with.  I wasn't sure if apple would send me some packaging to return the ipod.

    I have a first generation ipod nano which is being recalled, and after going thru the registration process was meant to get a barcode to send the old nano back with but it was blank.  In the registration process it also mentioned about apple sending out packaging to return the old ipod.  Just wondering if anyone has been thru this process and can offer advice?

    Yes they will send you a box with return label. I have been waiting for a month for a box. Just got off the phone with customer service and they said it would be another 3-4 weeks before I receive a box for replacement. Once I send it in it will take another 6 weeks to get the replacement after they receive it. I also hear it a 1st gen nano that will be the replacement.Apple says they were overwhelmed by the response to the recall.  Looks like they dropped the ball when they have to spend the money!

  • Process not getting killed

    Hi ,
    I tried killing the process but still it is not getting killed.Used the below command.
    kill -9 <pid>
    sapkxdap10:orads2 9> ps -ef | grep sap
    sidadm   25255     1  0 Sep21 ?        01:00:18 dw.sapSID_DVEBMGS68 pf=/usr/sap/SID/SYS/profile/SID_DVEBMGS68_sapkxdap10
    I cannot understand what the second field means question mark is there.How to kill the process if they are hung.Thanks.

    > How should i proceed even after stopping sap if the process exists?
    I don't know - I have no clue under which circumstances something that like can occur. You can check using
    ipcs -m
    if there are any shared memory segments allocated. Also stop/kill "saposcol" and "sapstartsrv".
    > And what does that question mark indicate in the output..Thanks.
    Execute
    man ps
    The question mark means the process has no connected terminal (just read the headline when you execute ps -ef) and was started by another process.

  • Process Not Getting EXITED

    BATCH FILE
    LOCATION : D:\test.bat
    Ex: test.bat It contains
    del c:\sample.txt
    JAVA FILE
    LOCATION : c:\testunion.java
    import java.util.*;
    import java.io.*;
    public class testunion
    public static void main(String args[])
         try
              Runtime objRt = null;
              Process objProc = null;
              objRt = Runtime.getRuntime();
              String szIntfFile = "D:\\test.bat";
              objProc = objRt.exec(szIntfFile);
    ENVIRONMENT : WINDOWS 2k
    When testunion.java file is RUN, test.bat is called and sample.txt gets deleted.
    BUT THE CONTROL IS NOT COMING OUT FROM THE COMMAND PROMPT.THE CURSOR STAYS IN THE
    COMMAND PROMPT BLINKING.
    I think the sub Process is not getting EXITED.....
    I want the subprocess to execute and get exited. so that the Main Process does not hang...
    How to do it ?

    Even though the docs say the methods of Process are abstract you can use them because you are really using java.lang.ProcessImpl
    I believe you need to provide a sink for the process's InputStream to your testunion(better practice TestUnion)
            try
                Runtime objRt = null;
                Process objProc = null;
                objRt = Runtime.getRuntime();
                String szIntfFile = "c:\\jar MathML-X.cmd";
                objProc = objRt.exec(szIntfFile);
                java.io.InputStream is=objProc.getInputStream();
                int value=0;
                StringBuffer sb=new StringBuffer();
                while((value=is.read())!=-1)
                    if(value==10)
                    System.out.println(sb.toString());
                    sb.setLength(0);
                    else
                    sb.append((char)value);
                objProc.waitFor();
            catch(java.io.IOException ioe)
                System.out.println("ioe: "+ioe.getMessage());
            catch(java.lang.InterruptedException ie)
                System.out.println("ie: "+ie.getMessage());

  • HT1414 i am in the process of getting my iphone4 unlocked from att to use it on straighttalk. why do i need to "back up" the iphone and all of this? i dont have an apple computer sooo, im a little confused on why i need to do this. can someone please help

    Can someone please explain and help me? I am unlocking an iphone4 from at&amp;t to use it on the straight talk network. They've confirmed my request to do this and I am now a little confused as to what to do next. They want me to back up the phone using itunes on either a MAC or PC. I do not have an aplle computer but I do have an acer. Sooo, can I use it to do this? Or do I even have to do this to unlock and switch the iphone4 over to a new network? If I do have to what can I do to do this because like I said I do not have a computer by apple? Can anybody walk me through what I need to do next please? I've been waiting to do this for a very long time and I now have the option to have an iphone and use it. Thanks to my awesome boyfriend who Gave me his old iphone when he swapped back to an android. Hahahaha! Please anybody!? Because I sooo don't know what I'm doing and really do not want to mess the phone Or the process up. Thanks to any and all who read this and help me! It is greatly appreciate it!

    Install iTunes on your Acer and you can back up the iPhone. Or back it up to iCloud. If you do not back it up you can get it unlocked, but you will lose all of your content.
    You can get iTunes from http://www.apple.com/itunes.
    Even after unlocking I'm not sure it will work on Straight Talk, because last time I checked ST used Verizon as its carrier, and an AT&T iPhone 4 is not compatible with Verizon's network. You can probably use it on Net 10 or T-Mobile once it is unlocked.

  • BPM Process not getting started

    Dear All,
    I have created a BPM Process, and have attached a webservice with the start event.After deploying the Process DC I am getting my start webservice in my wsnavigator. When I am executing the start webservice I am getting the following error.
    Web service returned error. Fault Code: "(http://schemas.xmlsoap.org/soap/envelope/)Server" Fault String: "Process start has been triggered."
    But my process is inprogress but not getting proceeded to the next step , it is stuck in start itself.
    how can i make my webservice work?
    Regards,
    Shamila

    Hi Shamila,
    To me this looks like a configuration issue. You can trouble shoot it this way
    First try to check if the web services is up and running
    Second check your configuration, for this, in NWA Manage Processes application get all the 'failed processes'
    -check if your in-progress process is listed here-
    - if so then open the Error log tab for the process in the details section in Manage Process
    - See the logs listed here; generally the last log will tell you if your configuration is correct or not
    -if you figure out that the configuration isn't done or is improper then correct the same in provider systems and/or application communication configuration
    - then once this is done, re-query the failed process and use the "Recover" option
    Regards,
    Harsha

Maybe you are looking for

  • In Dual Monitor setup, with Thunderbird not in main monitor, the some dialogs always shows in other monitor

    I have a three monitor set up. I have Thunderbird running in the right monitor. My main monitor is the middle one. Dialogs, such as Spell check, Activity Monitor always show up in the main window (not the one with Thunderbird) in the upper left hand

  • Freight charge in MIRO details tab

    Dear expert, Please help me on below scenario. I raised PO. My PO cost is 10000 INR. and My delivery charge is 200 INR. I have not maintained delivery charge in PO. While doping MIRO I am mantaning the Delivery cost in Details tab. But My issue is Go

  • Internal File Names within Content Areas

    I have a problem where I have loaded up a series of inter-linked HTML files created in an HTML editor (e.g. Dreamweaver). They all exist within a folder and all the links work. As soon as I amend a file and reload it, it gets a new name on the databa

  • Emails not displaying in full on iphone 4

    My iphone 4 is not displaying any 'body text' or 'subject text' in email message - there is a 2-5 line preview on the inbox but when I open the message there is nothing to read Attachments are slow to come - or the emails they are on do not arrive at

  • Cannot read chinese PDF in mail

    Anyone got this experience? All chinese in the pdf is blank in the Mail of iPhone. I can read it in my macbook.