L2JMobius

High Five BadPaddingException: Message is larger than modulus

kinghanker · 6 · 2588

Offline kinghanker

  • Knight
  • ***
    • Posts: 64
It's probably not a bug but I don't know the source of this message and I don't know what was happening to the server when it appeared. Does anyone know how to solve?




Offline kinghanker

  • Knight
  • ***
    • Posts: 64
Now it has! It happened only once but anyway it's important to know the reason to be able to catalog this information.
I didn't do a deeper search because of the time but I took a quick look at the oracle website and found this information: https://community.oracle.com/tech/developers/discussion/1529911/badpaddingexception-message-is-larger-than-modulus


Offline kinghanker

  • Knight
  • ***
    • Posts: 64
I think I figured out the reason for this message: the player was using a custom interface and a modified system, it allows the password to be up to 68 characters long.
I'm guessing that this is it.... that was what seemed most acceptable to me.


Offline tomalko

  • Heir
  • **
    • Posts: 12
I encounter the same error all the time.  How can it be solved

Code: [Select]
avax.crypto.BadPaddingException: Message is larger than modulus
at java.base/sun.security.rsa.RSACore.parseMsg(RSACore.java:222)
at java.base/sun.security.rsa.RSACore.crtCrypt(RSACore.java:174)
at java.base/sun.security.rsa.RSACore.rsa(RSACore.java:130)
at java.base/com.sun.crypto.provider.RSACipher.doFinal(RSACipher.java:371)
at java.base/com.sun.crypto.provider.RSACipher.engineDoFinal(RSACipher.java:418)
at java.base/javax.crypto.Cipher.doFinal(Cipher.java:2417)
at org.l2jmobius.loginserver.network.clientpackets.RequestAuthLogin.run(RequestAuthLogin.java:80)
at org.l2jmobius.loginserver.network.clientpackets.RequestAuthLogin.run(RequestAuthLogin.java:43)
at org.l2jmobius.loginserver.network.LoginClient.channelRead0(LoginClient.java:103)
at org.l2jmobius.loginserver.network.LoginClient.channelRead0(LoginClient.java:47)
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:327)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:299)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:327)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:299)
at io.netty.handler.codec.ByteToMessageCodec.channelRead(ByteToMessageCodec.java:103)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:327)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:299)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:722)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:623)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:586)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:496)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.base/java.lang.Thread.run(Thread.java:833)