Spring MVC web app:

I have a stack trace w/o line numbers (shown at bottom).

I presume that this is due to CGLib running on the controller. But this is odd to me, the actual exception occurs in `ServerBatchRemoteRequestAcceptor`, a pojo that is not injected, not the controller. It is only created in the Controller object.

Example:

```
@Controller
class MyController {
    MyPojo pojo = new MyPojo();

    @RequestMapping("myaction")
    public void doMyAction(){
        pojo.methodToCauseNullPointerException()
    }
}

```

---

```
java.lang.NullPointerException
at mycommons.services.batchremoteprocessor.ServerBatchRemoteRequestAcceptor.acceptRequest(Unknown Source)
at com.proxyandvpn.web.controllers.RESTServicesController.handleGenericClientRequest(Unknown Source)
at com.proxyandvpn.web.controllers.RESTServicesController$$FastClassByCGLIB$$dff24f0f.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)

```

Can someone explain this behavior to me? Will every call under my Controllers be without line numbers due to CGLib?

Should I write my Controllers to an interface so that proxies are used? Is that normal? I do it for services, but have done the controllers as simple POJOs.