PDA

View Full Version : Debugging CGLIB enhanced code in WSAD



rmorschel
Oct 15th, 2004, 04:39 AM
We're using Spring and Hibernate in WSAD 5.1.1. When we attempt to set a breakpoint on one of our Spring "managed" beans (ProductDAO), we get the following error:

Attempting to install a breakpoint in the type com.....ProductDAO$$EnhancerByCGLIB$$5c9.. that has no line number attributes. The breakpoint cannot be installed.

Any ideas?

Regards.
Robert Morschel

Rod Johnson
Oct 15th, 2004, 05:16 AM
You mean presumably a managed bean that has AOP advice applying to it, using CGLIB (with proxyTargetClass)? Or are you using lookup methods? Normal IoC management won't result in Spring using CGLIB.

This error can be ignored in Eclipse and, I would expect, WSAD. I know it's a bit annoying, but it doesn't affect ability to debug.