My JNI codes get NoSuchMethodException when release to user

My JNI codes run well in my development environment(JBuilder7), but when they release to user, they get java.lang.NoSuchMethodException. The error generates when the C++ code try to call the java side method.
The release package was built by my colleague. And I found that they obfuscate my codes after the normal build work.
So I wonder is this the reason I got NoSuchMethodException ?
Thanks in advance!

Yes. I have figured out that it is the obfuscator causes the problem.
I have spent too much time and energy in sloving the problem, so I think it might be worthwhile to write down what I have learned and let others avoid the same pitfall.
A common trick played by obfuscate is to change the method and variable, so that a line of code that once said:
draw(imageList.get(i));
may change to
a(b.a(c));
When my c++ code try to call the java-side code using GetMethodID(..."draw"...) or GetStaticMethodID(..."draw"...), it will, of course, cause the NoSuchMethodException
After I skipping obfuscating the Java classes called by the c++ codes, the problem solves.
Thank you very much

Similar Messages

  • Session variable getting reset when leaving dashboard

    I have created a session variable with the 'Enable any user to set the value' option.  I'm using the session variable as the default for a dashboard prompt.  I'm able to set the variable with that  dasboard prompt, and I can confirm that it is indeed getting set properly.  So the interaction of the variable and the prompt seems to be in order.
    After I make a selection from the dashboard prompt, as long as I stay in the dashboard, the session variable stays set to my selection.  I can move from page to page and everything is fine.  The selection stays put as I have set it.  However, the moment I leave the dashboard, the session variable is reinitialized back to its default value as specified by the SQL in its initialization block.  I can go from dashboard to catalog and back to dashboard - boom, it's back to the default.  My selection has been replaced.  ???
    And here's an odd thing:  I can look in the query log and see the initialization block code getting run when I log in.  So far, so good.  I can run the dashboard, make a prompt selection, and see the query log updated just fine.  Still OK.  BUT... when I switch from dashboard to catalog and back to dashboard, the value of the session variable is reset (I see the default month in my analysis and as the prompt default upon redisplay of the dashboard page), but there's no indication in the query log that the initialization block SQL ran again.  The last SQL in the query log still shows my "selected" value in the SQL.  The dashboard page is showing the "default", while the last entry in the query log shows the "selected".
    Can anyone else confirm this odd behavior?  And is there a reason that a session variable should not retain its value throughout the session?  I've always viewed session variables as little buckets of single-cell data whose contents are consistent and static for the duration of a session, unless manually changed by a dashboard prompt.  If the behavior that I'm seeing is both replicatable and expected, it would appear that my understanding is flawed.
    Running 11.1.1.7.0 on Windows Server 2008.  Same behavior is occurring in both Firefox 21 and IE 9.

    Thank you for your answer MK,
    I try to write a SQL in my prompt but not work for me:
    -In default selection I choose SQL Results and I type: Year(Current_date) and save my prompt and I don't see any value in my dashboardpage, if I click in prompt I can see all members of my year dimension but by default is empty.
    I modify the other solution: I have 1hour refresh time and I change for 1 minute, but doesn't work.
    the default initializer is in RPD (variable year that belongs to BI_Year Block) and I have written 2009.

  • When releasing a billing document for accounting getting error in VF02

    hi,
    when releasing a document for accounting in the transaction code VF02 we are getting the following error
    <b>" Prof.segment for Prim.cost elements not advisable for costing-based CO-PA"</b>
    Regards,
    Murali

    Hi Murali,
    Please do default setting for co- object- t code OKB9.
    hope it will serve ur purpose.
    Reward points if it helps.
    Regards
    Karan

  • HT1539 iTunes says the code is invalid when it clearly is valid, what do I do? How do I get my digital copy??

    I bought The Dark Knight a few years ago, I tried to download the digital copy before but I gave up. Now that I have my iPhone, I'm determined to get all the digital copies I'm entitled to! So I'm here to find out how to remedy the situation. iTunes says the code is invalid when it clearly should work. I didn't buy the DVD off the street or anything. iTunes doesn't give me any further options, so what can I do? Anybody have any advice, please?

    Yeah, I actually did get it. I had to send an e-mail to Warner Bros. with all available info and my issue and they sent me another code that actually worked.
    So I actually just had to do what varjak paw suggested, it just took a few days (maybe a week) and I forgot to get back to you guys. So, belated but all the same thank you, varjak paw!

  • I am getting an error code of "0" when trying to buy an in app purchase. what is this error?

    i am getting an error code of "0" when trying to buy an in app purchase. what is this error?

    In your first post you wrote
    It is telling me I need 6MB of additional free space
    And in your second post
    Importing to internal hard drive 6.85GB available
    Even assuming that the GB was a typo and should be MB you're still on the hairy edge.

  • I get error code 150:30 when downloading

    I get error code 150:30 when downloading

    That's an activcation error and has nothing to do with "downloading" but rather "installing". As kglad said, without info on what you are referring to as well as system information this is not going anywhere...
    Mylenium

  • Getting Error Code 150:30 when opening Photoshop, how to fix?

    Getting Error Code 150:30 when opening Photoshop CS4, how to fix?

    Please refer:
    http://helpx.adobe.com/x-productkb/global/error-licensing-stopped-mac- os.html
    Regards,
    Ashutosh

  • I keep getting this when trying to open Time machine:   An unexpected error occurred (error code -6584).

    I keep getting this when trying to open Time machine:   An unexpected error occurred (error code -6584). time machine wont even open up. My Time capsule has a green lite and appears fine
    Thaks,

    This often means the backup is corrupted.
    First of all reboot the network.. turn everything off and restart in order.. modem.. TC.. clients.
    If you still have issues, hold the option key when you click the Time Machine icon on the top menu and it will bring up verify backups.
    Do that.
    Read this thread if you need more..
    https://discussions.apple.com/thread/3123920?tstart=0
    It seems to be a fairly complex problem if the above don't work.

  • Why do I keep getting the error code 148:3 when I try to start Fireworks CS4?

    Why do I keep getting the error code 148:3 when I try to start Fireworks CS4?

    I just reinstalled Fireworks CS4 and it seems to be back to normal. Thanks

  • I am getting and error code 150:30 when I try to use my CS4 AI, PS and AE.  I tried uninstall and install again but same code

    I am getting and error code 150:30 when I try to use my CS4 AI, PS and AE.  I tried uninstall and install again but same code

    ok  Can I tell when it is stopped or if it didn't work.  It is still saying the same thing.  I can't see a progress bar or anything.  Do you have any idea how long it usually takes.  Just curious so I know i din't make another mistake

  • I have cs4. Had to rebuild my mac OS after malware infected it. Now getting an error code 150:30 when trying to open PS. Can this be fixed or do I have to upgrade to cs6?

    I have cs4. Had to rebuild my mac OS after malware infected it. Now getting an error code 150:30 when trying to open PS. Can this be fixed or do I have to upgrade to cs6?

    150:30 means licensing is broken. It's a common CS4 error. On Macs it usually happens when Photoshop is retrieved from backup or migrated from another Mac. Photoshop is never meant to be moved that way. As advised, you should uninstall and reinstall from your discs.
    Sine reinstall only apply the base install and the CS4 Help > Update function is outdated, you will have to manually download and install your updates from here:  Product updates for Bridge and Photoshop.
    Gene

  • I am getting error code 150:30 when trying to open "edit" in PSE 8??

    I am getting error code 150:30 when trying to open "edit" in PSE 8??

    http://helpx.adobe.com/creative-suite/kb/error-licensing-stopped-windows.html

  • QE573 and QE570 error messages always getting printed while releasing orders from COR5 T-Code.

    Hi Experts,
    User is getting QE573 and QE570 printed messages while releasing every process order from COR5 T-Code.
    I tried to investigate this and found that these are printing messages for "Sample Drawing Instruction" and "Inspection instruction", and there is a print setting in CB85 because of which these message are printed.
    But need to know if there is any additional setting related to Production Planning/Order Types/Plants because of which these printed messages are appearing in COR5 T-Code.
    If yes, then please mention the settings and possible how to resolve this so that the users don't get this while releasing any order.
    Thanks
    Adarsh

    Hi Ajay,
    In KEPC with the combination of sales organisation &, billing type  costing key is assigned for the valuation class 7010 (Finished goods) But costing key is not assigned to valuation class 3000 (raw material). and I saw the same setting in quality. Still we are able to create the acounting document. But in case of production it is asking for cost estimate with the costing keys for the valuation class 7010.. Is any other setting which is missing in Quality as we are able to create accounting documents though the costing key is defined for the valuation class 7010. 
    Can you please advise?
    Thanks & Regards
    Veda

  • HT201210 iam getting a error message code of 3194 when trying to restore iphone 4 on itunes

    iam getting a error message code of 3194 when trying to restore iphone 4 on itunes

    http://support.apple.com/kb/TS3694

  • What does "error code -8003" mean? I get it when I try and empty my Trash.

    What does "error code -8003" mean? I get it when I try and empty my Trash.

    Thanks, I found the Trash it program sorted things. Download Trash It! for Mac

Maybe you are looking for

  • IWeb not working..

    Hey All.. Had my first dable with iWeb tonight and made a 5 page website with content from my recent Wedding. However, after clicking on publish and getting a message saying it was done, when I click visit and it takes me to my site, I am getting an

  • Risk Analysis for SAP HR structural authorization

    Hi experts, for those who are familiar with SAP HR structural authorization setup, can you advice what tools out there are able to implement risk based on Structural Authorization as well. SAP RAR/CC is not able to do this at the moment, but i am not

  • FaceTime Camera Not Working After Yosemite Upgrade

    So After I upgraded to Yosemite yesterday, my FaceTime Camera stopped working. Every time I turned on FaceTime or Photo Booth, the green light on the camera started to blink like crazy but nothing would show up on the screen. It was just black. And I

  • Solved: ORA-20001: get_dbms_sql_cursor error ORA-01445: cannot select ROWID

    I got an error, googled it and couldn't find a good answer. Joe Fuda helped me to fix the problem. Here is the answer for future google results. Error: ORA-20001: get_dbms_sql_cursor error ORA-01445: cannot select ROWID from, or sample, a join view w

  • SpryDOMUtils.js error message

    Gramps: I started from scratch and used the Spry Menu widget incliuded in Dreamweaver CS5.5. I added the <script src+"http://labs.adobe.com, etc. and still get a Spry error message when I try to access my webpage. I'm now alerted to "SpryWidget.jus r