xautlx / s2jh

A Java/J2EE development framework for enterprise system based on Struts/Spring/JPA/Hibernate and jquery/bootstrap
GNU Lesser General Public License v3.0
321 stars 242 forks source link

用户管理——最新代码,该问题依然存在 #17

Closed smilesman closed 11 years ago

smilesman commented 11 years ago

数据库中用户信息是从其他系统迁移过来,AuthContextHolder.getAuthUserDetails().getAclCodePrefixs() 没有值,findByPage时候会报出空异 ___错误异常-—————————————————————————— java.lang.NullPointerException: null at lab.s2jh.auth.web.action.UserController.findByPage(UserController.java:160) ~[common-service-1.0.0.jar:1.0.0] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_32] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_32] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_32] at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_32] at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:450) ~[xwork-core-2.3.15.1.jar:2.3.15.1] at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:289) ~[xwork-core-2.3.15.1.jar:2.3.15.1] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:252) ~[xwork-core-2.3.15.1.jar:2.3.15.1] at org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138) ~[struts2-rest-plugin-2.3.15.1.jar:2.3.15.1] at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256) ~[struts2-core-2.3.15.1.jar:2.3.15.1] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) ~[xwork-core-2.3.15.1.jar:2.3.15.1] at org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138) ~[struts2-rest-plugin-2.3.15.1.jar:2.3.15.1] at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:167) ~[xwork-core-2.3.15.1.jar:2.3.15.1] at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) ~[xwork-core-2.3.15.1.jar:2.3.15.1] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) ~[xwork-core-2.3.15.1.jar:2.3.15.1] at org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138) ~[struts2-rest-plugin-2.3.15.1.jar:2.3.15.1] at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265) ~[xwork-core-2.3.15.1.jar:2.3.15.1] at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68) ~[struts2-core-2.3.15.1.jar:2.3.15.1] at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) ~[xwork-core-2.3.15.1.jar:2.3.15.1] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) ~[xwork-core-2.3.15.1.jar:2.3.15.1] at org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138) ~[struts2-rest-plugin-2.3.15.1.jar:2.3.15.1] at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138) ~[xwork-core-2.3.15.1.jar:2.3.15.1] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) ~[xwork-core-2.3.15.1.jar:2.3.15.1] at org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138) ~[struts2-rest-plugin-2.3.15.1.jar:2.3.15.1] at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:239) ~[xwork-core-2.3.15.1.jar:2.3.15.1] at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) ~[xwork-core-2.3.15.1.jar:2.3.15.1] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) ~[xwork-core-2.3.15.1.jar:2.3.15.1] at org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138) ~[struts2-rest-plugin-2.3.15.1.jar:2.3.15.1] at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:239) ~[xwork-core-2.3.15.1.jar:2.3.15.1] at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) ~[xwork-core-2.3.15.1.jar:2.3.15.1] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) ~[xwork-core-2.3.15.1.jar:2.3.15.1] at org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138) ~[struts2-rest-plugin-2.3.15.1.jar:2.3.15.1] at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191) ~[xwork-core-2.3.15.1.jar:2.3.15.1] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) ~[xwork-core-2.3.15.1.jar:2.3.15.1] at org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138) ~[struts2-rest-plugin-2.3.15.1.jar:2.3.15.1] at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73) ~[struts2-core-2.3.15.1.jar:2.3.15.1] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) ~[xwork-core-2.3.15.1.jar:2.3.15.1] at org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138) ~[struts2-rest-plugin-2.3.15.1.jar:2.3.15.1] at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91) ~[struts2-core-2.3.15.1.jar:2.3.15.1] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) ~[xwork-core-2.3.15.1.jar:2.3.15.1] at org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138) ~[struts2-rest-plugin-2.3.15.1.jar:2.3.15.1] at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:252) ~[struts2-core-2.3.15.1.jar:2.3.15.1] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) ~[xwork-core-2.3.15.1.jar:2.3.15.1] at org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138) ~[struts2-rest-plugin-2.3.15.1.jar:2.3.15.1] at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100) ~[xwork-core-2.3.15.1.jar:2.3.15.1] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) ~[xwork-core-2.3.15.1.jar:2.3.15.1] at org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138) ~[struts2-rest-plugin-2.3.15.1.jar:2.3.15.1] at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141) ~[xwork-core-2.3.15.1.jar:2.3.15.1] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) ~[xwork-core-2.3.15.1.jar:2.3.15.1] at org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138) ~[struts2-rest-plugin-2.3.15.1.jar:2.3.15.1] at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145) ~[xwork-core-2.3.15.1.jar:2.3.15.1] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) ~[xwork-core-2.3.15.1.jar:2.3.15.1] at org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138) ~[struts2-rest-plugin-2.3.15.1.jar:2.3.15.1] at lab.s2jh.core.web.interceptor.ExtPrepareInterceptor.doIntercept(ExtPrepareInterceptor.java:67) ~[core-service-1.0.0.jar:1.0.0] at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) ~[xwork-core-2.3.15.1.jar:2.3.15.1] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) ~[xwork-core-2.3.15.1.jar:2.3.15.1] at org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138) ~[struts2-rest-plugin-2.3.15.1.jar:2.3.15.1] at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164) ~[struts2-core-2.3.15.1.jar:2.3.15.1] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) ~[xwork-core-2.3.15.1.jar:2.3.15.1] at org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138) ~[struts2-rest-plugin-2.3.15.1.jar:2.3.15.1] at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193) ~[xwork-core-2.3.15.1.jar:2.3.15.1] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) ~[xwork-core-2.3.15.1.jar:2.3.15.1] at org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138) ~[struts2-rest-plugin-2.3.15.1.jar:2.3.15.1] at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:189) ~[xwork-core-2.3.15.1.jar:2.3.15.1] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) ~[xwork-core-2.3.15.1.jar:2.3.15.1] at org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138) ~[struts2-rest-plugin-2.3.15.1.jar:2.3.15.1] at lab.s2jh.core.web.interceptor.ExtTokenInterceptor.doIntercept(ExtTokenInterceptor.java:49) ~[core-service-1.0.0.jar:1.0.0] at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) ~[xwork-core-2.3.15.1.jar:2.3.15.1] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) ~[xwork-core-2.3.15.1.jar:2.3.15.1] at org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138) ~[struts2-rest-plugin-2.3.15.1.jar:2.3.15.1] at com.opensymphony.xwork2.DefaultActionProxy.execute(DefaultActionProxy.java:147) ~[xwork-core-2.3.15.1.jar:2.3.15.1] at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:563) ~[struts2-core-2.3.15.1.jar:2.3.15.1] at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77) ~[struts2-core-2.3.15.1.jar:2.3.15.1] at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99) ~[struts2-core-2.3.15.1.jar:2.3.15.1] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) ~[catalina.jar:7.0.35.B] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) ~[catalina.jar:7.0.35.B] at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:186) ~[spring-security-web-3.1.3.RELEASE.jar:3.1.3.RELEASE] at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160) ~[spring-security-web-3.1.3.RELEASE.jar:3.1.3.RELEASE] at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346) ~[spring-web-3.1.3.RELEASE.jar:3.1.3.RELEASE] at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259) ~[spring-web-3.1.3.RELEASE.jar:3.1.3.RELEASE] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) ~[catalina.jar:7.0.35.B] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) ~[catalina.jar:7.0.35.B] at lab.s2jh.core.web.filter.HttpRequestLogFilter.doFilter(HttpRequestLogFilter.java:113) ~[core-service-1.0.0.jar:1.0.0] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) ~[catalina.jar:7.0.35.B] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) ~[catalina.jar:7.0.35.B] at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) ~[spring-web-3.1.3.RELEASE.jar:3.1.3.RELEASE] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) ~[spring-web-3.1.3.RELEASE.jar:3.1.3.RELEASE] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) ~[catalina.jar:7.0.35.B] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) ~[catalina.jar:7.0.35.B] at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:147) ~[spring-orm-3.1.3.RELEASE.jar:3.1.3.RELEASE] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) ~[spring-web-3.1.3.RELEASE.jar:3.1.3.RELEASE] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) ~[catalina.jar:7.0.35.B] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) ~[catalina.jar:7.0.35.B] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) ~[catalina.jar:7.0.35.B] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) ~[catalina.jar:7.0.35.B] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) ~[catalina.jar:7.0.35.B] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) ~[catalina.jar:7.0.35.B] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) [catalina.jar:7.0.35.B] at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936) [catalina.jar:7.0.35.B] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) [catalina.jar:7.0.35.B] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) [catalina.jar:7.0.35.B] at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004) [tomcat-coyote.jar:7.0.35.B] at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) [tomcat-coyote.jar:7.0.35.B] at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312) [tomcat-coyote.jar:7.0.35.B] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [na:1.6.0_32] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [na:1.6.0_32] at java.lang.Thread.run(Thread.java:662) [na:1.6.0_32]

xautlx commented 11 years ago

Fixed