Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 347758 - Tomcat threads are suspended while running in debug mode
Summary: Tomcat threads are suspended while running in debug mode
Status: CLOSED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.6.2   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-31 07:07 EDT by Gary Karasiuk CLA
Modified: 2011-06-01 11:41 EDT (History)
1 user (show)

See Also:


Attachments
screenshot that shows suspended thread (94.22 KB, image/gif)
2011-05-31 07:09 EDT, Gary Karasiuk CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.