Simple Application - Thread problem

Hi,
I created a simple application, which uses a thread to check the current time..if the current time is after the "Quitting Time" then a msg is displayed telling how long its been....anyhow..as soon as i run my application the popup msg is displayed.
here is my code:
import java.util.Date;
import javax.swing.JOptionPane;
public class CountDown implements Runnable {
private static final Date QUITTING_TIME = new Date(104, 07, 19, 9, 15);
private Date startDate;
private Date originalStartDate;
public CountDown(Date startDate) {
this.startDate = startDate;
this.originalStartDate = new Date(startDate.getTime());
public void startThread() {
Thread t = new Thread(this);
t.start();
public void run() {
while(startDate.before(QUITTING_TIME)) {
try {
Thread.sleep(5000);
} catch (InterruptedException e) {
startDate.setTime(System.currentTimeMillis());
System.out.println("Time = " + startDate);
allDone();
private void allDone() {       
JOptionPane.showMessageDialog(null, calculateTimeAtWork());
System.exit(0);
private String calculateTimeAtWork() {
int eHours = QUITTING_TIME.getHours();
int eMin = QUITTING_TIME.getMinutes();
int eSec = QUITTING_TIME.getSeconds();
int sHours = originalStartDate.getHours();
int sMin = originalStartDate.getMinutes();
int sSec = originalStartDate.getSeconds();
if (eHours >= sHours) {
eHours = eHours - sHours;
if (eMin >= sMin) {
eMin = eMin - sMin;
if (eSec >= sSec) {
eSec = eSec - sSec;
if (eHours == 0 && eMin == 0 && eSec == 0) {
return "You did no work today!";
StringBuffer sb = new StringBuffer();
sb.append("You worked for: ");
if (eHours > 0) {
sb.append(eHours);
if (eHours == 1) {
sb.append(" hour");
else {
sb.append(" hours");
sb.append(" ");
if (eMin > 0) {
sb.append(eMin);
if (eMin == 1) {
sb.append(" minute");
else {
sb.append(" minutes");
sb.append(" ");
if (eSec > 0) {
sb.append(eSec);
if (eSec == 1) {
sb.append(" second");
else {
sb.append(" seconds");
sb.append(" ");
return sb.toString();
public static void main(String[] args) {       
Date startDate = new Date(System.currentTimeMillis());
CountDown cd = new CountDown(startDate);
cd.startThread();
basically, after the thread is completely done...meaning the current time is after the "QUITTING TIME"...i want the "allDone()" method to be called.
what's wrong with my code?
thanks

Probably the most obvious answer is your start date is after your quitting time. Your quitting time is on Aug 19 09:15 and today is Aug 20 so while ( startDate.before(QUITTING_TIME) will never run and allDone() will get called.
You could have found this yourself with a simple println("start date = "+startDate);
I also recommend you look into Calendar class, you are using deprecated constructor and method calls on java.util.Date class
Cheers
DB

Similar Messages

  • Stupid questions about keeping important calls on the FX application thread

    I'm working on a project that I've been developing for about the last 6 months. I'm using JavaFX as the graphical side, but I'm taking input from a music processing program called Max/MSP, and I'm getting user input from a camera. Both of these things need to run on separate threads from my FX application thread. Up until now, things have been going smoothly. I can manipulate things on screen from my user input, and I have two way communication working between my JavaFX application and Max. Now, however, I need to start actually drawing stuff at runtime. Up until now, pretty much all FX side manipulations of been to just make translations. I now need to create, add, and remove children from Nodes. So I'm of course getting an error saying "not on FX application thread". I understand why it isn't on this thread, and why this is a problem. So I made some changes, so that calls that will make changes to the nodes on the stage, will only note the data, and then make the changes later, on the FX application thread. And then I run into problems, involving my own stupidity...
    I have no idea how to get these calls onto the FX application thread. I mean, this should be really easy. I'm obviously missing something. Or maybe I'm just really tired, and have been looking at this for too long, or maybe the fact that it's been 6 months since I wrote this part of the code. But I see my Mainstage class, which extends Application. It has a start function, which sets up all my on screen do-dads (extended from Nodes and such), calls stage.show()... and then seems to end. When I've done things like call translate functions on my nodes from my user input thread, or from my communication from Max thread, things seemed to have worked. But now I'm thinking I might have been handling that wrong from the ground up. It seems likely that I should be having a "main game loop" (it isn't actually a game, but still, same principle) where I can tell the stage to update all the various nodes with the changes that have happened since the last frame, and try to get everything to update in time for the graphics to render at a reliable frame rate. And yet, I'm just not seeing how to do that. I'm sure this should be obvious, but I'm flat out blanking. And the time crunch is starting to descend... Please, if you can point out some standard way of avoiding this hopefully common newb mistake, I would greatly appreciate it!
    -cullam

    Checkout the documentation on "Pulse" in the JavaFX Archictecture overview which may help clarify some of your questions.
    http://docs.oracle.com/javafx/2.0/architecture/jfxpub-architecture.htm
    In simple terms, as I understand it, the framework will check 60 times a second if anything is dirty and needs repainting. If everything is clean, it will do nothing. If something is dirty, it will repaint it (although the repaint is kind of clever and highly optimized to support region image caching, make use of hardware rendering, etc).
    So you can see that the main rendering loop is essentially hidden from you. Instead you construct a SceneGraph, the system checks regularly whether or not the SceneGraph has changed, and if it has it renders the updated SceneGraph.
    In most JavaFX applications, you have a UI with controls and add event handlers which respond to control input to update the SceneGraph. In such programs, creating a main loop is unnecessary.
    You can set up an animation timeline say at, for example, 30fps (half the pulse rate), then, on every other pulse, nothing will have changed so no redraw will happen. This is only necessary if you are performing an animation or capturing camera input, etc yourself (rather than using a Transition for example).
    Actually, if I get my state changes working properly in a runLater call, do I need to also write a main loop? No, you don't need to write a main loop. Depending on the exact application, you may want one, but if you are already getting events generated by your camera input at 30fps, processing each 30fps from the camera in a runLater call would work fine without creating a loop.
    But you do need to be careful that you don't send too many runLater calls and eventually overload the JavaFX event queue. For example it makes no sense to make more than 60 runLater calls a second to update the scene, because the system will never update the scene more than 60 times a second anyway.
    If you do get a working camera app integrated with JavaFX, please post or blog about it as I am sure many people are interested in such an application.

  • Running JMS simple application from java standalone program stucks

    Hi All, i`m new to JMS service, and tried to code a simple application from the J2EE guide. They use standalone j2ee client application there, and i did not
    dound any way to debug it from eclipse .. so i have coded following standalone app (not j2ee client JAR) to produce simple messages
    public class producerMain {
         public static void main(String argv[]) throws NamingException, JMSException
              Properties jndiProp = new Properties();
              jndiProp.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,"com.sun.enterprise.naming.SerialInitContextFactory");
              jndiProp.put(javax.naming.Context.PROVIDER_URL, "localhost:3920");
              InitialContext context =new InitialContext(jndiProp);
              ConnectionFactory factory = (ConnectionFactory)context.lookup("sashaConnectionFactory");
              Queue queue = (Queue)context.lookup("jms/Queue");
              System.out.println("Got here");
              Connection connection = factory.createConnection();
    Session session = connection.createSession(
    false,
    Session.AUTO_ACKNOWLEDGE);
    MessageProducer producer = session.createProducer(queue);
    TextMessage message = session.createTextMessage();
    for (int i = 0; i < 5; i++) {
    message.setText("This is message " + (i + 1));
    System.out.println("Sending message: " + message.getText());
    producer.send(message);
    producer.send(session.createMessage());
    producer.close();
    session.close();
    connection.close();
    factory = null;
         context.close();
         System.out.println("Quiting application");
    application works .. it sends a messages .. but it does not quit .. (dozens of new threads get opened, besides the main thread, which quits, but other threads
    does not quit .. and the application stucks .. )
    Does anyone know, why does it stuck .. what are those threads ? and why does not they finish ?
    Thanks, Regards Sasha.

    Thanks.
    changing to
    exp.append("\n");and flushing the writer stream and closing the stream fixed the problem.
    Why do we have to flush the stream?
    and, why do we have to close the writer before reading? what if I want to continue writting in to the writer?
    thanks again.

  • Application threads were stopped for a long time

    Hi, We have got the following problem.
    application threads were stopped for a long time after Minor GC hava finished. Minor GC takes usally less than 1sec but a time application threads were stopped tekes often 100 sec.
    What's jvm doing then? alternatively we want to get more information when Minor GC occured.
    gc.log
    33919.643: [GC 33919.643: [ParNew: 376030K->102916K(546176K), 0.1462336 secs] 1953320K->1680371K(4642176K), 0.1465861 secs]
    Total time for which application threads were stopped: 0.1557298 seconds
    Application time: 1.3021807 seconds
    34020.827: [GC 34020.827: [ParNew: 376068K->103166K(546176K), 0.3350141 secs] 1953523K->1681429K(4642176K), 0.3353194 secs]
    Total time for which application threads were stopped: 100.0714587 seconds
    Application time: 1.0932169 seconds
    34121.180: [GC 34121.180: [ParNew: 376318K->100333K(546176K), 0.3740967 secs] 1954581K->1680438K(4642176K), 0.3744228 secs]
    Total time for which application threads were stopped: 99.2983213 seconds
    Application time: 0.7258378 seconds
    34122.304: [GC 34122.305: [ParNew: 373485K->115425K(546176K), 0.9584334 secs] 1953590K->1696193K(4642176K), 0.9587701 secs]
    Total time for which application threads were stopped: 0.9823952 seconds
    machine spec and jvm option
    T2000 Solaris10 Sparc
    1cpu 8core 32thread 1GHz, 8GB Memory
    jvm 1.4.2_14
    -d64 -server
    -XX:NewSize=800m -XX:MaxNewSize=800m
    -XX:SurvivorRatio=1
    -XX:+DisableExplicitGC
    -XX:+UseConcMarkSweepGC
    -XX:+UseParNewGC
    -XX:+CMSParallelRemarkEnabled
    -XX:MaxPermSize=256m -XX:PermSize=256m
    -XX:+UsePerfData
    -verbose:gc
    -XX:+PrintGCDetails -XX:+PrintGCTimeStamps
    -XX:+PrintTenuringDistribution
    -XX:+PrintGCApplicationStoppedTime
    -XX:+PrintGCApplicationConcurrentTime
    -Xloggc:/opt/local/jj/jboss/server/fujiyama/log/gc.log
    -Xmx4800M -Xms4800M
    we attempt single thread GC or set 2400M for heap memory
    or -XX:UseParallelGC or set the following param
    -XX:NewSize=1000m -XX:MaxNewSize=1000m
    -XX:SurvivorRatio=6
    -XX:TargetSurvivorRatio=80
    -XX:MaxTenuringThreshold=20
    -Xmx4000M -Xms4000M
    but the situation wasn't improved.

    Hi Thanigaivel
    the above flag reports all the stop the world pauses not only
    those caused because of gc. Unfortunately, this flag has
    misleading name. Thanks for your info!!
    Can you think of any reasons other than GC that cause the stop the world pauses? How can I identify the reason? Are there any VM options to log all the activities that causes the "stop the world" pauses?

  • Java Threads Problem

    Hi, I am trying to write a simple java threads program where in one thread reads a file and another thread writes the data into a second file....
    Here is my code, although i think i am correct, my program still runs in a sequential fashion help help help!!!
    import java.io.FileInputStream;
    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import java.io.IOException;
    class MyThread extends Thread{
    private int a;
    private int c;
    FileInputStream in;
    FileOutputStream out;
    public MyThread(int a){
    this.a = a;
    public void run(){
    if(this.a==5)
         try {
         in = new FileInputStream("Britney.txt");
    } catch (FileNotFoundException e) {
         // TODO Auto-generated catch block
         e.printStackTrace();
    try {
         while((c=in.read())!=-1)
              a = (char) c;
              System.out.println(a);
    catch (IOException e) {
         // TODO Auto-generated catch block
         e.printStackTrace();
    if(this.a==10)
         try {
              out = new FileOutputStream("romi.txt");
         } catch (FileNotFoundException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
         for(int i = 0;i<50;i++)
              try {
                   System.out.println(c);
                   out.write(c);
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    class MainMyThread{
    public static void main(String args[]){
    MyThread thr1, thr2;
    thr1 = new MyThread(5);
    thr2 = new MyThread(10);
    thr1.start();
    thr2.start();
    }

    Encephalopathic wrote:
    malcolmmc wrote:
    ... Chances of getting any kind of reply except "me too" can be pretty remote. ....there's actually a better chance of getting a reply on a general forum like this one, ....Can't you just post in both the narrow and the general forum, but include links one to the other in each thread? Or is that against the forum rules/etiquette? Most people here are ok with a crosspost IF those links are included.
    I would also ask that the OP designate one of those threads as the real discussion thread and just direct folks there from the other threads, so that we have one coherent discussion. If he does that, there's no problem with trying to reach out to as broad an audience as possible.
    I would figure that if the poster were upfront about what they are doing, folks wouldn't mind, but I could be wrong.I think that's generally the case. As long as the discussion is confined to one thread (and pointed there from the crossposts) or at the very least all the participants can see all the discussions, I think most people don't have a problem with it. It's when we waste our time answering when he's already got the answer elsewhere that's annoying.

  • Failed to deploy a simple application on weblogic 10.3.6 in eclipse

    Hi All,
    I'am unable to deploy a very simple application via eclipse indigo/juno 4.2
    I get the following exception:
    Runtime exception occurred in publish task 'SplitsrcTargetPreparation'
    See attached screenshot
    http://imageshack.us/a/img109/4338/screenshot20121024at612.png
    Note: I'm working with weblogic 10.3.6 dev.
    Thanks
    Dekel

    Hi,
    It seems that weblogic is under edit and lock mode and can you open weblogic console and try to change it correctly.
    Still you get same problem then try to remove the application reference with in server upload folder.
    This will solve your problem.
    Regards,
    Kal

  • Error in simple Application

    Hi all,
        since i am relatively new to this field, i created a simple application which takes in carrid and displays the sflight details...i too have binded the table but whenever i try to test the application it displays the following error_..."Adapter error in INPUT_FIELD "INPUT_CARRID" of view "Z_TEST_DETAILS.MAIN": Context binding for property VALUE cannot be resolved: The MAIN.1.SFLIGHT1 node does not contain any elements "*_
    i even cannot enter debug mode because it dumps in the beginning.Could you please help me out with this.
    Thanks and regards,
    Urbashi

    hi Abhi...
    dat problem is solved bt nw after entering the carrid it again dumps saying "Number of Elements of the Collection of Node MAIN.1.SFLIGHT1 Violates the Cardinality. "
    i have set the cardinality to 1-n.
    the code written is:
    data itab_sflight type standard table of  sflight.
        DATA lo_nd_sflight1 TYPE REF TO if_wd_context_node.
        DATA lo_el_sflight1 TYPE REF TO if_wd_context_element.
        DATA ls_sflight1 TYPE wd_this->Element_sflight1.
        DATA lv_carrid TYPE wd_this->Element_sflight1-carrid.
      navigate from <CONTEXT> to <SFLIGHT1> via lead selection
        lo_nd_sflight1 = wd_context->get_child_node( name = wd_this->wdctx_sflight1 ).
      @TODO handle non existant child
      IF lo_nd_sflight1 IS INITIAL.
      ENDIF.
      get element via lead selection
        lo_el_sflight1 = lo_nd_sflight1->get_element( ).
      alternative access  via index
      lo_el_sflight1 = lo_nd_sflight1->get_element( index = 1 ).
      @TODO handle not set lead selection
        IF lo_el_sflight1 IS INITIAL.
        ENDIF.
      get single attribute
        lo_el_sflight1->get_attribute(
          EXPORTING
            name =  `CARRID`
          IMPORTING
            value = lv_carrid ).
    select * from sflight into table itab_sflight
      where carrid = 'lv_carrid'.
    lo_nd_sflight1 = wd_context->get_child_node( name = wd_this->wdctx_SFLIGHT1 ).
    lo_nd_sflight1->bind_table( itab_sflight ).
    Regards,
    Urbashi

  • Simple application

    My problem is simple but not for me (I' m beginer inWeblogic BEA)
    I have one JSP in which I entering tree simple text filds.
    Those values I need to put in simple Oracle table within the Container
    Managed Entity Bean. I configure Oracle dirvers, and Oracle Connection Pool,
    but I don't know how to deploy such simple application.
    Thanks
    [email protected]

    What language are you wanting to use? If you are looking at staying with AppleScript, you might take a look at AppleScriptObjC, which lets you use AppleScript to write Cocoa applications. Take a look at MacScripter's AppleScriptObjC in Xcode for an introduction and some short tutorials.

  • Thread problem in swings

    I have made an application in swings i have stored the class files in a system and call that class files by a batfile shortcut in two diff. pcs .and i am tring to get an value of a Jtextarea in an event When I tried to run this application at the same time from 2 diff PCS,with diff string input in text area It is giving me the same vlaue.
    Tell me Y it is so.and how can i rectify it
    javauser

    Very strange... what makes you think that this is a threading problem?

  • All Application threads stopped for 3~5 minutes

    Hi.
    Our Java application experiences sudden 3~5 minutes application threads stops.
    Our Application is run by 1 process and 300~400 threads.
    All threads are stopped suddenly and are run after 3~5 minutes or more.
    I can't analyze any patten but I experience this problem once or twice a day.
    I guess it is caused by application bug, java bug or Solaris bug and so on.
    I have difficulty to solve this problem and I can't find what causes it.
    Please give advice on this problem.
    (*) Our system :
    SunOS Solaris 5.10 Generic_138888-03 sun4u sparc SUNW,Sun-Fire-V890 (32G Mem)
    (*) Java :
    java version "1.5.0_12"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_12-b04)
    Java HotSpot(TM) Server VM (build 1.5.0_12-b04, mixed mode)
    (*) Java Options
    -mx2048m -Dcom.sun.management.jmxremote.port=16000
    -Dcom.sun.management.jmxremote.authenticate=false
    -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.snmp.interface=`hostname`
    -Dcom.sun.management.snmp.acl=false -Dcom.sun.management.snmp.port=16500 -Xcheck:jni
    -XX:+PrintGCDetails -XX:+HeapDumpOnOutOfMemoryError -XX:+PrintGCApplicationStoppedTime

    Show your GC logs.

  • SIMPLE Database Design Problem !

    Mapping is a big problem for many complex applications.
    So what happens if we put all the tables into one table called ENTITY?
    I have more than 300 attributeTypes.And there will be lots of null values in the records of that single table as every entityType uses the same table.
    Other than wasting space if I put a clustered index on my entityType coloumn in that table.What kind of performance penalties to I get?
    Definition of the table
    ENTITY
    EntityID > uniqueidentifier
    EntityType > Tells the entityTypeName
    Name >
    LastName >
    CompanyName > 300 attributeTypes
    OppurtunityPeriod >
    PS:There is also another table called RELATION that points the relations between entities.

    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    check the coloumn with WHERE _entityType='PERSON'
    as there is is clustered index on entityType...there
    is NO performance decrease.
    there is also a clustered index on RELATION table on
    relationType
    when we say WHERE _entityType ='PERSON' or
    WHERE relationType='CONTACTMECHANISM'.
    it scans the clustered index first.it acts like a
    table as it is physically ordered.I was thinking in terms of using several conditions in the same select, such as
    WHERE _entityType ='PERSON'
      AND LastName LIKE 'A%' In your case you have to use at least two indices, and since your clustered index comes first ...
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    Have you ever thought of using constraints in your
    modell? How would you realize those?
    ...in fact we did.We have arranged the generic object
    model in an object database.The knowledge information
    is held in the object database.So your relational database is used only as a "simple" storage, everything has go through your object database.
    But the data schema is held in the RDBMS with code
    generation that creates a schema to hold data.If you think that this approach makes sense, why not.
    But in able to have a efficent mapping and a good
    performance we have thought about building only one
    table.The problem is we know we are losing some space
    but the thing is harddisk is much cheaper than RAM
    and CPU.So our trade off concerated on the storage
    cost.But I still wonder if there is a point that I
    have missed in terms performance?Just test your approach by using sufficiently data - only you know how many records you have to store in your modell.
    PS: it is not wise effective using generic object
    models also in object databases as CPU cost is a lot
    when u are holding the data.I don't know if I'd have taken your approach - using two database systems to hold data and business logic.
    PS2: RDBMS is a value based system where object
    databases are identity based.we are trying to be in
    the gray area of both worlds.Like I wrote: if your approach works and scales to the required size, why not? I would assume that you did a load test with your approach.
    What I would question though is that your discussing a "SIMPLE Database Design" problem. I don't see anything simple in your approach when it comes to implementation.
    C.

  • Adobe Story free application install problem

    I have been using Adobe Story Free version for a year but with the most recent automatic update (Dec 2012) the desktop application will not open. Upon clicking the icon for Adobe Story it attempts to take an update but stops with the following message:
    " Sorry, an error has occurred. This application cannot be installed because this installer has been mis-configured. Please contact the application author for assistance."
    Does anyone know how to fix this?

    Sandeep,  Thank you! Adobe Story is okay now.
    Date: Sat, 29 Dec 2012 10:58:48 -0700
    From: [email protected]
    To: [email protected]
    Subject: Adobe Story free application install problem
        Re: Adobe Story free application install problem
        created by [email protected] in Adobe Story - View the full discussion
    Hi, Please uninstall the current Adobe story application and then install latest from https://story.adobe.com/AIR/AdobeStory.air . That should fix it. Thanks,Sandeep
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/4953552#4953552
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4953552#4953552
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4953552#4953552. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Adobe Story by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Thread problems with Samsung D500? Http or https troubles?

    Hi!
    I've got some troubles with my application installed onto my D500, and I suspect that's maybe thread problem.
    Does anyone know something about thread problems for this phone?
    I want to know, is there any trouble for connecting application by using http or https?
    I've found one problem for E720 - it escapes "backslash" character when it's used as http parameter.
    It makes parsing troubles...
    Did anyone have some similer troubles, and how have you solved this problem?
    Thanks in advance,
    Alex

    When I'm trying to connect to the net by using my application, I get two errors: "TCP open" and "interruptedIOException", and so I suspect that's some kind of thread problems.
    On the other phones (Nokia, Sony Ericsson) this application works with no problems...

  • My macbook pro is lagging and freezing constantly in simple applications.

    It just happen very recently and out of nowhere. Simple applications like word and finder where becoming really slow and just scrolling up and down seem to take several minutes. Most applications require me to use activity monitor to force quit. Booting up takes about several minutes. I have about 250gb free and have checked constantly the CPU and how much RAM my mac uses(2.00gb free of 4gb). I also have done repair permisions without any problems. Please help. Thanks in advance.

    Hardware Information:
              MacBook Pro (13-inch, Mid 2012)
              MacBook Pro - model: MacBookPro9,2
              1 2.5 GHz Intel Core i5 CPU: 2 cores
              4 GB RAM
    Video Information:
              Intel HD Graphics 4000 - VRAM: 1024 MB
    System Software:
              OS X 10.9.2 (13C64) - Uptime: 0 days 7:3:22
    Disk Information:
              TOSHIBA MK5065GSXF disk0 : (500.11 GB)
                        EFI (disk0s1) <not mounted>: 209.7 MB
                        Macintosh HD (disk0s2) / [Startup]: 499.25 GB (367.51 GB free)
                        Recovery HD (disk0s3) <not mounted>: 650 MB
              MATSHITADVD-R   UJ-8A8 
    USB Information:
              Apple Inc. FaceTime HD Camera (Built-in)
              Apple Inc. BRCM20702 Hub
                        Apple Inc. Bluetooth USB Host Controller
              Apple Inc. Apple Internal Keyboard / Trackpad
              Apple Computer, Inc. IR Receiver
    FireWire Information:
    Thunderbolt Information:
              Apple Inc. thunderbolt_bus
    Startup Items:
              HP IO: Path: /Library/StartupItems/HP IO
    Launch Daemons:
              [System] com.adobe.fpsaud.plist 3rd-Party support link
              [System] com.mice.360Daemon.plist 3rd-Party support link
              [System] com.microsoft.office.licensing.helper.plist 3rd-Party support link
              [System] com.oracle.java.JavaUpdateHelper.plist 3rd-Party support link
    User Launch Agents:
              [not loaded] com.adobe.ARM.[...].plist 3rd-Party support link
              [not loaded] com.apple.CSConfigDotMacCert-[...]@me.com-SharedServices.Agent.plist
              [not loaded] com.facebook.videochat.[redacted].plist 3rd-Party support link
              [not loaded] com.google.keystone.agent.plist 3rd-Party support link
    User Login Items:
              Steam
              iTunesHelper
              Dropbox
              Google Drive
              AirPlayitServerManager
              HP Scheduler
    Internet Plug-ins:
              FlashPlayer-10.6: Version: 12.0.0.77 - SDK 10.6 3rd-Party support link
              QuickTime Plugin: Version: 7.7.3
              AdobePDFViewerNPAPI: Version: 10.1.9 3rd-Party support link
              AdobePDFViewer: Version: 10.1.9 3rd-Party support link
              Flash Player: Version: 12.0.0.77 - SDK 10.6 3rd-Party support link
              Default Browser: Version: 537 - SDK 10.9
              SharePointBrowserPlugin: Version: 14.0.0 3rd-Party support link
              Unity Web Player: Version: UnityPlayer version 4.3.5f1 - SDK 10.6 3rd-Party support link
              Silverlight: Version: 5.1.20913.0 - SDK 10.6 3rd-Party support link
              DirectorShockwave: Version: 11.6.5r635 3rd-Party support link
    Safari Extensions:
              Cuevana Stream: Version: 4.2
              Ebay Shopping Assistant: Version: 1.1
              Searchme: Version: 1.2
              Slick Savings: Version: 1.0
              Amazon Shopping Assistant: Version: 1.1
    Audio Plug-ins:
              BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
              AirPlay: Version: 2.0 - SDK 10.9
              AppleAVBAudio: Version: 203.2 - SDK 10.9
              iSightAudio: Version: 7.7.3 - SDK 10.9
    iTunes Plug-ins:
              Quartz Composer Visualizer: Version: 1.4 - SDK 10.9
    3rd Party Preference Panes:
              Flash Player  3rd-Party support link
    Old Applications:
              None
    Time Machine:
              Time Machine not configured!
    Top Processes by CPU:
                  16%          CVMCompiler
                   6%          storeagent
                   2%          Microsoft Word
                   1%          Google Chrome
                   1%          Microsoft AU Daemon
    Top Processes by Memory:
              156 MB          mds_stores
              135 MB          com.apple.IconServicesAgent
              127 MB          softwareupdated
              119 MB          Google Chrome
              71 MB          Microsoft Word
    Virtual Memory Information:
              915 MB          Free RAM
              1.71 GB          Active RAM
              781 MB          Inactive RAM
              642 MB          Wired RAM
              1.89 GB          Page-ins
              0 B          Page-outs

  • 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.

Maybe you are looking for

  • Error handling at JDBC Receiver

    Hi, I am currently working on PI 7.31. This is regarding proxy to JDBC scenario using insert statement in the JDBC receiver. I would like to know is there any feature in JDBC receiver which allows the process to continue even after any data error in

  • Eror in JCo Connection

    Hello All,          I created an Application which will call a BAPI ,aceept input from the user and deliver the Output. But when I'm executing this Application I'm getting the following Runtime Exception. <b>com.sap.tc.webdynpro.services.exceptions.W

  • Nokia 3110C Firmware upgrade

    Hi, I'm using a Nokia3110c model. This device is continuosly giving some problem. When i'm switching off and on the message will be deleted, setting will be chnaged automatically. Already the calculater facility gone    I did reinstall the firmware.

  • Photoshop Elements 11 on iMac 10.10.2. unresponsive.

    Application continues to go into unresponsive state. It hangs, eventually unhangs but as soon as I try to do anything with it, it goes into unresponsive state again. It has become completely unusable. I looked for answer on this forum but do not see

  • I try to Open Photoshop and it prompts me to login - when I do - it just kicks me out

    When I try to open photoshop elements it says I have to login. I do and then I am prompted to accept the "Terms and Conditions" after I accept the screens goes away. No photoshop! HELP! Please!