C application hangs intermittently on invoking Closehandle() function in Win 7 64bit OS

Hi,
I have a application which basically deals with network operations like begin session, send/receive etc. The application also has mutex create, request and close. Before terminating the transaction between the client and server, there is a call to Closehandle()
while clears that mutex that was created during initialization. (Mutex is released prior to close). During closing the mutex, in Windows 7 64 bit OS, the application goes to hung state intermittently. The same application used work without any issues in Win
XP. 
PS: The C application is written in Visual Studio 6.0
Hence requesting for any thoughts to resolve this problem!!
Thanks in Advance!

Hi,
When application hangs, it needs to be restarted. Yes, this problems happens sometimes.
With respect to the anti-virus and firewalls, I had tried turned off firewalls and anti-virus but did not help!
This application basically acts as a network layer which is the bridge between client and server.
Below is the code snippet from the app which shows about mutex creation, request and close. I had configured ADPlus to the application to check on which line of the code the hang occurs and from that dump file could notice that the cause for the hang is
Closehandle() function.
Code snippet -
typedef unsigned long OSLMUTEXSEM;
extern OSLMUTEXSEM gsemCrypt; 
void PASInitialize() {
char *            pMutexSemName;
DWORD     NTRC;
pMutexSemName = gsemCrypt;
oslRc = MutexSemCreate((char*)NULL,&gsemCrypt));   //Mutex creation by calling CreateMutex() function
oslRc = MutexSemRequest( gsemCrypt, SEM_WAIT_FOREEVER); //Request the semaphore by calling WaitForSingleObject() function -infinite //timeout
// some operation
oslRC = MutexSemRelease( gsemCrypt ));  // release the mutex by calling ReleaseMutex function
void PASTerminate(){
oslRC = MutexSemClose(gsemCrypt); //calling Closehandle()function to close the mutex
WSACleanup();
From the dump files, it was noticed that the hang happens at the call MutexSemClose(..) function which in turn calls windows function Closehandle().

Similar Messages

  • Writing LabVIEW application on Solaris that invokes a function in a shared library

    In the "Call Library Function" Configure window I choose a Shared Library "xxx.so" file and select the Function Name "Foo" (written in C). It happens that function "Foo" calls another function "Bar" (also written in C) that resides in a different Shared Library (in /usr/dt/lib). After clicking "OK", a window comes up with the message "/xxx/xxx.so fatal relocation error ... symbol Bar: referenced symbol not found." Is there a way to get around this (such as search a list of libraries)? Combining the libraries is not an option; they are very large and belong to different software packages.

    Thanks for your quick response.
    Yes, usr/dt/lib is in the LD_LIBRARY_PATH environment variable. Is LabVIEW supposed to search LD_LIBRARY_PATH libraries in addition to the one I specify in the "Call Library Function" Configure window? That's what I would like it to do, but there still seems to be a problem. -j_b

  • Webdynpro Application hangs on executing query

    I am  having strange issue with Webdynpro application running JDBC code. Webdynpro application hangs intermittently when it tries to run the below jdbc code .
    This code is written on custom controller. We are using the SAPSR3DB datasource.  Do anybody  have any idea why this is happening . Thanks in advance
    wdThis.wdGetAPI().getComponent().getMessageManager();
                                    try {
                                                    Connection conn;
                                                    InitialContext ctx = new InitialContext();
                                                    DataSource dataSource = (DataSource) ctx.lookup(readPropertyFile());
                                                    conn = dataSource.getConnection();
                                                    PreparedStatement stmt =
                                    conn.prepareStatement(
                                                                                    "insert into ZAE_PROD_GRtable(AUFNR,EXIDV_P,EXIDV_C,MATNR,WERKS,CHARG,VEMNG,VEMEH,CWMVEMNG,CWMVEMEH,STATUS,INDC) values(?,?,?,?,?,?,?,?,?,?,?,?)");
                                                    stmt.setString(1, wdContext.currentContextElement().getAUFNR());
                                                    stmt.setString(2, wdContext.currentHUDataElement().getEXIDVP());
                                                    stmt.setString(3, wdContext.currentHUDataElement().getEXIDVC());
                                                    stmt.setString(4, wdContext.currentOrderDataElement().getMATNR());
                                                    stmt.setString(5, wdContext.currentOrderDataElement().getWERKS());
                                                    stmt.setString(6, wdContext.currentOrderDataElement().getBATCH());
                                                    stmt.setString(7, wdContext.currentHUDataElement().getVEMNGP());
                                                    stmt.setString(8, wdContext.currentHUDataElement().getVEMEHP());
                                                    stmt.setString(9, wdContext.currentHUDataElement().getVEMNGC());
                                                    stmt.setString(10, wdContext.currentHUDataElement().getVEMEHC());
                                                    stmt.setString(11, "1");
                                                    stmt.setString(12, wdContext.currentContextElement().getHuIndicator));
                                                    stmt.executeUpdate();
                                                    stmt.close();
                                                    conn.close();
                                    } catch (SQLException ex) {
                                                    msgMgr.reportException(ex.getLocalizedMessage() +";SQL State - " + ex.getSQLState(), true);
                                    } catch (Exception ex) {
                                                    msgMgr.reportException(ex.getLocalizedMessage(), true);
    finally {
                   try {
                        conn.close();
                   } catch (Exception e) {
                        msgMgr.reportException(e.getLocalizedMessage(),true);

    Hello,
    There can be any issue, i dont see any compile time issue with your code, but you may wana do a simplistic query first.
    First of all, the statement and conection close, do it in the finally block, untill unless you are reusing it.
    other than this.
    First, after connection, see if you are getting the connection or not.
    conn = dataSource.getConnection();
    //print the connection and check if the connection is fine.
    comment remaining stuff in the loop.
    In the second shot, run a simple query like select count(*) from TABLE ;
    to see if the connection and execution is fine. this will make sure
    Also, before you set the values into the statement using setString, print the values to check for correctness and not null.
    btw, i found an extra ")" in your setString(12,.....) ;
    stmt.setString(12, wdContext.currentContextElement().getHuIndicator));
    What are you trying to close in your finally block when you have already closed the connection in the try.
    try{
              stmt.close();
              conn.close();
         } catch (SQLException ex) {
              msgMgr.reportException(
                   ex.getLocalizedMessage() + ";SQL State - " + ex.getSQLState(),
                   true);
         } catch (Exception ex) {
              msgMgr.reportException(ex.getLocalizedMessage(), true);
         finally {
              try {
                   conn.close();
              } catch (Exception e) {
                   msgMgr.reportException(e.getLocalizedMessage(), true);
    Remove it from try.
    Regards,
    Nitin
    Edited by: Nitin Mahajan on Jun 16, 2009 6:20 PM
    Edited by: Nitin Mahajan on Jun 16, 2009 6:21 PM
    Edited by: Nitin Mahajan on Jun 16, 2009 6:22 PM

  • Invoking  Remote Function Module.

    Hi
    I am invoking a remote function module from a web dynpro application(External Appln ).
    The FM contains the following code snippet
    first it inserts the parameters passed into a table
    and then the code is
    SUBMIT <report name > with parameter passing.
    when i comment out the Submit statement and invoke the function module the parameters get populated in the table..but when i enable the SUBMIT statement the same set of parameters dont even get populated in the table. and i get the following exception in the logs of SAP J2ee appln server .
    WDDynamicRFCExecuteException:      Screen output without connection to user.                           , error key: RFC_ERROR_SYSTEM_FAILURE
    i am not able to find a solution to this problem .
    Please help.
    regards
    Nilesh Taunk.

    HI
    GOOD
    GO THROUGH THIS LINKS,THEY MIGHT HELP YOU TO GIVE YOU SOME MORE IDEA.
    Re: RFC Error While Invoking A Remote Function Module.
    RFC Error While Invoking A Remote Function Module.
    http://sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5303c390-0201-0010-e0b2-bfae018377f0
    THANKS
    MRUTYUN

  • IE 11 Application Hang. Reason Unknown

    IE 11 hangs and stops responding on one of our pages. The page relies heavily on JavaScript and crashes during one particular action the user takes. While running the IE 11 debugger, everything seems to work correctly. It makes it through all the javascript,
    but the page doesn't respond.
    Also, setting the Document Mode to IE 8-10 or checking Compatability Mode does not solve the issue. IE 11 still crashes. The real versions of IE 8-10 do not crash.
    Here is a detailed view of the Application Error:
    Log Name:      Application
    Source:        Application Hang
    Date:          12/17/2013 3:47:43 PM
    Event ID:      1002
    Task Category: (101)
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      MASHLEYPC
    Description:
    The program IEXPLORE.EXE version 11.0.9600.16428 stopped interacting with Windows and was closed. To see if more information about the problem is available, check the problem history in the Action Center control panel.
     Process ID: 25e4
     Start Time: 01cefb713871723b
     Termination Time: 38
     Application Path: C:\Program Files (x86)\Internet Explorer\IEXPLORE.EXE
     Report Id: 
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Application Hang" />
        <EventID Qualifiers="0">1002</EventID>
        <Level>2</Level>
        <Task>101</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2013-12-17T21:47:43.000000000Z" />
        <EventRecordID>51618</EventRecordID>
        <Channel>Application</Channel>
        <Computer>MASHLEYPC</Computer>
        <Security />
      </System>
      <EventData>
        <Data>IEXPLORE.EXE</Data>
        <Data>11.0.9600.16428</Data>
        <Data>25e4</Data>
        <Data>01cefb713871723b</Data>
        <Data>38</Data>
        <Data>C:\Program Files (x86)\Internet Explorer\IEXPLORE.EXE</Data>
        <Data>
        </Data>
        <Binary>55006E006B006E006F0077006E0000000000</Binary>
      </EventData>
    </Event>
    The javascript that runs when the crash occurs (with no errors) is as follows:
    function renderObjectiveStrategies(objId,goalId){
    try{
    if(myRowIndex != null){
    var tO = document.getElementById("tblObjectives"+goalId); //Get the table that the current objective is in
    var plusRows = 1;
    if(doSC){
    plusRows = 2;
    var r = tO.tBodies[0].insertRow(new Number(myRowIndex)+plusRows); //Insert a row below the current Objective in the tBody
    r.setAttribute("id","objStgsRow"+objId);
    var c = r.insertCell(0);
    c.colSpan = "2";
    c.innerHTML = "&nbsp;";
    c = r.insertCell(1);
    c.colSpan = "3";
    c.className = "cellLeftBorderObj cellBottomBorderObj cellRightBorderObj";
    var tS = generateNewTable("tblStrategies"+objId);
    createStrategyHeaderRow(tS,goalId,objId);
    createStrategyFooterRow(tS,objId);
    var lstStgCt = Object.size(myObjStgs);
    if(lstStgCt > 0){
    for(var i = 0; i<lstStgCt; i++){
    createStrategyRow(tS,"ro",tS.rows.length,myObjStgs[i]);
    if(doShowNewStrategy){
    var stg = getNewStrategyObject(objId);
    createStrategyRow(tS,"edit",tS.rows.length-1,stg);
    var myOId = new Number(objId);
    var exStr = "document.getElementById('txtStgDesc"+myOId+"0').focus();";
    //cl(exStr);
    setTimeout(exStr,0);
    doShowNewStrategy = false;
    c.appendChild(tS);
    }catch(e){
    console.log(e.message);
    Any ideas are greatly appreciated!
    Thanks,
    Matt

    Hi Matt,
    Event ID 1002 is an generic error event which occurs when application stops responding.
    Based on your description, I would like to suggest you try the following to check the issue:
    1. Disabling Enhanced Protected Mode
    2. Delete your browser history
    a. Start Internet Explorer from the desktop.
    b. Press Alt to show the menu bar.
    c. On the Tools menu, tap or click Internet options.
    d. Under Browsing history, click Delete.
    e. Select all the applicable check boxes, and then tap or click Delete.
    f. Tap or click Exit, and then restart Internet Explorer.
    3. Run IE with no add-ons. Click Start -> All Programs -> Accessories -> System Tools -> Internet Explorer (with no add-ons). 
    4. Reset Internet Explorer settings
    http://support.microsoft.com/kb/923737
    Please understand that reset Internet Explorer to its default configuration. This step will also disable any add-ons, plug-ins, or toolbars that are installed.
    5. Remove any 3rd party anti-virus from your system.
    6. Manually check for and install updated drivers in optional updates.
    If the issue still occurs, you may consider to perform a system restore on your computer to fix it.
    What is System Restore?
    http://windows.microsoft.com/en-us/windows7/What-is-System-Restore
    Hope it helps.
    Regards,
    Blair Deng
    Blair Deng
    TechNet Community Support

  • Funny noises, beachballs and application hangs (MacBook Pro 2010)

    Hi,
    My late 2010 model 17 inch MacBook Pro frequently makes an odd noise (seeming to come from the left side) when I am using it.  It sounds a bit like a click or a whirr (or both); if this happens application I am using will often hang for seconds to a few minutes, before the noise recurs and everything goes back to normal.  It is quite irritating!
    Interestingly, the Finder itself doesn't crash and I can switch to other applications; these also hang if I try to use them but all is restored when the noise happens again.
    The most obvious app is iTunes, which will stop playing music when noise happens then restart as soon as the problem rectifies itself.
    Any suggestions as to what this could be?  It's been happening for years now and my machine still seems ok
    Thanks

    You have a failing hard disk   BACKUP YOUR DATA IMMEDIATLY. Assuming you are using an MBP with a physical disk and not an SSD (which is most like the case for a 2010 model MPB)  then the clicking noise you are hearing is the HDD equivilant of a stroke.  The reader head hits a piece of "interesting" data, flips out, smacks against the axle of the disk, and then the disk has to spin up again,  causing the application hangs.   When the disk is going through this, no data can move in or out.  The reason finder still works is that some data is pre-loaded.  You may still have functionality for a few seconds even after the disk quit working.  Since these are tiny blips in data, the finder still works.   Applications, which are constantly passing data, hang and wait for the data.    Usually, if you go into the system.log file, you will see a stack of I/O errors stemming from the disk/sector in question.    Again, BACK UP YOUR DATA IMMEDIATLY and take the laptop to a genius bar.
    The Whirring noise you hear is probably the disk moter spinning up during this process. 
    http://www.youtube.com/watch?v=yAkHzaKULPk  a visual of what is happening

  • Application hangs on setVisible call in Solaris 8

    I have a Swing application that I am having trouble with. The swing part of it is simple enough, however it does use a C++ API with JNI. It all works perfectly on Linux. However in Solaris 8 the application hangs on the call to either myFrame.pack () or myFrame.setVisible (true). It simply never returns from either of these functions when called. It doesn't crash.
    I have commented out all of the JNI stuff to eliminate that as a possible cause. Oh and I am using the -d64 option on the JVM because the JNI library is 64 bit.
    Any thoughts?

    First question is - did you get a thread dump?
    On Solaris, if you run the app in a terminal window, then type C-\ (control-backslash) you get a thread dump. What you'll be looking for is multiple threads "waiting for monitor" on the same object.
    - David

  • At Craig's suggestion: Why Invoke PERL functionality from WD-ABAP?

    Craig -
    This is response to your suggestion that I post my own reasons for thinking that it would be useful to be able to invoke PERL functionality from WD-ABAP.
    Please note at the outset that these reasons are based on my own personal belief that the relatively new vertical sectors of bioinformatics/biomed could produce reasonably significant income for SAP in a reasonably short time if SAP decided to create application-level functionalities in these areas. 
    This belief is in turn based on a very significant new initiative which has been publicly announced by the university Medical Center recently voted "most-wired" (Vanderbilt) and equivalent initiatives at other university Medical Centers across the country.  (BTW, I've posted a meeting time (Tue 7pm) at Tech Ed for anyone who wants to learn more about these initiatives, the new vertical sectors they define, and how SAP could EASILY play in them.)
    So, with this background established, assume that SAP does decide to play in the bioinformatic/biomed sector. 
    SAP will rapidly find that a lot of biomed is based on the kind of bioinformatics that essentially does pattern-analysis on two kinds of strings: polynucleotide strings (DNA, mRNA, tRNA, etc.) and polypeptide strings (mainly the amino acid strings that form the "primary structures" of protiens.)  For example, biomed will soon include the ID of "at risk" markers for all patients in a university medical center, indicating what diseases patients may be genetically at risk for due to SNP's and other abnormalities in their inherited DNA.
    Now when such analysis is not done by running "canned" versions of well-developed programs such as the ubiqitious BLAST program for "aligning" polynucleotide or polypeptide sequences, it is done by programs written in languages that offer superb capabilities for pattern-searching and manipulation of strings, e.g. PERL.
    Additionally, I know from personal experience and the experience of my SigOther that even data obtained from well-known canned programs must be further massaged by non-canned techniques that again are readily implementable in PERL and other similar languages.
    Finally, a lot of bioinformatic/biomed applications require iterative batch execution of canned stat routines such as t-tests or normality tests, which can be conveniently done via calls from languages such as PERL to canned products such as STATA.
    So assume SAP wants to develop a biomed application that has:
    back-end data containing the usual kinds of info med centers need to know about patients, plus the new kinds of scientific info about patients that med centers are creating
    a presentation component that displays these two kinds of data for query, further elaboration/refinement, and subsquent update.
    For example, there will be times when a doctor will want to take scientific data on a patient from the back-end (e.g. portions of a patient's DNA), subject it to pattern-analysis of the type described above, and then store the results of the analysis as additional new scientific info in the back-end databases.
    And SAP can readily provide the doctor with this capability if it allows PERL functionality to be invoked from WD/WD-ABAP components.  In some cases, the PERL will simply invoke industry-standard canned programs such as BLAST and wrap the results in a way friendly to SAP.  In other cases, the PERL may do the analysis itself.  In other cases, the PERL may invoke stat programs.  Etc, etc. etc.
    The point is that there is a vast inventory of bioinformatic/biomed PERL code out there, and if SAP wants to get serious about playing in the bioinformatics/biomed sector, it will be much easier to talk to this inventory of programs rather than recreate it in JAVA or SAP inside SAP. 
    Anyway, please remember - this post was based on the  assumption that SAP may want to get serious about playing in the bioinformatic/biomed sector.
    If not, then as Rosanne Rosanadanna used to say, "Never mind".

    Hi David,
    Where it can be used :-
    Anywhere that you can insert ABAP code to run, you can integrate Perl in the manor that I laid out.  The only requirements are the ability to run registered RFC programs, and to execute ABAP code including RFC calls (which is anywhere inside of an R/3 system basically).
    Comparison with other techniques :-
    All communication from the ABAP stack with the J2EE stack is done via RFC - this is only faster than a registerd RFC Server if Fast RFC is used which means that the J2EE stack MUST reside on the same host as the R/3 instance.  Therefore there is no performance difference at that level and any performance differentiation is going to be in the programming language Perl vs Java, or payload encoding techniques (XML) at that level (not withstanding the consideration of development time).
    There is also the HTTP Client communication facilities - with or without document encodings (the ICF + eg. SOAP).  Again - I'd take a long hard look at whether it is necessary to be encumbered with the data packet encoding/ecapsulation overhead.
    What you gain :-
    Once you are in the "land of Perl" you have access to essentially any module you can find on CPAN, so any data access you require whether it be some kind of application server technology, or DB, can be fullfilled by whats available there (unless you need to roll your own?).  And lets not forget algorythm implemented in Perl or Perl XS extensions - probably very important in the medical/scientifc field.
    SOA (IMO) is a big ugly 4 letter word.  At the end of the day, you have to look where your time and money is best spent, and whether you can achieve the desired results using Scripting Language Connector technology, or whether you feel compelled to go down a WS-* style route.
    However - I would like to say this - IMO it is totally unecessary to wrap up system integration in multiple (expensive both in money, and performance considerations) layers if you are confident that you have good control over both ends of the communication streams.  I believe that when your main objective is to utilise large chunks of code written in another language (rather than reimplement it in something closer to SAPs core interests), or communicate with inhouse data sources/systems (I've done this for MySQL before), then this is definitely one such case that opens the door for using my outlined approach (in the article).
    Cheers,
    Piers Harding.
    Message was edited by: Piers Harding

  • Java application hangs during running java native method

    Hello,
    There is compiled java application.
    It hangs at very begginings.
    It was detected that in the beggining a new Frame should be created. Then one java library invokes native method. During invoking of the native method application hangs.
    Stack is available only until native method invocation.
    Thread 25196 "main": (state = IN_NATIVE)
    at sun.awt.X11GraphicsDevice.getDoubleBufferVisuals(Native Method)
    at sun.awt.X11GraphicsDevice.getDefaultConfiguration(X11GraphicsDevice.java:181)
    at java.awt.Window.init(Window.java:271)
    at java.awt.Window.<init>(Window.java:319)
    at java.awt.Frame.<init>(Frame.java:419)
    at javax.swing.JFrame.<init>(JFrame.java:194)
    at com.test.ORBManager.Splash.<init>(Splash.java:10)
    at com.test.ORBManager.Splash.main(Splash.java:48)
    Method getDoubleBufferVisuals(int screen) is used to enumerates all visuals that support double buffering (according to comments in the source code).
    Tried to run with "-verbose" options...
    I tried to use jconsole &#1080; jvisualvm. But did not find anything special.
    Also "strace" command showed some results but do not know how to proceed:
    select(6, [5], [5], NULL, NULL) = 1 (out [5])
    writev(5, [{"b\0\6\0\r\0\0\0DOUBLE-BUFFER\0\0\0", 24}], 1) = 24
    select(6, [5], [], NULL, NULL) = 1 (in [5])
    read(5, "\1\0\t\0\0\0\0\0\1\211\0\204\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 4096) = 32
    read(5, 0x83b57bc, 4096) = -1 EAGAIN (Resource temporarily unavailable)
    gettimeofday({1275494877, 569746}, NULL) = 0
    select(6, [5], [5], NULL, NULL) = 1 (out [5])
    writev(5, [{"b\0\6\0\r\0\0\0DOUBLE-BUFFER\0\0\0", 24}], 1) = 24
    select(6, [5], [], NULL, NULL) = 1 (in [5])
    read(5, "\1\0\n\0\0\0\0\0\1\211\0\204\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 4096) = 32
    read(5, 0x83b57bc, 4096) = -1 EAGAIN (Resource temporarily unavailable)
    select(6, [5], [5], NULL, NULL) = 1 (out [5])
    writev(5, [{"\211\6\3\0\1\0\0\0&\0\0\0", 12}], 1) = 12
    select(6, [5], [], NULL, NULL) = 1 (in [5])
    read(5, "\1\0\v\0\f\0\0\0\1\0\0\0\377\32\0\0\377\r\307 \0\0\0\0\0\23\372\300\376\3346\34"..., 4096) = 44
    read(5, 0x83c31e4, 36) = -1 EAGAIN (Resource temporarily unavailable)
    select(6, [5], NULL, NULL, NULL) = ? ERESTARTNOHAND (To be restarted)
    I have downloaded from the internet the source code of native method but do not know what I can do with it.
    Is it possible to debug native method somehow?
    How to detect where the library contans the native method is located?
    What other ways can provide more information about reason.
    It seems that the problem is related to graphics. Judging by class name "X11GraphicsDevice" it is related to X server. May be some server settings?
    The problem is present on SLED 11 machines.
    It is not reproduced on SLED 10.
    I will be really appreciate for any help.
    Thanks in advance.
    Vasily.

    Hi,
    Thanks for tip. I used jstack. It gives a little bit more info but I have to few knoledges how to treat the info.
    ----------------- 24231 -----------------
    ----------------- 24317 -----------------
    0xffffe430     ????????
    0x6dd12229     ????????
    0xb0ca5898     * java.net.PlainSocketImpl.socketAccept(java.net.SocketImpl) bci:0 (Interpreted frame)
    0xb0c9fb6b     * java.net.PlainSocketImpl.accept(java.net.SocketImpl) bci:7 line:384 (Interpreted frame)
    0xb0c9fb6b     * java.net.ServerSocket.implAccept(java.net.Socket) bci:50 line:450 (Interpreted frame)
    0xb0c9fb6b     * java.net.ServerSocket.accept() bci:48 line:421 (Interpreted frame)
    0xb0c9fa94     * sun.rmi.transport.tcp.TCPTransport.run() bci:59 line:340 (Interpreted frame)
    0xb0c9fe71     * java.lang.Thread.run() bci:11 line:595 (Interpreted frame)
    0xb0c9d236     <StubRoutines>
    0xb6f38eac     _ZN9JavaCalls11call_helperEP9JavaValueP12methodHandleP17JavaCallArgumentsP6Thread + 0x1bc
    0xb7108aa8     _ZN2os20os_exception_wrapperEPFvP9JavaValueP12methodHandleP17JavaCallArgumentsP6ThreadES1_S3_S5_S7_ + 0x18
    0xb6f38705     _ZN9JavaCalls12call_virtualEP9JavaValue11KlassHandle12symbolHandleS3_P17JavaCallArgumentsP6Thread + 0xd5
    0xb6f3879e     _ZN9JavaCalls12call_virtualEP9JavaValue6Handle11KlassHandle12symbolHandleS4_P6Thread + 0x5e
    0xb6fb0765     _Z12thread_entryP10JavaThreadP6Thread + 0xb5
    0xb71a9373     _ZN10JavaThread3runEv + 0x133
    0xb71096b8     _Z6_startP6Thread + 0x178
    0xb781a1b5     start_thread + 0xc5
    ----------------- 24318 -----------------
    0xffffe430     ????????
    0x1b7bfaf0     ????????
    ----------------- 24373 -----------------
    0xffffe430     ????????
    0xb71087be     _ZN2os5Linux14safe_cond_waitEP14pthread_cond_tP15pthread_mutex_t + 0xae
    0xb70fe2af     _ZN13ObjectMonitor4waitExiP6Thread + 0xa6f
    0xb718bdc6     _ZN18ObjectSynchronizer4waitE6HandlexP6Thread + 0x56
    0xb6f925e3     JVM_MonitorWait + 0x163
    0xb0ca5898     * java.lang.Object.wait(long) bci:0 (Interpreted frame)
    0xb0c9fb6b     * java.lang.ref.ReferenceQueue.remove(long) bci:44 line:120 (Interpreted frame)
    0xb0c9fa94     * java.lang.ref.ReferenceQueue.remove() bci:2 line:136 (Interpreted frame)
    0xb0c9fa94     * sun.java2d.Disposer.run() bci:3 line:125 (Interpreted frame)
    0xb0c9fe71     * java.lang.Thread.run() bci:11 line:595 (Interpreted frame)
    0xb0c9d236     <StubRoutines>
    0xb6f38eac     _ZN9JavaCalls11call_helperEP9JavaValueP12methodHandleP17JavaCallArgumentsP6Thread + 0x1bc
    0xb7108aa8     _ZN2os20os_exception_wrapperEPFvP9JavaValueP12methodHandleP17JavaCallArgumentsP6ThreadES1_S3_S5_S7_ + 0x18
    0xb6f38705     _ZN9JavaCalls12call_virtualEP9JavaValue11KlassHandle12symbolHandleS3_P17JavaCallArgumentsP6Thread + 0xd5
    0xb6f3879e     _ZN9JavaCalls12call_virtualEP9JavaValue6Handle11KlassHandle12symbolHandleS4_P6Thread + 0x5e
    0xb6fb0765     _Z12thread_entryP10JavaThreadP6Thread + 0xb5
    0xb71a9373     _ZN10JavaThread3runEv + 0x133
    0xb71096b8     _Z6_startP6Thread + 0x178
    0xb781a1b5     start_thread + 0xc5
    ----------------- 24227 -----------------
    0xffffe430     ????????
    0x6cbc4021     ????????
    0x6cbc232a     ????????
    0x6cbc3c9a     ????????
    0x6cc1d5d1     ????????
    0x6d41013f     ????????
    0x6d460f19     ????????
    0xb0ca5898     * sun.awt.X11GraphicsDevice.getDoubleBufferVisuals(int) bci:0 (Interpreted frame)
    0xb0c9fb6b     * sun.awt.X11GraphicsDevice.getDefaultConfiguration() bci:140 line:181 (Interpreted frame)
    0xb0c9fa94     * java.awt.Window.init(java.awt.GraphicsConfiguration) bci:51 line:271 (Interpreted frame)
    0xb0c9fb6b     * java.awt.Window.<init>() bci:66 line:319 (Interpreted frame)
    0xb0c9fb6b     * java.awt.Frame.<init>(java.lang.String) bci:1 line:419 (Interpreted frame)
    0xb0c9fb6b     * javax.swing.JFrame.<init>(java.lang.String) bci:2 line:194 (Interpreted frame)
    0xb0c9fb6b     * com.test.ORBManager.Splash.<init>() bci:3 line:10 (Interpreted frame)
    0xb0c9fb6b     * com.test.ORBManager.Splash.<init>(java.lang.String[]) bci:4 line:48 (Interpreted frame)
    0xb0c9d236     <StubRoutines>
    0xb6f38eac     _ZN9JavaCalls11call_helperEP9JavaValueP12methodHandleP17JavaCallArgumentsP6Thread + 0x1bc
    0xb7108aa8     _ZN2os20os_exception_wrapperEPFvP9JavaValueP12methodHandleP17JavaCallArgumentsP6ThreadES1_S3_S5_S7_ + 0x18
    0xb6f38cdf     _ZN9JavaCalls4callEP9JavaValue12methodHandleP17JavaCallArgumentsP6Thread + 0x2f
    0xb6f638b2     _Z17jni_invoke_staticP7JNIEnv_P9JavaValueP8_jobject11JNICallTypeP10_jmethodIDP18JNI_ArgumentPusherP6Thread + 0x152
    0xb6f54ac2     jni_CallStaticVoidMethod + 0x122
    0x08049873     ????????
    0xb76c9705     ????????The last stack also has "sun.awt.X11GraphicsDevice.getDoubleBufferVisuals(int) bci:0 (Interpreted frame)" but what tode next?
    Also I found that the native code is in java 1.5 source code: \j2se\src\solaris\native\sun\awt\awt_GraphicsEnv.c.
    How it is possible to compile it?

  • Citrix the screens hang intermittently

    We have an Oracle 9205 database running on Windows 2003 server.
    We are web deploying our application using Oracle9IAS 10222; we are using the forms listener servlet including Developer6i Patch 16. The version of Jinitiator is 1.3.1.17.
    When deploying this via Citrix the screens hang intermittently and users are forced to log out of citrix and log back in. Interestingly Oracle Financial's is running fine on the same box.
    Pls, do let me know how to resolve this issue
    Rgds,
    Satya

    The use of Citrix or any terminal emulation software with Forms is not supported. In most cases, it is determined that the cause of these types of problems are the result of the emulation software (Citrix in your case) and not Oracle Forms. It is recommended that you retest in a non-Citrix environment. If the problem is no longer reproducible you should then contact the Citrix vendor.
    To be a valid, supported Forms user (client) the client machine must have a browser and Jintiator (JRE) install on their local machine. It is also required that the browser cache and JRE cache are stored locally.
    Ref. Metalink Doc ID# 68047.1

  • Concurrent Data Store (CDB) application hangs when it shouldn't

    My application hangs when trying to open a concurrent data store (CDB) database for reading:
    #0 0x0000003ad860b309 in pthread_cond_wait@@GLIBC_2.3.2 ()
    from /lib64/libpthread.so.0
    #1 0x00007ffff7ce67de in __db_pthread_mutex_lock (env=0x610960, mutex=100)
    at /home/steve/ldm/package/src/Berkeley-DB/dist/../mutex/mut_pthread.c:318
    #2 0x00007ffff7ce5ea5 in __db_tas_mutex_lock_int (env=0x610960, mutex=100,
    nowait=0)
    at /home/steve/ldm/package/src/Berkeley-DB/dist/../mutex/mut_tas.c:218
    #3 0x00007ffff7ce5c43 in __db_tas_mutex_lock (env=0x610960, mutex=100)
    at /home/steve/ldm/package/src/Berkeley-DB/dist/../mutex/mut_tas.c:248
    #4 0x00007ffff7d3715b in __lock_id (env=0x610960, idp=0x0, lkp=0x610e88)
    at /home/steve/ldm/package/src/Berkeley-DB/dist/../lock/lock_id.c:68
    #5 0x00007ffff7da1b4d in __fop_file_setup (dbp=0x610df0, ip=0x0, txn=0x0,
    name=0x40b050 "registry.db", mode=0, flags=1024, retidp=0x7fffffffdd94)
    at /home/steve/ldm/package/src/Berkeley-DB/dist/../fileops/fop_util.c:243
    #6 0x00007ffff7d70c8e in __db_open (dbp=0x610df0, ip=0x0, txn=0x0,
    fname=0x40b050 "registry.db", dname=0x0, type=DB_BTREE, flags=1024,
    mode=0, meta_pgno=0)
    at /home/steve/ldm/package/src/Berkeley-DB/dist/../db/db_open.c:176
    #7 0x00007ffff7d673b2 in __db_open_pp (dbp=0x610df0, txn=0x0,
    fname=0x40b050 "registry.db", dname=0x0, type=DB_BTREE, flags=1024, mode=0)
    at /home/steve/ldm/package/src/Berkeley-DB/dist/../db/db_iface.c:1146
    I suspect that the database environment believes that another process has the database open for writing. This cannot be the case, however, as all applications that access the database do so via an interface library I wrote that registers a termination function via the atexit() system-call to ensure that both the DB and DB_ENV handles are properly closed -- and all previously-executed applications terminated normally.
    The interface library opens the database like this (apparently, this forum doesn't support indentation, sorry):
    int status;
    Backend* backend = (Backend*)malloc(sizeof(Backend));
    if (NULL == backend) {
    else {
    DB_ENV* env;
    if (status = db_env_create(&env, 0)) {
    else {
    if (status = env->open(env, path,
    DB_CREATE | DB_INIT_CDB | DB_INIT_MPOOL, 0)) {
    else {
    DB* db;
    if (status = db_create(&db, env, 0)) {
    else {
    if (status = db->open(db, NULL, DB_FILENAME, NULL,
    DB_BTREE, forWriting ? DB_CREATE : DB_RDONLY, 0)) {
    else {
    backend->db = db;
    } /* "db" opened */
    if (status)
    db->close(db, 0);
    } /* "db" allocated */
    if (status) {
    env->close(env, 0);
    env = NULL;
    } /* "env" opened */
    if (status && NULL != env)
    env->close(env, 0);
    } /* "env" allocated */
    if (status)
    free(backend);
    } /* "backend" allocated */
    This code encounters no errors.
    The interface library also registers the following code to be executed when any process that uses the interface library exits:
    if (NULL != backend) {
    DB* db = backend->db;
    DB_ENV* env = db->get_env(db);
    if (db->close(db, 0)) {
    else {
    if (env->close(env, 0)) {
    else {
    /* database properly closed */
    As I indicated, all previously-executed processes that use the interface library terminated normally.
    I'm using version 4.8.24.NC of Berkeley DB on the following platform:
    $ uname -a
    Linux gilda.unidata.ucar.edu 2.6.27.41-170.2.117.fc10.x86_64 #1 SMP Thu Dec 10 10:36:29 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
    Any ideas?

    Bogdan,
    That can't be it. I'm using a structured programming style in which the successful initialization of a cursor is ultimately followed by a closing of the cursor. There's only one place where the code does this and it's obvious that the cursor gets released.
    I've also read the CDB section.
    --Steve Emmerson                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Application hangs in SetCaretPosition call

    Hi,
    I have a JTextArea where i append some text. When i call
    m_textareaLogWindow.setCaretPosition(m_textareaLogWindow.getDocument().getLength());
    the application hangs... does any one had the same problem?
    sugestions are welcome.
    By the way, the function that executes this code is synchronized.
    thanks in advance
    Cris

    Hi again, i have discovered my problem.
    This is a well know situation and can be found under the Bug Id 4839713.
    here is an example:
    WRONG CODE:
    public synchronized void writeLine(String newText)
    String output = textArea.getText() + newText + NL;
    try{ Thread.sleep(SLEEPTIME); }catch(Exception e){}
    textArea.setText(output);
    textArea.setCaretPosition(output.length());
    GOOD CODE:
    public void workAround(String newText)
    synchronized(textArea)
    String output = textArea.getText() + newText + NL;
    try{ Thread.sleep(SLEEPTIME); }catch(Exception e){}
    textArea.setText(output);
    textArea.setCaretPosition(output.length());
    The first method synchronizes with 'this' (which is HangGraphics extends
    JFrame)
    The second one synchronizes with textArea. If you change it to 'this' the same deadlock occurs.
    Adding synchronized methods might lead to deadlocks.
    Cris

  • Drag and Drop Problem in JTree - Application hangs

    Dear Friends,
    My application hangs when I try to pop a JOptionPane, asking user to select a option. I can't do anything as whole CPU memory is consumed by this. If I don't pop option then there is no problem at all. Everything works fine.
    Dialog is poped when user makes a drop on a node.
    OS : WIN NT 4.0 SP 6
    WEB SERVER : TOMCAT 3.2.2
    Thanx in advance

    Not sure if this will work inside classes, but in working with AS3, this would issue the command to object you just clicked, and the object you just dropped:
    // This function is called when the mouse button is pressed.
       function startDragging(event:MouseEvent):void
            event.currentTarget.startDrag();
        // This function is called when the mouse button is released.
        function stopDragging(event:MouseEvent):void
           event.currentTarget.stopDrag();

  • After Effects CS6 and Premiere Pro CS6 Long Startup and Application Hang

    Problem:
    After Effects and Premiere Pro CS5.5 and CS6 are very slow to start all of a sudden.  Around 5 minutes to get to/by the intro dialogue box.  For AE, the majority of the time is spent on the "initializing user interface." Then, if I can make a comp, and even a layer inside that comp, it will "Hang" if I attempt to open AE's General preferences for example (no preferences window ever comes up).  This "hang" is what the Event Viewer in windows calls it, with the faulting module being afterfx.exe.  Premiere is not much different.   It makes it to the new project window fast, but after setting project parameters and creating the first sequence, I can't get into the preferences either and the application hangs.  It is important to note that if I have another application open, like Chrome or Firefox for example at the time the application hangs, they will freeze as well.  As soon as I kill the Afterfx.exe process, they come back to life.
    I have read nearly all threads on the subject, and am struggling to find a solution:
    Deleted preferences folder under my username's appdata.
    Turned off Firewall (network traffic from dynamiclink, qtserver, etc was allowed, but what the hay)
    ran windows system file checker/malwarebytes/rkill/rootkit detection.
    checked for windows compatibility checkboxes under the file.
    Uninstalled Wacom Tablet drivers
    Disabled Aero
    Started with ctrl-alt-shift to delete pref.
    uninstalled video driver and replaced with one 6 months ago.
    uninstalled, reinstalled, and tested various quicktime versions back to version 7.69
    moved plugins folder
    moved opengl's plugin out of the folder temporarily
    Disabled all 3rd party codecs (xvid was the only one installed and for months)
    reinitialized default directshow filters
    checked for adobe font list (none found) and removed any fonts from 1 month ago to present.
    used msconfig to selective startup without other applications/services running.
    Uninstalled all adobe products, and reinstalled.
    I performed all of these in a systematic manner, trying to solve the problem.  None have fixed the problem.
    So it doesn't seem to be a network issue, a codec issue, a plugin issue, a driver issue, font issue, or conflicting application.  Any thoughts?
    System Info:
    PC Windows 7 pro 64-bit SP1
    Core i7 - 960 24GB ram
    AMD Radeon 6750  v12.10
    Adobe CS6 Master Collection

    Who's says that Microsoft can't debug?
    I used msconfig, first disabling startup items, -same result.
    Enabled all startup items, disabled all non-microsoft services - AE worked!
    I re-enabled each service in turn until AE crashed.
    The fault was related to an item for a video streaming device I have in my house.  It was Monsoon-multimedia's Vulkano Service.  Sometimes under the old name of Hava, this is an app that acts like a sling-box to send my Cable TV to my screen.  It does load a couple of virtual devices in device manager, and uses a proprietary codec.
    I uninstalled the vulkano streamer application and rebooted the external Vulkano device.  I reinstalled the Vulkano and verified it connected to the device and could stream.  Once it did, I tried AE again and IT WORKED!
    I wonder if simply rebooting the Vulkano would have fixed it.  Its like opening the garage door to turn on the refridgerator.
    Thanks for the help!
    Jim

  • JavaMail application hanged with no error throwed at Transport.send

    JavaMail application hanged with no error throwed at Transport.send,even though I set the timeout property
    import java.util.Date;
    import java.util.Properties;
    import javax.mail.Authenticator;
    import javax.mail.Message;
    import javax.mail.PasswordAuthentication;
    import javax.mail.Session;
    import javax.mail.Transport;
    import javax.mail.internet.InternetAddress;
    import javax.mail.internet.MimeBodyPart;
    import javax.mail.internet.MimeMessage;
    import javax.mail.internet.MimeMultipart;
    import javax.mail.internet.MimeUtility;
    public class tt {
         static Properties props=null;
         static boolean needAuth=true;
         static MailAuthenticator authenticator = null;
         static String host="host";
         static String account="account";
         static String password="pwd";
         static String sender="sender";
          * @param args
          * @throws Exception
         public static void main(String[] args) throws Exception{
               if (props == null) {
                     props = new Properties();
                     props.put("mail.smtp.host", host);
                     props.put("mail.smtp.timeout      ", "1000");
                     props.put("mail.smtp.connectiontimeout      ", "1000");
    //                 props.put("mail.debug", "true");
                     props.put("mail.smtp.auth", String.valueOf(needAuth));
                     authenticator = new MailAuthenticator(account, password);
                 MailData mailData = new MailData();
                 mailData.setSubject("altireport mail configuration");
                 mailData.setContent("mail server has been configured successfully.");
                 mailData.setRecipients(new String[]{"[email protected]"});
                 final Session session = Session.getInstance(props, authenticator);
                 final MimeMessage msg = new MimeMessage(session);
                 InternetAddress from = new InternetAddress(sender);
                 msg.setFrom(from);
                 //        msg.setSender(from);
                final InternetAddress[] addressTo = new InternetAddress[mailData.getRecipients().length];
                 for (int i = 0; i < mailData.getRecipients().length; i++) {
                     addressTo[i] = new InternetAddress(mailData.getRecipients());
         msg.addRecipients(Message.RecipientType.TO, addressTo);
         //msg.setSubject(mailData.getSubject());
         msg.setSubject(MimeUtility.encodeText(mailData.getSubject(), "UTF-8", "B"));
         MimeBodyPart bodyPart1 = new MimeBodyPart();
         bodyPart1.setContent(mailData.getContent(), "text/plain; charset=UTF-8");
         MimeMultipart multipart = new MimeMultipart();
         multipart.addBodyPart(bodyPart1);
         msg.setContent(multipart);
         msg.setSentDate(new Date());
    //     msg.saveChanges();
         for(int i=0;i<10;i++){
              new Thread(new Runnable(){
                             public void run() {
                             try {
                                  System.out.println("send...");                                   
                                  Transport.send(msg);
                                  } catch (Exception e) {
                                       e.printStackTrace(System.out);
                        System.out.println("end!");
              }).start();
    class MailData {
    private String[] recipients = null;
    private String subject = null;
    private String content = null;
    private String attachment = null;
    private String attachmentName = null;
    * @return the attachment
    public String getAttachment() {
    return attachment;
    * @param attachment the attachment to set
    public void setAttachment(String attachment) {
    this.attachment = attachment;
    * @return the content
    public String getContent() {
    return content;
    * @param content the content to set
    public void setContent(String content) {
    this.content = content;
    * @return the recipients
    public String[] getRecipients() {
    return recipients;
    * @param recipients the recipients to set
    public void setRecipients(String[] recipients) {
    this.recipients = recipients;
    * @return the subject
    public String getSubject() {
    return subject;
    * @param subject the subject to set
    public void setSubject(String subject) {
    this.subject = subject;
    * @return the attachmentName
    public String getAttachmentName()
    return attachmentName;
    * @param attachmentName the attachmentName to set
    public void setAttachmentName(String attachmentName)
    this.attachmentName = attachmentName;
    class MailAuthenticator extends Authenticator {
    private PasswordAuthentication authentication;
    public MailAuthenticator(String account, String password) {
    authentication = new PasswordAuthentication(account, password);
    protected PasswordAuthentication getPasswordAuthentication() {
    return authentication;
    I have tried use session to get a SMTPTransport instance to use sendMessage ,but still have the same problem.No exception ,No error.
    This problem doesn't appear always. It appears sometimes.
    I hope get help for someone who has the solution for this problem.
    Thanks in advanced.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Ok, I think I see the problem:
         props.put("mail.smtp.timeout      ", "1000");
         props.put("mail.smtp.connectiontimeout      ", "1000");
    Why do you have spaces at the end of the property names?
    Those spaces are not being ignored, which means you've
    set the wrong properties.

Maybe you are looking for

  • Mapping Clearing agent

    Dear Experts, In exports, we ship our consignemts from one location A to other location B with a road tranporter (say by lorry) for which we create a shipment document (transportation module is avail). From the location B our clearing agent clears th

  • Is there a fix for a dead ethernet port besides a new logic board?

    My ethernet port went dead on my IMac.  I unplugged the ethernet cable and plugged it into my laptop and it worked instantly.  I am still able to connect wirelessly.  I bought an apple USB to Ethernet converter and plugged it in.  It worked for about

  • Convert to mpg-2

    Is there a way to convert a Final Cut Express project to an mpg-2 file? I am having a problem with other formats (.mov's, .avi's, etc) showing the same quality when I try to watch them on a Windows platform. Even Quicktime for Windows blurs my titles

  • Leopard Mac always boots to Tiger grrrr...

    I have four hard disks in my Mac Pro. Two of them are system disks. When I updated from Tiger I installed leopard on a new drive so that I could "go back" if I needed to. I used Migration assistant to transfer most stuff from Tiger disk to Leopard. A

  • Intermittent issue with missing scroll bars

    Occasionally I will open a website and the content will flow below the bottom edge but no scroll bar is available to scroll the content. Page up and down buttons as well as arrow keys will scroll the page. When this happens a page reload will not rec