Help with JDPA failure on JVM Startup from C++ using JNI_CreateJavaVM

The short version:
When I try to start a jvm with the -Xrunjdwp from C++ using JNI_CreateJavaVM and the following settings, it simply crashes. I can run my program just fine when this option is not present.
JavaVMOption aoOptions[5];     
aoOptions[0].optionString = m_ustrClassPath.GetStringA();
aoOptions[1].optionString = "-Xdebug";
aoOptions[2].optionString = "-Xnoagent";
aoOptions[3].optionString = "-Djava.compiler=NONE";
aoOptions[4].optionString = "-Xrunjdwp:transport=dt_socket,address=localhost:8000,server=y,suspend=n";
I have all the appropriate jar files on the classpath and the DLL's are on the path. I am running 1.4.2. I have also tried dt_shmem and a combination of most of the adjustable paramaters being on/off or not present. Any help would be greatly appreciated!!!
Thanks,
Chris
The long version (or why I want to do this crazy thing):
I am migrating a product line from Visual Basic/C++/COM to Java. I recently purchased JBuilder 9 with the hope that I could use the attach to running JVM process to debug fully. When I attempted to add the neccessary options, my jvm create dies. I can't get to a point to attach from JBuilder.

I have finally found a solution...
Please see this bug: http://developer.java.sun.com/developer/bugParade/bugs/4335526.html
The bug has not been fixed but a workaround exists. Please see the bug for full information, the short answer is this.
When using the below settings, the -Xrun option is causing an Access Exception crash within jvm.dll. This seems to be because the -Xrun string is modified within jvm.dll.
JavaVMOption aoOptions[5];
aoOptions[0].optionString = m_ustrClassPath.GetStringA();
aoOptions[1].optionString = "-Xdebug";
aoOptions[2].optionString = "-Xnoagent";
aoOptions[3].optionString = "-Djava.compiler=NONE";
aoOptions[4].optionString = "-Xrunjdwp:transport=dt_socket,address=localhost:8000,server=y,suspend=n";
The solution that worked for me was to use strdup as indicated in the workaround for the bug.
JavaVMOption aoOptions[5];     
pTempStrOption = m_ustrClassPath.GetStringA();
aoOptions[0].optionString = strdup(pTempStrOption);
aoOptions[1].optionString = strdup("-Xdebug");
aoOptions[2].optionString = strdup("-Xnoagent");
aoOptions[3].optionString = strdup("-Djava.compiler=NONE");
aoOptions[4].optionString = strdup("-Xrunjdwp:transport=dt_socket,address=3333,server=y");
This has caused me grief for months. It was not easy to locate in the bug database. It existed in 1.3 and still exists as of 1.4.2. I am not sure about the 1.5 beta.

Similar Messages

  • Help with Update failure please

    I have Adobe Photoshop CC running on win 7 64 bit. When doing the latest batch of updates one keeps failing with the error message "Adobe CSXS Infrastructure 4 Installation Failed Error Code U44M1P7" Can anyone help with this?

    Thanks Eshant
    I had since  been researching this on the web and it seems it is a very
    common fault which has not always been fixed by the full re-install
    advocated by Adobe in the link you kindly provided. I therefore decided
    to keep trying for a couple of days before resorting to such a drastic
    solution.
    After several failures to get CSXS Infrastructure 4 to install, both via
    the CC Desktop App and from the "Help" menu within Photoshop CC, I had
    one more try this morning and this time it seems to have installed
    without a hitch. I have no idea why, as I have made no system changes,
    but for now I do seem to have solved the problem as my installation of
    Photoshop CC is now reporting that it is fully up to date.
    Thanks for your response.
    Pixellated

  • Please help with:  "We had difficulty downloading episodes from your feed" error

    I have attempted to submit my podcast feed to the iTunes Directory and received the above error message.  The feed is http://www.codecmoments.com/reviews/cost-of-a-coffee/feed/ and I am using PowerPress taxonomy casting.  There is currently one episode with attached media, but there are other posts using the same custom taxonomy without media.
    When I attempted to subscribe using File>Subscribe to Podcast.. in iTunes using the above feed, it worked as expected and the one episode appeared,
    Can anybody help to explain if there is something wrong with my feed and if so what can be done to correct it?  Also can you explain why the podcast appears using File>Subscibe to Podcast... but not when submitting to iTunes Directory?
    Thanks in advance for your help!

    You are mixing episodes with and without playable media; iTunes does not display the latter. Your top episode has no media, though the second one does. From what I can tell it appears that the Store checks only the top episode of a submission, and not any subsequent ones. You need to arrange for the top episode to have media. As your feed has been rejected you may find when you re-submit that you are told that it has already been submitted - this is a bug in the submissions process, and if this happens you will need to change the title slightly to get round it.

  • I have an itouch, most songs i got off my cd's. i have a new laptop and want to put songs from itouch to laptop.I can only get the songs that i purchased onto the laptop? need help with how to get the rest from itouch to laptop please??

    i have an itouch, most songs i got off my cd's. i have a new laptop and want to put songs from itouch to laptop.I can only get the songs that i purchased onto the laptop? need help with how to get the rest of the songs (from my cd's) from itouch to laptop please??

    See this previous discussion:
    Recovering your iTunes library from your iPod or iOS device: Apple Support Communities

  • Help with backing up files and opening from disk image.

    I am trying to back up my hard drive so that I can send my PowerBook in for repair. I used disk utility from my Panther install discs to create a disk image of my HD.
    The disk image was created successfully and mounts perfectly on my HD. I can open it and open all of my files from the disk image just fine when it is mounted on my PowerBook.
    However, when I take it to a different Mac, things start getting sketchy. I can open Word files just fine, but Excel files claim they are read-only and cannot open. I checked the permission back on my PowerBook to see what was up, and the files were read/write for the owner and read-only for groups and others, but they should still open as read-only files right? I even checked the permissions on the Word files to see if there was a difference, but there was no difference.
    I can take the external HD back to my PowerBook, remount it, and open everything fine, but then on the other Mac it is a no go.
    I need to back this up for when it is out on repair, but I need to know that the files will open in case I need to restore my disk.
    Can anyone help??
    BTW, I couldn't find the best forum to post this in, if there is a better one please direct me there...

    solution:
    I went into the Apple Store nearby today to send my PowerBook off for repair for a screen issue, and in the process got help with my backing up issue.
    It seems all one needs to do is copy the file from the external hard drive to the internal drive.
    It was that simple.
    Jason

  • Help with the iTunes 9, transferring music from older version.

    I have a 2nd generation iPod Nano. I have a new laptop and attempted to download iTunes to manage my music library. I don't listen to the music on the computer just purchase from iTunes and then Sync with my iPod. I'm not good at techology. When I downloaded iTunes onto my new laptop, it deleted all my playlist but my songs are on my iPod just in numerical order.
    I cannot get my Music from my iPod to transfer to the current version of iTunes. I am able to select Sync my iPod and it said Do Not Connect but nothing happpened with my iTunes library. Also, I purchased a song from iTunes and it will not transfer to my iPod.
    Any suggestions other than to keep using my old laptop? I'm not even sure if the Music Library is set up on that computer because in the process of attempting to set up on the new laptop I select to move my Library to the new laptop.

    Syncing music is a one way street with the iPod and that is from iTunes to the iPod and NOT the other way around. The only exception to this rule is with iTunes purchases. You can transfer them back to iTunes by plugging the iPod and choosing File -> Transfer Purchases.
    Otherwise, see this older post from another forum member Zevoneer covering the different methods and software available to assist you with the task of copying content from your iPod back to your PC and into iTunes.
    https://discussions.apple.com/thread/2452022?start=0&tstart=0
    B-rock

  • Help with Pagefile error message on startup

    So, I recently setup a pagefile on a separate harddrive (harddrive is new and has never had anything on it).  On my C, I selected on page filing.  So, Windows 7 goes a head and creates the pagefile on the new specified harddrive.  I reboot and receive the following message:
    Windows created a temporary paging file on your computer because of a problem that occured with your paging file configuration when you started your computer. The total paging size for all disk drives may be somewhat larger than the specified size.
    So, I don't want to see this message anymore.  How do I get rid of it and keep the new configuration? Thanks very much

    Search
    http://search.microsoft.com/search.aspx?mkt=en-US&setlang=en-US for help with Microsoft messages

  • Help with connecting iPad 2 to Motif xs keyboard using GarageBand.?

    I have an iPad 2. I recently bought the iPad camera connection kit from amazon because I heard you can connect your iPad to a music keyboard with GarageBand. I have a Yamaha motif xs 8. When I connect my keyboard with a midi USB to the iPad.. Nothing happens. Can anybody help with this, and am I missing something in order to make this work???

    It worked for me no problem but I'm using an ES Rack and the dude on the video I think was using an ES. It maybe the XS is wired differently. Your best option is still getting a piece like IK Multimedia's iRig Midi. It connects from the iPad dock to actual midi cables and is way more flexible if your using multiple devices.

  • Please help with assigning user to a group in AD using dbms_ldap

    Dear gurus of Apex and LDAP!
    Please help me a bit.
    I managed to create any user in AD from Apex using dbms_ldap package and set many of his attributes. But I cannot set that my user belongs to specific group, let's say MY_GROUP. I guess the name of attribute for group is 'member' or 'memberOf', so I tried them both in the same way as I've done for other attributes:
    v_vals(1) := 'MY_GROUP';
    DBMS_LDAP.populate_mod_array(v_array, DBMS_LDAP.MOD_ADD, 'member', v_vals);
    I've got LDAP client/server error: CONSTRAINT violation. 000020B5: AtrErr: DSID-031516FC, #1: 0: 000020B5:
    DSID-031516FC, problem 1005 (CONSTRAINT_ATT_TYPE), DATA 0, Att 1f (MEMBER)
    v_vals(1) := 'MY_GROUP';
    DBMS_LDAP.populate_mod_array(v_array, DBMS_LDAP.MOD_ADD, 'memberOf', v_vals);
    I've got LDAP client/server error: DSA IS unwilling TO perform. 0000209A: SvcErr: DSID-031A0929, problem 5003 (WILL_NOT_PERFORM), DATA 0
    After that I've tried to extend group name to string, which is shown in LDAP browser for attribute 'memberOf' (when I've added it manualy):
    v_vals(1) := 'CN=MY_GROUP,OU=GROUPS,OU=Allianz,DC=allianz,DC=com';
    DBMS_LDAP.populate_mod_array(v_array, DBMS_LDAP.MOD_ADD, 'member', v_vals);
    I've got LDAP client/server error: OBJECT CLASS violation. 0000207D: UpdErr: DSID-03150913, problem 6002 (OBJ_CLASS_VIOLATION), DATA 0
    v_vals(1) := 'CN=MY_GROUP,OU=GROUPS,OU=Allianz,DC=allianz,DC=com';
    DBMS_LDAP.populate_mod_array(v_array, DBMS_LDAP.MOD_ADD, 'memberOf', v_vals);
    LDAP client/server error: DSA IS unwilling TO perform. 0000209A: SvcErr: DSID-031A0929, problem 5003 (WILL_NOT_PERFORM), DATA 0
    I've also tried some other variants (without 'CN=' and without 'OU=GROUPS,OU=Allianz'), but still no success.
    Search of this forum and even google didn't help either :(
    Please, help me to find the correct syntax for it or tell me if it's not possible.
    Thanx in advance,
    Vladimir

    Vladimir ,
    firstly the attributes member and memberOf are special attributes in AD having a set of predefined values. Hence an error will be thrown if you try to assign them values like 'MY_GROUP'. There are two basic solutions to this problem : Either you define an OU in your AD which will act as your 'MY_GROUP'. This is a quick fix solution and is not robust at all. The other solution is to add your own property in the tree , something like 'roleCode', you can then assign it any value you want.
    But the problem now is, AD does not allow addition of new attributes in the structure. You have to use ADAM in for this and you can specify a common linking mechanism between AD and ADAM now such as email address can act as the link between both the directories.
    Hope this helps
    Shantanu

  • I need help with my wifi text. I can't use them

    I need help with my iPhone 4. I can't text since. I get wifi in my house ?

    What is the make & model of the wireless router that you are trying to extend with the WN3000RP? Can any other wireless clients connect to the extended network, just not your iMac?

  • Help with Powershell script to gather eventlogs from all Domain Controllers

    I am trying to write a script to grab the last 5 days of application, security and system logs from all domain controllers. The script runs but only pulls the logs from the local server. The $Computer variable has all of my DC's so it is querying fine. I
    assume it is an issue with my ForEach-Object line but it doesn't error out. See the script below.
    $log = "Application"
    $date = get-date -format MM-dd-yyyy
    $now = get-date
    $subtractDays = New-Object System.TimeSpan 5,0,0,0,0
    $then = $Now.Subtract($subtractDays)
    $Computers = Get-ADDomainController -filter *
    ForEach-Object -InputObject $Computers  -Process {Get-EventLog -LogName $log -After $then -Before $now -EntryType Error | select EventID,MachineName,Message,Source,TimeGenerated | ConvertTo-html | Out-File $env:TEMP\Applicationlog.htm}
    Invoke-Expression $env:TEMP\Applicationlog.htm
    Thanks,
    Rich

    Also, you're missing the -ComputerName parameter in the Get-EventLog Cmdlet. 
    I would re-write the loop part of the script like this:
    $log = "Application"
    $date = get-date -format MM-dd-yyyy
    $now = get-date
    $subtractDays = New-Object System.TimeSpan 5,0,0,0,0
    $then = $Now.Subtract($subtractDays)
    $Computers = Get-ADDomainController -filter *
    foreach ($Computer in $computers) {
    Get-EventLog -ComputerName $Computer -LogName $log -After $then -Before $now -EntryType Error |
    select EventID,MachineName,Message,Source,TimeGenerated | ConvertTo-html | Out-File .\Applicationlog.htm -append
    Invoke-Expression .\Applicationlog.htm
    Sam Boutros, Senior Consultant, Software Logic, KOP, PA http://superwidgets.wordpress.com (Please take a moment to Vote as Helpful and/or Mark as Answer, where applicable)

  • Help with project: trying to create variables from decimals

    topic may be a bit unclear, but I have a project from a java course. I need to create a simple program, but hit a bit of a bump.
    I have made a formula to find that the total hours equals 2.7350 which is equal to 2hours, 44minutes, 6seconds.
    so to sum what I just said up, I have the number 2.7350, but need to display 2hours, 44minutes, 6seconds
    now I need help of how I can accomplish this with basic java (this is my first java class).
    If there is a way to leave 2 and take .7350 in separate variables, I can make some more formulas to convert that to the answer I need displayed, but I don't know how.
    Please help if you have ideas
    Thank You

    ahh, that just gave me an idea, I can't believe subtraction didn't come into my mind.
    I also should have mentioned that the numbers are generated via formula and user input, so it is not pre set.
    I will try something out with the subtraction idea. however, if you have a solution please post it in case my idea doesn't work.
    thanks again ^^

  • Help with loading pictures in my organizer from elements 9 trial version

    I downloaded Trial Version of elements 9 last thursday.  Since then I am trying to get someone at Adobe to tell me why, when I open Organizer there are NO pictures from my Pictures Albums.  No help from them because they do NOT service "trail versions" WOW. cannot believe that.  Someone please help.  I do get an error message when I open through the "download" page.  it says "cannot open because my file is the wrong type? do not understand.  I previously had elements 7 on board but uninstalled it after I lost 1000 pictures and spent 3 months trying to get info as to "where are they" no one could help.  So, did I do something wrong or is existing elements hiding in my hard drive stopping me from installing 9  Help  need more info ie: specific file path etc. I will provide. Thank you

    Hanna,
    Some considerations with the trial of CS5: obviously, only 30 days of usage, nothing MPEG-2 is supported, and many other flavors of MPEG are also not supported. This means that you will NOT be able to ingest anything MPEG-2, likely nothing AVCHD, or similar, and you will NOT be able to use Encore for any DVD/BD authoring in the trial. Though there is no watermark, the CS5 trial is very, very limited, and one can really only edit DV-AVI, and Export to DV-AVI, or very similar.
    Neale's suggestion is the best solution, IMHO. There are also freeware editors, like Womble, that might work for you, but there is a learning curve, due to the GUI.
    Good luck,
    Hunt

  • Help with IG, re-d/l NOT from cloud?

    iphone 4s, ios current/updated
    im having a problem with my instagram,
    recently (ive noticed it just today, but think its been happening about 2 weeks or so) my instagram is no longer saving my photos to my camera roll/instagram roll on my phone
    ive checked all settings within instagram
    ive checked all settings under privacy and photos on my phone
    nothing seems to help, ive tried deleteting app and re-installing, and it keeps re-installing from cloud, im thinking this may be the issue, i have deleted it from my itunes on my desktop yet still see the cloud symbol when i try to d/l on my phone.
    i have several close friends with the same phone and their settings match up, and theirs are saving thier photos...im not sure whats goin on or what im missing.
    any help would be appreciated.

    That wasnt very helpfull?
    So you want me to slow down the whole soundclip??
    Look: http://i42.tinypic.com/x21au0.jpg
    I have mad some parts of the clip slower/faster, but the audio from the clip is still the same as it was before? ( see that the audioclip is abit longer , which makes everything in the video sound weird ).
    Isnt there a way to automaticly make the audio go faster/slower as the videoclip?

  • Help with PS and HDR Effect Pro from Nik

    I altready have a help request into Nik Software, but was hoping someone here could offer some suggestions.
    I'm running the Nik Complete software program on Win 7 64Bit, Raid 5 machine. 8800 GTS 512 MB card; 12gb of RAM, i7 quad core, 2.67 GH, PS CS5 and Lightroom 3.2, Wacom Intuos 3 tablet.
    I have the most updated drivers for video, wacom tablet. OS is current with updates. PS CS5 is updated, but I am NOT running Lightroom's 3.3 RC.
    I updated all software updates for the NIK software collection from their site and still have the same problem even after uninstall and re-install.
    When I attempt to run HDR Efect Pro I get the menu window to select my images, click ok and with in seconds I get the message that Adobe Photoshop CS5 has stoopped working and must close...
    I've gone to their site and looked into their FAQ/troubleshooting and did all their recommendations, update drivers, look for color profiles with 0 Bytes in the system color spool for both 32 and 64 bit apps and still no luck. This also happens with CS4 and CS3 and if I attempt to use the program form Lightroom and Bridge. Any ideas, work arounds, suggestions? Their automatic reply from my support request says 2-3 days due to the high populaity of their program!!!
    Thanks for any and all help.

    Outside of suggesting some pretty generic things, I can't offer much help...  I don't use Nik products myself
    You could try disabling the "Use OpenGL Drawing" setting in Photoshop as a workaround to see if that helps.  Perhaps between Photoshop and the plug-in problems are being caused in the OpenGL driver for your particular video card.
    Also, given that 3rd party plug-ins and Photoshop could be competing for memory, you could try changing the amount of memory Photoshop is allowed to use in the Edit - Preferences - Performance dialog.
    Good luck.
    -Noel

Maybe you are looking for

  • How do you save a document with a new name?

    OK  I decided to go with Pages as my document editor on my iPad 2.  It seems to be powerful enough to do the kind of text editing that I need to do. I need some tables, a few graphics, headers, footers, etc.  You know the basic stuff.  I am not going

  • My i pod screen is white

    my ipod screen has been white all day it previously did this before but fixed itself and now it wont . how can i fix it without using my home button because my home button is stuck

  • Assigning large number if character to a Codepage

    Do  we have a tool / process  which can assign large number of character to a code page, which cannot be done by SAP SPUM4. There are 18 languages and 10 code pages. Languages listed below, French,English,German,Italian,Spanish,Portuguese,Bulgarian,J

  • Is iTunes 11.0.1 compatible with windows 8 64bit

    I'm sure there's something wrong here, either with iTunes 11.0.1, or its compatibility with window 8. iTunes became a nightmare, nothing is organized, it do not save modifications, it can not remember what's watched what's not from movies or tv shows

  • Suddenly can't get online in Mac applications...

    After my toddler switched off my power supply a few weeks ago, I suddenly couldn't get online using Safari, with the exception of web pages beginning with "https"...I took the easy way out and switched over to Firefox, which works fine, as does Entou