Update: Application and jdi/jvmti agent in single vm?

So far, using JDI as a "same-process" interface to the VM (i.e. "debugger" and "debuggee" in the same vm) seems to be working. Thus far we have MethodEnter and MethodLeave events flowing, along with capture of information available from these events. Our next goal is to get BreakpointEvents going so we can capture local variable information at certain points in a method.
Pretty cool...
-- david

Interesting - I don't know of anyone who has done this before.
Thanks for the update.

Similar Messages

  • Application and jdi/jvmti agent in single vm?

    We're building a suite of monitoring tools that will help us inspect and manage our enterprise-class app. We currently have working an instrumenting interface (via mbeans) that uses javassist to instrument bytecode; this tool runs as an agent within the app's vm using the java.lang.instrument package -- no native code involved. The next aspect of the tool suite is a more sophisticated "inspector" that will offer debugging-like facilities: method tracing, local variable inspection, thread inspection, etc.
    We prototyped a version using jdi and that works fine if the agent does not run in the same vm as the app. However, setting things up so that the JDI agent does run in the app's vm does not work -- the entire vm (app, agent) hang after a call to VirtualMachine.suspend().
    Intuitively, I think I knew this would happen but wanted to confirm it here. I have two questions:
    1. Is it possible for a JDI-based agent to run in the same vm as a monitored app?
    2. If not (1), and we write our agent in C, will the RunAgentThread() jvmti api allow us to run the inspector in the app's vm?
    Thanks for your help.

    JDI wasn't intended to be used to debug the same process in which the JDI client is running. We haven't tested that.
    However, it is an interesting question and it seems that theoretically, if you are very careful, you might be able to do
    a limited amount of debugging.
    I gave it a try. My test program is launched with
    java -agentlib:jdwp=transport=dt_socket,address=60000,server=y,suspend=n
    The program starts a thread (named by default Thread-0) and then uses the SocketAttachingConnector
    to attach to 60000. After it gets back a VirtualMachine object, it does
    VirtualMachine.allThreads()
    and prints the result:
    instance of java.lang.Thread(name='Thread-1', id=66),
    instance of java.lang.Thread(name='JDI Target VM Interface', id=4),
    instance of java.lang.Thread(name='JDI Internal Event Handler', id=7),
    instance of java.lang.Thread(name='Thread-0', id=69),
    instance of java.lang.Thread(name='Signal Dispatcher', id=70),
    instance of java.lang.ref.Finalizer$FinalizerThread(name='Finalizer', id=71),
    instance of java.lang.ref.Reference$ReferenceHandler(name='Reference Handler', id=72),
    instance of java.lang.Thread(name='main', id=1)
    So, this method worked. It sounds like you have basically gotten this far since you said your entire
    app hangs after a call to VirutalMachine.suspend(). This hang is to be expected since you are suspending
    'yourself'. You have to be very careful to not do this. EG, don't set a SUSPEND_ALL breakpoint at a location
    which your 'debugger' will execute. There might be other pitfalls too that make this idea impractical.
    But, if you are careful, eg, restrict actions to threads in the part of your app that you want to 'monitor', you
    might be able to do something useful.
    Let us know how it goes.

  • HT5621 We have 2 I phones and One Pad. We try to update applications and his phone never accepts the password for his Apple ID. We backup to same computer. He does what Apple recommends to change his password but it never works . Help

    We have 2 I phones and 1 I-pad we try to update on the same Windows 7 computer. The Apple ID continually prevents one I phone user to update applications. How do we share one
    Computer?

    Did he have find my iPhone enabled under that iCloud account?  If so, add the account back to his phone.  Then in the iCloud account settings, disable find my iPhone first (you will be prompted for your password), then remove the account.
    Now you can create or add a new iCloud account to it using his own AppleID.
    Alternatively, you could log in to your www.icloud.com account in a web browser.  Using the find my iPhone app there, remove his iPhone from your list of associated devices (he will have to power his iPhone off for you to do that).
    After his iPhone is set up for his own iCloud account, on your iPhone, go to
    settings->iCoud->Storage & Backup->Manage Storage and delete his iPhone's backup file to make more room on your own iCloud storage account.

  • Unable to update application and download new purchase?

    After downloading ios8, I am unable to update or download any application. Please help!

    Is the time and date correct?  Make sure that includes the time zone.

  • Update application and webos 1.4

    I wasn't shocked when 1.4 didn't arrive on the 15th.  And I have a nagging concern.  Every time I check for updates, the app tells me that Application updates are available.  Well, half the time the time when I select show updates I get App Catalogue with white screen and when it does load there are no updates.   What if last update broke update process?  Has anyone reset there phone to a previous version to see what else may be out there?  Just a crazy thought!  Either way, with Sprint getting 1.4 on Monday, there was no way it would be pushed out the same day.  Did Sprint even get it?  I think I will try to only check a few times a day until March or I hear that it is out...

    When any webOS update is released, we update the info and links in this post.

  • Problem in updating applications and downloading podcasts after upgrading to iOS 6

    Recently I have downloaded iOS 6.  Since then I cannot download podcasts and cannot update applications

    Haha, thanks for the tip! I was just curious if anyone had this problem at all. I just found it odd that before iOS 6, I had version 5.1 (which came standard with my iPad at the time) and there was no delay. You click on/off button for Airplane Mode or WiFi and the function would turn on or off instantly... Just annoying have to wait several seconds for a response. Thanks for the input though.

  • Not a question but a complaint.  The new ITunes software doesn't support the IPhone.  It is extremely difficult to find your IPhone, what applications are on the phone and to re-sync new and updated applications.  It is focused on selling and not support.

    The new ITunes software for Windows, ITunes vers. 11.0.1.12, is extemely clumsy for managing my IPhone 4.  The help material is designed for the older version so is of no use.  The interface is extremely difficult to use except for buying music or video.  I'm trying to managing updating applications and syncing with my IPhone but there I can't find a drop-down menu or anything on help that tells me how to get to the IPhone window so I can initiate a re-sync on my IPhone.  This is very frustrating because Apple is supposed to make things "intuitive" and have "good" help.  Well, it's NOT intuitive and there is NO HELP.  You need to fix this.  I mean a terrible map application and now this terrible interface.  Nothing but downhill since Jobs left us.  Just remember, we all bolted from Microsoft because of this sort of crap and we can all bolt to Android if you keep up this trend.

    Ctrl + B to show the Top Menu
    View > Show Sidebar
    View > Show Staus Bar
    Deactivate Search Entire Library to speed things up.
    This should make managing your iPhone the same as it was before.

  • Warning about AppStore Update Application info

    Just a quick warning so other folks don't do what I did - when you do Update Application and it's in review, don't try to update the screenshots or text in that version 2.0 entry. It will be reflected into your current version, and you will get quite a bit of confused e-mail from new purchasers as they wonder "where the network list button is."
    Since it can take a few hours to a day to get that info pushed out, even reverting can take a while.

    I always run pacman -Syy after changing mirror. Haven't tried Syyu. Also changed mirror after consulting the mirrors most recently updated from the list in this forum.
    OOPS! My mistake. Haven't seen this "mirror used during installation....." in mirrorlist. After commenting it out it's OK.
    Last edited by jai134 (2009-12-25 14:39:03)

  • ITunes NOT updating applications correctly

    Things are not well in the land of iPhone Application updates. Below are some observations and thoughts on might be causing them. Please post your experiences since I assume I'm not alone here.
    Step 1: I noticed in the iTunes sidebar that 2 applications had updates (thats the little number that shows up next to the applications sidebar item)
    Step 2: I click on the number and it opens an update screen that displays 6 applications. Why display 6 of my 10 or so applications when supposedly only two have updates.
    Step 3: I click on the option to update all applications and 6, not 2, are downloaded
    Step 4: No auto sync happens so I manually sync and only one of the 6 update on my iphone.
    Step 5: In order to actually get the new versions onto my iphone I have had to manually delete each of the updated applications and then add them back. Huge pain especially since application load/unload times are so long.
    Here is the common thread I've found so far. If you right click an application's icon in iTunes and get info, it will show a version number. Only one of my applications actually showed an incremented version number...you guessed it...the one that actually re-synced to my iPhone.
    The other applications still showed version 1.0, but when I manually forced a sync, I could see that the new functionality was present. AIM is a great example of this. ITunes store shows it as version 1.1. iTunes on my Mac indicated an update was present. I "updated" the application and sync'ed, but the "show info" on the AIM application remains 1.0 and it did NOT sync the new code to my iphone. After manually deleting AIM via selective sync'ing applications, I was able to get the new code onto my iphone.
    I've been able to reproduce this with Phone Sabre, AIM, Light, and several others.
    Another side problem is that whenever you update an application, it downloads it to your mobile applications folder and does not overwrite the old version. This may well be by design, but that folder is going to get ugly with all the versions sitting there. AIM, AIM-1, AIM-2, etc.
    The naming, btw, has nothing to do with the version numer it's just part of OSX; when it encounters a file of the same name it uses the same name but appends an incremented number at the end.
    Any ideas?

    Yeah...this is definitely NOT a firewall issue.
    It is a version control and file management issue.
    There are lots of applications that the App store still calls V 1.0 even though w/in the application itself, it is listed as 1.x.
    This is often true of the application icon listed within iTunes on your Mac. For example, right click and get info on AIM, it will show as v1.0 even thought it is actually 1.1.
    To be honest, iTunes needs some serious work when it comes to how applications are updated. Some attention to detail with respect to version numbers will fix the problems I've listed above, but the file management is another story.
    Why? Well, how many people have multiple "versions" of a song, ringtone, or video that they want referred to by the same name. Ummmm...none that I can think of. iTunes was not designed with "updates" in mind. A different version of a song...is...well...a different song. You probably want both the original and the cover version of that Beatles tune.
    For applications, we want just the opposite. If artists actually released the the draft versions of their music via iTunes, then maybe it would be similar, but they don't.
    Some reasonably straight forward Applescript should be able to fix this issue, but that certainly wouldn't work for our friends in the PC world.
    Apple is going to have to find some way to stage new versions and then archive the old ones with the option to delete them either immediately or over time.
    As it stands now...it's a pretty big mess.

  • Down loading Microsoft Office update get error message to close applications microsoft database daemon and sync services agent

    when downloading microsoft office update get message to close microsoft database daemon and sync services agent. Shouldn't these be closed automatically? I try to close them, but the message still says they need to be closed.  Help!

    Are you using Outlook 2011 or Outlook 2015? I don't seem to have any relevant sync settings under Preferences -> Other in Outlook 2015.

  • Clients getting Applications and Packages, but NOT Software Updates

    I am trying to set up a new SCCM2012 installation and have come across a strange problem that I need help on.
    We have a single primary site at one location with distribution points at several other locations. Clients at some of the locations (but not all) are able to get deployed applications and packages from their DP, but for some reason are not able to get Software
    Updates from the same DP.
    When I look in the LocationServices log, I can see it contact the DP when an application is available. The following appear in the log:
    Current AD site of machine is XYZ
    Calling back with the following distribution points
    Distribution Point='https://<My DP>...,Locality='LOCAL',DPType='Server',Version='7958', etc.
    Calling back with locations for location request {<CID>}
    But otherwise, the LocationServices log is filled with:
    Current AD site of machine is XYZ
    Calling back with empty distribution points list
    Current AD site of machine is XYZ
    I don't understand how the machine is able to locate and work with the DP for Applications/Packages, but not for Software Updates. I'm thinking it must be something with the boundaries/boundary groups, but I have checked and everything seems to be fine,
    and they are working for Apps/Packs. 

    The WindowsUpdate.log seems to indicate that it is talking with the MP:
    **START** Agent: Finding updates [CallerId=CcmExec]
    *Include potentialy superseded updates
    *online=Yes;Ignor download priority=Yes
    *Criteria="(DeploymentAction=* AND Type='Software') OR (DeploymentAction=* AND Type='Driver')"
    *Search Scope={Machine}
    +++++ PT: Synchronizing server updates +++++
    + ServiceId= {<CID>}, Server URL = <My MP with appropriate port>
    Agent * Added update {<CID>}.202 to search result
    * Found 289 updates and 77 categories in search; evaluated appl. rules of 2711 out of 4339 deployed entities
    ** END ** Agent:Finding updates [CallerID=CcmExec]
    But there is no mention of my DP.

  • How do I update iMovie and iPhoto? it tells me "To update this application, sign in to the account you used to purchase it."

    I have been trying to update imovie and iphoto but i keep getting the same message and dont know how to go about it. Help please!

    You obviously haven't bothered to read the software license agreement that covers iPhoto.
    It states exactly what I have been explaining to folks that you now come along and contradict;
    http://www.apple.com/legal/sla/docs/iPhoto.pdf (underlining mine)
    B. If you obtained the Apple Software preinstalled by Apple on Apple-branded hardware, in order to use the Apple Software on more than one of the Apple-branded computers you own or control under the Mac App Store Product Usage Rules, you must log in to the Mac App Store and associate the Apple Software with your Mac App Store account. If you choose not to associate the preinstalled Apple Software with your Mac App Store account, you are permitted to install, use and run one (1) copy of the Apple Software on a single Apple-branded computer at any one time. Please also note that by choosing to associate the preinstalled Apple Software with your Mac App Store account, you will also associate any other Apple software applications (i.e., iMovie and GarageBand) that are provided to you as part of the same preinstalled application bundle.
    You have been lucky, because they realized that you were not intelligent enough to work with logically or to understand the license agreement, the Apple employees likely gave you these redemption codes to get rid of you. I seriously doubt that Apple is going to make a policy and give every user redemtion codes because they fail to read the terms of use and fail to associate their iLfe apps to their Apple ID correctly.
    There is no bug. It works this way by design.

  • Every time i try to update software it asks me to close Microsoft Database Daemon SyncServicesAgent  Close these applications and try again. i cannot close them becase i cannot find where they are open help as i cannot update

    every time i try to update software it asks me to close Microsoft Database Daemon SyncServicesAgent  Close these applications and try again. i cannot close them becase i cannot find where they are open help as i cannot update

    You can find how to here:
    http://www.bing.com/search?q=close+sync+services+agent
    http://www.bing.com/search?q=what+is+mac+os+x+sync+services
    Mac OS X: Resetting the SyncServices folder - Apple - Support
    http://support.apple.com/kb/TS1627
      Aug 17, 2012 · Choose Reset Sync Services. Click Reset Sync History. Test for the ... Resetting SyncServices resets your Mac OS X User Account's Sync settings and …
    Sync Services: Advanced troubleshooting for contact and calendar ...
    http://support.apple.com/kb/TS2481

  • Single Sign on using SAML between JWS application and Web Application

    Hi,
    We have two applications one is swing based Java Web Start application and other is a normal web application. We are trying to enable single sign on between both the applications. Can SAML be used to enable single sign on? If yes, can some one let us know how to do this?
    Thanks,
    Rama

    Thanks. But it is based on two WEB applications deployed on two different weblogic domains. What I am looking for is one application which is launched using Java Web Start(JNLP) and other a web application. The Java Web Start application uses its proprietary authentication implementation and the web application used DefaultAuthenticator of weblogic. Hope this detail will help you to answer my question better. I should have given this information earlier.
    Thanks.
    Rama

  • HT5621 I bought my iMac from someone. Everything was changed over to my name however when I try to update programs it only shows the old users apple ID and I can't update. How do I change this so I can update the applications and have everything fully und

    I bought my iMac from someone. Everything was changed over to my name however when I try to update programs it only shows the old users apple ID and I can't update. How do I change this so I can update the applications and have everything fully under me?

    The first thing to do with a second-hand computer is to erase the internal drive and install a clean copy of OS X. You — not the previous owner — must do that. How you do it depends on the model, and on whether you already own another Mac. If you're not sure of the model, enter the serial number on this page. Then find the model on this page to see what OS version was originally installed.
    1. You don't own another Mac.
    If the machine shipped with OS X 10.4 or 10.5, you need a boxed and shrink-wrapped retail Snow Leopard (OS X 10.6) installation disc from the Apple Store or a reputable reseller — not from eBay or anything of the kind. If the machine has less than 1 GB of memory, you'll need to add more in order to install 10.6. Preferably, install as much memory as it can take, according to the technical specifications.
    If the machine shipped with OS X 10.6, you need the installation media that came with it: gray installation discs, or a USB flash drive for some MacBook Air models. For early MBA models, you may need a USB optical drive or Remote Disc. You should have received the media from the previous owner, but if you didn't, order replacements from Apple. A retail disc, or the gray discs from another model, will not work.
    To boot from an optical disc or a flash drive, insert it, then reboot and hold down the C key at the startup chime. Release the key when you see the gray Apple logo on the screen.
    If the machine shipped with OS X 10.7 or later, you don't need media. It should boot into Internet Recovery mode when you hold down the key combination option-command-R at the startup chime. Release the keys when you see a spinning globe.
    2. You do own another Mac.
    If you already own another Mac that was upgraded in the App Store to the version of OS X that you want to install, and if the new Mac is compatible with it, then you can install it. Use Recovery Disk Assistant to create a bootable USB device and boot the new Mac from it by holding down the C key at the startup chime. Alternatively, if you have a Time Machine backup of OS X 10.7.3 or later on an external hard drive (not a Time Capsule or other network device), you can boot from that by holding down the option key and selecting it from the row of icons that appears. Note that if your other Mac was never upgraded in the App Store, you can't use this method.
    Once booted in Recovery, launch Disk Utility and select the icon of the internal drive — not any of the volume icons nested beneath it. In the Partition tab, select the default options: a GUID partition table with one data volume in Mac OS Extended (Journaled) format. This operation will permanently remove all existing data on the drive.
    After partitioning, quit Disk Utility and run the OS X Installer. You will need the Apple ID and password that you used to upgrade. When the installation is done, the system will automatically reboot into the Setup Assistant, which will prompt you to transfer the data from another Mac, its backups, or from a Windows computer. If you have any data to transfer, this is usually the best time to do it.
    Then run Software Update and install all available system updates from Apple. To upgrade to a major version of OS X newer than 10.6, get it from the Mac App Store. Note that you can't keep an upgraded version that was installed by the previous owner. He or she can't legally transfer it to you, and without the Apple ID you won't be able to update it in Software Update or reinstall, if that becomes necessary. The same goes for any App Store products that the previous owner installed — you have to repurchase them.
    3. Other issues
    If you see a lock screen when trying to boot from installation media or in Recovery mode, then a firmware password was set by the previous owner, or the machine was remotely locked via iCloud. You'll either have to contact the owner or take the machine to an Apple Store or another authorized service provider to be unlocked. You may be asked for proof of ownership.
    If the previous owner "accepted" the bundled iLife applications (iPhoto, iMovie, and Garage Band) in the App Store so that he or she could update them, then they're linked to that Apple ID and you won't be able to download them without buying them. Reportedly, Mac App Store Customer Service has sometimes issued redemption codes for these apps to second owners who asked.
    If the previous owner didn't deauthorize the computer in the iTunes Store under his Apple ID, you wont be able to  authorize it immediately under your ID. In that case, you'll either have to wait up to 90 days or contact iTunes Support.
    When trying to create a new iCloud account, you might get a failure message: "Account limit reached." Apple imposes a limit of three iCloud account setups per device. Erasing the device does not reset the limit. You can still use an account that was created on another device, but you won't be able to create a new one. Contact iCloud Support for more information.

Maybe you are looking for

  • HT1349 My Ipod mini syncs, but when I go to play, no sound.  I've tried multiple speakers and headphones. No Go.  What next?

    My Ipod mini syncs, but when I go to play, no sound.  I've tried multiple speakers and headphones. No Go.  What next? My latest problem is that the Apple site will not recognize my equipment by it's serial number.  I know the mini is old, but I like

  • Reports command line

    How we can run a report from unix environment that is from $prompt? null

  • CS3 saving from actions & batch error, what to do?

    Hello! I am trying to edit a big bunch of my photos using actions and the batch script in Photoshop CS3 Extended on Windows Vista. The whole thing falls apart when PS is trying to save during an action sequence (or even if the saving is bypassed by t

  • Menu Bar Disappeared

    Several times now in several different apps (Safari, Mail) the main system menu bar does a disapearing act.  Sometimes it comes back after a period of time or a restart and other times it does not.  I am running the programs in full screen mode, whic

  • Tax on Restocking Fees

    My client has this requirement 1)The Goods are shipped with freight charges and tax is also calculated on the same. 2)The goods are returned againt RMA and the customer is charged with the "Restocking fees" in this order(RMA order is copied from orig