NutzCN Logo
问答 打包单独部署提示 did not match the expected credentials
发布于 2303天前 作者 koudepei 4137 次浏览 复制 上一个帖子 下一个帖子
标签: nutzwk

拉了最新的NutzWk的nutzboot-dubbo,再idea工具中运行ok,可以登录。但是打成jar包运行后却无法登录,始终提示用户名和密码错误。不知是什么原因?
详细错误为:
[DEBUG] 10:04:31.438 org.apache.shiro.authc.credential.SimpleCredentialsMatcher.
equals(SimpleCredentialsMatcher.java:96) - Performing credentials equality check
for tokenCredentials of type [org.apache.shiro.crypto.hash.SimpleHash and accou
ntCredentials of type [org.apache.shiro.crypto.hash.SimpleHash] [DEBUG] 10:04:31.441 org.apache.shiro.authc.credential.SimpleCredentialsMatcher.
equals(SimpleCredentialsMatcher.java:102) - Both credentials arguments can be ea
sily converted to byte arrays. Performing array equals comparison
[DEBUG] 10:04:31.442 org.apache.shiro.web.servlet.SimpleCookie.addCookieHeader(S
impleCookie.java:226) - Added HttpServletResponse Cookie [rememberMe=deleteMe; P
ath=/; Max-Age=0; Expires=Thu, 26-Jul-2018 02:04:31 GMT] [ERROR] 10:04:31.443 cn.wizzer.app.web.modules.controllers.platform.sys.SysLogin
Controller.doLogin(SysLoginController.java:214) - Submitted credentials for toke
n [cn.wizzer.app.web.commons.shiro.token.PlatformCaptchaToken - superadmin, reme
mberMe=false (192.168.124.18)] did not match the expected credentials.
org.apache.shiro.authc.IncorrectCredentialsException: Submitted credentials for
token [cn.wizzer.app.web.commons.shiro.token.PlatformCaptchaToken - superadmin,
rememberMe=false (192.168.124.18)] did not match the expected credentials.
at org.apache.shiro.realm.AuthenticatingRealm.assertCredentialsMatch(Aut
henticatingRealm.java:600)
at org.apache.shiro.realm.AuthenticatingRealm.getAuthenticationInfo(Auth
enticatingRealm.java:578)
at org.apache.shiro.authc.pam.ModularRealmAuthenticator.doSingleRealmAut
hentication(ModularRealmAuthenticator.java:180)
at org.apache.shiro.authc.pam.ModularRealmAuthenticator.doAuthenticate(M
odularRealmAuthenticator.java:267)
at org.apache.shiro.authc.AbstractAuthenticator.authenticate(AbstractAut
henticator.java:198)
at org.apache.shiro.mgt.AuthenticatingSecurityManager.authenticate(Authe
nticatingSecurityManager.java:106)
at org.apache.shiro.mgt.DefaultSecurityManager.login(DefaultSecurityMana
ger.java:270)
at org.apache.shiro.subject.support.DelegatingSubject.login(DelegatingSu
bject.java:256)
at cn.wizzer.app.web.modules.controllers.platform.sys.SysLoginController
.doLogin(SysLoginController.java:167)
at cn.wizzer.app.web.modules.controllers.platform.sys.SysLoginController
$FM$doLogin$8988cf0351fecde859e10f0ef9b54142.invoke(SysLoginController.java)
at org.nutz.mvc.impl.processor.MethodInvokeProcessor.process(MethodInvok
eProcessor.java:31)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcesso
r.java:44)
at org.nutz.mvc.impl.processor.AdaptorProcessor.process(AdaptorProcessor
.java:38)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcesso
r.java:44)
at org.nutz.mvc.impl.processor.ActionFiltersProcessor.process(ActionFilt
ersProcessor.java:58)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcesso
r.java:44)
at cn.wizzer.app.web.commons.processor.XssSqlFilterProcessor.process(Xss
SqlFilterProcessor.java:35)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcesso
r.java:44)
at cn.wizzer.app.web.commons.processor.NutShiroProcessor.process(NutShir
oProcessor.java:52)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcesso
r.java:44)
at org.nutz.mvc.impl.processor.ModuleProcessor.process(ModuleProcessor.j
ava:123)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcesso
r.java:44)
at org.nutz.mvc.impl.processor.EncodingProcessor.process(EncodingProcess
or.java:27)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcesso
r.java:44)
at org.nutz.mvc.impl.processor.UpdateRequestAttributesProcessor.process(
UpdateRequestAttributesProcessor.java:15)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcesso
r.java:44)
at cn.wizzer.app.web.commons.processor.GlobalsSettingProcessor.process(G
lobalsSettingProcessor.java:49)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcesso
r.java:44)
at cn.wizzer.app.web.commons.processor.LogTimeProcessor.process(LogTimeP
rocessor.java:21)
at org.nutz.mvc.impl.NutActionChain.doChain(NutActionChain.java:44)
at org.nutz.mvc.impl.ActionInvoker.invoke(ActionInvoker.java:67)
at org.nutz.mvc.ActionHandler.handle(ActionHandler.java:31)
at org.nutz.mvc.NutFilter.doFilter(NutFilter.java:202)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1642)
at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilte
rChain.java:61)
at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.j
ava:108)
at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilt
er.java:137)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerReq
uestFilter.java:125)
at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilte
rChain.java:66)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(Abstrac
tShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiro
Filter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallab
le.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable
.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(Delegating
Subject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(Abs
tractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerReq
uestFilter.java:125)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1642)
at cn.wizzer.app.web.commons.filter.RouteFilter.doFilter(RouteFilter.jav
a:31)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1642)
at org.nutz.mvc.WhaleFilter.doFilter(WhaleFilter.java:171)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1634)
at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(We
bSocketUpgradeFilter.java:215)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1642)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java
:533)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.j
ava:146)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.jav
a:548)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper
.java:132)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandl
er.java:257)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandl
er.java:1595)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandl
er.java:255)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandl
er.java:1317)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandle
r.java:203)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:
473)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandle
r.java:1564)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandle
r.java:201)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandle
r.java:1219)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.j
ava:144)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper
.java:132)
at org.eclipse.jetty.server.Server.handle(Server.java:531)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:352)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.jav
a:260)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(Abstra
ctConnection.java:281)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPoo
l.java:762)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool
.java:680)
at java.lang.Thread.run(Unknown Source)
[DEBUG] 10:04:31.531 org.nutz.plugins.cache.impl.lcache.LCache.fire(LCache.java:
96) - fire channel=LCache:shiro-activeSessionCache msg=7guiahj054h77qkc5m395k4r7
h:6s3ec17mkihaco5hl870lfokbm
[DEBUG] 10:04:31.535 org.nutz.plugins.cache.impl.lcache.CachePubSub.onPMessage(C
achePubSub.java:15) - channel=LCache:shiro-activeSessionCache, msg=7guiahj054h77
qkc5m395k4r7h:6s3ec17mkihaco5hl870lfokbm
[DEBUG] 10:04:31.537 cn.wizzer.app.web.commons.processor.LogTimeProcessor.proces
s(LogTimeProcessor.java:26) - [POST]URI=/platform/login/doLogin 2579ms
[DEBUG] 10:04:31.615 org.apache.shiro.web.servlet.SimpleCookie.readValue(SimpleC
ookie.java:389) - Found 'sid' cookie value [6s3ec17mkihaco5hl870lfokbm] [DEBUG] 10:04:31.627 org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:10
1) - Found mapping for [GET] path=/platform/login/captcha : SysLoginController.n
ext(SysLoginController.java:258)
[DEBUG] 10:04:31.633 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'sysLog
inController'<class cn.wizzer.app.web.modules.controllers.platform.sys.SysLoginC
ontroller>
[DEBUG] 10:04:31.680 cn.wizzer.app.web.commons.processor.LogTimeProcessor.proces
s(LogTimeProcessor.java:26) - [GET ]URI=/platform/login/captcha 49ms
[DEBUG] 10:04:40.519 org.apache.zookeeper.ClientCnxn$SendThread.readResponse(Cli
entCnxn.java:742) - Got ping response for sessionid: 0x10010ebddb0001d after 0ms

[DEBUG] 10:04:53.856 org.apache.zookeeper.ClientCnxn$SendThread.readResponse(Cli
entCnxn.java:742) - Got ping response for sessionid: 0x10010ebddb0001d after 0ms

[DEBUG] 10:05:07.193 org.apache.zookeeper.ClientCnxn$SendThread.readResponse(Cli
entCnxn.java:742) - Got ping response for sessionid: 0x10010ebddb0001d after 0ms

[DEBUG] 10:05:20.531 org.apache.zookeeper.ClientCnxn$SendThread.readResponse(Cli
entCnxn.java:742) - Got ping response for sessionid: 0x10010ebddb0001d after 0ms

[DEBUG] 10:05:33.867 org.apache.zookeeper.ClientCnxn$SendThread.readResponse(Cli
entCnxn.java:742) - Got ping response for sessionid: 0x10010ebddb0001d after 0ms

[DEBUG] 10:05:34.224 com.alibaba.dubbo.remoting.exchange.support.header.Heartbea
tHandler.received(HeartbeatHandler.java:84) - [DUBBO] Receive heartbeat respons
e in thread New I/O client worker #1-1, dubbo version: 5.0.7, current host: 192.
168.124.20
[DEBUG] 10:05:34.222 com.alibaba.dubbo.remoting.exchange.support.header.HeartBea
tTask.run(HeartBeatTask.java:65) - [DUBBO] Send heartbeat to remote channel /19
2.168.124.20:14458, cause: The channel has no data-transmission exceeds a heartb
eat period: 60000ms, dubbo version: 5.0.7, current host: 192.168.124.20

5 回复

是不是连错数据库之类?

应该不会啊 我在IDEA中启动运行都很正常后,才打的包

哦,那等大鲨鱼解答吧

多谢两位大佬 看来也是JCE的原因!

添加回复
请先登陆
回到顶部