Thread problem on windows xp

Hi, all
I have thread code looks like below. Under linux, I will see 'thread offline!' message when invoke offline method in myTask class. Under windows xp, I didn't see any output message. Does this mean thead still alive? Is it ok to controll a thread using code below? Why I got different result on these 2 platform?
Thanks,
Vincent Chen
--- Main.java ---
myTask task=new myTask();
new Thread(task).start();
<my code here>
task.offline();
--- myTask.java ---
public class myTask extends Observable implements Runnable {
boolean online;
public myTask() {
online=true;
public void run() {
while (online) {
<my code here>
System.out.println("thread offline!");
public void offline() {
online=false;
}

Append System.out.flush() right after println. This
will make sure that text actually reaches console. I
find it necessary on windows.flush should not be required after a println. Would the OP please follow-up whether it fixed the problem?

Similar Messages

  • Problem with window repaint and scrollbars in edit mode (LabVIEW 8.0.1)

    I am running LabVIEW 8.0.1 in Windows XP SP3.  For my main VI, I ran into a strange problem about 5 months ago.  The front panel window - in both edit mode and run mode - stopped repainting itself on the right side which is most visible when you scroll up and down, but also visible with overlapping windows.  Coincident with the repaint problem, both scrollbars look disabled with greyed-out arrows and no boxes in the bars that you can click and drag to scroll the window.  The scrollbars still partially work if you hover the mouse over them and roll the mouse wheel but clicking and dragging doesn't work. 
    The front panel has lots of controls and indicators including tab-control containers and is larger in the horizontal and vertical directions so both scrollbars should be active.  But I deleted all elements on the front panel and everything in the block diagram and the problem persists.  So the problem is not directly related to some control/indicator display.
    I saved the simple VI with this problem (using a wide text line and a tall rounded box to test), then created a new VI and copied the two elements to the new VI.  This new VI does not have the repaint and scrollbar problem.  The two VIs differ slightly in memory usage and in revision number (the bad one is revision 1785 and the good one is revision 3), but otherwise the two VIs are identical.  I attached both VIs to this posting.  When you first open the bad VI, you'll see the disabled scrollbars whereas the good VI has active scrollbars.  To replicate the repaint problem, scroll the window up and down with your mouse wheel.  If it's fine when you first open the VI, click on another window, then click back on the VI window and try the mouse wheel again.  This clicking-away-and-back always causes the repaint problem for me.  I tried the VIs on two different computers both running Windows XP SP3 and LabVIEW 8.0.1 with identical results.
    Here's what I discovered from troubleshooting with the simple VIs:
    * scrollbars always disabled
    * repaint problem in main window for window widths larger then 680 pixels
    * repaint problem in main window menu toolbar for widths larger than 646 pixels
    * entire window becomes disabled for window widths larger than 1348 pixels
    * can repaint window by minimizing and restoring, but only repaints that one time
    * scrollbar boxes sometimes flicker into view but then disappear
    * scroll left and right by hovering mouse over horizontal scrollbar and using mouse wheel
    I found something similar on this forum (thread: Problem with front panel refresh) - it might be related to the CAR about the panel being offset internally.  I don't have access to LabVIEW 8.5 or later and don't plan to upgrade - I haven't tried the trial version as that user did.  I could try to copy and paste my entire block diagram to a new VI but the VI is so large I'm afraid something would break, plus I don't want this to happen again in a few months.  The problem seemed to occur after a certain number of saves (or revision number).  I save backup copies often and when the problem first happened, I was able to go back to a previous version, make the missing changes and save it with no problems, but this only delayed the problem and it came up later.  So maybe it's the revision number.  It didn't seem related to a particular addition or modification in the front panel or diagram.
    The image attached shows the repaint and scrollbar problems in the bad VI.
    This brings up a question I have - if this problem is a bug and was fixed in 8.5 and later, is there a way to apply bug fixes to earlier versions?  Or do I have to pay for an upgrade to fix such bugs?
    Solved!
    Go to Solution.
    Attachments:
    RepaintTest_Bad.gif ‏27 KB
    Test Repaint - From Bad VI, scrollbar and repaint problems.vi ‏7 KB
    Test Repaint - From Blank VI, no problems.vi ‏5 KB

    Seems something got corrupted with this VI. Copy things over to a fresh VI and things should be OK.
    See also this recent report of a similar issue.
    LabVIEW Champion . Do more with less code and in less time .

  • JNI & thread problem

    Folks,
    I am using JNI to access WIA (Windows Image Acquisition) functionality under MS Windows XP. WIA consists of a bunch of COM interfaces. I have several native functions in a single dll, with a limited number of static variables stored in the dll between calls. This all works fine as long as long as the calls occur from the same java thread, but not if a new thread is created for some of the calls. I.e., this works:
    final WIACtrl ctrler=new WIACtrl();
    ctrler.initializeWIA();
    ctrler.transferJPGNative("0001\\Root\\IMG_0087","c:\\test.jpg");
    but this does not:
    final WIACtrl ctrler=new WIACtrl();
    ctrler.initializeWIA();
    (new Thread() {
    public void run() {               
    ctrler.transferJPGNative("0001\\Root\\IMG_0087","c:\\test.jpg");
    }).start();
    Here, initializeWIA() and transferJPGNative() are the native methods. What happens in the second case is that transferJPGNative fails in one of the COM methods (not the first COM method it calls). The COM method returns an HRESULT indicating an error (509) which I can't find using any of the usual MS error look-up mechanisms. (Admittedly I am not the world's greatest Windows programmer...)
    Anyway, any suggestions would be much appreciated. I have found some issues regarding JNI and threads in this forum's archives, but none of them seem to apply to quite this situation.

    As a guess this is just a windows threading problem.
    And with COM you have to do things differently (I believe) if there is more than one thread. You might not even be allowed to do it with for that particular API.
    It could also be that you are initializing things more than once. Or you need to initialize twice (two handles.)
    At any rate you could always fix it by making the java code only allow calls for a single thread.

  • Problem Installing Windows 2008 R2 in BladeCenter HS21 in IBM Storage DS3400

    Please someone help
    me ..
    Hi I have problems installing Windows
    Server 2008 R2 on BladeCenter
    H (HS21) using IBM Storage
    DS3400 (fiber)
    I can map the drive to
    Hojilla HS21, and the installation
    wizard start Windows Server 2008
    can see the mapped achieve 60GB
    hard drive.
    When I try to install it shows me the following
    error:
    "Setup was unable to
    create a new system partitio
    or locate an existing system
    partition"
    It's like that but puediera
    create the system partition.
    I add the (LUN 0),
    and the Logic Controller and
    Fiber the place to make a Boot's
    (LUN 0)
    Please someone give me a solution
    to solve this problem.
    I used a translator in English because
    I only speak Spanish
    Thank you.

    Hi,
    Please check if file allocation size is 4k for boot/system partition. Windows basically does not support non-default file allocation size for boot/system partition.
    For more detailed information, please refer to the thread below:
    Setup was unable to create a new system partition or locate an existing system partition. See the Setup log files for more information
    http://social.technet.microsoft.com/Forums/en-US/42b1023f-ed59-48cb-ab29-4360b8ca457a/setup-was-unable-to-create-a-new-system-partition-or-locate-an-existing-system-partition-see-the?forum=winserver8setup
    You could also follow the article below to troubleshoot the issue:
    Error message when you try to install Windows Vista: "Windows is unable to find a system volume which meets its criteria for installation"
    http://support.microsoft.com/kb/938984
    Regards,
    Mandy
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Forms problem in Window 7 64 bit

    Dear Members
    I have installed "Forms [32 Bit] Version 10.1.2.0.2" on Windows 7 64bit. I have the Internet Explorer 9. Now when i run the forms it prompts for download jinit when i try to download it show the error dialog box as under
    Jinit.exe
    Cannot download this file.
    Details:
    HTTP/1.1 502 Proxy Error (Forefront TMG denied the specified Uniform
    Resource Locator (URL). )
    Now i have installed manually JInitiator 1.3.1.26 (32-bit) and also copy the jvm.dll file in the desire folder. When i run the form it shows blank page with broken link.
    Please help me to solve this problem.
    Thanks & Regards
    Edited by: SweetKUR on Aug 9, 2012 12:06 AM
    Edited by: SweetKUR on Aug 9, 2012 12:19 AM

    This is a common question in the Forum. A simple search of the forum and you would have found that Oracle Developers Suite 10g R2 (version 10.1.2.0.2) is not supported on Windows 7 64-bit. However, you would have also found a couple of threads where people have made this work.
    Now i have installed manually JInitiator 1.3.1.26 (32-bit) and also copy the jvm.dll file in the desire folder. Don't do this! This is a complete HACK of the OS and there is no guaruntee that this will work and more importantly this could screw-up your OS.
    By default, Forms 10g is configured to use the Oracle Jinitiator because this was the Java Runtime Oracle was using at the time. Now, however, Oracle has changed directions and has adopted the standard Java Runtime. Therefore, you must reconfigure Forms 10g to use the Java Runtime Plug-In (JPI) on Windows 7. With Windows XP you did not need to do this. Take a look at Forms: How to Configure Forms Builder to run forms locally for detailed steps on reconfiguring Forms 10g.
    @937097
    I had the same problem in my computer, and the guys from systems department solved the problem installing Windows XP SP3.thy triend to install Forms10 with Windows 7 64bits, but they said it can't be done. >
    I disagree with your "Systems Department". I have Forms 10g installed and running quite well on Windows 7 Professional 64-bit. There are a few pre-installation steps you must take to install Forms 10g, but it can be done. At the very least, your Systems Department staff could have installed Windows XP Mode for Windows 7. Take a look at:
    Windows XP Mode - Windows 7 Features
    Install and use Windows XP Mode in Windows 7
    Download Windows XP Mode
    I've tested Forms 10g with XP Mode and it works fine there as well, but I prefer not to deal with the overhead of the Virtual Machine.
    To properly install Forms 10g R2 on Windows 7 you must first have Windows 7 Professional or higher. Then follow these steps:
    1. Install Java Runtime 1.6.0_33 (32-bit).
    2. Change Windows Virtual Memory from System Managed to a specific amount (2048mb Initial size, 4096mb Max). The Oracle installer can't detect VM settings if they are system managed. You will need to restart your computer after making this change. Once you have completed the installation, you can change the settings back to system managed.
    3. Right-Click the setup.exe and select properties. Select the Compatibility tab and click "Run this program in compatibility mode for: Windows XP (Service Pack 3)".
    4. Run the installer.
    Once complete, review the document I linked above for configuring Forms to run locally from the Forms Builder.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Automation Error for Single Threaded ActiveX on Windows 7

    Hi All,
    I have an old activex control embedded to SAP GUI (using CL_GUI_CONTROL) running without problem for years on Windows XP.
    When I try to run this control using the same SAP GUI version and patch level on Windows 7, the SAP GUI is not responding/crash.
    After deep investigation, I find that every activex with threading model - single threaded, failed to run on SAP GUI on Windows 7. While this single threaded control run without problem on Windows XP.
    I have tried to upgrade the SAP GUI to the latest version & patch (720 patch level 8), the same result occures. The control successfully embedded to SAP GUI 720 on Windows XP, but not on Windows 7.
    I also have verified the single threaded control can run on Windows 7 without problem by embedding the control to other software like Ms. Exce or Ms. IE, and run it successfully on Windows 7.
    Does any one experienced in this issue? or can anyone try to create a simple activex control with single threaded and run it successfully from SAP GUI on Windows 7?
    Below is a sample of ABAP program that I use to embedded the activeX control, and the SAP GUI trace log.
    If needed I can send you the sample activex control (how to attach files?) and step by step to reproduce the error.
    Please advice, is this an SAP GUI issue?
    Thank you.
    Edited by: Sastra Rudy on Sep 28, 2011 1:02 PM

    data to server ***************
    data from server ***************
    <23=Automation: lifetime management, set new IMode 202 (old = 101), CMyAutomationClient=0x057BCAF0
    <23=Automation: SAPAWRFC entering FLUSH with RFC_HANDLE 6
    <23=Automation: CALL METHOD "CreateObject"
                        #0: STRING "{83658045-6571-3232-7082-797884697868}"
                        #1: LONG "1033"
    <23=Automation: Result: OBJECT [#8/0x05AC9558/202/SAPGUI.APPLICATION] ([#handle/IDispatch/imode/created])
    <23=Automation: CALL METHOD "CreateControl" OF [#8/0x05AC9558/202/SAPGUI.APPLICATION]
                        #0: LONG "119" // ShellID !119
                        #1: STRING "SAPGUI.CONTAINERCTRL.1"
                        #2: LONG "1342177280"
                        #3: LONG "10" // ShellID !10
    <23=Automation: Result: OBJECT [#10/0x058840D8/202/SAPGUI.CONTAINERCTRL.1] ([#handle/IDispatch/imode/created])
    <23=Automation: CALL METHOD "SetProperty" OF [#8/0x05AC9558/202/SAPGUI.APPLICATION]
                        #0: LONG "119" !119 = OBJECT [#10/0x058840D8/202/SAPGUI.CONTAINERCTRL.1]
                        #1: LONG "240"
                        #2: LONG "0"
    <23=Automation: CALL METHOD "LinkContainer" OF [#8/0x05AC9558/202/SAPGUI.APPLICATION]
                        #0: LONG "119" !119 = OBJECT [#10/0x058840D8/202/SAPGUI.CONTAINERCTRL.1]
                        #1: STRING "CCONTROL1"
    <23=Automation: CALL METHOD "SetProperty" OF [#8/0x05AC9558/202/SAPGUI.APPLICATION]
                        #0: LONG "119" !119 = OBJECT [#10/0x058840D8/202/SAPGUI.CONTAINERCTRL.1]
                        #1: LONG "290"
                        #2: STRING "1"
    <23=Automation: CALL METHOD "SetProperty" OF [#8/0x05AC9558/202/SAPGUI.APPLICATION]
                        #0: LONG "119" !119 = OBJECT [#10/0x058840D8/202/SAPGUI.CONTAINERCTRL.1]
                        #1: LONG "520"
                        #2: STRING "CCONTROL1"
    <23=Automation: CALL METHOD "RegisterCachedProp" OF [#8/0x05AC9558/202/SAPGUI.APPLICATION]
                        #0: LONG "119" !119 = OBJECT [#10/0x058840D8/202/SAPGUI.CONTAINERCTRL.1]
                        #1: STRING "120"
    <23=Automation: CALL METHOD "RegisterCachedProp" OF [#8/0x05AC9558/202/SAPGUI.APPLICATION]
                        #0: LONG "119" !119 = OBJECT [#10/0x058840D8/202/SAPGUI.CONTAINERCTRL.1]
                        #1: STRING "300"
    <23=Automation: CALL METHOD "CreateControl" OF [#8/0x05AC9558/202/SAPGUI.APPLICATION]
                        #0: LONG "120" // ShellID !120
                        #1: STRING "PSingle.Single"
                        #2: LONG "1409286144"
                        #3: LONG "119" !119 = OBJECT [#10/0x058840D8/202/SAPGUI.CONTAINERCTRL.1]
    <23=Automation(Error): CALL METHOD "CreateControl"[DispID=5] OF [#8/0x05AC9558/202/SAPGUI.APPLICATION]
                        #0: LONG "120" // ShellID !120
                        #1: STRING "PSingle.Single"
                        #2: LONG "1409286144"
                        #3: LONG "119" !119 = OBJECT [#10/0x058840D8/202/SAPGUI.CONTAINERCTRL.1]
    IDispatch::Invoke raised exception
    <23=Automation(Error): CALL METHOD "CreateControl"[DispID=5] OF [#8/0x05AC9558/202/SAPGUI.APPLICATION]
                        #0: LONG "120" // ShellID !120
                        #1: STRING "PSingle.Single"
                        #2: LONG "1409286144"
                        #3: LONG "119" !119 = OBJECT [#10/0x058840D8/202/SAPGUI.CONTAINERCTRL.1]
    IDispatch::Invoke raised exception
    <23=Automation: Result: STRING ""
    <23=Automation: SAPAWRFC: fatal error in CSapAuto::CallMethod, an exception occured

  • HANDLER THREAD PROBLEM?

    I'm trying to use the method Response.sendRedirect to forward users to another website. The actual case is irrelevant so I've extracted the important part into a simple servlet example:
    import javax.servlet.http.*;
    import java.io.*;
    public class ReDirect extends HttpServlet
       public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException
          if(req.getQueryString()!=null)
             res.setContentType("text/html");
             res.getWriter().println("Your querystring: <b>"+req.getQueryString());
          else
             res.sendRedirect("http://java.sun.com");
    }The funny thing is that the servlet works FINE, but that darn thing is generating an IOException (showing in the DOS prompt of the webserver) everytime the sendRedirect method is called! Why?
    ReDirect: init
    HANDLER THREAD PROBLEM: java.io.IOException: Socket Closed
    java.io.IOException: Socket Closed
         at java.net.PlainSocketImpl.getInputStream(PlainSocketImpl.java:432)
         at java.net.Socket$1.run(Socket.java:335)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.Socket.getInputStream(Socket.java:332)
         at com.sun.web.server.ConnectionHandler.run(ConnectionHandler.java:161)I have tried everything... I've also searched the forum for similar problems, but it seems that noone have a logic explanation for this. Is this a bug in the servlet engine or is it something I'm doing wrong or have forgotten?
    I'm using jswdk 1.0.1 and jdk1.3.1 on windows 2000, running the webserver that comes with jswdk.
    Please, someone, explain this to me! This problem is torturing me day and night!!
    /Stefan Westling

    Go get tomcat ...I used to get this error lot's when I used the jswdk. There are just some things it doesn't like ...yet when structured in certain way's ...it would work. I never did track down any consistent explanation. I just moved on to tomcat. The jswdk is really cheesy ...it can't do post ...or sessions ...or any 2.0 functionality ... or ... or ... Go get tomcat.

  • Installation problem on windows server 2008 r2 datacenter edition 64bit

    hi
    today, i tried to install the current maxdb 7.8 release on my virtual server with a windows server 2008 r2 datacenter 64bit edition os. at the first installation, i got an error message something with "rte runtime error". at this point, the installation stopped.
    because of this error, i tried to uninstall the failed installation. this was not possible, in the uninstaller, i didn't see any components, so i can't uninstall.
    so i tried to delete the files manually: the entries in the start menu, and the application's path under "program files"... first, i need to kill a process named "serv.exe", that creates a tcp daemon under port 7200... after killing it, the deletion of the dir in program files was successful.
    this is very very weird, now my server is "contaminated" with an uncomplete uninstallation of maxdb...
    why maxdb 7.8 has problems on windows server 2008 r2 datacenter 64bit edition???
    thanks for feedbacks!
    regards, jan

    > no, because i canceled this virtual server - another method to solve this problem. (i have really no time for things like that..!)
    If you take the time to give exact error messages then someone will be certainly able to help
    > on windows server 2003, there are NO problems.
    Windows 2003 != Windows 2008 - they use a different kernel, a different security system (UAC) and other features that may prevent a succesfull installation in the first place.
    I installed a MaxDB 7.8 just today on Windows 2008 R2 and it worked fine.
    Markus

  • Sun Java System Web Server 6.1 SP3 service-j2ee threads problem

    Hi,
    Sorry my english.
    I'm an intermediate Java programmer and a newbie in
    the Sun's web servers world.
    I'm doing an evaluation of an web applicaction
    written in Java Servlets that is
    supposed to have a leaking threads problem. We use
    SunOS 5.9 (... sun4u sparc SUNW,UltraAX-i2) and
    JVM 1.5 Update 4 (the problem is presented too
    in SunOS 5.8 and JVM 1.4.2_04).
    We have seen, thanks to 'prstat' (PROCESS/NLWP) a
    increasing thread's growing in one of the process
    that correspond to our web server instance (I'm sure I'm
    looking the right process). I have checkout the source
    code and it seems like the app doesn't have threads
    problems. I have used the Netbeans Profiler and I see a
    high number of threads called service-j2ee-x that grows
    in congestion moments and never disappear.
    Anybody could help me with suggestions?
    Thank you very much.

    Elvin,
    Thankyou, yes I am unfamiliar with debugging Java apps. I got the web server Java stack trace and I have passed this on to the developer.
    The web server finally closes the socket connection after the total connections queued exceeds 4096.
    There are several hundred entries like this... waiting for monitor entry.. could be a deadlock somewhere?
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: "service-j2ee-506" prio=5 tid=0x04b62a08 nid=0x17a waiting for monitor entry [dd74e000..dd74f770]
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at com.verity.search.util.JSDispenser.getConnResource(Unknown Source)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: - waiting to lock <0xe979b2b0> (a com.verity.search.util.JSDispenser)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at com.verity.search.DocRead.getDoc(Unknown Source)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at com.verity.search.DocRead.getDoc(Unknown Source)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at com.verity.search.DocRead.docViewIntern(Unknown Source)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at com.verity.search.DocRead.docView(Unknown Source)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at au.com.relevance.viewDoc.PdfXmlServlet.performRequest(PdfXmlServlet.java:120)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at au.com.relevance.viewDoc.PdfXmlServlet.doGet(PdfXmlServlet.java:141)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at javax.servlet.http.HttpServlet.service(HttpServlet.java:787)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:771)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:322)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:161)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at com.iplanet.ias.web.WebContainer.service(WebContainer.java:580)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at com.iplanet.ias.web.WebContainer.service(WebContainer.java:580)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: "StandardManager[highlight]" daemon prio=5 tid=0x000f3530 nid=0x1e waiting on condition [e15ff000..e15ffc28]
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at java.lang.Thread.sleep(Native Method)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at org.apache.catalina.session.StandardManager.threadSleep(StandardManager.java:800)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at org.apache.catalina.session.StandardManager.run(StandardManager.java:859)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at java.lang.Thread.run(Thread.java:534)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: "WebappLoader[highlight]" daemon prio=5 tid=0x000f3328 nid=0x1d waiting on condition [e16ff000..e16ffc28]
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at java.lang.Thread.sleep(Native Method)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at org.apache.catalina.loader.WebappLoader.threadSleep(WebappLoader.java:1214)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at org.apache.catalina.loader.WebappLoader.run(WebappLoader.java:1341)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at java.lang.Thread.run(Thread.java:534)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: "StandardManager[]" daemon prio=5 tid=0x000f2b08 nid=0x1c waiting on condition [e1b7f000..e1b7fc28]
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at java.lang.Thread.sleep(Native Method)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at org.apache.catalina.session.StandardManager.threadSleep(StandardManager.java:800)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at org.apache.catalina.session.StandardManager.run(StandardManager.java:859)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at java.lang.Thread.run(Thread.java:534)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: "WebappLoader[]" daemon prio=5 tid=0x000f2900 nid=0x1b waiting on condition [e1c7f000..e1c7fc28]
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at java.lang.Thread.sleep(Native Method)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at org.apache.catalina.loader.WebappLoader.threadSleep(WebappLoader.java:1214)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at org.apache.catalina.loader.WebappLoader.run(WebappLoader.java:1341)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at java.lang.Thread.run(Thread.java:534)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: "StandardManager[sitesearch]" daemon prio=5 tid=0x000f1cd0 nid=0x1a waiting on condition [e23ff000..e23ffc28]
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at java.lang.Thread.sleep(Native Method)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at org.apache.catalina.session.StandardManager.threadSleep(StandardManager.java:800)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at org.apache.catalina.session.StandardManager.run(StandardManager.java:859)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at java.lang.Thread.run(Thread.java:534)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: "WebappLoader[sitesearch]" daemon prio=5 tid=0x000f1ac8 nid=0x19 waiting on condition [e24ff000..e24ffc28]
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at java.lang.Thread.sleep(Native Method)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at org.apache.catalina.loader.WebappLoader.threadSleep(WebappLoader.java:1214)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at org.apache.catalina.loader.WebappLoader.run(WebappLoader.java:1341)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at java.lang.Thread.run(Thread.java:534)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: "StandardManager[search]" daemon prio=5 tid=0x000f0a88 nid=0x18 waiting on condition [e317f000..e317fc28]
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at java.lang.Thread.sleep(Native Method)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at org.apache.catalina.session.StandardManager.threadSleep(StandardManager.java:800)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at org.apache.catalina.session.StandardManager.run(StandardManager.java:859)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at java.lang.Thread.run(Thread.java:534)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: "Signal Dispatcher" daemon prio=10 tid=0x000ef840 nid=0x12 waiting on condition [0..0]
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: "Finalizer" daemon prio=8 tid=0x000ef638 nid=0x10 in Object.wait() [fa27f000..fa27fc28]
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at java.lang.Object.wait(Native Method)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: - waiting on <0xe917fb10> (a java.lang.ref.ReferenceQueue$Lock)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:111)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: - locked <0xe917fb10> (a java.lang.ref.ReferenceQueue$Lock)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: "Reference Handler" daemon prio=10 tid=0x000ef430 nid=0xf in Object.wait() [fa37f000..fa37fc28]
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at java.lang.Object.wait(Native Method)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: - waiting on <0xe917fb78> (a java.lang.ref.Reference$Lock)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at java.lang.Object.wait(Object.java:429)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:115)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: - locked <0xe917fb78> (a java.lang.ref.Reference$Lock)
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: "main" prio=5 tid=0x000ee3f0 nid=0x1 runnable [0..ffbff200]
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: "VM Thread" prio=5 tid=0x004ee328 nid=0xe runnable
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: "VM Periodic Task Thread" prio=10 tid=0x004ee5d0 nid=0x16 waiting on condition
    [15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: "Suspend Checker Thread" prio=10 tid=0x004ee548 nid=0x11 runnable
    [15/May/2006:22:15:10] failure ( 3196): HTTP3287: connection limit (4096) exceeded, closing socket

  • Cant syncronize! Threads problem

    Hello everybody,
    recently i posted a question(im new to threads) and it was asked immediately but now i have another
    type of problem.
    Please read here the initial post and the answer and please give me any ideas..
    Initial Post
    Hi everybody,i have this thread problem(i'm new to java and h
    ave no idea what exactly to do).
    Well,in my applet i have this action performed method
    that i imagine is in the event dispatch thread.
    This method calls as u see, two other methods of a class named CPU(.
    Note that fetch and execute are observed classes and my applet class
    is the observer.
    The problem is that during the execution of fetch() and execute(),
    inside these methods change some things and so they call notifyObservers(Object arg)
    passing to the applet the argument and so the applet updates some text components.
    But as you can immagine there is no time for the gui to update himself so i see nothing.
    So, my question is which of the methods need to be in a separate thread so to ensure
    visible results(component updating)?
    Perhaps,the update method needs to be invokedLater with SwingUtilities?
    Please give me an example code if possible.
    Here is the actionPerformed code(from the applet class) and the fetch method:
        void executeProgramButton_actionPerformed(ActionEvent e) {      
    int numInstr = this.machine.ram.segmentSize;       
    for (int i = 0; i < numInstr; i = i + 4) {           
    machine.cpu.fetch();           
    machine.cpu.execute();       
    /*The following method is in the CPU class
    fetch method:here the observedPC is the observable value
    that notifies the observer(the main applet)
    that does: pcTextField.setText(arg.toString());*/   
    public void fetchInstructionProgram() {       
    observedPC = Integer.toString(pc);       
    setChanged();       
    notifyObservers(observedPC);       
    instructions++;       
    instruction=readOperation(cache.instructionfetch,pc);       
    pc = pc + 4;    }
    Answer to initial post
    Author: stevejluke
    One way could be to put the content of the action performed method into a new thread, then use invokeLater in your Observers that cause GUI updates:
        void executeProgramButton_actionPerformed(ActionEvent e) {     
    new Thread()       {      
    public void run()        {         
    int numInstr = this.machine.ram.segmentSize;         
    for (int i = 0; i < numInstr; i = i + 4)           {           
    machine.cpu.fetch();           
    machine.cpu.execute();         
    }.start();    }
    // In your Observer    public void update(Observable o, Object arg)    {     
    SwingUtilities.invokeLater(new Runnable() {      
    public void run()        { 
    /* your GUI afecting code
    });[i]
    Or something like that.
    You might need to watch for synchronizing things
    He was right...GUI is responsive but the results...
    Well,let me describe the new problem.
    Here you cant see the method execute().
    The problem is a synchronization problem.
    Actually,what the two methods do is:fetch() updates the value of a long called instruction and execute() takes this value and do some things.Note also that the time the execute method needs to finish is not
    always the same.By that, i mean that it depends on the value of the instruction updated by fetch().
    By putting some System.outs before and after updating i realized that there are delays or sometimes
    i noticed that fetch() executes 2 times before execute() takes control.
    So,i created some synchronized private methods set and get to control access to these resources.
    Better but still not correct...
    What should i look?Where stays the answer?
    How to synchronize these two methods on these resources?
    Thank you in advance,
    Chris

    I think that your fetch and execute has a "Producer-Consumer Relationship"
    in such cases you can make the producer place the produced value in to a queue and consumer take the vlues from the queue
    In the producer thread it sleeps for a while and try again if the Queue is full
    In the Consumer thread it sleeps for a while if the Queue is empty and then try again
    Or you can do as follows
    In the Producer thread it waite() if the Queue is full
    In the Consumer thread it waite() if the queue is empty
    When ever Producer put a value in to the Queue it calls the notify on Consumer and when ever Consumer takes a value from Queue it calls the notify() on Producer
    you can even use notify all
    I think thiere is no built in Queue class in java so you will have to write one here is a example
    public class MyLongQueue{
                long data[];
                int head, tail;
                int size;
               public MyLongQueue(int size){
                    data = new long[size];
                    head = -1;
                    tail = -1;
                    this.size = 0;
                public synchronized boolean isFull(){
                    return (size==data.length);
                public synchronized boolean isEmpty(){
                    return (size==0);
                public synchronized boolean  insert(long l){
                    if (size==data.length) return false; //Queue is full cant add more data
                    tail = (tail + 1) % data.length;
                    data[tail] = l;
                     size++;
                    return true;
               public synchronized long remove(){
                   if (size==0) throw new ArrayIndexOutOfBoundsException();
                   size--;
                   head = (head + 1) % data.length;
                   return data[head];

  • Oracle database 11g release 2 installation problem on windows 7 (64-bit)

    First of all my windows is not genuine, but on my friend's desktop oracle download and installation  worked fine, he chose "create and configure database" options, and it works very well on his desktop, though his windows is also illegitimate. In my case, when I select "Create and configure database" option and pressed 'next",
    (Go to my blog to see it with snapshots: Computer Science: Oracle database 11g release 2 installation problem on windows 7 (64-bit))
    it asks to select class, I select "Desktop class" and pressed "next". The moment I pressed "next", the whole setup thing disappeared like it was never started. I searched for all possible reasons for why its not getting installed on my laptop, I used registry cleaner s/w,  deleted 25 GB of data to create free space if it were the problem, increased the virtual memory to increase the space for RAM, I did almost everything to get this setup working, but I found no success with the "Create and Configure database" option
    and
    then
    I chose a "database software only" option and chose to store in a folder w/o spaces. This way, I got database s/w only and then later I found "Database configuration Assistant (DBCA)"  from windows START button and clicked to create and configure database manually. The steps are pretty much interactive and doesn't involve much brainstorming.
    The values I filled for
    1) Global Database Name :  orcl
    2) System Identifier : orcl
    3) I chose common password for both SYS and SYSTEM
    4) while on Enterprise Manager Configuration step, It asked me to create and configure listener in oracle home, so for that too, I typed "netca" in windows START menu and clicked it. There I added a listener.
    5) I chose a Storage area which was the Oracle-home itself i.e. where our installation files goes , in my case it is : C:\oracle_base\product\11.2.0\dbhome_1\oradata
    6) Then after few more nitty-gritty clicks, we are set to go !
    Finally to write SQL code and to create your first TABLE , type "sqlplus" in windows "START" menu and click it when it appears. A command-prompt like window appears , which will ask you for username and password, so here they are :
    Username : sys/ as sysdba
    Password : (its the one you created in step 3 stated above )
    After this you are ready to write your first SQL command.

    Is this your solution to your original post at Oracle database 11g release 2 installation on windows 7 (64-bit) ?
    Pl be aware that you should not create any custom objects in SYS or SYSTEM schema - you should create any such objects in a separate custom schema.
    About Database Administrator Security and Privileges

  • Lightroom 3.2 Installation Problem on Windows 7 64-bit

    Lightroom 3.2 Installation Problem on Windows 7 64-bit
    I can't install Lightroom 3.2 (German) on my computer (Windows 7 Professional 64-bit).
    While copying the extracted program files the following error message appears:
    An error occurred during the installation of assembly component {6435B7C0-E0C8-3EA2-91AE-7640034EAFCE}. HRESULT: 0x80070002.
    I found out that other users had the same problem, and couldn't find a solution.
    Perhaps it is a Microsoft .NET Framework related problem. But after installing .NET Framework 4 nothing changed.
    Thanks for ideas to solve the problem.

    Thanks for your advice, Mr. McLion.
    I downloaded the 3.4.1 version and started the installation as administrator. Unfortunately the same error message occured again.
    Then I tried to install the 32-bit version (although I prefer a 64-bit program on a 64-bit operating system). A similar error message appeared at the same point of installation progress, but with another combination of numbers and letters in brackets.

  • Problem on Windows 7 Home Premium cant open program for using codes like visual studio 2012

    I have problem my windows 7 Home Premium because of visual studio 2012..I can't open even in several times, I don't know what happen, and sometime it is so low to process whenksn it to open my laptop..Why is that pleas do reply..ASAP! tha

    Hi,
    According to your description, it seems like VS itself problem, you can try to repair this program through Control Panel for test. If no use, it would be better to post your question at VS forum for further assistance.
    Contact VS forum:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?category=visualstudio%2Cvsarch%2Cvsdbg%2Cvstest%2Cvstfs%2Cvsdata%2Cvsappdev%2Cvisualbasic%2Cvisualcsharp%2Cvisualc
    Roger Lu
    TechNet Community Support

  • TS3918 I am experiencing this problem on Windows 7 64 bit.  Any suggestions would be appreciated.

    I am experiencing aniTunes reinstall problem on Windows 7 64 bit.    I have uninstalled the iTunes product and reinstalled 11.02 for windows 7 64 bit but can't get iTunes going again.  The first error message I get is: "The file "iTunes Libirary.itl" cannot be read because it was created by a newer version of iTunes".  The next error message I get is:  "There is a problem sending the command to the program."  Any suggestions on what to do next would be appreciated. ( I would have posted this in Windows area had I been given a choice.)

    I believe that message can sometimes be a sign of a corrupt library file, unless of course you've tried to downgrade to an older build of iTunes. Restore it as described in this post.
    tt2

  • CPU Overheating problem on Windows 8.1 Pro (installed with BootCamp)

    There is a really important overheating problem on windows 8.1 (installed with bootcamp) even i do nothing Cpu is 50-60-70 Celcius degrees. This is really annoying problem. Most of users necessarily need windows OS for using third part programs that doesnt exist on OS X platform. I think this problem is important and has to be fixed as soon as possible.
    My brand new Mac:
    MacBook Pro (Retina, 15-inch, Mid 2014)
    2,5 GHz Intel Core i7
    16 GB 1600 MHz DDR3

    I have the same problem on macbook pro retina 15 late 2013 - top configuration

Maybe you are looking for

  • Blackberry Desktop Software has encountered a problem and needs to close

    When I try to open Blackberry Desktop the message I get is that Blackberry Desktop Software has encountered a problem and needs to close.  I have a Blackberry Bold 9700 and as a result I cannot sync.  Does this mean I need to uninstall and reinstall?

  • How do I make a jar of netbeans (or anything big)?

    I was searching for a jar file of netbeans and instead found a different installation file per operating sytem. I am not complaining about this but I want to make a jar out of this (or another big problem) for the sake of learning how (a jar actually

  • How do remove JPG icon from iPAD Photo Sharing

    Hi, I had sync the photos on iCloud and it was showing photos on iPad properly and highlight as sharing  and date showing 6th June 1948. When i removed those photos using IFunbox i got white blank images with .JPG icon, Why this is happening on iPad

  • Java5 printf and java.util.UnknownFormatConversionException: Conversion = '

    As a long time C/C++ programmer I was pleased to see printf added to Java5, however one of (IMO) the most useful features - using an asterisk in the format string to indicate a fields width modifier is to be taken from the varargs list doesn't appear

  • Remote control Macbook Pro doesn't work anymore. Please help

    Hi, my IR remote control worked fine initally. Then I didn't use it for a while and when I did again, it didn't work anymore. I changed the battery, but no success. It just doesn't link anymore. What to do? Best regards, Peter