CallVoidMethod blocks when it shouldn't be

I am having a preformance problem when calling a java method from C. Here is the java method I am calling:
public void broadcastProgress() {
        //tell the server of our progress so it can tell all the clients
        Thread broadcastThread = new Thread() {
            public void run() {
                StorageRmiProxy.updateProgress(StorageDeviceImpl.this,
                                        fileName, fileProgress, totalProgress);
        broadcastThread.start();
    }and here is how I am calling it from C:
I already have the MethodID for it, so i'm just calling it.
(*jenv)->CallVoidMethod(jenv, this, broadcastMid);
And most of the time, the call blocks and waits for a while. Now, I think that it should return immediately from this call becuase everything in that method is run in a thread, so it should start the thread and return. Am I missing somthing here? If any one can help I would greately appreicate it!
Thanks
Andrew

And most of the time, the call blocks and waits for a
while.What is "a while"?
Is this a multi-cpu box?
Is it different than if you do the same thing but don't do anything in the run() method? Or if you don't do anything in the native method but sleep?

Similar Messages

  • 9anonymous blocked when it shouldn't be

    Hi,
    I'm trying to setup a way to block specific incoming calls on our CUCM 9 platform.  I've got it so that it blocks specific numbers and allows through all other calls providing the caller has calling line ID enabled.  Trouble is it's also blocking all calls from unknown \ withheld numbers.  We're using SIP trunks to connect to the PSTN and the calling line ID for all withheld numbers is sent down the trunk is "9anonymous".
    RTMT reports Termination Cause Code (1) Unallocated (unassigned) number for the failed withheld calls
    I've setup the call blocking following these instructions:
    https://supportforums.cisco.com/document/71966/blocking-calls-based-calling-party-id
    http://www.netcraftsmen.com/cisco-cucm-blocking-calls-by-calling-party-number-id/
    The CSS setting on the Inbound Settings of the SIP trunk uses "CS-SIP-INBOUND"
    The Partition PA-SIP-INBOUND is in this CSS with two Translation Patterns:
    and
    <null> (no title)
    Both have the "Route Next Hop by Calling Party Number" option enabled
    Both are configured to use CS-SIP-INBOUND-BLOCKED
    The CSS CS-SIP-INBOUND-BLOCKED has one Partition PA-SIP-INBOUND-BLOCKED
    With two Translation Patterns assigned exactly as above but with RNHCPN disabled and using the standard CSS for use for national call access.
    I've then created Translation Patterns for the numbers to be blocked and assigned them to the PA-SIP-INBOUND-BLOCKED partition
    I had though that the withheld numbers would be handled by the <null> Translation Patterns but that doesn't seem to be the case and I can't create a TP called "9anonymous" as a workaround either.
    Any ideas?
    Thanks!

    I have been playing around to try and tie down exactly where the problem is occuring.
    It is due to the fact that no data is being passed to the smartform when print is pressed, only when print preview is pressed.
    I have created a test smartform that displays a single field (in this case caufvd-aufnr) to check the fact.
    Here is the print processing ABAP I am using:
    [code]
    *& Report  ZSJM_SMARTFORMTEST                                          *
    REPORT  zsjm_smartformtest                      .
    DATA: value(10) TYPE c,
          fm_name TYPE rs38l_fnam,
          output TYPE ssfcompop,
          user TYPE tdbool.
    INITIALIZATION                                                       *
    INITIALIZATION.
    INCLUDE riprid01.   "Contains the tables and data declarations
    START-OF-SELECTION                                                   *
    START-OF-SELECTION.
    $$
      PERFORM print_form.
    $$
    *&      Form  PRINT_FORM
         Main form printing routine
    FORM print_form.
      value = 'TESTSTRING'.
      output-tdnewid = 'X'.
      output-tdimmed = 'X'.
      user = SPACE.
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname = 'ZSJMTEST'
        IMPORTING
          fm_name  = fm_name.
      CALL FUNCTION fm_name
        EXPORTING
          data           = caufvd
          value          = value
          output_options = output
          user_settings  = user.
    ENDFORM.                    "PRINT_FORM[/code]
    Does anyone have any ideas why this isn't working?
    It seems "caufvd" isn't getting sent the data.
    Message was edited by: Stuart Mayor

  • Can I recover emails that were blocked when my storage was full?

    The storage on icloud was full for me for perhaps a number of days. I bought extra storage (20GB) and my emails are now working, but how can I recover the emails that were blocked when my storage was full?

    Yes.  I tried the refresh and checked the uninstall tab.  Still nothing.  Another thing though - when I entered my Blackberry ID, it would not let me use my screen name because it was supposedly already in use.  But I knew that because it was in use by me.  It would only let me use the same name with a numerical suffix.  So I am wondering if it thinks I am still logged on from before the upgrade.  Also, is it possible the Playbook thinks I am some other use and won't let me access my files - like photos and videos, etc.

  • HP OfficeJet Pro 8500 goes to sleep, but often wakes up when it shouldn't

    HP OfficeJet Pro 8500 goes to sleep, but often wakes up when it shouldn't.  This happens over and over.  It used to sleep until I sent something to be printed. I now shut the printer down, but that takes a long time to start it up.

     When you finally get around to looking at my post, never mind.
    I reset the factory defaults on the printer and reauthorized my WiFi network.
    Now it is working.

  • Podcasts are syncing when they shouldn't be

    My iPod finally ran out of space so I wanted to remove some of the video podcasts from it. I have my podcast syncing set to sync the selected podcasts so I thought I could just uncheck the ones I didn't want to keep on my iPod and sync to remove them. That didn't work so I put my iPod in manual sync mode and removed them. I turned off the manual sync option and told it to sync again and it's copying all my podcasts (even the ones that aren't checked on the podcast tab). How do I make it stop so I can free up some space?

    Ok, I can confirm that the problem doesn't affect music playlists.
    I've also noticed that the files that get copied when they shouldn't take up more space than the ones that are supposed to be there. I noticed this by syncing, checking a podcast that was previously unchecked, then resyncing. It wasn't a lot of space, only around 10-25 mb.
    I've also found a workaround to get the files off my iPod. I have the "Sync only checked songs and videos" option checked on the summary tab for my iPod in iTunes. I can uncheck each individual podcast that I don't want to be on my iPod, then resync and they are removed. So I guess the problem is only present on the Podcasts (possibly movies and tv shows too) tab of the iPod screen in iTunes.
    Is there somewhere else I should go to submit a bug report?

  • Sapscript: How to combine two elements into a block when display ?

    /E  ITEM_CONDITIONS
    /:   PROTECT
    ZC &KOMVD-VTEXT&,,&KOMVD-KWERT&
    /:   ENDPROTECT
    /E  TOTAL_AMOUNT_ITEMS
    /:   PROTECT
    ZC &KOMK-SUPOS&
    /:   ENDPROTECT
    Hi, all. May i know how to combine the two elements into a same block when displaying?
    That's mean this two element content will not be split into two part between two pages when there is insufficient space in the front page.
    Thanks.
    Edited by: Jiansi Lim on Oct 8, 2008 12:24 AM

    You can evoke the PROTECT..ENDPROTECT in the print program before the call of the text elements.
          CALL FUNCTION 'CONTROL_FORM'
            EXPORTING
              command = 'PROTECT'.
          CALL FUNCTION 'CONTROL_FORM'
            EXPORTING
              command = 'ENDPROTECT'.

  • Firefox have some promlems and it block when is opeining hotmail, in my laptop always have that problem, so i need check my email using another programs...that problem is in my laptop or it´s a problem of navigator??

    Firefox have some problems and it block when is opening hotmail, in my laptop always have that problem, so i need check my email using another programs...that problem is in my laptop or it´s a problem of navigator??

    I know you can't help with my Yahoo problem, however, apparently at some time in the past I have went to the Sync and tried to figure it out on both my laptop and my desktop, because I have the long snyc key information. However, when I go to try to sync both computers I never get the box to enter that key on either one. That is my problem. So should I try and get a new sync key and see if that works.

  • AfterValueChange event trigged when it shouldn'tbe...

    Hi there,
    I'm hoping that someone out there has experienced the following (and
    knows why it is happening. ) :-)
    I have a couple of windows on which the AfterValueChange event is
    triggered on a field upon hitting the delete key.
    We all know that this should only happen upon leaving the field, ie. the
    field loosing focus. The problem is that I'm trying to recreate this in
    a simple test class, but now it won't happen. I still have the original
    windows on which it is happening, but I would like to construct
    something small and simple to send to Forte.
    Any ideas as to why this could be happening?
    Many thanks in advance.
    Jaco
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Thanks for the replies so far, but this is not the problem. I know about
    the "Validate on keystroke" option and it is definitely swithed off.
    I was rather thinking along the lines of this being be a 'funny' in
    Forte. Has anyone seen this before? Here is more information:
    1) The windows that it is happening on all have parent windows.
    2) The fields with this problem are all part of a mapped gridfield, ie.
    it has a type.
    However, I have constructed a test class with these characteristics, but
    it is no good. There must be something else that could cause this. Any
    ideas?
    -----Original Message-----
    From: Rottier, Pascal [SMTP:[email protected]]
    Sent: Friday, October 09, 1998 10:53 AM
    To: Fouche, Jaco
    Cc: Forte Users Mailing list
    Subject: RE: AfterValueChange event trigged when it shouldn't be...
    Hi Jaco,
    Check if the option "Validate on keystroke" is set
    to true on the widget that posts the AfterValueChange.
    If so, than that's the reason. Turn it off and your
    problem will go away.
    Pascal
    Hi there,
    I'm hoping that someone out there has experienced the following (and
    knows why it is happening. ) :-)
    I have a couple of windows on which the AfterValueChange event is
    triggered on a field upon hitting the delete key.
    We all know that this should only happen upon leaving the field, ie.
    the
    field loosing focus. The problem is that I'm trying to recreate this
    in
    a simple test class, but now it won't happen. I still have the
    original
    windows on which it is happening, but I would like to construct
    something small and simple to send to Forte.
    Any ideas as to why this could be happening?
    Many thanks in advance.
    Jaco
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive
    <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • Lately Photoshop CC 2014 in my PC gets blocked when doing panoramas. First I edit my raw photos in Lightroom, then export to Photoshop for making panoramas. My Pc runs Windows 8.1 64 bits 8Gb Ram, Lately Photoshop CC 2014 in my PC gets blocked when doing

    Últimamente Photoshop CC 2014 se  detiene fusionando las capas al hacer panoramas. Primero  edito mis fotos Raw en Lightroom luego las paso a Photoshop para hacer panoramas. Photoshop las abre y fusionando las capas se detiene.
    Según el administrador de tareas cuando se bloquea tiene ocupado el 81 % de memoria 25% de CPU y 1% del disco.
    Mi PC tiene Windows 8.1 de 64 bits y tiene 8 Gb de ram
    Lately Photoshop CC 2014 in my PC gets blocked when doing panoramas. First I edit my raw photos in Lightroom, then export to Photoshop for making panoramas. My Pc runs Windows 8.1 64 bits 8Gb Ram

    Últimamente Photoshop CC 2014 se  detiene fusionando las capas al hacer panoramas. Primero  edito mis fotos Raw en Lightroom luego las paso a Photoshop para hacer panoramas. Photoshop las abre y fusionando las capas se detiene.
    Según el administrador de tareas cuando se bloquea tiene ocupado el 81 % de memoria 25% de CPU y 1% del disco.
    Mi PC tiene Windows 8.1 de 64 bits y tiene 8 Gb de ram
    Lately Photoshop CC 2014 in my PC gets blocked when doing panoramas. First I edit my raw photos in Lightroom, then export to Photoshop for making panoramas. My Pc runs Windows 8.1 64 bits 8Gb Ram

  • When I attach a JPG file in my email and send it to a Windows friend they get the message "The file type being saved or retrieved has been blocked when they try to open it." Anyone know why and how to fix this problem?

    When I attach a JPG file in my email message and send it to a Windows friend they get the message "The file type being saved or retrieved has been blocked when they try to open it so that they can save it." Anyone know why and how to fix this problem?

    Your Windows friend should ask in a Windows forum why his email client won't open attached jpg files. We have no idea what email client he is using or how his Windows security is configured.

  • My ipad air blocked when trying to update the new software

    my ipad air blocked when trying to update the new software

    What do you mean by blocked?
    What do you see on your iPad's screen?
    ~Lyssa

  • Possible to block when browser says some plugin used by this page are out of date?

    Possible to block when browser says some plugin used by this page are out of date? I want to block the message.

    Hi I upgraded to latest version of Snow Leapard 10.6.8 from 10.5.6 and I was able to download latest flash. A screen told me to upgrade and it point me to the website. Ty

  • HT1212 i forgot my password then its block when, i restore to technician of cellphone there's appear to to insert  my apple.id but i forgot it too what can i do to restore my i phone pls help me

    i forgot my password then its block when, i restore to technician of cellphone there's appear to to insert  my apple.id but i forgot it too what can i do to restore my i phone pls help me

    https://iforgot.apple.com/password/verify/appleid

  • AltKey Uniqueness Rule firing when it shouldn't

    Hello,
    I am using JDev 11.1.1.4.0.
    I have a 'Name' field that has Altkey for uniqueness rule. It works fine. In fact, it works too well that the rule fires when it shouldn't.
    So I was looking for an example to execute the validation conditionally, for my case only when 'Save'.
    Any suggestion/comment appreciated.
    Thank you
    Bones Jones

    No reason in particular, when I created the class, FlashBuilder put it in there (I'm using Flash Pro CS5 + Flash Builder 4). I read that it calls it by default when the class is constructed, so having it in or out didn't really matter. I did comment it out with no luck, but I ended up shifting around the timeline quite a bit today and the problem has gone away. It seemed to only do it when it was in the first frame.
    Thanks for your help, I'm going to investigate it further when I have time just for reference, I'll post anything I find here.
    -Nick

  • Port blocked when Tomcat is made a windows service

    Hi All
    I have a web application which listens on some port for server response .That port gets blocked when Tomcat is made a windows service.But if i run tomcat normally this problem does not occure.So i am not getting what is exact problem?

    Huh?
    As a guess you mean that you when you run Tomcat the server port doesn't work.
    The difference is because in one case you are running as one user and in the other you are running as a different user. On windows you are probably running 'without' a user because you didn't explicitly set one up.
    The solution is to use an explicit user. That is also the way you should test. Log in as that user and run tomcat from the command line as that user.

Maybe you are looking for

  • Where do I submit the crash report .mdmp files for Pro CS6?

    Gidday guys Flash Pro CS6 maybe crashes on me about once a month  (I'm using it for hours a day). As of late, it's been crashing on me every 10-15 mins. I'll be entering code in the IDE, and get a fatal exception error. I can't seem to spot a pattern

  • PO with account assignment category K and use two cost center

    Dear Experts When I create a PO with account assignment category K and use two cost center in the account assigment tab of PO with the same GL or with different GL in the both line item, The FI document does not get posted. Any input on this please.

  • Embeded Oc4j server not starting up in Jdeveloper 10g 10.1.3.0.3

    hi, I have created simle hello.jsp , but i try to run it with the embedded OC4j server i get the following error . C:\jdk1.4\bin\javaw.exe -client -classpath C:\jdev\j2ee\home\oc4j.jar;C:\jdev\jdev\lib\jdev-oc4j-embedded.jar -Dhttp.proxyHost=172.16.2

  • Jstart.exe stopped and MAXDB CE1 service not starting

    Hi I am installing EHP1 for SAP NetWeaver Composition Environment 7.1 - Preview Version CE711SP1_SDN-Preview the installation was successful and I could work on the server after that. But when I restarted my machine now i can not start the server the

  • PSA: Phishing Scam! Please be aware!

    Not sure if im posting in the right place. I just received an e-mail from what at first glance looks like apple, but it isn't! The e-mail reads: "iTunes - Notice #0281-7145 Dear Apple Customer, We apologize to inform you, but we have deactivated your