Problem debugging TimerTask threads - Unnable to debug breakpoints

Hello,
I am developing a J2ME midlet that uses Timer along with TimerTask so run a specific method each second. The problem is that I cant debug whatever is happening in the TimerTask, i.e. even though I set breakpoints the debugger never "sees" them and stops.
Full code example:
package testdebug;
import javax.microedition.midlet.*;
import java.util.*;
public class Test extends MIDlet {
     public void startApp()
          Timer t = new Timer();
          t.scheduleAtFixedRate(new TimerTask() {
               public void run() {
                    System.out.println("TimerTask executed"); // <- SET BREAKPOINT HERE
          }, 0, 1000);
          System.out.println("end of startApp");
     public void pauseApp(){}
     public void destroyApp(boolean flag){}
}Since I need to be able to debug whatever is happening in such a statement I need to be able to set breakpoints. If I set a breakpoint at the given line, it is never raised. I am using the Eclipse IDE along with EclipseME. Tried searching at their site for an answer but haven't found any.
If I replicate the same code above using Thread instead the breakpoints work:
package testdebug;
import javax.microedition.midlet.*;
import java.util.*;
public class Test extends MIDlet {
     public void startApp()
          new Thread(new Runnable() {
               public void run() {
                    while(true)
                         System.out.println("Thread loop executed"); // <- SET BREAKPOINT HERE
                         try {Thread.sleep(1000);}catch (Exception e) {}
          }).start();
          System.out.println("end of startApp");
     public void pauseApp(){}
     public void destroyApp(boolean flag){}
}Setting breakpoints within this code works fine! But in this case I want to use a Timer along with a TimerTask so I need to get the breakpoints working.
I have also tried using my own class that inherits TimerTask and implements Runnable but I still can't get the breakpoints to work. If I do the same using Thread it works, so the problem seems to be TimerTask.
Anyone has got the same problem or/and has a solution to this?

I was able to put breakpoints at ur specified line
morever this has nothing to do with Timertask
try printing some more lines or some coding in run method
and see if breakpoints work :)

Similar Messages

  • LDAP client binding failure stops TimerTask thread

    Hi There,
    I try to schedule a TimerTask once ldap binding fails, but the binding failure prevents the TimerTask thread to start. Any idea? or any work around?
    Thanks.
    try{
    ctx = new InitialLdapContext(envs[ctx_idx], null);
    }catch(NamingException ne){
    START();
    public static void start() {
    timer = new Timer();
    timer.schedule(new TimerTask() {
    public void run(){
    System.out.println(".... Visit moniter ....");
    }, 10, 1000) ;
    } // end of start
    ...

    Problem Fixed. Windows XP client did not have WINS server IP address is TCP/IP properties.

  • What is the problem in my Thread Dump's output?

    Dear all,
    Below is my Thread Dump output. I can not figure out what and where is the problem of this Thread Dump's output. Could some one please give me some hints?
    Thanks alot
    Tu
    ----------------Thread Dump's Output-----------------
    Full thread dump Java HotSpot(TM) Client VM (1.5.0_07-b03 mixed mode, sharing):
    "TP-Monitor" daemon prio=1 tid=0xb0b14490 nid=0xfaa in Object.wait()
    [0xb08fe000..0xb08fee40]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x89433f70> (a
    org.apache.tomcat.util.threads.ThreadPool$MonitorRunnable)
    at org.apache.tomcat.util.threads.ThreadPool$MonitorRunnable.run(ThreadPool.java:559)
    - locked <0x89433f70> (a
    org.apache.tomcat.util.threads.ThreadPool$MonitorRunnable)
    at java.lang.Thread.run(Thread.java:595)
    "TP-Processor4" daemon prio=1 tid=0xb0b13730 nid=0xfa9 runnable
    [0xb097e000..0xb097efc0]
    at java.net.PlainSocketImpl.socketAccept(Native Method)
    at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
    - locked <0x89438110> (a java.net.SocksSocketImpl)
    at java.net.ServerSocket.implAccept(ServerSocket.java:450)
    at java.net.ServerSocket.accept(ServerSocket.java:421)
    at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:293)
    at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:647)
    at org.apache.jk.common.ChannelSocket$SocketAcceptor.runIt(ChannelSocket.java:857)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    at java.lang.Thread.run(Thread.java:595)
    "TP-Processor3" daemon prio=1 tid=0xb0b0f6b8 nid=0xfa8 in
    Object.wait() [0xb09fe000..0xb09fef40]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x89434250> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Object.wait(Object.java:474)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
    - locked <0x89434250> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Thread.run(Thread.java:595)
    "TP-Processor2" daemon prio=1 tid=0xb0b0fec8 nid=0xfa7 in
    Object.wait() [0xb0a7e000..0xb0a7f0c0]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x894342e8> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Object.wait(Object.java:474)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
    - locked <0x894342e8> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Thread.run(Thread.java:595)
    "TP-Processor1" daemon prio=1 tid=0xb0b14978 nid=0xfa6 in
    Object.wait() [0xb0afe000..0xb0aff040]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x89434380> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Object.wait(Object.java:474)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
    - locked <0x89434380> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Thread.run(Thread.java:595)
    "http-8080-Monitor" prio=1 tid=0x08609b18 nid=0xfa5 in Object.wait()
    [0xb0cc9000..0xb0cc91c0]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x89378950> (a
    org.apache.tomcat.util.threads.ThreadPool$MonitorRunnable)
    at org.apache.tomcat.util.threads.ThreadPool$MonitorRunnable.run(ThreadPool.java:559)
    - locked <0x89378950> (a
    org.apache.tomcat.util.threads.ThreadPool$MonitorRunnable)
    at java.lang.Thread.run(Thread.java:595)
    "http-8080-Processor25" daemon prio=1 tid=0x08608ce0 nid=0xfa4
    runnable [0xb0d48000..0xb0d49140]
    at java.net.PlainSocketImpl.socketAccept(Native Method)
    at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
    - locked <0x89010c58> (a java.net.SocksSocketImpl)
    at java.net.ServerSocket.implAccept(ServerSocket.java:450)
    at java.net.ServerSocket.accept(ServerSocket.java:421)
    at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:60)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:407)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:70)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    at java.lang.Thread.run(Thread.java:595)
    "http-8080-Processor24" daemon prio=1 tid=0x086085f8 nid=0xfa3 in
    Object.wait() [0xb0dc8000..0xb0dc8ec0]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x89378ab8> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Object.wait(Object.java:474)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
    - locked <0x89378ab8> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Thread.run(Thread.java:595)
    "http-8080-Processor23" daemon prio=1 tid=0x08606dd0 nid=0xfa2 in
    Object.wait() [0xb0e48000..0xb0e48e40]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x89378b50> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Object.wait(Object.java:474)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
    - locked <0x89378b50> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Thread.run(Thread.java:595)
    "http-8080-Processor22" daemon prio=1 tid=0x08605ed0 nid=0xfa1 in
    Object.wait() [0xb0ec8000..0xb0ec8fc0]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x89378be8> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Object.wait(Object.java:474)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
    - locked <0x89378be8> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Thread.run(Thread.java:595)
    "http-8080-Processor21" daemon prio=1 tid=0x08604fd0 nid=0xfa0 in
    Object.wait() [0xb0f48000..0xb0f48f40]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x89378c80> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Object.wait(Object.java:474)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
    - locked <0x89378c80> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Thread.run(Thread.java:595)
    "http-8080-Processor20" daemon prio=1 tid=0x086040f0 nid=0xf9f in
    Object.wait() [0xb0fc8000..0xb0fc90c0]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x89378d18> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Object.wait(Object.java:474)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
    - locked <0x89378d18> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Thread.run(Thread.java:595)
    "http-8080-Processor19" daemon prio=1 tid=0x08432538 nid=0xf9e in
    Object.wait() [0xb1048000..0xb1049040]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x89378db0> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Object.wait(Object.java:474)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
    - locked <0x89378db0> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Thread.run(Thread.java:595)
    "http-8080-Processor18" daemon prio=1 tid=0x08431638 nid=0xf9d in
    Object.wait() [0xb10c9000..0xb10c91c0]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x89378e48> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Object.wait(Object.java:474)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
    - locked <0x89378e48> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Thread.run(Thread.java:595)
    "http-8080-Processor17" daemon prio=1 tid=0x08430738 nid=0xf9c in
    Object.wait() [0xb1148000..0xb1149140]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x89378ee0> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Object.wait(Object.java:474)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
    - locked <0x89378ee0> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Thread.run(Thread.java:595)
    "http-8080-Processor16" daemon prio=1 tid=0x0842f838 nid=0xf9b in
    Object.wait() [0xb11c8000..0xb11c8ec0]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x89378f78> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Object.wait(Object.java:474)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
    - locked <0x89378f78> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Thread.run(Thread.java:595)
    "http-8080-Processor15" daemon prio=1 tid=0x0842e938 nid=0xf9a in
    Object.wait() [0xb1248000..0xb1248e40]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x89379010> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Object.wait(Object.java:474)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
    - locked <0x89379010> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Thread.run(Thread.java:595)
    "http-8080-Processor14" daemon prio=1 tid=0x0842da38 nid=0xf99 in
    Object.wait() [0xb12c8000..0xb12c8fc0]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x893790a8> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Object.wait(Object.java:474)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
    - locked <0x893790a8> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Thread.run(Thread.java:595)
    "http-8080-Processor13" daemon prio=1 tid=0x0842cb38 nid=0xf98 in
    Object.wait() [0xb1348000..0xb1348f40]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x89379140> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Object.wait(Object.java:474)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
    - locked <0x89379140> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Thread.run(Thread.java:595)
    "http-8080-Processor12" daemon prio=1 tid=0x0842bc50 nid=0xf97 in
    Object.wait() [0xb13c8000..0xb13c90c0]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x893791d8> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Object.wait(Object.java:474)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
    - locked <0x893791d8> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Thread.run(Thread.java:595)
    "http-8080-Processor11" daemon prio=1 tid=0x084f75d0 nid=0xf96 in
    Object.wait() [0xb1448000..0xb1449040]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x89379270> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Object.wait(Object.java:474)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
    - locked <0x89379270> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Thread.run(Thread.java:595)
    "http-8080-Processor10" daemon prio=1 tid=0x084f66d0 nid=0xf95 in
    Object.wait() [0xb14c9000..0xb14c91c0]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x89379308> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Object.wait(Object.java:474)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
    - locked <0x89379308> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Thread.run(Thread.java:595)
    "http-8080-Processor9" daemon prio=1 tid=0x084f57d0 nid=0xf94 in
    Object.wait() [0xb1548000..0xb1549140]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x893793a0> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Object.wait(Object.java:474)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
    - locked <0x893793a0> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Thread.run(Thread.java:595)
    "http-8080-Processor8" daemon prio=1 tid=0x08488970 nid=0xf93 in
    Object.wait() [0xb15c8000..0xb15c8ec0]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x89379438> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Object.wait(Object.java:474)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
    - locked <0x89379438> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Thread.run(Thread.java:595)
    "http-8080-Processor7" daemon prio=1 tid=0x08487a70 nid=0xf92 in
    Object.wait() [0xb1648000..0xb1648e40]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x893794d0> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Object.wait(Object.java:474)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
    - locked <0x893794d0> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Thread.run(Thread.java:595)
    "http-8080-Processor6" daemon prio=1 tid=0x08486b90 nid=0xf91 in
    Object.wait() [0xb16c8000..0xb16c8fc0]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x89379568> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Object.wait(Object.java:474)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
    - locked <0x89379568> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Thread.run(Thread.java:595)
    "http-8080-Processor5" daemon prio=1 tid=0x084e3e30 nid=0xf90 in
    Object.wait() [0xb1748000..0xb1748f40]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x89379600> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Object.wait(Object.java:474)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
    - locked <0x89379600> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Thread.run(Thread.java:595)
    "http-8080-Processor4" daemon prio=1 tid=0x084e2f90 nid=0xf8f in
    Object.wait() [0xb17c8000..0xb17c90c0]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x89379698> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Object.wait(Object.java:474)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
    - locked <0x89379698> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Thread.run(Thread.java:595)
    "http-8080-Processor3" daemon prio=1 tid=0x084e2158 nid=0xf8e in
    Object.wait() [0xb1848000..0xb1849040]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x89379730> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Object.wait(Object.java:474)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
    - locked <0x89379730> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Thread.run(Thread.java:595)
    "http-8080-Processor2" daemon prio=1 tid=0x085e74d0 nid=0xf8d in
    Object.wait() [0xb18c9000..0xb18c91c0]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x893797c8> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Object.wait(Object.java:474)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
    - locked <0x893797c8> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Thread.run(Thread.java:595)
    "http-8080-Processor1" daemon prio=1 tid=0x085e6638 nid=0xf8c in
    Object.wait() [0xb1948000..0xb1949140]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x89379860> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Object.wait(Object.java:474)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
    - locked <0x89379860> (a
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
    at java.lang.Thread.run(Thread.java:595)
    "ContainerBackgroundProcessor[StandardEngine[Catalina]]" daemon prio=1
    tid=0x083719f8 nid=0xf8b waiting on condition [0xb1a85000..0xb1a85ec0]
    at java.lang.Thread.sleep(Native Method)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1547)
    at java.lang.Thread.run(Thread.java:595)
    "Low Memory Detector" daemon prio=1 tid=0x080a44f8 nid=0xf7f runnable
    [0x00000000..0x00000000]
    "CompilerThread0" daemon prio=1 tid=0x080a2f98 nid=0xf7e waiting on
    condition [0x00000000..0xb21b2928]
    "Signal Dispatcher" daemon prio=1 tid=0x080a2068 nid=0xf7d waiting on
    condition [0x00000000..0x00000000]
    "Finalizer" daemon prio=1 tid=0x0809c540 nid=0xf7c in Object.wait()
    [0xb24b2000..0xb24b3040]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x88f01de0> (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
    - locked <0x88f01de0> (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
    at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)
    "Reference Handler" daemon prio=1 tid=0x0809a6b0 nid=0xf7b in
    Object.wait() [0xb2533000..0xb25331c0]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x88f01e60> (a java.lang.ref.Reference$Lock)
    at java.lang.Object.wait(Object.java:474)
    at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
    - locked <0x88f01e60> (a java.lang.ref.Reference$Lock)
    "main" prio=1 tid=0x0805d1c8 nid=0xf79 runnable [0xbfbd9000..0xbfbda4f8]
    at java.net.PlainSocketImpl.socketAccept(Native Method)
    at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
    - locked <0x8946f690> (a java.net.SocksSocketImpl)
    at java.net.ServerSocket.implAccept(ServerSocket.java:450)
    at java.net.ServerSocket.accept(ServerSocket.java:421)
    at org.apache.catalina.core.StandardServer.await(StandardServer.java:388)
    at org.apache.catalina.startup.Catalina.await(Catalina.java:615)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:575)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
    "VM Thread" prio=1 tid=0x08097b58 nid=0xf7a runnable
    "VM Periodic Task Thread" prio=1 tid=0x080a5998 nid=0xf80 waiting on condition

    Thanks alot for your reply. It is a web application
    using java and tomcat server. And the problem is that
    sometime when I click on a button or a link than the
    CPU goes to 100% and it hangs but normally it works
    smoothly without any problem.This often indicates a busy retry loop somewhere. You need to acquire the thread dump when the problem occurs, but be warned that depending on the problem it may not be possible to obtain a Java-level thread dump. In that case you need to try and take an OS level thread dump - eg using pstack on solaris/linux (and there's some win32 tool as well if I recall correctly).

  • Problems debugging multiple threads to test race conditions

    I was trying to use JDeveloper 10.1.3 to debug race conditions (in the Embedded OCJ4 Container) and was not able to get the degree of control over multiple threads that I had hoped. I was able to trap a break point where I see two active request threads in the Threads window, and I am able to select each thread individually and see the current line of code that each is currently on. However, if I use the debugger controls to step a line of execution on one of the threads, the execution point also seems to change on the other thread.
    In some other IDEs I have used concepts like "freezing" and "thawing" threads which provide fine grain control over debugging race conditions. Is anyone aware of a similar concept in JDeveloper that I might just not be aware of? Instead it just seems that debugger has either paused the JVM or else plays all threads while only bounding particular thread you have focus on to the number of execution steps you specified (step into, step over, step out of, ...).
    Thanks.

    There are some developers that have mentioned this to me also.
    It appears to be possible in eclipse however, but not JDeveloper. Can anyone verify this, and hopefully give us a work around?
    Thanks,
    Tony

  • Jsp-debugging: breakpoints wont work!

    hi,
    i am trying to enable jsp-debugging with eclipse 3, lomboz 3.0.0 and tomcat 5.5.4 (both working
    as an eclipse plugin).
    What happens so far is:
    i write an jsp using lomboz, the jsp is converted to a servlet and stored / copied to a folder
    called j2src in the eclipse workspace (the folder j2src is created by lomboz).
    if i now call the url http://localhost:8080/mywebmodule/jsptest.jsp the jsp is executed faultless
    and in the j2src-folder the corresponding class file appears.
    so, everything works fine, the problem that i now have, is that i can set breakpoints for debugging
    purposes in eclipse in the generated servlet-file under j2src, but this breakpoints are simply ignored, which means the
    servlet is fully executed regardless of where i set the breakpoints, and i really dont get it why, since
    my tomcat works completely in the eclipse workspace.
    do i have to configure the tomcat to enable jsp-debugging?
    i thought i had already done so, here is my deployment descriptor:
    <?xml version='1.0' encoding='utf-8'?>
    <Context docBase="E:\development\tutorial\eclipse_3\eclipse\workspace\testproject2\testmodulezwei" path="/testmodule" reloadable="true" workDir="E:\development\tutorial\eclipse_3\eclipse\workspace\testproject2\j2src" debug="0"/>
    here is what i inserted into the web.xml (in the conf-directory):
    <servlet>
    <servlet-name>jsp</servlet-name>
    <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
    <init-param>
    <param-name>classdebuginfo</param-name>
    <param-value>true</param-value>
    </init-param>
    <init-param>
    <param-name>fork</param-name>
    <param-value>false</param-value>
    </init-param>
    <init-param>
    <param-name>xpoweredBy</param-name>
    <param-value>false</param-value>
    </init-param>
    <load-on-startup>3</load-on-startup>
    </servlet>
    any ideas / suggestions?.......i am out of ideas right now....
    thx in advance, timo

    If you're using a debugger in a JSP or servlet, I'd say you're really in trouble.
    I never use a debugger like that for servlets or JSPs. If I have problems I depend on the logger to help me out. Just log statements until you narrow the problem down.
    This might be "clumsy", but it works even in those cases where you don't have a debugger available (like on a client's installation site).
    If your servlet or JSP is doing so much stuff that you have to debug, I'd say they're both doing too much. JSPs are for display; servlets for control. Complex business logic belongs in POJOs that you can debug or EJBs.
    Maybe you should rethink your design.
    %

  • Mac PPC/CS2: Problems debugging a plugin

    Hi
    I try to debug a plugin, but it doesn't work.
    - I have installed the debug version of Indesign CS2
    - I have build the debug version of a SDK sample (Basic dialog)
    - I have opened the SYM file in CW9 Symbolics Window
    - I have opened the AdobeIndesign.app from the package Adobe Indesign in CW9 Symbolics Window
    - I start Adobe Indesign in the Symbolics Window
    - I set a breakpoint in SDKPluginEntryPoint (GetPlugin)
    Indesign starts and after a while, it breaks. But I don't see the source code, I see only an assembler code.
    - What could be wrong?
    - Have I anything forgotten?
    Thanks for every help.
    Kind regards
    Hans

    You are not doing much wrong here - the problem is CodeWarrior: it's source debugger doesn't work correctly with this SDK.
    Debugging mac plugins is about using the TRACEFLOW macro to output to the DebugWindow - an SDK tool that displays the TRACEFLOW output to a floating window.
    Be aware that the TRACEFLOW macro is only sending output from the Debug build - so you don't have to take care for the Release build.
    Alternatively you could also use a log file - there is a sample of this in the SnippetRunner project - if I recall it correctly . . .
    I do understand your frustration about CW source debugger: I had the same a few years ago. Since then I do not use source debuggers in my programming anymore: it was like stopping tabacco or turning OFF the TV set definitively - the end of an addiction . . .
    HTH
    Best regards
    Patrick Perroud

  • OpenSparc problems, debug

    Hi,
    we are currently working on modifying the ifu unit of the OpenSparc. However, when we map it on the XUP FPGA board, we obtain some weird results.
    The first diagnostic test passed just fine but the HelloWorld test fails, looping forever and printing a weird set of characters "$k$". I attached the logs of both runs.
    I am wondering about what is going on in the Sparc and if there is any way to check step by step the program execution of the Sparc.
    Thanks!
    -Andrea
    #Running the default diag
    MBFW_INFO: Running RTL diag "bypass_win"
    MBFW_INFO: Microblaze firmware initialization completed.
    MBFW_INFO: Powering on OpenSPARC T1
    MBFW_INFO: speculative_ifill_data being returned for 0x1000144020
    MBFW_INFO: received ifill request for good trap addr: 0x1000122000
    MBFW_INFO: Thread 0 reached good trap.
    MBFW_INFO: All threads reached good trap.
    #Running Hello_world
    MBFW_INFO: Uncompressing ram_disk .....
    MBFW_INFO: Uncompressed ram_disk
    MBFW_INFO: Initializing OpenSPARC T1 DRAM from 0x80100000 to 0x8AF00000
    MBFW_INFO: Initialized OpenSPARC T1 DRAM
    MBFW_INFO: XIntc interrupt controller initialized.
    MBFW_INFO: Setting Temac operating speed to 100 Mbit/sec
    MBFW_INFO: Ethernet controller initialization completed.
    MBFW_INFO: Network controller initialized.
    MBFW_INFO: Microblaze firmware initialization completed.
    MBFW_INFO: Powering on OpenSPARC T1
    ``Alive and well ...
    Strand start set = 0xf
    Total physical mem = 0xac00000
    Scrubbing the rest of memory
    Number of strands = 0x4
    membase = 0x0
    memsize = 0x1000000
    physmem = 0xac00000
    $$k$$k$k$$k$k$$k$k$$k$k$$k$k$$k$k$$k$k$$k$k$$k$k$$k$k$$k$k$$k$k$$k$k$$k$k$$k$k$$

    Hello,
    Have you tried running simulations on your modified design? Try running a full regression suite to see if that catches any design problem.
    I would suggest the following experiments: First, run the entire regression on the modified design. If a test fails, it's much easier to debug a short test, than a hypervisor boot problem. Instructions for running a complete regression are found in the Design & Verification Guide.
    Next, I would try mapping the original design to FPGA and verifying that the Hello World program works correctly.
    formalGuy

  • Problem debug with JDeveloper 10.1.2 Mac OS X

    Hi,
    I can't run debug on OSX 10.3.8 java version 1.4.2_05
    it brings this long message:
    /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/bin/java -client -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=50479 -classpath /Users/42714/jdevhome/mywork/MyTestXML/Project1/classes:/Users/42714/jdevhome/system10.1.2.0.0.1811:/Applications/JDeveloper.app/Contents/Resources/jdev/BC4J/lib/adfm.jar:/Applications/JDeveloper.app/Contents/Resources/jdev/BC4J/jlib/adfjclient.jar:/Applications/JDeveloper.app/Contents/Resources/jdev/jlib/bigraphbean.jar:/Applications/JDeveloper.app/Contents/Resources/jdev/jlib/LW_PfjBean.jar mypackage1.dialog
    Then it shows the message:
    "Attempting to connect debugger to debuggee process
    and that's it. Stuck.
    When running the project without debugger, runs fine.
    Please help.
    Thanks,
    Nava.
    P.S. I couldn't run the debugger since I've installed JDeveloper. I run XCode developer tools 1.2

    Go to ~/Library/Caches/com.apple.Safari
    Move the Cache.db from the com.apple.Safari folder file to the Trash, restart your Mac, try Safari.
    If that doesn't help, try Safari in another user account. Same problems there, log back into your admin account, launch Disk Utility.
    That's located in /Applications/Utilities
    Select the startup disk on the left then select the First Aid tab.
    Click:  Verify Disk  (not Verify Disk Permissions)
    If the disk needs repairing follow the instructions for Using Disk Utility to verify or repair disks

  • Problems debugging Database Java remotely using JDeveloper 9i (9.04)

    I am currently working on a project where we are configuring a COTS product built onto a Oracle 9i database. The product has up versioned and changed its architecture considerably to support Java on the database as well as PL/SQL in the form of an API set. My team are writing custom code to meet the clients requirements and are all proficient PL/SQL developers and have experience with Java but we are having real trouble developing and testing our code in the same way we used to in PL/SQL using tools such as TOAD and PL/SQL Developer. I have invested some time in working out how to remote debug our Java code and have had some success with JDeveloper but have run into the following issues:
    1. I am unable to add Java objects or variables to the Watch but can view PL/SQL variables.
    2. The reported execution of the code seems inaccurate, i.e. often when I step into the Java code, I receive an exception that prevents me for continuing but suggests little about what has gone wrong.
    3. In general, debugging is a very hit or miss affair and does not appear to be a worthwhile tool in fixing code.
    Has anyone managed to set up Jdeveloper so that it is as proficient as TOAD or the like in debugging Java and can suggest how to resolve these issues?
    Peter
    3.

    Topic closed. Problem was with with database generated by DBCA. Resolved by TARs on Metalink

  • Problems debugging code

    Hi guys,
    I have added an existing field to a searh page.
    I have  implemented the badi badi_Crm_bupa_il_search_ext to do this and it was working fine last day.
    Today i have made a little modification and it is working in the same way as if the  modification was not made, and when i try to debug wtih a external breakpoint it does not go through the implementation code.
    Any ideas?
    Thanks
    Jon

    Hi Jon,
    Try to activate HTTP DEBEGGING from GOTO Menu in BSP_WD_CMPWB transaction.
    If you are using IE7, you need to open a new browser and not a new tab. Sometimes Logging off and logging back may help.
    Also make sure there are enough work processes, it is a basis setting to control the number of work processes.
    Regards,
    Masood Imrani S.

  • Flash CS5 Debug breakpoint bug

    When I debug it simply refuses to stop at the breakpoints, thus making my work flow miserable. I did some searching on Google and seems this has been there since version CS3. I never found a solution for this. I reinstalled on top of the current installation and nothing happened and then did a complete installation and still it's the same. Check the video.

    OK this is thing is like the most unbelievable thing. I reinstalled Flash CS5 completely - no good, I completely unistalled all of my Adobe products and reinstalled - no good, I went nuts and reinstalled Windows and All my Adobe products - no good. I have been working on this copy of Flash CS5 for nearly three months and suddenly since last Friday this started happening and I'm speechless.
    EDIT : No Adobe professional is out there to answer this?

  • Debugging/Breakpoints in Flashbuilder 4

    Hi,
    There seems to be a bug in Flashbuilder 4 whereby it doesn't recognise changes/additions made to AS code. This means that firstly it completely ignores new code and secondly that I cannot set breakpoints properly. For example it allows me to set breakpoints on comments or where there is no code and won't let me set them where there is clearly code.
    The only solution I have found was to create a completely new class and copy and paste in the code, then all is well. FB recognises all the code and allows me to put breakpoints where I want them. But this is not a fast or ideal way of working.
    I have tried 'Clean' and restarting FB, both to no avail.
    Any solutions would be greatfully received.
    Many thanks,
    VB.
    PS This only started happening after purchasing the Standard version of the product - previously using the Premium trial version.

    Using Debugging Script in general
    with the new ABAP debugger
    When the debugger is started go to the tab
    ‘Script’.
    By pressing the large ‘Load Script’ button,
    a sub-screen comes up. Here  you choose option
    database and the Script Name you want to use.
    Enter and the scipt name will be visible under
    Name in the section Script in the field Name.
    Then press the ‘Start Script’ button and
    script is started.
    FOX Debugging Script RSPLFC_DEBUGGING_SCRIPT_FOX
    Starting the debugging script
    RSPLFC_DEBUGGING_SCRIPT_FOX with 7.4 SP6 and 7.3/7.31 SP11
    This FOX debugging script can be watch
    variable values, active data  in the
    buffer and reference data.
    On can step through loops and watch how the
    data changes. It is described in detail in the blog from Hans-Georg Beuter
    Load and Start Script RSPLFC_DEBUGGING_SCRIPT_FOX
    in new Debugger. By either seetting Break-point in script or in class
    CL_RSPLFC_FORMULA->EXECUTE
    Then Set Break-Point, Start Debugging

  • Problem debugging web application in tomcat for jwsdp

    Hi everybody!
    I have the following problem:
    I have a web application with jsp's and servlets and using IDEA Intellij and tomcat for jwsdp when i run the debugger i get the next message:
    Check your run/debug configuration. Failed to establish connection to the target VM at
    '127.0.0.1:3505' using socket transport
    That problem don't occour me with other version of tomcat but i need the version for jswdp because i use other web application with web services.
    Somebody know how my problem can be solved?

    I struggled with this for awhile until I found the following entry in an IntelliJ forum:
    You have to use zipped Tomcat distribution, it contains the necessary batch startup scripts.
    Also take a look at this guide: ftp://intellij.net/pub/.idea/TomcatTutorial/TomcatJspDebug.zip
    Using the zipped version of Tomcat solved my problem.

  • Problem debugging for ios

    Hello,
    I've followed all the instructions to deploy a flash builder mobile project to ios device, but when I start the debug the process stops at 57%, stands by and doesn't go further.
    I tried to reinstall the SDK and flash builder, I tried to re-create the apple certificates, I even tried to debug an empty project but the result is the same.
    Can anyone help me?
    Steven

    tremmy wrote:
    I am building with AIR 4.0 using IntelliJ IDEA... I get the following when I try to build for iOS iPad doing a debug build and using iOS7.1 SDK without fast packaging.
    Exception in thread "main" java.lang.Error: Unable to find named traits public::e
    I have seen this error on the forums in many variations (i.e. different Classes) -- They all 'seem' to relate to being unable to resolve to a specific Class? And some have resolved the issue by specifying the class path (not sure where, but it has been accepted as an answer).
    My question is -- what the hell is public::e?
    Here is the full error:
    Exception in thread "main" java.lang.Error: Unable to find named traits: public::e
      at adobe.abc.Domain.resolveTypeName(Domain.java:232)
      at adobe.abc.Domain.resolveTypeName(Domain.java:149)
      at adobe.abc.GlobalOptimizer.sccp_eval(GlobalOptimizer.java:6775)
      at adobe.abc.GlobalOptimizer$SccpContext.commit(GlobalOptimizer.java:4448)
      at adobe.abc.GlobalOptimizer.sccp_modify(GlobalOptimizer.java:5919)
      at adobe.abc.GlobalOptimizer.sccp_modify(GlobalOptimizer.java:4781)
      at adobe.abc.GlobalOptimizer.sccp(GlobalOptimizer.java:4753)
      at adobe.abc.GlobalOptimizer.optimize(GlobalOptimizer.java:3615)
      at adobe.abc.GlobalOptimizer.optimize(GlobalOptimizer.java:2309)
      at adobe.abc.LLVMEmitter.optimizeABCs(LLVMEmitter.java:534)
      at adobe.abc.LLVMEmitter.generateBitcode(LLVMEmitter.java:343)
      at com.adobe.air.ipa.GOAOTCompiler.convertAbcToLlvmBitcodeImpl(GOAOTCompiler.java:243)
      at com.adobe.air.ipa.BitcodeGenerator.main(BitcodeGenerator.java:85)
    Compilation failed while executing : ADT

  • Problems Debugging JUnit Tests

    Hi,
    I have been trying a TDD approach to my new development and until my latest test everythings been working well. Im using Eclipse by the way with JUnit incoporated into my project
    Now I have the following problem..
    I ran my latest test and my CPU usage shot up to 100%. In an attempt to work out why I selected Debug as JUnit Project, the following was displayed
    Class File Editor
    The Source attachment does not contain the source for the file Assert.class
    You can change the source attachment by clicking change attached source below.
    Unfortunately I don't know what this means, can anyone help me out here?
    Thanks

    I don't have access to any other IDE's apart from Eclipse, so I can't check if they run outside.You don't need an IDE to run outside Eclipse. Just run JUnit from a command shell, just like any other Java program that you'd run if you didn't have ANY IDE.
    Whats Ant? I presume i'm not using it.Ant is an XML and Java-based make tool that's a standard for Java these days:
    http://ant.apache.org
    It can run all your JUnit tests as part of your build process. It'll even work with Eclipse.
    Its my last test thats causing it not to work however
    it never even returns a failure it hangs the system
    before the failure is reported. If I remove this test
    and debug the other tests however the same error
    described in the first post occurs.Can you step through that JUnit test in the Eclipse debugger to see where it's hanging up? If you're going to use an IDE, might as well put it to work.

Maybe you are looking for