3

I ask for some help here for debugging a class in a deployed jar file, As the codes below, I have a stateless session bean and its interface packaged into a iiop.jar file which deployed to server, and I try to debug to see execution of testException method, but that class that read from a deployed jar file,

 StatelessSessionHome home = 
     (StatelessSessionHome)PortableRemoteObject.narrow(
                getInitialContext().lookup(StatelessSessionHome.JNDI_NAME),
                StatelessSessionHome.class);
  StatelessSession session = home.create();

(break point here) session.testException(-2);

the debug process will jump to the next step and ignore things happened in testException() with a follow message: _StatelessSession_Stub.testException(int) line: not available and asking to edit source path

Any suggestion should be helpful.

4

1 回答 1

0

在逐行调试时,您经常会遇到一个不属于您的源代码的类(它可能在一个 jar 中)。在这种情况下,它将显示源不可用的消息。如果您使用的是 eclipse,请一直按 F6,直到您跳出库类回到您的代码中,以便您可以从该点继续调试。

于 2012-09-20T04:07:43.177 回答