TP4[BUG]: Memory profile and CPU profile doesn't work for MAC

I'm using Mac OSX 10.5.4.
When I try to use Memory profile and CPU profile, I got following error:
Error occurred during initialization of VM
Could not find agent library in absolute path: /Shared/jdevstudiobase1111/jdev/lib/profiler15.so
But the file actually exists.

My MAC version is OSX 10.5.4.
I don't have a stacktrace. It just fails silently.
You can easily reproduce this bug by reformat a readonly file.
Here is the code I reverse engineered from oracle.jdeveloper.refactoring.util.Util.java:
public static boolean setReadOnly(java.net.URL url, boolean readOnly)
boolean ret = false;
java.lang.String cmdarray[] = null;
java.lang.String platformPathName = oracle.ide.net.URLFileSystem.getPlatformPathName(url);
java.lang.String osName = java.lang.System.getProperty("os.name", "");
if(osName.startsWith("Windows"))
cmdarray = (new java.lang.String[] {
"ATTRIB", readOnly ? "+R" : "-R", (new StringBuilder()).append('"').append(platformPathName).append('"').toString()
else
if(platformPathName.equalsIgnoreCase("Linux"))
cmdarray = (new java.lang.String[] {
"chmod", readOnly ? "u-w" : "u+w", (new StringBuilder()).append('"').append(platformPathName).append('"').toString()
if(cmdarray != null)
java.lang.Runtime runtime = java.lang.Runtime.getRuntime();
try
java.lang.Process process = runtime.exec(cmdarray);
if(process.waitFor() == 0)
ret = (new File(platformPathName)).canWrite();
if(ret)
oracle.ide.model.Node node = oracle.ide.model.NodeFactory.find(url);
if(node instanceof oracle.ide.model.TextNode)
oracle.ide.model.TextNode textNode = (oracle.ide.model.TextNode)node;
textNode.isReadOnly();
catch(java.io.IOException e)
e.printStackTrace();
catch(java.lang.InterruptedException e)
e.printStackTrace();
return ret;
}

Similar Messages

  • [BUG]: MakeWritable doesn't work for mac

    I'm trying to use oracle.jdeveloper.refactoring.util.MakeWritableHelper in my plugin, and I found it doesn't work for MAC. The byte code shows it only check the osname for "Windows" and "Linux".
    and some Jdeveloper refactoring feature failed due to can't make file writable, they may also related to this class.

    My MAC version is OSX 10.5.4.
    I don't have a stacktrace. It just fails silently.
    You can easily reproduce this bug by reformat a readonly file.
    Here is the code I reverse engineered from oracle.jdeveloper.refactoring.util.Util.java:
    public static boolean setReadOnly(java.net.URL url, boolean readOnly)
    boolean ret = false;
    java.lang.String cmdarray[] = null;
    java.lang.String platformPathName = oracle.ide.net.URLFileSystem.getPlatformPathName(url);
    java.lang.String osName = java.lang.System.getProperty("os.name", "");
    if(osName.startsWith("Windows"))
    cmdarray = (new java.lang.String[] {
    "ATTRIB", readOnly ? "+R" : "-R", (new StringBuilder()).append('"').append(platformPathName).append('"').toString()
    else
    if(platformPathName.equalsIgnoreCase("Linux"))
    cmdarray = (new java.lang.String[] {
    "chmod", readOnly ? "u-w" : "u+w", (new StringBuilder()).append('"').append(platformPathName).append('"').toString()
    if(cmdarray != null)
    java.lang.Runtime runtime = java.lang.Runtime.getRuntime();
    try
    java.lang.Process process = runtime.exec(cmdarray);
    if(process.waitFor() == 0)
    ret = (new File(platformPathName)).canWrite();
    if(ret)
    oracle.ide.model.Node node = oracle.ide.model.NodeFactory.find(url);
    if(node instanceof oracle.ide.model.TextNode)
    oracle.ide.model.TextNode textNode = (oracle.ide.model.TextNode)node;
    textNode.isReadOnly();
    catch(java.io.IOException e)
    e.printStackTrace();
    catch(java.lang.InterruptedException e)
    e.printStackTrace();
    return ret;
    }

  • HT201263 Unable to update, restore or recover. Slider doesn't slide and number pad doesn't work for passcode. What next? Worked last night . Battery charged. When I push Home button I get my backgroung but can't slide slider. Device is recognized by iTune

    Unable to update, restore or recover. Slider doesn't slide and number pad doesn't work for passcode. What next? Worked last night . Battery charged. When I push Home button I get my backgroung but can't slide slider. Device is recognized by iTunes.Help! Thank you.

    Besweet, I'm having the very same problem with 60GB colour which was bought new and worked for 6 months before suddenly just not being recognised by PC. I hadn't changed anything at all.
    I've followed all troubleshooting advice and reinstalled and updated iTunes and iPod updater software but all troubleshooting routes seem to hit the dead end of either the need to access the iPod via the PC (which isn't possible as it's not showing up at all) or the iPod in disc mode stuck at "ok to disconnect".
    It's still under 1yr warranty so will have to take to a dealer.
    I'm sorry that's not much help for you but at least you know it's not a unique problem.
    PC   Windows XP  

  • HT4527 How on earth do you get Home Sharing to work properly?  We have tried multiple times and it simply doesn't work for us!

    How on earth do you get Home SHaring to work?  We have tried numerous times and it simply doesn't work for us!

    Turn it on.
    Honestly, if you want help it is generally a good idea to ask a specific question and give some details of what problem is occurring.
    If trying to move media, using home sharing is simply a bad idea.  Follow some of the other instructions in the article from which the question was posted to move media.

  • Application Restart and Recovery APIs doesn't work for windows services

    I am using the Application Restart and Recovery mechanism (provided in Windows API Code Pack for Microsoft.NET Framework) to collect some information (i.e. stack information when there's an unhandledexception)  before my windows service crash down.
    It works well for windows form applications, but the callback method wouldn't be called if the host is a windows service. 
    I have checked the article: https://msdn.microsoft.com/zh-cn/subscriptions/downloads/cc303708
    But it doesn't specify clearly whether it works for a windows service. It seems that the recovery will only be activated when the user interacts with the error dialog of Windows Error Reporting (clicking "close" on the dialog, for example).
    So I am wondering is my guess right that the Application Restart and Recovery mechanism doesn't work for windows services. Or is there a better way to meet my requirement? 

    I would suggest trying ARR if that's what you want to use.  The restart portion won't work, but it doesn't need to as if you fail out of your service, the Windows service controller will handle recovery (up to and including restarting your service).
     You configure those recovery actions either through code or one of the built in administrative tools for services such as services.msc.  
    DebugDiag/ADplus and similar tools ultimately do use built-in APIs; you don't need to add anything external to collect debugging information.  You do however have to write a good deal of code to do somethings.  It's pretty simple to use the unmanaged
    function that I pointed out before and
    MiniDumpWriteDump to write a minidump when you hit an unexpected error(the dbghelp.dll that comes installed with Windows has it so you don't need anything additional installed).  You can even write a basic debugger that literally debugs a process using
    only kernel32 functions (see
    https://msdn.microsoft.com/en-us/library/windows/desktop/ms679301(v=vs.85).aspx if you're interested).  
    WinSDK Support Team Blog: http://blogs.msdn.com/b/winsdk/

  • SafeSleep doesn't work for Mac mini

    I use Mac mini (Mid 2011)  with  hibernatemode=3.
    But my Mac doesn't reboot from sleepimage afer I unplug the power cord. I mean SafeSleep doesn't work for my Mac. It boots normally but every program is initialized.
    It is strange that I very rarely watch the very moment that my Mac's progress bar when rebooting from SafeSleep successfully.
    Please help me to use SafeSleep and to save energy.
    I am sure settings are correct and sleepimage is made by the following commands.
    $ ls -l /private/var/vm
    total 8519680
    -rw------T  1 root  wheel  4294967296  9  9 18:01 sleepimage
    -rw-------  1 root  wheel    67108864  9  9 18:02 swapfile0
    $ pmset -g
    Active Profiles:
    AC Power        -1*
    Currently in use:
    hibernatemode        3
    womp                 0
    networkoversleep     0
    sleep                10
    powerbutton          1
    ttyskeepawake        1
    hibernatefile        /var/vm/sleepimage
    autorestart          0
    disksleep            10
    displaysleep         10

    Don't be too dismayed that you can't take advantage of Hibernate the way you did in the past on your PCs.  See this chart:
    (from here: http://images.apple.com/environment/reports/docs/macmini_per_july2011.pdf)
    At most, you're drawing 1.16W in Sleep.  For me, that amounts to a cost of about 10p every fortnight.  If it's the environmental effects that concern you, further reading of the PDF should show you've got one of the most environmentally-friendly home computers money can buy.
    I hope that puts your mind at ease.

  • Jdev11g CPU profile and Memory Profile doesn't work for Mac

    I'm running Jdev11g on Mac OSX 10.5.5,
    CPU Profile and Memory Profile doesn't work. I got following message:
    Error occurred during initialization of VM
    Could not find agent library in absolute path: /Shared/jdevjavabase11110/jdeveloper/jdev/lib/profiler16.so
    The file actually is there. I don't understand why they looking for .so file, it supposed to be mapped as .jnilib on Mac.
    This is broken on TP4 as well.

    I'm still seeing this issue. Here is what I get:
    /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java -client "-agentpath:/Users/kamleshnanda/Downloads/jdeveloper/jdev/lib/profiler16.so=port=60950,jarpath=/Users/kamleshnanda/Downloads/jdeveloper/jdev/lib/profiler-agent.jar,enable=t,depth=1000,startup=connect,time" -classpath /Users/kamleshnanda/jdeveloper/mywork/MyJavaApplication/Project1/classes project1.Class1 Hello
    Error occurred during initialization of VM
    Could not find agent library in absolute path: /Users/kamleshnanda/Downloads/jdeveloper/jdev/lib/profiler16.so
    Process exited with exit code 1.
    I'm using the following build:
    About
    Oracle JDeveloper 11g Release 1 11.1.1.2.0
    Java Edition Version 11.1.1.2.0
    Build JDEVADF_11.1.1.2.0_GENERIC_091029.2229.5536
    Copyright © 1997, 2009 Oracle and/or its affiliates. All rights reserved.
    IDE Version: 11.1.1.2.36.55.36
    Product ID: oracle.jdeveloper
    Product Version: 11.1.1.2.36.55.36
    Version
    Component     Version
    =========     =======
    CVS Version (External)     (CVS) 1.12.13 (client/server)
    Java(TM) Platform     1.6.0_17
    Oracle IDE     11.1.1.2.36.55.36
    PMD     JDeveloper Extension 4.2.5.3.0
    Team Productivity Center     11.1.1.2.36.55.36
    Versioning Support     11.1.1.2.36.55.36
    Here are the JVM properties:
    java.runtime.name     Java(TM) SE Runtime Environment
    java.runtime.version     1.6.0_17-b04-248-10M3025
    java.specification.name     Java Platform API Specification
    java.specification.vendor     Sun Microsystems Inc.
    java.specification.version     1.6
    java.vendor     Apple Inc.
    java.vendor.url     http://www.apple.com/
    java.vendor.url.bug     http://bugreport.apple.com/
    java.version     1.6.0_17
    java.vm.info     mixed mode
    java.vm.name     Java HotSpot(TM) 64-Bit Server VM
    java.vm.specification.name     Java Virtual Machine Specification
    java.vm.specification.vendor     Sun Microsystems Inc.
    java.vm.specification.version     1.0
    java.vm.vendor     Apple Inc.
    java.vm.version     14.3-b01-101
    Here is the OS information:
    os.arch     x86_64
    os.name     Mac OS X
    os.version     10.6.2

  • I deleted injustice from my ipad, and I'm trying to reinstall it, but it doesn't for some reason. I have lots of memory left but it still doesn't work for some reason. Can you please help ?

    I tried reinstalling injustice on my ipad, but it doesn't work.

    Hi Somehunk,
    Welcome to the Support Communities!
    The first thing I would suggest is to quit the iTunes Store app and sign out of your iTunes Store account on your iPhone.
    Then restart / reset the device.
    When you sign back in, you should be able to re-initiate the download.
    The following articles will explain these steps in more detail:
    iOS: Force an app to close
    http://support.apple.com/kb/ht5137
    iOS: Changing the signed-in iTunes Store Apple ID account
    http://support.apple.com/kb/HT1311?viewlocale=en_US
    iOS: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/HT1430
    Downloading past purchases from the iTunes Store, App Store, and iBooks Store
    http://support.apple.com/kb/HT2519
    Cheers,
    Judy

  • Release build and standard packaging doesn't work for iOS mobile project.

    Hi,
    We are trying to port our web application on iOS(iPad). Made some minor changes and package ipa with fast packaging method. It works great.
    Now we are try to package application for AppStore and use Standard method. But error occurs.
         Error occurred while packaging the application:
         Exception in thread "main" java.lang.Error: Unable to find named traits: spark.components::Application
             at adobe.abc.Domain.resolveTypeName(Domain.java:225)
             at adobe.abc.Domain.resolveTypeName(Domain.java:142)
             at adobe.abc.GlobalOptimizer$InputAbc.resolveTypeName(GlobalOptimizer.java:272)
             at adobe.abc.GlobalOptimizer$InputAbc.readInstance(GlobalOptimizer.java:994)
             at adobe.abc.GlobalOptimizer$InputAbc.readAbc(GlobalOptimizer.java:390)
    Distribution certificate and provisioning profile are used for compilation.
    Restarting FB and OS doesn't help. Packaging via command line also throws same error.
    Exporting Release build shows other error. After opening Export Release build window and click next error occur:
         Encountered errors or warnings while building project XXXX.mxml.
         configuration variable 'runtime-shared-library-path' requires a value 'rsl-url'.
    All the libraries are merged into code, not RSL.
    OS: Windows XP SP3, Windows 7.
    Flash Builder: 4.5.1.
    Flex SDK: 4.5.1 build 21328.
    AIR: 2.7.1(2.7 shows erros also).
    Thanks in advance for your answers.

    Hi,
    Please send your swf and app-xml to [email protected] so that we can try it at our end.
    Thanks,
    Amish.

  • ¿Why sms and cell calls doesn't work on mac?

    I downloaded iOS 8.1 and have yosemite OS installed in my mac. i have tried to use the calls and sms feature but none of this works.
    In the calls when i try to call someone a message pops up saying that i must have an iphone and a mac with the same iCloud and FaceTime account. But the devices that i'm using do have the same accounts and still does't work!!
    I have noticed that my phone number does't appear with a check and that in the FaceTime of my iphone a message down the switch to activates says "waiting for activation", but i can still make normal FaceTime calls.  does this have something to do? how do i fix it? i have tried to reset the settings but everything is still the same.
    In the sms feature the same message "waiting for activation" is down the iMessage title, i can send iMessages but when i try to activate sms a message says "enter the code displayed on the other device" but the code in my mac never shows up. What's the problem here? i have also tried to reset the settings and rebooting the devices but it's the same.   Does this has to do with my phone number being unchecked? the problem is that i can't check it, the opti
    Please help me.

    Hello...
    The SMS Relay and Phone Calls only work with a Mac device with Bluetooth 4.0 and later. If you want to see if your device has this, click on the Apple menu in the Menu Bar and choose About this Mac. A window then comes up with device information. Click System Report. On the sidebar, choose Bluetooth. At the top of the window it says Apple Bluetooth Software Version. If the number next to it is less than 4.0, your Mac device is too old. If it is above 4.0, your internet connection may have problems. Also if it says No next to Handoff supported, one of the devices is too old.
    Good luck

  • Problem with my touch screen. It works for 1 or 2 minutes and then it doesn't work for 2 or 3 minutes !!

    hi everybody
    I have a problem with my touch screen. It works for 1 or 2 minutes and then it stops working for 2 or 3 minutes, this is a loop ! if I don't use for a couple of hours it will work more, about 15 minutes and then stops working !!! whats wrong with may iphone, which part is damaged ?:(
    ( when touch screen stops working, all keys work correctly, home key & others )
    please help me

    oh
    finally problem solved
    the finger touch part was damaged, they replaced it with a new one and now I have my iphone 4g as it was at first, brilliant like always

  • I was given a used iPod, and the battery doesn't work for that long.

    I want to take it to the Apple Store and see if they can exchange it or give me a new battery, but the iPod isn't registered under my name. My brother said that I have to give the registered name, but I'm unsure what it is, because who I got it from had gotten it from another person. Is it necissary to change the registered name, and if so how do I do this?

    What apps are you using when your Macbook is running on batteries?
    What do you have loading in your login items?
    Open Activity monitor and see what's running under All Processes.
    Were you playing games when your Macbook is running on batteries?
    Did you turn off your bluetooth?
    Do you have anything hooked up to your usb ports?
    The above comments or questions factor in the way your battery last when using your Macbook under it's own power.

  • I can't open any new windows from File [New Tab] and from clicking on [+] , as I usually did. And [Ctrl+T] doesn't work for me.How I can make it to work for me again, please?

    I have to open the next window by right clicking on some link from previous site, who gives, '''''from drop down menu''''', option to [Open link in new tab] and then I can use that "fresh" tab.
    It is my desktop, if it's important to know for help.
    Please, some ideas, how to fix it, will be welcome.
    Thank you.

    Hi, were you able to resolve your problem? If so, please mark this question as '''Solved'''. Thanks !

  • Drag and Drop Apps to and from Dock, doesn't work for one account?

    Hi there,
    I have 2 accounts on my Macbook, one of them is my main account which is admin and nothing is wrong with it. The second account though is also admin but I cannot drag and drop applications to and from the dock. I can open the program, hold left click down till it pops up with options and in which you can untick Keep in Dock. Which would be fine but as soon as the computer restarts or I log out then in again, the application reappears. Any help or ideas would be much appreciated.
    Note that I have deleted both plist files from library/preferences and I have also enabled parental controls and ticked the allow users to modify the dock option. I also tried downloading Onyx and setting it up through there but it was a no go. Anyway, if anyone has any idea then that would be awesome.
    Cheers

    TheArtieChoke wrote:
     The second account though is also admin but I cannot drag and drop applications to and from the dock.
    Ok, you can drag applications from your Applications and Utilities Folders to make a "alias" (aka shortcut) in the Dock, but if you drag the icon off and drop it, it "poof's" away as your deleting the alias. The program itself isn't in the Dock at all at any time.
    TheArtieChoke wrote:
    I can open the program, hold left click down till it pops up with options and in which you can untick Keep in Dock. Which would be fine but as soon as the computer restarts or I log out then in again, the application reappears.
    Right, when you run a program from where ever, it places a alias icon in the Dock, which you then right click and choose to keep the alias in the Dock which survives reboots and logouts/in as normal.
    If you right click and choose "open at log-in" the program will automatically run when you restart or log back into the account.
    TheArtieChoke wrote:
    Note that I have deleted both plist files from library/preferences and I have also enabled parental controls and ticked the allow users to modify the dock option. I also tried downloading Onyx and setting it up through there but it was a no go. Anyway, if anyone has any idea then that would be awesome.
    I don't see any problem, other than your not knowing the icons in the Dock are aliases.
    You should set the same user controls and preferences on the second admin as the first and your problems should disappear.
    OnyX is a great program, I recommend it highly, but I don't see it fixing your problem in this case. Unless there is something your not being clear on.

  • Print and Export button doesn't work for Crystal Report  in VS 2008

    Hi,
    When I click on the Export/Print button, it looks as if something is happening but no window comes up. Below is the code in C#
            ExportOptions crExportOptions;
            DiskFileDestinationOptions crDiskFileDestinationOptions;
    ReportDocument cr = new ReportDocument();
    DataTable dt = new DataTable();
            cr.Load(strReportPath);
            cr.SetDataSource(dt);
            string Fname;
            if (!System.IO.File.Exists(strReportPath))
                throw (new Exception("Unable to locate report file:\n" + strReportPath));
            //CrystalReportSource1.ReportDocument.
            // Set the Crytal Report Viewer control's source to the report document.       
            CrystalReportViewer1.ReportSource = cr;
            // cr.PrintToPrinter(1, False, 0, 0)
            Fname = Request.PhysicalApplicationPath.ToString() + Session.SessionID.ToString() + ".rpt";
            crDiskFileDestinationOptions = new DiskFileDestinationOptions();
            crDiskFileDestinationOptions.DiskFileName = Fname;
            crExportOptions = cr.ExportOptions;
            crExportOptions.DestinationOptions = crDiskFileDestinationOptions;
            crExportOptions.ExportDestinationType = ExportDestinationType.DiskFile;
            crExportOptions.ExportFormatType = ExportFormatType.CrystalReport;
            cr.Export();
    Can anyone tell me why is this happening, need to fix this urgently.
    Thanks,
    Reena

    Hi,
    I removed all the export code, now when the Page loads. When I click on the export/print button still nothing happens.
    "Error in File C:\DOCUME1\rpatel\LOCALS1\Temp\DailyTransaction {0CE72E59-0AF6-4859-9173-EF563869CBBF}.rpt: Invalid export DLL or export format. "
    My code:
    ReportDocument cr = new ReportDocument();
    DataTable dt = new DataTable();
    string strReportPath = string.Empty;
    cr.SetDataSource(dt);
    cr.Load(strReportPath);
    string Fname;
            if (!System.IO.File.Exists(strReportPath))
                throw (new Exception("Unable to locate report file:\n" + strReportPath));
    CrystalReportViewer1.ReportSource = cr;
    Fname = Request.PhysicalApplicationPath.ToString() + Session.SessionID.ToString() + ".rpt";
    cr.Export();
    The sample has Delphi example, it would be good if there is a C#/VB sample available.
    Thanks.

Maybe you are looking for