Use of NewString and NewStringUTF to create a jstring

Hi, I try to use NewString() and NewStringUTF() to create a jstring to pass to SetObjectField().
I see that these 2 methods don't creany anything!
C++ code
jstring jstr1=env->NewStringUTF("my test");
if (!jstr1) printf("Warning ERROR\n");
printf("value of jstr1 is %s\n",,jstr1);
env->SetObjectField(ilContatore,fid1,jstr1);
when arrive at SetObjectField invocation, there is an error:
# HotSpot Virtual Machine Error, EXCEPTION_ACCESS_VIOLATION
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
# Error ID: 4F533F57494E13120E43505002D4
abnormal program termination
I see that the jstr1 have a NULL value, but I assign it!!!
Is there anyone knowing why it's goes on?
Thanks!!

If jstr1 is really NULL, then your program will crash when you attempt to printf its value just before the call to SetObjectField. In other words, printf is crashing, not SetObjectField.
You have to find out why the call to env->NewStringUTF is returning NULL. If it returns NULL, you can't use the return value in any other JNI calls.
Do other calls to env functions work properly? Perhaps your initialization is incorrect.

Similar Messages

  • Should I use both GetList and  GetDetail for creating a Data Object?

    Hello, all.
    At first, Thanks for your interesting.
    1. I wounder that  I can make a BAPI Wrapper as Data Object using only GetList.
    When I make a BAPI Wrapper as Data Object using only GetList, SAP shows me a message.
    The message says Data Object can have one root node only (hierarchy = 1 ).
    It means I should use both GetList and  GetDetail.
    I understand that.
    If i need to use only GetList, is there any way?
    Thanks for your interesting again.

    Hi
    I think you are trying to import BAPI wrapper as data object and you are using only "Getlist" BAPI.
    In such case, the data object created will have only root node. i.e Hierarchy =1.
    This is becuse the GetList BAPI has only the info about root node.(i.e, table parameter).
    If you have multiple tables in BE and you want to create a DO with multiple node(hierarchy >1) using BAPI wrapper import, then you have to use "GetDetail" BAPI along with GetList.
    Regards
    Rohith

  • I am a new using Adobe products, and I am creating an Animation using Edge Animation.....

    Hi guys.
    As I said, I am new working with Adobe products, like Dw, and now I am creating an animation using Edge Animation.
    Actually, I am creating a carrousel with different pictures representing three different apps being displayed from different devices, moving them and creating a simulated
    movement for each one, based  on the functionality, that action should be activated by a button (i.e.) titled "Inventory", the action to execute is to move
    the three related screens ( Desktop, Ipad and Iphone ) from the original position  to the middle screen, but at the same time, and this is what I need to know,
    If there is another set of screens for a different application, how to move those back to the original position, before moving
    the selected one, "Inventory". I tried to use a duplicated transition and inverting, it works, but it doesn't stop waiting for a new action, and how to combine
    that movement back with the selected app-transition?
    I put  two screenshots with the stage and the original position for all of them. I have not created the buttons yet. I imagine I should use some kind
    of conditional statements to execute the action sending back  those elements  located in the middle  of screen, because were selected before,
    and then execute to animation to move the selected app.
    I would appreciate your help on this matter.
    Thanks.
    Gustavo Hevia
    original Position.
    After the First animation for Inventory App.

    No answers, Ok.
    I will try to give you more information about I want to do.
    I am a Filemaker Developer, and I started creating my webpage, and one of thing I would like to do is this
    animation and put it on my website.
    What I want is to simulate a carrousel of options to show the selected application using the three buttons,
    Now, I put the three buttons and each one of them is moving the three corresponding applications, that's fine.
    But the issue I have :
    I am using Mouseover and Mouseout to show a different color and size of the buttons, and to execute the
    corresponding animation.
    For each event I created different labels : Inventory_hover ; Inventory_mouseover ; Inventory_Animation and
    Inventory_Animation_Reverse and so on.
    Testing that
    After I selected one of them, and it ended moving the three pictures to the center of the screen, and then I
    leave, the three screens moved to the original position, which is not a bad idea, but I want to control that
    moving.
    So, what I want as a summary is :
    1) to control that back movement. I was trying to figure out how to add some code inside the Animation code, and
    just before execute that animation, check if there is another application selected before, and then move that
    set of pictures back to the original position, since I have only three applications pictures, and only one can move
    at the time, the checking "If Statements" would be for two others conditions.
    2) That should be done only when one of the buttons is clicked, and not when the mouse leaves the buttons like it
    is happening now.
    I attached a zip file with my EA files.
    Thank you in advance, Any help would be really appreciated.

  • Difference between use of IS and AS while creating a Package or Procedure

    Hi,
    Had an interview in one of the company.
    They asked me this, "What is the difference between using IS and AS while creating Package or Stored Procedure ?".
    I checked creating package with same IS and AS, but there is no issues.
    Kindly clarify me on this.
    Lots of thanks in advance.
    Regards,
    Shiva

    >
    Had an interview in one of the company.
    They asked me this, "What is the difference between using IS and AS while creating Package or Stored Procedure ?".
    >
    Quite frankly my first response to them would be: why do you even care?
    That would be quickly followed by: do you have any meaningful questions you would like to ask? Perhaps something that might actually be relevant to what you do here?
    I personally don't care if someone has memorized the syntax required to create DDL/DML. I care whether they know how and when to use it.
    Check the docs for the syntax diagram and from at least 9i on it will be similar to this from 9i
    http://docs.oracle.com/cd/B10501_01/appdev.920/a96624/08_subs.htm
    >
    A procedure is a subprogram that performs a specific action. You write procedures using the syntax:
    [CREATE [OR REPLACE]]
    PROCEDURE procedure_name[(parameter[, parameter]...)]
    [AUTHID {DEFINER | CURRENT_USER}] {IS | AS}
    [PRAGMA AUTONOMOUS_TRANSACTION;]
    [local declarations]
    BEGIN
    executable statements
    [EXCEPTION
    exception handlers]
    END [name];
    >
    Here is the link for 11g
    http://docs.oracle.com/cd/B28359_01/appdev.111/b28370/create_procedure.htm
    Note that the syntax for some objects requires one or the other and will not accept both.
    >
    CURSOR x IS ...
    TYPE x IS ...
    SUBTYPE x IS ...
    CREATE TABLE x AS subquery
    SELECT x AS "y" FROM z AS "w"
    WITH x AS (SELECT ...

  • Is there a way to use Text Anchors and Hyperlinks to create a single-page interactive PDF?

    We are trying to emulate the functionality of a website, by creating a series of clickable buttons at the top that would take you to different locations within the page (it's 80" long). This seems to be only possible within multi-page documents, but not single-page documents.

    I have created a tutorial on how to setup domain name masking using cpanel and other popular web hosting control panels.
    You need to edit the zone file settings in the Web Host Manager of Cpanel (WHM) a very popular web hosting control panel.
    Main > DNS Functions > Edit DNS Zone > Choose Zone to Edit
    Unless you have a reseller hosting account or are a server administrator, you will not be able to access this file directly. Just contact your web hosting support rep and they will gladly change it for you.
    see the screenshot of zone file changes
    http://www.netpaths.net/blog/wp-content/uploads/2007/10/cpanel-zone-file.jpg

  • Audio Issue - Using Logic Pro and iMovie to Create Movies for Youtube

    I am trying to use a combination of Quicktime, iMovie and Logic Pro 9 to create videos of me playing/singing songs to post on Youtube.  Before I can ask the question, I think it would be best to briefly explain my process, so here's one example:
    One thing I try to do is video myself playing piano and singing at the same time.  What I do is open up Logic Pro and load my piano sound and arm an audio track that my microphone is plugged in to; I also go to "System Preferences" and click on "Sound" and make sure that my audio interface is selected for the input method.  Then, I open up Quicktime and select "New Movie Recording".  Finally, I open up my software for my interface and set it up for "loopback"...there's a picture below.
    If you look at the bottom of the interface, you'll see it says "DAW 1: Loop Back 1" and "DAW 2: Loop Back 2".  Ideally, this means that whenever I start recording in Quicktime, all of the sounds that I am making in Logic (the piano playing and the singing) will loop back into the computer and be recorded by Quicktime.  This does actually happen, but my question is this:
    I've noticed that the sound quality of software instruments is drastically reduced once they have been recorded by Quicktime (or iMovie) and I play the movie back.  Actual audio files, like me singing or playing a real instrument aren't really affected, but for some reason the software instruments sound very thin once I listen to the audio in the movie.  Why is this happening?  Is there a way to preserve the audio quality to be the same during video playback as it is when I am playing the instruments live in Logic?

    Interesting and convoluted way to get something done.. from what you're describing it almost sounds like the software instruments are somehow getting recorded twice but slightly out of phase.
    When you record your singing are you monitoring through headphones or speakers?

  • Re-use of .264 and .ac3 created by compressor or fcp-share

    Good Morning from Belgium
    Here is my question
    How do I reburn a blu-ray without having to reencode in compressor or using "share" in fcp. In other words, how to re-use the .264 and .ac3 files created in a previous burning session ? I have tried Toast 9 but get 2 files (one with audio, one with video) .
    Can I safely delete those huge files if it is not possible to use them later with any software ?
    Hope you can help
    Michel

    I can put a movie in Compressor, add the video and audio presets and then select "Create BD/AVCHD Disc" in the Job Action menu but that will only create one disc.
    My idea was to save the .264 and .ac3 files so that I could burn another disc at a later date.
    I can do this with Toast but there is no way I can use those files in Compressor again (that I know about).
    What exactly did you mean by burn it from a disk image?
    I can do that in Toast but I don't know how to do it with Compressor.

  • IPad2 and a new MacBook running Lion, Both Devices use the same Apple ID which is a Hotmail eMail id. Can I create a new iCloud eMail Id and use iCloud eMail and continue to use my Hotmail Id for my Apple Id and use it for iTunes, iCloud

    I have an iPad2 and a new MacBook running Mountain Lion. Both Devices use the same Apple ID which is a Hotmail eMail id. Can I create a new iCloud eMail Id and use iCloud eMail and continue to use my current Hotmail Id for my Apple Id for iTunes, iCloud.
    Note, I will use both Hotmail and iCloud eMail.

    Welcome to the Apple Community.
    In order to change your Apple ID or password for your iCloud account on your iOS device, you need to delete the account from your iOS device first, then add it back using your updated details. (Settings > iCloud, scroll down and hit "Delete Account")

  • How can I create an csv/excel file using pl/sql and then sending that file

    How can I create an csv/excel file using pl/sql and then sending that file to a clients site using pl/sql?
    I know how to create the csv/excel file but I can't figure out how I would get it to the clients site.

    968776 wrote:
    How can I create an csv/excel file using pl/sql and then sending that file to a clients site using pl/sql?
    I know how to create the csv/excel file but I can't figure out how I would get it to the clients site.You are trying to do it at a wrong place..
    Whay do you want database (pl/sql) code to do these things?
    Anyhow, you may be interested in :
    {message:id=9360007}
    {message:id=9984244}

  • I have absolutely no use for "Events" in iPhoto: can I get rid of this concept? I am importing photos maybe one or a dozen times a day and cannot avoid creating a new event each time. Or can I?

    As my long question implies (sorry, should have kept it shorter) I have a problem with being forced to have Events in my iPhoto'11 9.2.3 (629.52) on my MacBook 10.6.8. My habit is to unload the camera constantly, whether I have taken a single shot or a whole series. Each new addition creates an Event which actually bothers me!
    Is there a way of avoiding this? If I erase an event from iPhoto the photos will disappear from the Library it seems ... Please help with your advice. Thanks! Sigrid.

    Thanks, OT!
    When I look at my odd(?) habits of dealing with iPhoto anyone will see that I have a very simplistic approach: I never let one single Library get bigger than 300 or 400 photos, then back it up as is and make a separate, manual backup of the different albums as named by myself on an external HD. Then I delete the Library as such from my Mac but can reinstate it from the backups as I please. The backups are properly labelled, of course.
    I get dizzy when I read about libraries of thousands of photos, of keywords, ratings, smart albums etc. because this just wouldn't apply to my so-called system. So instead of using Faces and Places, my album names show clearly what's in them - "skies and scenery" Euskadi, "bugs and birds at Fancourt", "inventories", "people" (separate for my circle of people and characters from media), "my dog" etc., usually a bunch of 20 albums or so depending on my whereabouts. Quite manageable!
    I've been doing just fine with this method and would recommend it ... but others are much brighter ;-) and use the offered (and to me too advanced) features of iPhoto, if they prefer these. Now that I know how to get rid of Events by merging them into one, I at least feel a little freer there.
    Well, it's 1:25AM my time, gotta go ...

  • Music and Video on Nas in folders but how do i set up itunes on multiple computers to see and use these files and create libraries?

    Music and Video on Nas in folders but how do i set up itunes on multiple computers to see and use these files and create libraries?
    So i have had a itunes set up on my old PC, bought a NAS and copied the folders over to the NAS, i did this incorrectly and so then even when i told the old PC to use that folder it saw all the songs but wasnt able to play the songs as it was looking in the incorrect place.
    So now i want my Mac as well as my PC and others to all use the music, videos etc on the NAS they are in itunes friendly folders (as they were compiled this way by the itunes on the old PC.
    When i tell the mac to use the itunes library.itl file it sees the song list (about 100gb) but cant see any songs, so i have removed this file to another location for now with the hope to set up a new file and then get it to see the songs on the folder from the NAS.
    Can someone tell me how to do this for all the Mac's and PC's on my network as i really want one master library that all use and add too.
    Thanks for your help in advance.

    I have the same question but I am using two pc's

  • I'm trying an email address i know is mine yet still getting this message:"That Apple ID is already in use.If this Apple ID was created by you, simply sign in with your Apple ID and password.If it does not belong to you, try again using a different name."

    I keep getting this message:  "That Apple ID is already in use.If this Apple ID was created by you, simply sign in with your Apple ID and password.If it does not belong to you, try again using a different name."
    I'm trying to create a new id and e-mail using an e-mail address that is mine and has been mine for over a year - any ideas why this could be happening?

    Trying where? What sort of email address? The following answer is based on a guess as to what you are talking about.
    If you already have an @me.com address, perhaps as a result of having had a MobileMe account, and you are now setting up an iCloud account with an Apple ID you will find you will be asked to create a new @me.com address, and that you can't add your existing one because it is already an Apple ID.
    You can do one of two things:
    1. Sign out at System Preferences; sign in with your existing @me.com address and enable Mail.
    2. Stay signed in with the present ID and add your @me.com address in System Preferences>Mail, Contacts & Calendars.
    If you have further questions, or if your situation is different from what I've assumed, do please post back, but in a suitable forum - this one is specifically about using these Forums.

  • I cant use facetime. but my sister can. we share the same account for itunes.but when i go to face itme and click on create a new account a blank screen pops up. what do i do?when i go to make a new facetime account nothing comes up

    i cant use facetime. but my sister can. we share the same account for itunes.but when i go to facetime on my ipod touch and click on create a new account a blank screen pops up and the only thing it says is cancel and account.  what do i do?

    Please follow these directions to delete the Mail "sandbox" folder.
    Back up all data.
    Triple-click the line below to select it:
    ~/Library/Containers/com.apple.mail
    Right-click or control-click the highlighted line and select
    Services ▹ Reveal
    from the contextual menu.* A Finder window should open with a folder named "com.apple.mail" selected. If it does, move the selected folder — not just its contents — to the Desktop. Leave the Finder window open for now.
    Quit and relaunch Mail, and test. If the problem is resolved, you may have to recreate some of your Mail settings. You can then delete the folder you moved and close the Finder window. If you still have the problem, quit Mail again and put the folder back where it was, overwriting the one that may have been created in its place. Post your results.
    Caution: If you change any of the contents of the sandbox, but leave the folder itself in place, Mail may crash or not launch at all. Deleting the whole sandbox will cause it to be rebuilt automatically.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard (command-C). In the Finder, select
    Go ▹ Go to Folder...
    from the menu bar, paste into the box that opens (command-V). You won't see what you pasted because a line break is included. Press return.

  • I have Pages 09 and I have  created a business card using the template but can't figure out how to duplicate it to the other 9 on the page Am and sure I am going to look daft coz its only the click of a button but I can't work it out Thanks

    I have Pages 09 and I have  created a business card using the template but can't figure out how to duplicate it to the other 9 spaces on the page. I am and sure I am going to look daft coz its only the click of a button but I can't work it out Thanks

    I do the following: Hold down the command key and highlight all the items to be reproduced. Then hold down option and drag the items from the first to each subsequent card.

  • What are the uses of MVC, Extension and how to create it for begineers pls

    what are the uses of MVC, Extension and how to create it for begineers pls
    dont give link for tutorials please explain ,
    thank you,
    Regards,
    Jagrut BahratKumar Shukla

    Hi,
    Check out this link :
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/0f/ab3a3c9ca75402e10000000a114084/content.htm">http://help.sap.com/saphelp_nw04/helpdata/en/0f/ab3a3c9ca75402e10000000a114084/content.htm</a>
    It is the best possible explanation and documentation that you'll get.
    Thanks,
    Tatvagna.

Maybe you are looking for

  • IPod doesn't sync with iTunes at all...

    I'm having trouble with my iPod is because it does not sync with the computer. I assume the iPod doesn't recognize it somehow. I've tried to manually manage music and videos but when it told me to disconnect, the box was not checked. Awhile back, I d

  • Siri no longer understands my voice commands.

    Since the 6.01 update, Siri is now worthless. It does not understand my voice command. When using Siri to "Call Home" it will pick someone in my address book that has nothing whatsoever to do with my "home". What happened to Siri since the "update"?

  • Mapping issue in quality system

    Hi Experts, I am new to BODS tool. Currently I am working with BODS 4.2 version. I have an issue with mapping of datastores in quality system. Actually I have created a project in Development system ( done all the things I mean to say Jobs, Workflows

  • FRUSTRATED with nokia n95

    my n95 is on v21 but it doesn't play youtube videos instead browser crashes on trying to play but some other flash sites are working fine. I have reinstalled firmware but of no help. Is there anyone else out there with this weird problem. Please help

  • White Balance - Nvidia / Display port update

    White balance is shifting back and forth. After installing the Nvidia / Display port update, my "brand new" Cinema Display is malfunctioning. White colors change back and forth from pink to blue every 30 seconds. Anyone else having this issue?