简体   繁体   中英

how to debug a stub class deployed in a jar file?

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.

While debugging line by line, you often land on a class which is not a part of your source code (it could be inside a jar). In such cases it will show a message that the source is not available. If you are using eclipse, keep pressing F6 until you jump out of the library class back into your code so that you can continue debugging from that point.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM