登陆时用户名为汉字时就报错:java.lang.RuntimeException: unable to find class for code 32249

提问 已结 1 77
乱草
乱草 VIP3 2018-10-26 16:03:08
悬赏:30积分 收藏
产品:ani 版本:v3.0
各位大神,请教一下,修改了Area实体类(加了3个字段,区域管理也是可以用的),登陆时用户名为汉字时就报错:java.lang.RuntimeException: unable to find class for code 32249,使用英文用户名就不报错.加字段之前使用汉字用户名也不报错.这是什么问题导致的? 错误信息: Authentication failed for token submission [com.jeeplus.modules.sys.security.UsernamePasswordToken - 石万新, rememberMe=false (127.0.0.1)]. Possible unexpected error? (Typical or expected login exceptions should extend from AuthenticationException). net.oschina.j2cache.CacheException: java.io.IOException: java.lang.RuntimeException: unable to find class for code 32249 at net.oschina.j2cache.Level2Cache.get(Level2Cache.java:94) at net.oschina.j2cache.CacheChannel.get(CacheChannel.java:63) at com.jeeplus.common.utils.CacheUtils.get(CacheUtils.java:54) at com.jeeplus.modules.sys.utils.UserUtils.getByLoginName(UserUtils.java:116) at com.jeeplus.modules.sys.service.SystemService.getUserByLoginName(SystemService.java:83) org.apache.shiro.authc.AuthenticationException: Authentication failed for token submission [com.jeeplus.modules.sys.security.UsernamePasswordToken - 石万新, rememberMe=false (127.0.0.1)]. Possible unexpected error? (Typical or expected login exceptions should extend from AuthenticationException). at com.jeeplus.modules.sys.service.SystemService$$FastClassBySpringCGLIB$$ac27496e.invoke(<generated>) at org.apache.shiro.authc.AbstractAuthenticator.authenticate(AbstractAuthenticator.java:214) at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) at org.apache.shiro.mgt.AuthenticatingSecurityManager.authenticate(AuthenticatingSecurityManager.java:106) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:721) at org.apache.shiro.mgt.DefaultSecurityManager.login(DefaultSecurityManager.java:274) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) at org.apache.shiro.subject.support.DelegatingSubject.login(DelegatingSubject.java:260) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) at org.apache.shiro.web.filter.authc.AuthenticatingFilter.executeLogin(AuthenticatingFilter.java:53) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:282) at org.apache.shiro.web.filter.authc.FormAuthenticationFilter.onAccessDenied(FormAuthenticationFilter.java:154) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) at org.apache.shiro.web.filter.AccessControlFilter.onAccessDenied(AccessControlFilter.java:133) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.apache.shiro.web.filter.AccessControlFilter.onPreHandle(AccessControlFilter.java:162) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:656) at org.apache.shiro.web.filter.PathMatchingFilter.isFilterChainContinued(PathMatchingFilter.java:203) at com.jeeplus.modules.sys.service.SystemService$$EnhancerBySpringCGLIB$$57a81b14.getUserByLoginName(<generated>) at org.apache.shiro.web.filter.PathMatchingFilter.preHandle(PathMatchingFilter.java:178) at com.jeeplus.modules.sys.service.SystemService$$FastClassBySpringCGLIB$$ac27496e.invoke(<generated>) at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:131) at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:721) at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:282) at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:387) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:656) at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362) at com.jeeplus.modules.sys.service.SystemService$$EnhancerBySpringCGLIB$$61277066.getUserByLoginName(<generated>) at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125) at com.jeeplus.modules.sys.security.SystemAuthorizingRealm.doGetAuthenticationInfo(SystemAuthorizingRealm.java:87) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346) at org.apache.shiro.realm.AuthenticatingRealm.getAuthenticationInfo(AuthenticatingRealm.java:571) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.shiro.authc.pam.ModularRealmAuthenticator.doSingleRealmAuthentication(ModularRealmAuthenticator.java:180) at org.apache.shiro.authc.pam.ModularRealmAuthenticator.doAuthenticate(ModularRealmAuthenticator.java:267) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197) at org.apache.shiro.authc.AbstractAuthenticator.authenticate(AbstractAuthenticator.java:198) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.apache.shiro.mgt.AuthenticatingSecurityManager.authenticate(AuthenticatingSecurityManager.java:106) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.shiro.mgt.DefaultSecurityManager.login(DefaultSecurityManager.java:274) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.shiro.subject.support.DelegatingSubject.login(DelegatingSubject.java:260) at org.apache.shiro.web.filter.authc.AuthenticatingFilter.executeLogin(AuthenticatingFilter.java:53) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219) at org.apache.shiro.web.filter.authc.FormAuthenticationFilter.onAccessDenied(FormAuthenticationFilter.java:154) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110) at org.apache.shiro.web.filter.AccessControlFilter.onAccessDenied(AccessControlFilter.java:133) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:494) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169) at org.apache.shiro.web.filter.AccessControlFilter.onPreHandle(AccessControlFilter.java:162) at org.apache.shiro.web.filter.PathMatchingFilter.isFilterChainContinued(PathMatchingFilter.java:203) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:1025) at org.apache.shiro.web.filter.PathMatchingFilter.preHandle(PathMatchingFilter.java:178) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:131) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445) at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1137) at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637) at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2555) at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2544) at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83) at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:387) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346) at java.lang.Thread.run(Thread.java:745) Caused by: net.oschina.j2cache.CacheException: java.io.IOException: java.lang.RuntimeException: unable to find class for code 32249 at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at net.oschina.j2cache.Level2Cache.get(Level2Cache.java:94) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at net.oschina.j2cache.CacheChannel.get(CacheChannel.java:63) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197) at com.jeeplus.common.utils.CacheUtils.get(CacheUtils.java:54) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at com.jeeplus.modules.sys.utils.UserUtils.getByLoginName(UserUtils.java:116) at com.jeeplus.modules.sys.service.SystemService.getUserByLoginName(SystemService.java:83) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at com.jeeplus.modules.sys.service.SystemService$$FastClassBySpringCGLIB$$ac27496e.invoke(<generated>) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:721) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:494) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:282) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:1025) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:656) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445) at com.jeeplus.modules.sys.service.SystemService$$EnhancerBySpringCGLIB$$57a81b14.getUserByLoginName(<generated>) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1137) at com.jeeplus.modules.sys.service.SystemService$$FastClassBySpringCGLIB$$ac27496e.invoke(<generated>) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637) at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:721) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2555) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2544) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:282) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) at java.lang.Thread.run(Thread.java:745) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) Caused by: java.io.IOException: java.lang.RuntimeException: unable to find class for code 32249 at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:656) at org.nustaq.serialization.FSTObjectInput.readObject(FSTObjectInput.java:247) at com.jeeplus.modules.sys.service.SystemService$$EnhancerBySpringCGLIB$$61277066.getUserByLoginName(<generated>) at net.oschina.j2cache.util.FSTSerializer.deserialize(FSTSerializer.java:53) at com.jeeplus.modules.sys.security.SystemAuthorizingRealm.doGetAuthenticationInfo(SystemAuthorizingRealm.java:87) at net.oschina.j2cache.util.SerializationUtils.deserialize(SerializationUtils.java:92) at org.apache.shiro.realm.AuthenticatingRealm.getAuthenticationInfo(AuthenticatingRealm.java:571) at net.oschina.j2cache.Level2Cache.get(Level2Cache.java:92) at org.apache.shiro.authc.pam.ModularRealmAuthenticator.doSingleRealmAuthentication(ModularRealmAuthenticator.java:180) ... 72 more at org.apache.shiro.authc.pam.ModularRealmAuthenticator.doAuthenticate(ModularRealmAuthenticator.java:267) Caused by: java.lang.RuntimeException: unable to find class for code 32249 at org.apache.shiro.authc.AbstractAuthenticator.authenticate(AbstractAuthenticator.java:198) at org.nustaq.serialization.FSTClazzNameRegistry.decodeClass(FSTClazzNameRegistry.java:180) ... 43 more at org.nustaq.serialCaused by: java.io.IOException: java.lang.RuntimeException: unable to find class for code 32249 ization.coders.FSTStreamDecoder.readClass(FSTStreamDecoder.java:478) at org.nustaq.serialization.FSTObjectInput.readObject(FSTObjectInput.java:247) at org.nustaq.serialization.FSTObjectInput.readClass(FSTObjectInput.java:939) at net.oschina.j2cache.util.FSTSerializer.deserialize(FSTSerializer.java:53) at org.nustaq.serialization.FSTObjectInput.readObjectWithHeader(FSTObjectInput.java:347) at net.oschina.j2cache.util.SerializationUtils.deserialize(SerializationUtils.java:92) at org.nustaq.serialization.FSTObjectInput.readObjectFields(FSTObjectInput.java:713) at net.oschina.j2cache.Level2Cache.get(Level2Cache.java:92) ... 72 more at org.nustaq.serialization.FSTObjectInput.instantiateAndReadNoSer(FSTObjectInput.java:566) Caused by: java.lang.RuntimeException: unable to find class for code 32249 at org.nustaq.serialization.FSTObjectInput.readObjectWithHeader(FSTObjectInput.java:374) at org.nustaq.serialization.FSTClazzNameRegistry.decodeClass(FSTClazzNameRegistry.java:180) at org.nustaq.serialization.FSTObjectInput.readObjectFields(FSTObjectInput.java:713) at org.nustaq.serialization.coders.FSTStreamDecoder.readClass(FSTStreamDecoder.java:478) at org.nustaq.serialization.FSTObjectInput.instantiateAndReadNoSer(FSTObjectInput.java:566) at org.nustaq.serialization.FSTObjectInput.readObjectWithHeader(FSTObjectInput.java:374) at org.nustaq.serialization.FSTObjectInput.readObjectFields(FSTObjectInput.java:713) at org.nustaq.serialization.FSTObjectInput.readClass(FSTObjectInput.java:939) at org.nustaq.serialization.FSTObjectInput.readObjectWithHeader(FSTObjectInput.java:347) at org.nustaq.serialization.FSTObjectInput.instantiateAndReadNoSer(FSTObjectInput.java:566) at org.nustaq.serialization.FSTObjectInput.readObjectWithHeader(FSTObjectInput.java:374) at org.nustaq.serialization.FSTObjectInput.readObjectFields(FSTObjectInput.java:713) at org.nustaq.serialization.FSTObjectInput.instantiateAndReadNoSer(FSTObjectInput.java:566) at org.nustaq.serialization.FSTObjectInput.readObjectFields(FSTObjectInput.java:713) at org.nustaq.serialization.FSTObjectInput.readObjectWithHeader(FSTObjectInput.java:374) at org.nustaq.serialization.FSTObjectInput.instantiateAndReadNoSer(FSTObjectInput.java:566) at org.nustaq.serialization.FSTObjectInput.readObjectWithHeader(FSTObjectInput.java:374) at org.nustaq.serialization.FSTObjectInput.readObjectFields(FSTObjectInput.java:713) at org.nustaq.serialization.FSTObjectInput.instantiateAndReadNoSer(FSTObjectInput.java:566) at org.nustaq.serialization.FSTObjectInput.readObjectInternal(FSTObjectInput.java:331) at org.nustaq.serialization.FSTObjectInput.readObjectWithHeader(FSTObjectInput.java:374) at org.nustaq.serialization.FSTObjectInput.readObject(FSTObjectInput.java:311) at org.nustaq.serialization.FSTObjectInput.readObjectFields(FSTObjectInput.java:713) at org.nustaq.serialization.FSTObjectInput.readObject(FSTObjectInput.java:245) at org.nustaq.serialization.FSTObjectInput.instantiateAndReadNoSer(FSTObjectInput.java:566) ... 75 more at org.nustaq.serialization.FSTObjectInput.readObjectWithHeader(FSTObjectInput.java:374) at org.nustaq.serialization.FSTObjectInput.readObjectFields(FSTObjectInput.java:713) at org.nustaq.serialization.FSTObjectInput.instantiateAndReadNoSer(FSTObjectInput.java:566) at org.nustaq.serialization.FSTObjectInput.readObjectWithHeader(FSTObjectInput.java:374) at org.nustaq.serialization.FSTObjectInput.readObjectInternal(FSTObjectInput.java:331) at org.nustaq.serialization.FSTObjectInput.readObject(FSTObjectInput.java:311) at org.nustaq.serialization.FSTObjectInput.readObject(FSTObjectInput.java:245)
回帖
  • 2018-10-29 14:08:58   最后修改:2018-10-30 15:15:57
    清理缓存对象就行了。 修改了 ,被缓存的java对象,例如 User Office等,要清理一下,否则会导致反序列化失败。
    1 回复