spring aop与hibernate 执行查询

570848945 发布于 01/21 15:24
阅读 176
收藏 0

在escplise的tomcat运行的好好地,部署到weblogic报错,请大神指教。。

org.springframework.aop.AopInvocationException: AOP configuration seems to be invalid: tried calling method [public abstract java.util.List com.sgcc.uap.persistence.IHibernateDao.queryForListWithSql(java.lang.String,java.lang.Object[])] on target [com.sgcc.uap.kernel.spring.config.model.ModuleReferenceHolder@494e29d]; nested exception is java.lang.IllegalArgumentException: object is not an instance of declaring class
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:326)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196)
    at com.sun.proxy.$Proxy623.queryForListWithSql(Unknown Source)
    at com.sgcc.xsgl.common.sysCode.bizc.SysCodeBizc.getLoginDeptInfo(SysCodeBizc.java:485)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
    at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at com.sgcc.uap.bizc.interceptor.BizLogicInterceptor.invoke(BizLogicInterceptor.java:41)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
    at com.sun.proxy.$Proxy630.getLoginDeptInfo(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
    at com.sgcc.uap.monitor.interceptor.BizcInterceptor.invoke(BizcInterceptor.java:47)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
    at com.sun.proxy.$Proxy630.getLoginDeptInfo(Unknown Source)
    at com.sgcc.xsgl.common.sysCode.SysCodeController.iscInfo(SysCodeController.java:197)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:213)
    at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:126)
    at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:96)
    at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:617)
    at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:578)
    at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)
    at com.sgcc.uap.kernel.spring.ModuleWebDispatcher.doDispatch(ModuleWebDispatcher.java:211)
    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
    at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at com.sgcc.uap.kernel.web.adaptor.ModuleServletAdaptor.service(ModuleServletAdaptor.java:119)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at com.sgcc.uap.kernel.httpservice.internal.ServletRegistration.doHandleRequest(ServletRegistration.java:170)
    at com.sgcc.uap.kernel.httpservice.internal.AbstractRegistration.handleRequest(AbstractRegistration.java:58)
    at com.sgcc.uap.kernel.httpservice.internal.ProxyServlet.processRequest(ProxyServlet.java:345)
    at com.sgcc.uap.kernel.httpservice.internal.ProxyServlet.service(ProxyServlet.java:175)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at com.sgcc.uap.kernel.web.server.UapModuleContextServlet.service(UapModuleContextServlet.java:158)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at com.sgcc.uap.kernel.web.server.UapModuleContextFilter$FilterChainImpl.doFilter(UapModuleContextFilter.java:188)
    at com.web.utils.CorsFilter.doFilter(CorsFilter.java:52)
    at com.sgcc.uap.kernel.web.server.UapModuleContextFilter$FilterChainImpl.doFilter(UapModuleContextFilter.java:182)
    at com.sgcc.uap.bpm.filter.BPMSessionFilter.doFilter(BPMSessionFilter.java:42)
    at com.sgcc.uap.kernel.web.server.UapModuleContextFilter$FilterChainImpl.doFilter(UapModuleContextFilter.java:182)
    at com.cepri.it.rcp.osgi.impl.UAPFilter.doFilter(UAPFilter.java:26)
    at com.sgcc.uap.kernel.web.server.UapModuleContextFilter$FilterChainImpl.doFilter(UapModuleContextFilter.java:182)
    at com.sgcc.uap.integrate.isc.filter.ClientContextFilter.doFilter(ClientContextFilter.java:84)
    at com.sgcc.uap.kernel.web.server.UapModuleContextFilter$FilterChainImpl.doFilter(UapModuleContextFilter.java:182)
    at com.sgcc.uap.integrate.isc.filter.AuthFilter.doFilter(AuthFilter.java:174)
    at com.sgcc.uap.kernel.web.server.UapModuleContextFilter$FilterChainImpl.doFilter(UapModuleContextFilter.java:182)
    at org.jasig.cas.client.validation.AbstractTicketValidationFilter.doFilter(AbstractTicketValidationFilter.java:242)
    at com.sgcc.uap.integrate.isc.filter.IscCas20ProxyReceivingTicketValidationFilter.doFilter(IscCas20ProxyReceivingTicketValidationFilter.java:93)
    at com.sgcc.uap.kernel.web.server.UapModuleContextFilter$FilterChainImpl.doFilter(UapModuleContextFilter.java:182)
    at com.sgcc.uap.integrate.isc.filter.IscAuthenticationFilter.doFilter(IscAuthenticationFilter.java:121)
    at com.sgcc.uap.kernel.web.server.UapModuleContextFilter$FilterChainImpl.doFilter(UapModuleContextFilter.java:182)
    at org.jasig.cas.client.javafilter.session.SingleSignOutFilter.doFilter(SingleSignOutFilter.java:76)
    at com.sgcc.isc.ualogin.client.filter.IscSingleSignOutFilter.doFilter(IscSingleSignOutFilter.java:48)
    at com.sgcc.uap.integrate.isc.filter.SingleSignOutFilter.doFilter(SingleSignOutFilter.java:58)
    at com.sgcc.uap.kernel.web.server.UapModuleContextFilter$FilterChainImpl.doFilter(UapModuleContextFilter.java:182)
    at com.chinapower.bi.framework.Connector.doRequest(Connector.java:123)
    at com.chinapower.bi.framework.Connector.doFilter(Connector.java:66)
    at com.sgcc.uap.kernel.web.server.UapModuleContextFilter$FilterChainImpl.doFilter(UapModuleContextFilter.java:182)
    at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
    at com.sgcc.uap.kernel.web.server.UapModuleContextFilter$FilterChainImpl.doFilter(UapModuleContextFilter.java:182)
    at com.sgcc.uap.kernel.web.server.UapModuleContextFilter.doFilter(UapModuleContextFilter.java:105)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
Caused by: java.lang.IllegalArgumentException: object is not an instance of declaring class
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)
    ... 95 more

加载中
0
w
wn_tm
参数异常,是不是引入参数不合法
返回顶部
顶部