Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

客户端线程发生异常 #73

Open
updsky opened this issue Oct 9, 2022 · 0 comments
Open

客户端线程发生异常 #73

updsky opened this issue Oct 9, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@updsky
Copy link

updsky commented Oct 9, 2022

Version & Environment 软件版本和环境

  • BDS Version [e.g. 1.19.31.01]
  • FakePlayer Version [0.5.9]

Describe the bug 你的问题的描述
添加假人时报错:
客户端线程发生异常: java.lang.AssertionError: Unable to initialize required encryption
at com.nukkitx.protocol.bedrock.util.EncryptionUtils.createCipher(EncryptionUtils.java:277)
at com.nukkitx.protocol.bedrock.BedrockSession.enableEncryption(BedrockSession.java:236)
at com.ddf.fakeplayer.network.ClientPacketHandler.handle(ClientPacketHandler.java:94)
at com.nukkitx.protocol.bedrock.packet.ServerToClientHandshakePacket.handle(ServerToClientHandshakePacket.java:19)
at com.ddf.fakeplayer.client.Client.update(Client.java:294)
at com.ddf.fakeplayer.client.Client$ClientThread.run(Client.java:561)
Caused by: java.security.InvalidKeyException: Illegal key size
at javax.crypto.Cipher.checkCryptoPerm(Cipher.java:1039)
at javax.crypto.Cipher.implInit(Cipher.java:805)
at javax.crypto.Cipher.chooseProvider(Cipher.java:864)
at javax.crypto.Cipher.init(Cipher.java:1396)
at javax.crypto.Cipher.init(Cipher.java:1327)
at com.nukkitx.protocol.bedrock.util.EncryptionUtils.createCipher(EncryptionUtils.java:274)
... 5 more

To Reproduce(Optional) 复现该问题的方法(可选)
Steps to reproduce the behavior

Screenshots or log 截图或日志

image

Additional content 附加内容
trusted-key已添加到服务器,并重启过服务了

@updsky updsky added the bug Something isn't working label Oct 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant