Problem/Bug Authorization plugin error

Discussion in 'Bukkit Help' started by Woodpecker, Aug 2, 2021.

Thread Status:
Not open for further replies.
  1. Offline

    Woodpecker

    Hello, friends!
    I ran into a problem. I have a plugin for authorization that gives some kind of error, help me solve this problem...

    Error logs:
    Code:
    [10:23:06 INFO]: [BaronessAuth] [BaronessAuth] [ERROR] --- An error occurred while executing the SQL query ---
    [10:23:06 INFO]: [BaronessAuth] [BaronessAuth] [ERROR] Query: SELECT * FROM `ba_users` WHERE nickname ="OGOS_Rofler1337"
    [10:23:06 INFO]: [BaronessAuth] [BaronessAuth] [ERROR] Connected: false
    [10:23:06 INFO]: [BaronessAuth] [BaronessAuth] [ERROR] Async: false
    [10:23:06 WARN]: com.mysql.cj.jdbc.exceptions.CommunicationsException: The last packet successfully received from the server was 858 043 milliseconds ago. The last packet sent successfully to the server was 858 043 milliseconds ago. is longer than the server configured value of 'wait_timeout'. You should consider either expiring and/or testing connection validity before use in your application, increasing the server configured values for client timeouts, or using the Connector/J connection property 'autoReconnect=true' to avoid this problem.
    [10:23:06 WARN]:        at com.mysql.cj.jdbc.exceptions.SQLError.createCommunicationsException(SQLError.java:174)
    [10:23:06 WARN]:        at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:64)
    [10:23:06 WARN]:        at com.mysql.cj.jdbc.StatementImpl.executeQuery(StatementImpl.java:1198)
    [10:23:06 WARN]:        at ru.baronessdev.paid.auth.BY3.BY3.BY3.BgL(SQLDatabase.java:68)
    [10:23:06 WARN]:        at ru.baronessdev.paid.auth.BY3.BY3.BLu(MySQL.java:13060)
    [10:23:06 WARN]:        at ru.baronessdev.paid.auth.api.AuthDataManagerAPI.getProfile(AuthDataManagerAPI.java:63)
    [10:23:06 WARN]:        at ru.baronessdev.paid.auth.BgL.BgL.BgL.bDS.BY3(ConnectionNickFilter.java:48)
    [10:23:06 WARN]:        at ru.baronessdev.paid.auth.BgL.BgL.BY3.onConnectFilter(ConnectListener.java:45)
    [10:23:06 WARN]:        at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor157.execute(Unknown Source)
    [10:23:06 WARN]:        at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:69)
    [10:23:06 WARN]:        at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:76)
    [10:23:06 WARN]:        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70)
    [10:23:06 WARN]:        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:624)
    [10:23:06 WARN]:        at net.minecraft.server.network.LoginListener$LoginHandler.fireEvents(LoginListener.java:361)
    [10:23:06 WARN]:        at net.minecraft.server.network.LoginListener$1.run(LoginListener.java:252)
    [10:23:06 WARN]:        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
    [10:23:06 WARN]:        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
    [10:23:06 WARN]:        at java.base/java.lang.Thread.run(Thread.java:831)
    [10:23:06 WARN]: Caused by: com.mysql.cj.exceptions.CJCommunicationsException: The last packet successfully received from the server was 858 043 milliseconds ago. The last packet sent successfully to the server was 858 043 milliseconds ago. is longer than the server configured value of 'wait_timeout'. You should consider either expiring and/or testing connection validity before use in your application, increasing the server configured values for client timeouts, or using the Connector/J connection property 'autoReconnect=true' to avoid this problem.
    [10:23:06 WARN]:        at jdk.internal.reflect.GeneratedConstructorAccessor170.newInstance(Unknown Source)
    [10:23:06 WARN]:        at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    [10:23:06 WARN]:        at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
    [10:23:06 WARN]:        at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
    [10:23:06 WARN]:        at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:61)
    [10:23:06 WARN]:        at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:105)
    [10:23:06 WARN]:        at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:151)
    [10:23:06 WARN]:        at com.mysql.cj.exceptions.ExceptionFactory.createCommunicationsException(ExceptionFactory.java:167)
    [10:23:06 WARN]:        at com.mysql.cj.protocol.a.NativeProtocol.send(NativeProtocol.java:577)
    [10:23:06 WARN]:        at com.mysql.cj.protocol.a.NativeProtocol.sendCommand(NativeProtocol.java:632)
    [10:23:06 WARN]:        at com.mysql.cj.protocol.a.NativeProtocol.sendQueryPacket(NativeProtocol.java:948)
    [10:23:06 WARN]:        at com.mysql.cj.protocol.a.NativeProtocol.sendQueryString(NativeProtocol.java:894)
    [10:23:06 WARN]:        at com.mysql.cj.NativeSession.execSQL(NativeSession.java:1073)
    [10:23:06 WARN]:        at com.mysql.cj.jdbc.StatementImpl.executeQuery(StatementImpl.java:1166)
    [10:23:06 WARN]:        ... 15 more
    [10:23:06 WARN]: Caused by: java.net.SocketException: An established connection was aborted by the software in your host machine
    [10:23:06 WARN]:        at java.base/sun.nio.ch.NioSocketImpl.implWrite(NioSocketImpl.java:420)
    [10:23:06 WARN]:        at java.base/sun.nio.ch.NioSocketImpl.write(NioSocketImpl.java:440)
    [10:23:06 WARN]:        at java.base/sun.nio.ch.NioSocketImpl$2.write(NioSocketImpl.java:826)
    [10:23:06 WARN]:        at java.base/java.net.Socket$SocketOutputStream.write(Socket.java:1045)
    [10:23:06 WARN]:        at java.base/java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:81)
    [10:23:06 WARN]:        at java.base/java.io.BufferedOutputStream.flush(BufferedOutputStream.java:142)
    [10:23:06 WARN]:        at com.mysql.cj.protocol.a.SimplePacketSender.send(SimplePacketSender.java:55)
    [10:23:06 WARN]:        at com.mysql.cj.protocol.a.TimeTrackingPacketSender.send(TimeTrackingPacketSender.java:50)
    [10:23:06 WARN]:        at com.mysql.cj.protocol.a.NativeProtocol.send(NativeProtocol.java:568)
    [10:23:06 WARN]:        ... 20 more
    [10:23:06 ERROR]: Could not pass event AsyncPlayerPreLoginEvent to BaronessAuth v224
    java.lang.NullPointerException: Cannot invoke "java.sql.ResultSet.next()" because the return value of "ru.baronessdev.paid.auth.BY3.BY3.BY3.BgL(String, ru.baronessdev.paid.auth.enums.data.SQLQueryType, boolean)" is null
            at ru.baronessdev.paid.auth.BY3.BY3.BLu(MySQL.java:162) ~[?:?]
            at ru.baronessdev.paid.auth.api.AuthDataManagerAPI.getProfile(AuthDataManagerAPI.java:63) ~[?:?]
            at ru.baronessdev.paid.auth.BgL.BgL.BgL.bDS.BY3(ConnectionNickFilter.java:48) ~[?:?]
            at ru.baronessdev.paid.auth.BgL.BgL.BY3.onConnectFilter(ConnectListener.java:45) ~[?:?]
            at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor157.execute(Unknown Source) ~[?:?]
            at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:69) ~[patched_1.17.1.jar:git-Purpur-1275]
            at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:76) ~[patched_1.17.1.jar:git-Purpur-1275]
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[patched_1.17.1.jar:git-Purpur-1275]
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:624) ~[patched_1.17.1.jar:git-Purpur-1275]
            at net.minecraft.server.network.ServerLoginPacketListenerImpl$LoginHandler.fireEvents(ServerLoginPacketListenerImpl.java:361) ~[?:?]
            at net.minecraft.server.network.ServerLoginPacketListenerImpl$1.run(ServerLoginPacketListenerImpl.java:252) ~[?:?]
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) ~[?:?]
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) ~[?:?]
            at java.lang.Thread.run(Thread.java:831) [?:?]

    Previously, when the server was hosted on Linux, everything worked perfectly.
    I put it on my computer, where the OS is Windows 10, and the database was created using the Open Server program or whatever it is now called "OS Panel".
    Perhaps still need to configure this program?
     
    Last edited: Aug 2, 2021
Thread Status:
Not open for further replies.

Share This Page