DestroyJavaVM does not completely shut the VM

Hi All,
I'm using JDK 1.4.2. The platforms used are WindowsXP and MacOSX. In my Native Application after setting up the JVM using JNI_CreateJavaVM, i use the same to load some jar files using URLClassLoader. After all is done i need to shut the VM and then move these jar files to some location. I use DestroyJavaVM, but it does not seem to completely do its task. Some of the threads started by JNI_CreateJavaVM are still up and owing to this the jar files are held up by VM. Is anyone having any idea whether DestroyJavaVM is still faulty or do i need to do something else.
Regards

Sorry but DestroyJavaVM isn't guaranteed in the current Java SE implementation to completely terminate everything. For example you can't currently destroy the VM and create a new one in the same process.
I would recommend you try to forcibly close the jar files you've opened before terminating the JVM. For example, you might drop all references to instances of classes defined by that URLClassLoader and perform a couple of full GCs to see if the URLClassLoader is collected and its jar files closed. Or you might subclass URLClassLoader and add a method to close down all of the jar files it has open.

Similar Messages

  • Firefox does not completely shut down when X'd out, I have to do a restart to completly close the program, is this common?

    I just upgraded from 5.0 to 6.0 and the upgrade program told me that Firefox had to be closed before the new version could be installed. I had already X'ed out Firefox knowing that it needed to be closed before I could do an install. I finally had to do a restart before I could install the new version. This has happened in the past with other versions of Firefox. Firefox keeps running in the back ground for some reason and ends up using resources that are needed else where. In the past I have deleted Firefox from my computer to solve the problem, can you solve the problem or should I delete the program and use another browser?

    Must be the "hang at exit" problem. You already know how to do Step1; now just determine which Add-on (Extension or Plugin) is causing the problem.<br /><br />
    #Stop the Firefox process:
    #*[http://kb.mozillazine.org/Kill_application Mozillazine - Kill application]
    #*Windows 7 users click [http://www.techrepublic.com/blog/window-on-windows/reap-the-benefits-of-windows-7s-task-manager/2576 here]
    #Why Firefox may hang:
    #*[http://support.mozilla.com/en-US/kb/Firefox+hangs Firefox hangs] (see Hang at exit)
    #*[http://kb.mozillazine.org/Firefox_hangs Firefox hangs (Mozillazine)] (see Hang at exit and Closing Firefox properly)
    #*[https://support.mozilla.com/en-US/kb/Firefox+is+already+running+but+is+not+responding Firefox is already running but is not responding]
    #Use Firefox Safe Mode to find a problem with an Extension or Plugin:
    #*Don't check anything when entering Safe Mode, just continue
    #*If the problem does not occur in Safe Mode it is probably and Extension or Plugin causing the problem
    #*See:
    #**[[Safe Mode]] and [http://kb.mozillazine.org/Safe_Mode Safe Mode (Mozillazine)]
    #**[http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes Troubleshooting extensions and themes]
    #**[http://support.mozilla.com/en-US/kb/Troubleshooting+plugins Troubleshooting plugins]
    #**[http://support.mozilla.com/en-US/kb/Basic+Troubleshooting Basic Troubleshooting]
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • 'End Terminate' event does not completely terminate the process instance!

    Hi,
    my process make use of the 'End Terminate' event, this will be used pending on the outcome of a prior task, using the 'Exclusive' gateway. This works quite well but in case of process termination some strange behavior happens.
    The Enterprise Manager tell me that the process instance is in state 'Terminated' but the BPM Workspace in the 'Process Tracking' tab this instance is still in state 'Running' and if I check the WFTASK database table the process instance is still in state 'OPEN' and not 'CANCELED'.
    So my question is, do I use the 'End Terminate' event the wrong way or is this a bug/feature?
    Thanks in advance,
    Daniel
    PS: I use BPM Suite 11.1.1.5 with Feature Pack.

    If we see a human task active even after termination end event is not considered a bug... I'm sorry, but i think that if every task active in the process instance is not terminated or "killed", the terminate end event is not working well. So we are talking about a bug.
    If I'm wrong, what is the expected behavior of teminate end event?
    Thanks in advance.

  • When I try to sync my iPod iCal with my MBP iCal via WiFi I get a message saying "Safari Downloading Safe Browsing Data" but I am connected to a local network and thus the syncing does not complete"

    When I try to sync my iPod iCal with my MBP (OS 10.7) iCal via iTunes and WiFi I get a message saying "Safari Downloading Safe Browsing Data" but I am connected to a local network and thus the syncing does not complete because the downloading never completes because I am not connected to the internet.
    Why does syncing iCal need Safari Safe Browsing Data?  How can I turn this off?

    See:
    iTunes 10.5 and later: Troubleshooting iTunes Wi-Fi Syncing
    "Safari Downloading Safe Browsing Data" is just some data that is synce with the computer. To turn off on the Mac go to System Preferencs>iCloud and turn off Safari

  • When I plug in my iPhone to sync, it starts but does not complete the process and several pieces of data are not being transferred to my iPhone from my MacBook Air.

    Problem:
    When I plug in my iPhone to sync, it starts but does not complete the process and several pieces of data are not being transferred to my iPhone from my MacBook Air.
    Any help that you can provide in helping my iPhone accurately sync with iPhoto and iTunes will be greatly appreciated.
    Symptoms:
    1)   Sync:  It’s not completing the sync.  Below, I’ve provided all of my settings from the iTunes Summary tab so that you might tell me if I’ve selected any incorrect options.  I prefer to sync the “old school” way – by connecting to the computer – as opposed to syncing over the cloud. Perhaps this is what’s causing the problem? Here is a list of the steps displayed in the iTunes window as the sync progresses:
    waiting for sync to start (step 1 of 7)
    backing up (step 2 of 7)
    preparing to sync (step 3 of 7)
    determining apps to sync (step 4 of 7)
    preparing apps to sync (step 5 of 7)
    importing photos (step 6 of 7)
    waiting for changes to be applied (step 7 of 7)
    syncing apps / copying 1 of 4 (App name) (step 7 of 7)
    canceling sync
    apple icon
    2)   Photos: I've selected only certain of my iPhoto albums to sync to my iPhone.  All of the albums are correct/complete in iPhoto.  All of the albums are listed on my iPhone, both before and after the sync, but the albums are empty (no actual photos) before and after the sync. Perhaps this is tied to the fact that the sync isn’t completing, but because “importing photos” is one of the steps that the incomplete sync displays, I don’t know.
    3)   Apps: When I launch iTunes and click on the Apps folder under the Library listing, then click on the Updates tab, iTunes searches for any Apps needing to be updated and provides a list.  If I click on Update All, the Apps are successfully updated in iTunes.  But, when I plug in my iPhone so that the updates will transfer to the apps on my iPhone, the updates don’t transfer to the apps on my iPhone and those apps still reflect that they need updating on the iPhone.
    Other Potential Pertinent Info:
    The flash memory hard drive on my MacBook Air recently died (perhaps a month or two ago).  Apple had emailed me about a known issue and literally the next day, my MacBook Air crashed.  I installed a new flash memory drive and re-installed everything from a backup off of an external hard drive.  Everything seems to be working fine; it recreated accurately all of my software and data, including iPhoto and iTunes, the pictures and songs (respectively) for which are stored on that hard drive, as opposed to being on the flash memory in the MacBook Air itself.  However, I don’t recall if the start of the sync problem described herein started happening at the same time that I replaced the flash memory drive.  All I know is that the computer is working perfectly in all respects and that even as the sync is failing, it at least says that it’s doing the right things and looking in the right places (e.g., the list of albums on my iPhone matches the list of albums in iTunes, etc.).
    Settings/Status:
    MacBook Air
    OSX v. 10.9
    iPhoto ’11 v. 9.5 (902.7)
    iPhone iOS 7.0.4
    iTunes v. 11.1.3 (8)
    Summary Tab
    Backups (This Computer)
    Options
    Automatically sync when this iPhone is connected
    Sync only checked songs and videos
    Photos Tab
    Sync Photos from iPhoto (429 Photos)
    Selected albums, Events, and Faces, and automatically include (no Events)
    Albums – 9 are selected

    You need to download iTunes on your computer. iOS 6 requires the latest version of iTunes which is 10.7.

  • My menu bar does not appear at the top of my homepage on a brand new 27" iMac only when i pull up an app. this does not allow me to shut down my mac when all apps are closed nor does it all me to use finder. any help would be awesome

    My menu bar does not appear at the top of my homepage on a brand new 27" iMac only when i pull up an app. this does not allow me to shut down my mac when all apps are closed nor does it all me to use finder. any help would be awesome

    Press the escape (esc) key to exit full-screen mode.

  • So my Ipod touch hasn't been connecting to computer, or charging for a week or two until i turn it off completely and now i try to reset all content and setting, the circle goes round and round for like hrs(24) and it still does not complete the reset

    so my Ipod touch hasn't been connecting to computer, nor charging for a week or two until i turn it off completely and now i try to reset all content and setting,(thinking it may connect to the computer and itunes and also charge) but the circle goes round and round for like hrs(24) and it still does not complete the reset.
    pls pls pls pls help .
    i have tried alot of solutions, but non of them have worked.

    Have you tried walking it into the nearest Apple Store and asking for assistance there...?
    I'm guessing you don't have Apple Care on it.

  • After installing the latest itunes/quicktime update, I can no longer access the itunes store and my iphone does not complete syncing. What can I do to fix this?

    After installing the latest itunes/quicktime update I can no longer acces the itunes store nad my iphone does not complete syncing. What can I do to fix this?  I have tried uninstalling and reinstalling itunes.  I have uninstalled and reinstalled windows updates. I have checked the firewall settings. what else?

    The problem is with version 10.4.1.  I had to reload 10.3 to get it to work.  The recommendation from a previous poster worked for me.  Here was their list of steps:
    Go to Control Panel>Programs>Uninstall
    2.  Uninstall the following Apple programs in the following order:
         a. iTunes
         b. QuickTime
         c. Apple Software Update
         d. Apple Mobile Devices Support
         e. Bonjour
         f.  Apple Appllcation Support
    3.  Reboot PC
    4.  Find, Download and Install iTunes 10.3 (you can find it at FileHippo.com)
    If you start iTunes now you will get an error message saying that the current iTunes library was created by a newer version of iTunes.  To correct this:
    5.  Go to your Music>iTunes folder and delete the "iTunes Library.itl" database file
    6.  Within this iTunes folder find and open the "Previous iTunes Libraries" folder and locate the most recently dated "iTunes Library (date).itl" database file.
    7.  Copy and Paste this file back into the iTunes folder
    8.  Rename this "iTunes Library (date).itl" file by removing the date.  It should say "iTunes Library.itl"
    9.  Reboot PC

  • When i burn a disk in Disk Utility, the burn completes but the verification process does not complete and my disk pops out. The error message i get is something like this "burn failed because disk cannot be verified," PLEASE HELP

    when i burn a disk in Disk Utility, the burn completes but the verification process does not complete and my disk pops out. The error message i get is something like this "burn failed because disk cannot be verified," PLEASE HELP.
    Also when i take the disk out it seems fine nd everything seems to be burned onto the disk. I am buring mac os x lion onto a disk.
    The disk i am using is nextech and i am burning at the slowest speed (4x).
    Also this is my 3rd time trying to do this and the verifying process keeps failing.... what do i do?

    see there
    http://www.techmixer.com/best-free-mac-burning-software-for-mac-osx/
    what you like most
    try different brand of CD/DVD

  • I can't get iWeb started. It does not complete the starting procedure

    I can;t start iWeb. It does not complete the startup procedure, and then becomes frozen. I've installediWeb 3.04, but same results. What can I do?

    Try the following:
    delete the iWeb preference files, com.apple.iWeb.plist and com.apple.iWeb.plist.lockfile, that resides in your Home() /Library/Preferences folder.
    go to your Home()/Library/Caches/com.apple.iWeb folder and delete its contents.
    Click to view full size
    launch iWeb and try again.
    Happy New Year

  • When I sync my phone it gets to step 6 the does not complete the sync i get a message that says itunes has stopped working and needs to close anyone else have this issue

    When I sync my phone it gets to step 6 the does not complete the sync i get a message that says itunes has stopped working and needs to close anyone else have this issue

    The same problem here!... My itunes stucks on "preparing to sync" when sync my ipad 2, and stucks on iphone 4 calendar sync...
    Any solution?? Need help, please!!
    Macbook pro 13 i7
    Iphone 4
    Ipad 2
    Thanks!!!

  • My iPad does not automatically shut off after several minutes of non use. I can shut it off with the on/off switch. What can I do to get the auto sut off feature back?

    My IPad does not automatically shut off after several minutes of non use as it had been doing a few days ago  How can I restore this auto feature?

    Settings>General>Auto-Lock and select an Auto-Lock time (the "Never" setting will of course never auto-lock the device)

  • I cannot unlock my phone. When I hit the number the key is highlighted but the "dot" does not show in the passcode box. Have shut it off and restarted nothing. Held on/off and "square" key to reset but still nothing. Any ideas on how to resolve this issue

    I cannot unlock my phone. When I hit the number the key is highlighted but the "dot" does not show in the passcode box. Have shut it off and restarted nothing. Held on/off and "square" key to reset but still nothing. Any ideas on how to resolve this issue

    Connect to iTunes and try to reset it from there.

  • HT1222 Please Help.. When I update to 7.0.6 I remark a very low battery lifetime I does not complete 2 hours.. I update to 7.1 to get rid of this problem but unforeately the problem still.. Could you please guide what to do?

    Please Help.. When I update to 7.0.6 I remark a very low battery lifetime I does not complete 2 hours.. I update to 7.1 to get rid of this problem but unforeately the problem still.. Could you please guide what to do?

    Restore as New (no backup)... then Re-Sync your Content.
    Make sure you have the Latest Version of iTunes (v11.1.5) Installed on your computer
    iTunes free download from www.itunes.com/download

  • Does not complete processing of "Home" of the Creative Cloud desktop application

    Someone know the way to fix the following issue?
    After installed some Creative Cloud Software, I had uninstalled Adobe application manager manually and installed Creative Cloud desktop application manually.  because automatic upgrade of creative cloud desktop application from adobe application manager does not work.
    The creative cloud desktop application setup had been completed successfully.  but,  seems that  it does not complete processing of displaying the history if I chose "Home".   The progress Icon will stay in continuity.  And any contents does not show on it.
    Regards,

    I'm posting this in a few threads to try to catch everyone having the problem.
    The good news is that I found a way to fix this.
    The bad news is that it involves uninstalling everything.  (Note that reinstalling over the old installs won't cover it, I'd tried that one once too. You'll have to fully uninstall each program before redownloading/reinstalling.)
    I spent many hours with tech support yesterday running through options unsuccessfully, and can very thoroughly assure you that uninstalling the desktop app, renaming any number of folders, and new user accounts all will not help you.  From doing a lot of research on various similar problems, it appears that it's possible for this to spontaneously resolve within a couple of hours.  If it doesn't, though, you're stuck with fixing it yourself.
    The best theory I found was that it's caused by updating or installing a program without doing it through CC.  If you've downloaded an installer and run that or clicked "Check for updates" in the help menu inside one of the other apps, this is you.  Other people have noted that if you know which app you did this with, you can uninstall that one to fix it.  If you have no idea, the simplest path is to just uninstall everything.  You can try doing things one at a time, but you'll need to reboot every time the uninstaller tell you to do so and then see if it's fixed.  (Personally, I got sick of that by the second time through.)  I do remember clicking "Check for updates" right around the time this started for me, but I don't know which program it was in, just that I knew it would trigger the updates I knew existed but CC wasn't acknowledging.
    I will also note that once I had everything uninstalled, I ran the Cleaner Tool and did a "Clean All". If you're going to or need to do that, make sure you've backed up all of your preferences, customizations, plugins, and so forth as needed.

Maybe you are looking for

  • Need to print multiple sections in a group

    We have print customer invoices. Along with each invoice, we have to send 1.     A Cover Letter that is always one page 2.     Terms and conditions. This could be between 1 to 3 pages Our requirement is to have separate page numbering for each of the

  • SOAP RECEIVER ADAPTER --Security settings

    Hi All,        I have a scenario where I need to communicate with a synchronous webservice with receiver SOAP Adapter. The standard also recommends the use of certificates to authenticate the server (Target Webservice) to the client (XI). How do I pr

  • Lumia 720 YouTube live streaming problem

    I've problem in playing live YouTube videos in Lumia 720 even im using a wifi connection..... Error : sorry, video cannot be played on your device

  • Digested value of the canonical form of xml soap body. Help!!!

    <soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="id-168845"> <par:getBookPP2 xmlns:par="http://parkiranje"> <par:id_parkirno

  • You do not have the necessary access privileges

    I reinstalled the sytem and now can't save a photoshop file or pdf. What's up?