Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 347758

Summary: Tomcat threads are suspended while running in debug mode
Product: [Eclipse Project] JDT Reporter: Gary Karasiuk <karasiuk>
Component: DebugAssignee: JDT-Debug-Inbox <jdt-debug-inbox>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: Michael_Rennie
Version: 3.6.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
screenshot that shows suspended thread none

Description Gary Karasiuk CLA 2011-05-31 07:07:18 EDT
I am running Helios JEE SR2, with a Tomcat Server.

When I start the server in debug mode, I continue to get some of my threads being suspended for no apparent reason.

I have attached a screenshot that shows this. AFAIK I don't have any breakpoints set, so I don't know what would be causing this.
Comment 1 Gary Karasiuk CLA 2011-05-31 07:09:39 EDT
Created attachment 196975 [details]
screenshot that shows suspended thread
Comment 2 Michael Rennie CLA 2011-05-31 11:37:41 EDT
Can you confirm there are no breakpoints set (using the breakpoints view)? From the screenshot it says you are suspended on a RuntimeException, so you probably have an exception breakpoint set.
Comment 3 Gary Karasiuk CLA 2011-05-31 12:01:41 EDT
(In reply to comment #2)
> Can you confirm there are no breakpoints set (using the breakpoints view)? From
> the screenshot it says you are suspended on a RuntimeException, so you probably
> have an exception breakpoint set.

There are no Exception breakpoints set.

I should add that I am hitting this suspension, as part of the thread dying. I think that Tomcat triggers a runtime exception, to effectively kill the thread. If I start single stepping the thread I end up in an uncaught exception handler.
Comment 4 Gary Karasiuk CLA 2011-05-31 12:02:55 EDT
(In reply to comment #3)
I should also add that this happens on both the SUN and the IBM JVMs.
Comment 5 Michael Rennie CLA 2011-05-31 12:16:31 EDT
(In reply to comment #3)

> There are no Exception breakpoints set.

How about option on the Java > Debug preference page -> Suspend execution on uncaught exceptions, it it enabled?
Comment 6 Gary Karasiuk CLA 2011-06-01 11:39:19 EDT
Ah, I didn't see the Java > Debug preference page

instead I was looking on the Run/Debug set of pages :-( 

Thanks for pointing that out.
Comment 7 Gary Karasiuk CLA 2011-06-01 11:41:01 EDT
Closing as invalid ... although it would great if someone could think of a way to make this more user friendly.