How do I get rid of these warnings? (Java EE)
Code:2010-12-03 21:54:06,956 WARN [org.springframework.aop.framework.Cglib2AopProxy] - <Unable to proxy method [public final void org.restlet.resource.UniformResource.init(org.restlet.Context,org.restlet.Request,org.restlet.Response)] because it is final: All calls to this method via a proxy will be routed directly to the proxy.> 2010-12-03 21:54:06,957 WARN [org.springframework.aop.framework.Cglib2AopProxy] - <Unable to proxy method [public final void org.restlet.resource.UniformResource.release()] because it is final: All calls to this method via a proxy will be routed directly to the proxy.> 2010-12-03 21:54:07,408 WARN [org.springframework.aop.framework.Cglib2AopProxy] - <Unable to proxy method [public final void org.restlet.resource.UniformResource.init(org.restlet.Context,org.restlet.Request,org.restlet.Response)] because it is final: All calls to this method via a proxy will be routed directly to the proxy.> 2010-12-03 21:54:07,409 WARN [org.springframework.aop.framework.Cglib2AopProxy] - <Unable to proxy method [public final void org.restlet.resource.UniformResource.release()] because it is final: All calls to this method via a proxy will be routed directly to the proxy.> 2010-12-03 21:54:07,485 WARN [org.springframework.aop.framework.Cglib2AopProxy] - <Unable to proxy method [public final void org.restlet.resource.UniformResource.init(org.restlet.Context,org.restlet.Request,org.restlet.Response)] because it is final: All calls to this method via a proxy will be routed directly to the proxy.> 2010-12-03 21:54:07,485 WARN [org.springframework.aop.framework.Cglib2AopProxy] - <Unable to proxy method [public final void org.restlet.resource.UniformResource.release()] because it is final: All calls to this method via a proxy will be routed directly to the proxy.> 2010-12-03 21:54:07,602 WARN [org.springframework.aop.framework.Cglib2AopProxy] - <Unable to proxy method [public final void org.restlet.resource.UniformResource.init(org.restlet.Context,org.restlet.Request,org.restlet.Response)] because it is final: All calls to this method via a proxy will be routed directly to the proxy.> 2010-12-03 21:54:07,602 WARN [org.springframework.aop.framework.Cglib2AopProxy] - <Unable to proxy method [public final void org.restlet.resource.UniformResource.release()] because it is final: All calls to this method via a proxy will be routed directly to the proxy.> 2010-12-03 21:54:07,706 WARN [org.springframework.aop.framework.Cglib2AopProxy] - <Unable to proxy method [public final void org.restlet.resource.UniformResource.init(org.restlet.Context,org.restlet.Request,org.restlet.Response)] because it is final: All calls to this method via a proxy will be routed directly to the proxy.> 2010-12-03 21:54:07,706 WARN [org.springframework.aop.framework.Cglib2AopProxy] - <Unable to proxy method [public final void org.restlet.resource.UniformResource.release()] because it is final: All calls to this method via a proxy will be routed directly to the proxy.>
I'm using
Code:public class GateKeeper extends Application { ... @Override @Transactional public synchronized Restlet createInboundRoot() { Router router = new Router(getContext()); router.attach("/{version}/FirstClass.{response_format}", FirstClass.class); router.attach("/{version}/ThirdClass.{response_format}", ThirdClass.class); router.attach("/{version}/ThirdClass.{response_format}", ThirdClass.class); return router; }


Reply With Quote