为什么RAD在调试模式下跳转Object.wait调用?

时间:2011-07-27 17:03:02

标签: websphere rad

如果我使用Rapid Application Developer在“Debug”中启动我的WebSphere 7 Portal Sever,线程将被挂起,RAD会要求我切换到调试模式。然后我可以在调试视图中看到以下堆栈跟踪:

Daemon Thread [wpsDefaultWorkManager.Alarm Pool : 1] (Suspended)    
    Object.wait(long, int) line: not available [native method]  
    Object.wait(long) line: 196 
    <unknown receiving type>(BoundedBuffer).waitGet_(long) line: 187    
    BoundedBuffer.take() line: 549  
    ThreadPool.getTask(boolean) line: 865   
    ThreadPool$Worker.run() line: 1557

或者这个:

Daemon Thread [WorkManager.PortalSearchIndexWorkManager : 1] (Suspended)    
    <unknown receiving type>(Object).wait(long, int) line: not available [native method]    
    <unknown receiving type>(Object).wait(long) line: 196   
    <unknown receiving type>(BoundedBuffer).waitGet_(long) line: 187    
    <unknown receiving type>(BoundedBuffer).take() line: 549    
    <unknown receiving type>(ThreadPool).getTask(boolean) line: 865 
    <unknown receiving type>(ThreadPool$Worker).run() line: 1557

然后我可以恢复执行,一切似乎都很好,但是为什么RAD跳到那里就像我设置了一个断点一样?

1 个答案:

答案 0 :(得分:0)

希望在发生异常时您的代码或断点没有断点。如果不是这样的话。

试试这个 可能是因为存在未捕获的异常,您可能已启用RAD选项以暂停异常。

在RAD 转到Windows&gt;首选项&gt; Java&gt;调试,取消选中“暂停执行未捕获的异常”选项

之后尝试启动服务器。