Thread does not get notify

Hello,
I start 10 Threads.
If a thread must wait till recourse are valid then I call wait() method.
If any recourse are valid another synchronized method calls notify() method to wake up the thread.
I have the problem, that some the treads are in wait status and these will never wake up again!
This happens exactly, when I choose for example 10 Threads and 5 recourses, or 8 Threads and 4 resources, etc..
What could be the problem, that some threads do not get notify, even when I use netofyAll() method, the situation is the same!

Most likely problem is that you haven't used synchronized sections properly to manage the flags on which you're waiting.
e.g. notify is being called before wait has done it's thing.

Similar Messages

  • IFS agent does not get notified?

    I have an iFS agent which listens for creation and deletion of VersionDescription
    instances. I am encountering the following
    problems:
    1. The agent is not getting notified when a
    VersionDescription is deleted.
    2. The agent is not gettting notified when
    a VersionDescription creation is surrounded
    by beginTransaction and completeTransaction.
    The agent is getting notified for VersionDescriptions created otherwise (i.e.,
    without beginTransaction, completeTransaction). I am using ifs1.1.6. Any help will be greatly appriciated.
    Thanks,
    Ram
    null

    componentShown is called when the component's visibility state is changed from false to true.
    If your JStatusBar extends JPanel, JPanel's default visibility state is true,
    therefore componentShown will not fire
    a workaround here
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=718472

  • Hostname verifier does not get invoked

    Hi All,
    I am new to weblogic and currently facing an issue with SSL. I checked this forum but none of the solutions really worked for me, so seeking advice starting a new thread. Kindly help.
    Problem 1
    I have a REST webservice running in one weblogic server and another weblogic server contains a client which is based on the code from the following link -
    http://wiki.open-esb.java.net/attach/RestBCEchoSSL/SslClient.java
    One way handshaking is enabled in both the weblogic and the KeyStore and Truststore are read from configurable directory in the client java code. I specify a directory which resides outside weblogic home.
    Even though there is an HostnameVerifier implemented in the code to return true always, it does not get invoked and I get a certificate exception as below -
    <Warning> <Security> <BEA-090542> <Certificate chain received from xx.yy.zz.rrr - xx.yy.zz.rrr was not trusted causing SSL handshake failure. Check the certificate chain to determine if it should be trusted or not. If it should be trusted, then update the client trusted CA configuration to trust the CA certificate that signed the peer certificate chain. If you are connecting to a WLS server that is using demo certificates (the default WLS server behavior), and you want this client to trust demo certificates, then specify -Dweblogic.security.TrustKeyStore=DemoTrust on the command line for this client.>
    But when I run the java client from Eclipse I am able to invoke the webservice methods using HTTPs.
    So is not it possible to add a default hostname verifier as in the java code when the application is deployed in weblogic?
    Problem 2
    I another attempt to solve the above issue I turned off the hostname verification from weblogic admin console in the client weblogic side. In the console for the server Configuration > SSL->Hostname Verification field is set to "None". But that did not help.
    Then I added the '-Dweblogic.security.SSL.ignoreHostnameVerification=true' flag into the <domain>/bin/startWebLogic.sh file and restarted the weblogic. No luck again.
    ${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} ${JAVA_OPTIONS} -Dweblogic.Name=${SERVER_NAME} -Djava.security.policy=${WL_HOME}/server/lib/weblogic.policy -Dweblogic.security.SSL.ignoreHostnameVerification=true ${PROXY_SETTINGS} ${SERVER_CLASS}
    I tried recreating the certificate using the' hostname' instead of the ip address ( also added an entry into the /etc/hosts file putting the ip and hostname so that I can do ping <hostname> from the client and get response returned from the server side). Again no luck :(. I keep getting the same handshake failure as mentioned above.
    The weblogic version is 10.x.
    Thanks,
    Amrit

    I did some more research for the issue mentioned which I yet to get rid of.
    1) I wrote a REST web service which makes a call to another REST service deployed on another weblogic using HTTPs (same code as mentioned above is used). I delpoyed the war and made a http call to the first webservice, the other REST service was invoked successfully using HTTPs. So this confirmed that there is no problem with the certificates or keystore or hostname verifictaion.
    2) My actual application still throws the handshake exception as below -
    <Warning> <Security> <BEA-090542> <Certificate chain received from xx.yy.zz.rrr - xx.yy.zz.rrr was not trusted causing SSL handshake failure. Check the certificate chain to determine if it should be trusted or not. If it should be trusted, then update the client trusted CA configuration to trust the CA certificate that signed the peer certificate chain. If you are connecting to a WLS server that is using demo certificates (the default WLS server behavior), and you want this client to trust demo certificates, then specify -Dweblogic.security.TrustKeyStore=DemoTrust on the command line for this client.>
    So I think the problem is something else but weblogic is priniting the exception message wrong.
    The process hierarchy ( in UNIX ) is as shown below -
    bea 31914 31913 0 14:29 ? 00:00:00 /bin/sh <DOMAIN HOME>//bin/startWebLogic.sh
    bea 31989 31914 0 14:29 ? 00:01:25 /opt/bea/jdk160_24/bin/java <The weblogic start server process> started by startWebLogic.sh
    bea 32107 31989 0 14:29 ? 00:00:09 /opt/bea/jdk160_24/bin/java <One of custom process>
    bea 2038 32107 0 18:38 ? 00:00:15 /opt/bea/jdk160_24/bin/java <Another custom process which contains my java classes containing the REST client>
    The problem is there in both Weblogic 11 and 10.3 version.
    I will be grateful if someone gives any clue about the problem.

  • Stationglobals in a Labview custom step type inside a new thread do not get updated

    Hi,
    I have a Custom Step type which I use to pass parameters to TestStand from a VI and vice-versa through some step fields. I run the VI inside a sequence in a new thread and expect the VI to update the parameters when I change them through the TestStand StationGlobals.
    For example, I have a waveform injection custom step. I want to continuously inject a signal while I do some measurements on it. So, I put this step type in a sequence and ran it in a new thread. 
    I pass the VI parameter 'Stop_Injection' through a step field as shown in image 1. And I expect the step field to get updated when the new thread is run continuously by passing the corresponding stationglobal in the Pre-expression of the custom step (image 2). But this fails to happen. The VI does not get updated.
    On the other hand, if I do not bother with the step field and directly pass the stationglobal (figure 3), it works perfectly. 
    Any idea why this is happening?
    I hope I was clear in my question.
    LabVIEW 8.6.1
    TestStand 4.1.1
    Message Edited by Changi on 08-06-2009 12:50 AM
    Attachments:
    1.JPG ‏92 KB
    2.JPG ‏42 KB
    3.JPG ‏91 KB

    Hi,
    In image 3 you are linked directly to the StationGlobal of which you are continually updating therefore seeing the changes.
    In the other you are only linked to the Step.Stop_Injection and are only updating this valve from the stationglobals once in the pre-expression. You are not changing the reference.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Iphone does not get detected in windows 7

    Hi,
    Whenever I connect my iPhone to my lap, it does not gets detected.
    It enters into charging mode.
    But it gets detected in iTunes.
    How to make it detected outside iTunes ?

    hi..
    i also have a same problem..
    i am using windows7
    and none of my iphone gets detected..!!
    i have a iphone5 and 4s
    i also tried formatting my pc but em nt getting a solution for this..i tried all of the solutions listed in the thread..
    plzz help

  • Invited reviewer does not get mark-up tools

    I have created a PDF and sent it for shared review to 2 reviewers. None of them have Acrobat but they do have Adobe Reader.
    1. One (potential) reviewer does get the mark-up toolbar but is unable to connect to the sharing server, as discussed in another thread.
    2. The other (potential) reviewer can download the file and view it but does not get the mark-up toolbar to edit it.
    Why could this be?
    Thanks

    Hi Isabel,
    I'm going to move this post over to the Acrobat forums to see if anyone there can help. The problems that your collaborators are experiencing are related to Acrobat or Reader, not Acrobat.com.
    Best,
    Michelle

  • Dbacockpit overview pane does not get populated

    Hi guys,
    I have already gone through the several other threads on sdn which repeat the same issue here but I am not able to find a solution via them. Can any one give me some leads into this...
    -- CHANGES DONE --
    We applied all relevant support packs which were part of Support stack 13. This involved also patching SAP BASIS from 10 to 13. Also NW04S 700 kernel was upgraded to patch 114 (SAPEXE and SAPEXEDB SAR packages)
    STATEMENT OF PROBLEM(S)
    Tcode dbacockpit does not refresh data in the overview pane.
    note: db02old still works and we are able to refresh stats from there but dbacockpit overiew pane does not get populated.
    Also post support packs: “sap_collector_for_performance” runs successfully but reports in job log “database system is not supported”
    When we do a refresh via dbacockpit, the job “refresh space statistics” ends with a “compute bcd overflow” dump.
    CHECKS ALREADY MADE
    --Note 1066044 – for the BCD overflow dump – does not help. We are already at BASIS pack 13 and the correction contained in the note is already in place. As
    per the note since are already at BASIS SP13 we should not be facing this. Why are we facing this then ?
    --Note 868063
    Call report rsoracup; put in con_name=DEFAULT; operatio=CREATE;F8 – did this.
    --Note 1002840.(checks done as per note)
    a) Check if SAP_Collector_for_perfmonitor is scheduled hourly
    It completes successfully but gives job log below
    1/16/2007 12:06:14 Job started
    1/16/2007 12:06:14 Step 001 started (program RSCOLL00, variant , user ID DDIC)
    1/16/2007 12:06:14 Clean_Plan:Cleanup of DB13 Plannings
    1/16/2007 12:06:14 Clean_Plan:started by RSDBPREV on server
    1/16/2007 12:06:14 Clean_Plan:Cleaning up jobs of system xxx
    1/16/2007 12:06:14 Clean_Plan:finished
    1/16/2007 12:06:15 Database system not supported
    1/16/2007 12:06:17 Job finished
    Why ?? (we got oracle 10.2.0.2)
    b) se16 -> table TCOLL. Check if entery RSORACOL exists.
    It does exist as below
    RNAME RSORACOL
    RENUM 1
    SYTYP S
    ALTSY
    DAYOW XXXXXXX
    TIMOD XXXXXXXXXXXXXXXXXXXXXXXX
    c)SE16 -> table ORA_MON_DBCON. Check for enrry con name: DEFAULT.
    It does exist as below
    CON NAME DEFAULT
    STATUS A
    MAX RUNTIME 1,800
    MAX UPLOAD 1,000,000
    LOG LIFE 100
    DESCRIPTION Local database. R/3 system available.
    d)se16 -> table db02_coll_plan. Check if all the entries have status A and there are 64 entries. This is ok
    --Note 1042725
    SE16-> PROGDIR for Name= 'LSDBORA3F03'; Set field EDTX to blank
    All entries have EDTX blank but there is no entry 'LSDBORA3F03’
    Despite all the above checks I am unable to get the dbacockpit to refresh. Does anyone have any ideas. Will putting in the latest DBSL shared library patch for oracle solve this... I did SAPEXE and EXEDB.SAR latest. Any ideas...?
    Cheers, Vikram
    [email protected]

    For this issue it's still not working for me in Sanbox BI. I got a SAP message open for this. But I got it to work on Dev and TST systems. There was one mistake I was making. This may not be the cause though but just for your info. When we go to dbacockpit, click on collector setup icon. And there when we give connection name = "default" and then action as "create connection", I was not saving the variant. Click save and give a name to the variant like "refresh stats" or something. Then click refresh icon so that the "Refresh space statistics" will run in background. When I saved the variant on dev and test BI I did not end with a BCD overflow dump for the  "refresh space statistics" job.The refresh space stat job needs to find the variant name.And this then populated the dbacockpit -> space -> overview pane. Although the "perf for monitor" job still has log entries "db system not supported" that doesn't matter. It's probably a message we can ignore.
    Also if you are still facing prob, check these.
    You say you are on SP12 which SP component are you referring to (stack number ?. BASIS ? BW ?). Make note I have done the support stack 13 which contains upto the BW patch upto 15 and upto BASIS patch 13. Note 1066044 says if you have BASIS 13 you won't face this problem .
    Is your "perf for collector" job running without issues. That is a prereq to the "Refresh space stats" job. Try to troubleshoot that as well. I think the refresh stats job has to find the data in table MONI which gets populated via "perf for collector" (RSCOLL00).
    regards, Vikram

  • G/L Account mentioned on line level does not get hit in Journal entry on GRPO and AP Invoice in SAP B1 9.0 PL - 11

    Hi,
    G/L Account mentioned on line level does not get hit in Journal entry on GRPO and AP Invoice in SAP B1 9.0 PL - 11
    I am creating an independent AP Invoice, there are two issues:
    1. On line level G/L Account field is not open for selection
    2. I have then selected and updated the account on Form Settings. Same account gets updated on line level.
         In Journal Entry selected G/L account on line level shall be hitted. But it does not put any effect on JE. Accounting is set by Warehouse. It picks up accounts from warehouse only.
    Need help its urgent.
    Thanks in advance.

    Invoice is Item Type.
    G/L Accounts are set by Warehouse. But if explicitly we are want to change the account on line level in that case, it is not getting reflected in Journal entry. On AR Invoice same scenario works perfectly. On line level I can change the accounts explicitly and have the effect on Journal entries.
    Issue seems to be on AP side only.
    As required please find attached the screen shots.
    JEwith mapped GL Account on Warehouse
    JEwith different GL Account on line Level via Form Settings
    Thanks & Regards
    Sonil

  • I am part of a family sharing setup.  Can I have my own payment method so the organizer does not get charged for my purchases?

    I am part of a family sharing setup.  Can I have my own payment method so the organizer does not get charged for my purchases?  If so, how do I set this up?

    Yes.  Just redeem gift cards so that your own account always has a sufficient credit balance.  Here is how it works:
    Family purchases and payments
    After you set up your family, any time a family member initiates a new purchase it will be billed directly to your account unless that family member has gift or store credit. First, their store credit will be used to pay the partial or total bill. The remainder will bill to the family organizer's card.

  • Iphone 3GS no battery charging icon, does not show charging, does not get recognized by computer or Itunes.

    Iphone 3GS no battery charging icon, does not show charging, does not get recognized by computer or Itunes, have tried restore mode & DFU mode. Bad battery or port?

    iPhone not appearing in iTunes

  • I can no longer get to Facebook Via firefox It comes up loading in the tab but does not get any further one minute it was working the next it was,nt should I try uninstalling firefox then reinstall or does anyone know what could of happened thanks

    # Question
    I can no longer get to Facebook Via firefox It comes up loading in the tab but does not get any further one minute it was working the next it was,nt should I try uninstalling firefox then reinstall or does anyone know what could of happened thanks

    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites that cause problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • Audigy 4 Pro - I/O Hub does not get any po

    Hello all,
    I purchased an Audigy 4 Pro a few days ago and I cannot get the external hub to power on.
    This somewhat sumarizes what I tried so far:
    . Uninstalled all drivers and software of my old Soundblaster Li've 5. Platinum
    2. Also removed all entries of the old soundcard from Device Manager
    3. Powered down the PC fully, took out the Li've 5. and powered it back on and logged on to my Windows XP (SP2).
    4. Just to be sure before installing the drivers for the Audigy 4 Pro I cleaned out the cookies, temporary internet files, all other Temp folders, the Prefetch folder and also ran a program to clean the registry.
    5. De-activated my Norton AntiVirus Corporate Edition's Real-time protection, it's services and also my ZoneAlarm Pro from starting up the next time I reboot Windows.
    6. Powered down the PC again, took the power cable out, made sure there was no power whatsoever left and carefull inserted the Audigy 4 Pro card in an empty PCI slot.
    7. Connected the larger AD_Link to the card, then to the hub
    8. Connected the smaller AD_Link to the card, then to the hub
    9. Finally connected the power convertor cable to a free systems power unit
    0. Double-checked the entire hardware setup a few times and power the PC back on
    . Windows XP detected and installed the OHCI Compliant IEEE 394 Host Controller and the 394 Net Adapter
    2. Canceled to proceed looking for a driver when it found the Audigy 4 Pro card
    3. Installed the drivers and applications that came with the Audigy 4 Pro. Everything went smooth - no error messages during the installation.
    4. Rebooted PC after prompting to do so.
    5. With ZoneAlarm and my Norton Antivirus de-activated, all drivers and programs installed properly the external I/O hub does NOT get any power. I also made sure to check this with the remote control.
    I have ofcourse no sound coming out that hub when plugging in my headphone and also cannot use my microphone.
    6. I ran the Diagnostics program that was installed automatically with the other Creative applications: It claims there aren't any problems.
    7. Powered down the PC again, checked all connectors, powered the PC up again: Same problem... no power.
    8. Installed the latest 4-in- drivers found on viaarena.com: Same problem
    9. Uninstalled and reinstalled the drivers and applications: Same problem
    20. Uninstalled and reinstalled the drivers and applications after taking out all other PCI cards and placing the Audigy 4 Pro card into an other PCI slot: Same problem
    2. Set my BIOS to factory defaults: Same problem
    22. Formatted the PC and reinstalled Windows XP (SP) with every update thinkable... Same problem
    23. Formatted the PC AGAIN ( ! ) and reinstalled Windows (SP2) with updates .... Same problem
    Another problem: Sent a detailed e-mail to Creative Support Europe.... Still NO respons after 48+ hours.
    Anyone else should have a solution I would appreciate trying out, or if all fails I'll go for a Terratec model.
    Thanks in advance!
    PC Stats: Asus A7V266 - VIA KT266 Chipset (VT8366 North Bridge with VT8233 South Bridge) / BIOS version: 0 / AMD Athlon .4GHz / 52Mb
    Message Edited by HilTek on 07-05-2005 :04 PM

    Amazing, I got mine about 3 days ago and have been pulling my hair out trying to resolve the same problem. I have checked power connections, reinstalled drivers. I think something is wrong with the box. I tried to call support yesterday, which was a Saturday, but they aren't available til Monday. I guess I will call them Monday. Let me know if you find anything out in the mean time.
    Thanks
    John
    AMD Athlon(tm) 64 FX-57 Processor
    A8N-SLI Premium
    NVIDIA GeForce 7800 GTX
    GB RAM
    WIN Pro x64

  • Solution Manager does not get service definitions from SAP in self diagnosi

    Hi,
    In our production solution manager transaction solution_manager, self diagnosis we are getting a warning message on our development solution manager. 
    Solution Manager XXX does not get service definitions from SAP.
    The production Solution Manager is the master in SDCCN for the test Solution Manager.  In the test Solution Manager, the scheduled task REFRESH SERVICE DEFINITIONS has task System ID of O01.  It is pointed to RFC destination SDCC_OSS, not the production Solution Manager system.
    It gives the same warning if I point the task to the production Solution Manager system.
    Has anyone seen this before?  Any ideas?
    Best regards,
    Russ

    Hi,
      i guess have you activated SDCCN from your solution manager system too?
    if not please activate. since that setup helps solman retrive the service definitions used in SDCCN from SAP (SAPOSS).so this ultimately allows you to set solution manager system as Master, so all the satellite system get the service definition from solman and do not need a direct SAPOSS connection.
    and Please check this Note 1143775 - SAP service content update
    the wiki for trouble shoot ["EarlyWatch Alert is Red Flagged - how to resolve" |http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=228262728]
    please check.
    Thanks,
    Jansi

  • When I send a text message to my husbands iPhone he does not get it

    When I send a text to my husbands iPhone he does not get it.  It worked before the new update.

    Either one of you needs to uncheck the other's phone number under settings&lt;messages&lt;send &amp; receive or one of you needs to sign out of the apple ID in iMessage settings altogether by pressing the apple id on the page and choosing 'sign out'

  • My itunes does not get the names of all tracks which i import.

    When i import a cd into itunes, it does not get any track names. Why is this.
    Also, itunes does not connect to the music store. It tells me that i should check my connection etc etc. Are these problems related, and what can i do to fix it?

    Let me guess, did you just install/upgrade iTunes?
    If so, then it's surely your security software (firewall, web accelerator, privacy filters, etc) that is blocking iTunes.
    The iTunes "upgrade" is actually an uninstall, then total new install, of iTunes and QuickTime. Many security packages such as Norton, Zone Alarm, Google Web accelerator, McAfee, PCillin (...the list is long) see this new iTunes install as a malicious threat, and block out the previous settings without telling you.
    Go to your security software vendor's website and see if they have directions for allowing iTunes & QT back in the list of programs allowed to access the internet.

Maybe you are looking for

  • Adding variable in Report painter

    Hi Gurus, I am creating a new report using Report painter. Though, it is working fine, I want to bring one of the field for selection. How to add variable ? I created a variable but I am trying to insert this variable in the report painter... I am un

  • How to get multiple numbers for a business?

    Hi- We use Skype as our means of communication for our company.   We like everyone to have a Skype number, however we have reached a major roadblock.  Everytime we add a new person and try to get them a Skype number it locks the account for fraud, ap

  • Can't locate PowerPoint audio files in Captivate 5

    I imported a PowerPoint presentation with audio narration into Captivate 5. The audio plays fine, but I don't know where to find the audio files. They don't appear in the timeline or anywhere else.

  • Why am I getting an activation error?

    I am trying to download my ePub books but when I click I get   Error! Activation. What am I doing wrong?

  • Lightroom 3.3 will not read camera raw?

    Hi. I recently updated to LR 3.3 and for some reason it will not read my camera raw. I have a Canon E05 Rebel T1i and a PC. The program reads all of my JPG images, but none of the raw. Is there some update available or some setting that I can change?