Skip to content

Instantly share code, notes, and snippets.

@tvd12
Created January 19, 2024 10:12
Show Gist options
  • Save tvd12/6ed3d6f7a8890c6cf5c2ace187e7d1d4 to your computer and use it in GitHub Desktop.
Save tvd12/6ed3d6f7a8890c6cf5c2ace187e7d1d4 to your computer and use it in GitHub Desktop.
2024-01-19 16:01:43.982 [qtp1071783182-87] WARN c.t.e.s.jetty.JettyBlockingServlet handle request uri: /login error
java.lang.IllegalStateException: can not generate access token for admin id: 1
at org.youngmonkeys.ezyplatform.util.AccessTokens.generateAccessToken(AccessTokens.java:46)
at org.youngmonkeys.ezyplatform.service.DefaultAdminAccessTokenService.generateAccessToken(DefaultAdminAccessTokenService.java:60)
at org.youngmonkeys.ezyplatform.admin.service.AdminAdminService.newAdminAccessToken(AdminAdminService.java:508)
at org.youngmonkeys.ezyplatform.admin.service.AdminAdminService.getOrCreateAccessTokenByAdminId(AdminAdminService.java:198)
at org.youngmonkeys.ezyplatform.admin.controller.view.AdminAuthenticationController.doPost(AdminAuthenticationController.java:158)
at AdminAuthenticationController$doPost$Handler$AutoImpl$71.handleRequest(AdminAuthenticationController$doPost$Handler$AutoImpl$71.java)
at com.tvd12.ezyhttp.server.core.handler.AbstractRequestHandler.handle(AbstractRequestHandler.java:44)
at com.tvd12.ezyhttp.server.core.servlet.BlockingServlet.handleRequest(BlockingServlet.java:210)
at com.tvd12.ezyhttp.server.core.servlet.BlockingServlet.doHandleRequest(BlockingServlet.java:127)
at com.tvd12.ezyhttp.server.core.servlet.BlockingServlet.doPost(BlockingServlet.java:101)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:554)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1440)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:505)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1355)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:722)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
at org.eclipse.jetty.server.Server.handle(Server.java:516)
at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:487)
at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:732)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:479)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:409)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883)
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.security.InvalidKeyException: Invalid AES key length: 64 bytes
at com.sun.crypto.provider.AESCrypt.init(AESCrypt.java:87)
at com.sun.crypto.provider.CipherBlockChaining.init(CipherBlockChaining.java:95)
at com.sun.crypto.provider.CipherCore.init(CipherCore.java:591)
at com.sun.crypto.provider.AESCipher.engineInit(AESCipher.java:346)
at javax.crypto.Cipher.implInit(Cipher.java:809)
at javax.crypto.Cipher.chooseProvider(Cipher.java:867)
at javax.crypto.Cipher.init(Cipher.java:1399)
at javax.crypto.Cipher.init(Cipher.java:1330)
at com.tvd12.ezyfox.security.EzyAesCrypt.encrypt(EzyAesCrypt.java:45)
at org.youngmonkeys.ezyplatform.util.AccessTokens.generateAccessToken(AccessTokens.java:44)
... 38 common frames omitted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment