Cannot invoke "java.lang.reflect.Field.get(Object)" because "com.btk5h.skriptdb.SkriptUtil.STRING" is null #24
Labels
No Label
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Limework/skript-db#24
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
[21:54:25 ERROR]: #!#! [21:54:25 ERROR]: #!#! [Skript] Severe Error: [21:54:25 ERROR]: #!#! [21:54:25 ERROR]: #!#! Something went horribly wrong with Skript. [21:54:25 ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either. [21:54:25 ERROR]: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons). [21:54:25 ERROR]: #!#! Here is full list of them: [21:54:25 ERROR]: #!#! skript-placeholders v1.5.2 (https://github.com/APickledWalrus/skript-placeholders) skript-reflect v2.4 (https://github.com/SkriptLang/skript-reflect) skript-gui v1.3 (https://github.com/APickledWalrus/skript-gui) ItemsAdder v3.6.3-beta-9 (devs.beer) SkBee v2.18.4 (https://github.com/ShaneBeee/SkBee) Skungee v2.0.0-BETA-5 skript-yaml v1.5 Skellett v2.0.9 (https://forums.skunity.com/resources/skellett.24/) Skent v3.2.0 BungeeSK v2.0.0 (https://github.com/ZorgBtw/BungeeSK) skript-db v1.4.0 [21:54:25 ERROR]: #!#! We could not identify which of those are specially related, so this might also be Skript issue. [21:54:25 ERROR]: #!#! You should try disabling those plugins one by one, trying to find which one causes it. [21:54:25 ERROR]: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue. [21:54:25 ERROR]: #!#! In that case, you will be given instruction on how should you report it. [21:54:25 ERROR]: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin. [21:54:25 ERROR]: #!#! Only if the author tells you to do so, report it to Skript's issue tracker. [21:54:25 ERROR]: #!#! [21:54:25 ERROR]: #!#! Stack trace: [21:54:25 ERROR]: #!#! java.lang.NullPointerException: Cannot invoke "java.lang.reflect.Field.get(Object)" because "com.btk5h.skriptdb.SkriptUtil.STRING" is null [21:54:25 ERROR]: #!#! at skript-db-1.4.0.jar//com.btk5h.skriptdb.SkriptUtil.getTemplateString(SkriptUtil.java:47) [21:54:25 ERROR]: #!#! at skript-db-1.4.0.jar//com.btk5h.skriptdb.skript.EffExecuteStatement.parseQuery(EffExecuteStatement.java:170) [21:54:25 ERROR]: #!#! at skript-db-1.4.0.jar//com.btk5h.skriptdb.skript.EffExecuteStatement.execute(EffExecuteStatement.java:81) [21:54:25 ERROR]: #!#! at skript-db-1.4.0.jar//com.btk5h.skriptdb.skript.EffExecuteStatement.walk(EffExecuteStatement.java:155) [21:54:25 ERROR]: #!#! at Skript (1).jar//ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:88) [21:54:25 ERROR]: #!#! at Skript (1).jar//ch.njol.skript.lang.Trigger.execute(Trigger.java:52) [21:54:25 ERROR]: #!#! at skript-reflect.jar//org.skriptlang.reflect.syntax.effect.elements.CustomEffect.invokeEffect(CustomEffect.java:62) [21:54:25 ERROR]: #!#! at skript-reflect.jar//org.skriptlang.reflect.syntax.effect.elements.CustomEffect.walk(CustomEffect.java:37) [21:54:25 ERROR]: #!#! at Skript (1).jar//ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:88) [21:54:25 ERROR]: #!#! at Skript (1).jar//ch.njol.skript.lang.Trigger.execute(Trigger.java:52) [21:54:25 ERROR]: #!#! at Skript (1).jar//ch.njol.skript.SkriptEventHandler.lambda$check$3(SkriptEventHandler.java:155) [21:54:25 ERROR]: #!#! at Skript (1).jar//ch.njol.skript.SkriptEventHandler.lambda$check$4(SkriptEventHandler.java:166) [21:54:25 ERROR]: #!#! at Skript (1).jar//ch.njol.skript.util.Task.callSync(Task.java:164) [21:54:25 ERROR]: #!#! at Skript (1).jar//ch.njol.skript.util.Task.callSync(Task.java:148) [21:54:25 ERROR]: #!#! at Skript (1).jar//ch.njol.skript.SkriptEventHandler.check(SkriptEventHandler.java:164) [21:54:25 ERROR]: #!#! at Skript (1).jar//ch.njol.skript.SkriptEventHandler.access$000(SkriptEventHandler.java:53) [21:54:25 ERROR]: #!#! at Skript (1).jar//ch.njol.skript.SkriptEventHandler$PriorityListener.lambda$new$0(SkriptEventHandler.java:66) [21:54:25 ERROR]: #!#! at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) [21:54:25 ERROR]: #!#! at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) [21:54:25 ERROR]: #!#! at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:669) [21:54:25 ERROR]: #!#! at net.minecraft.server.players.PlayerList.canPlayerLogin(PlayerList.java:778) [21:54:25 ERROR]: #!#! at net.minecraft.server.network.LoginListener.d(LoginListener.java:173) [21:54:25 ERROR]: #!#! at net.minecraft.server.network.LoginListener.c(LoginListener.java:84) [21:54:25 ERROR]: #!#! at net.minecraft.network.NetworkManager.a(NetworkManager.java:558) [21:54:25 ERROR]: #!#! at net.minecraft.server.network.ServerConnection.c(ServerConnection.java:231) [21:54:25 ERROR]: #!#! at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1623) [21:54:25 ERROR]: #!#! at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:483) [21:54:25 ERROR]: #!#! at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1456) [21:54:25 ERROR]: #!#! at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1226) [21:54:25 ERROR]: #!#! at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:316) [21:54:25 ERROR]: #!#! at java.base/java.lang.Thread.run(Thread.java:840) [21:54:25 ERROR]: #!#! [21:54:25 ERROR]: #!#! Version Information: [21:54:25 ERROR]: #!#! Skript: 2.8.0 [21:54:25 ERROR]: #!#! Flavor: skriptlang-github [21:54:25 ERROR]: #!#! Date: 18:20:11.223179900 [21:54:25 ERROR]: #!#! Bukkit: 1.18.2-R0.1-SNAPSHOT [21:54:25 ERROR]: #!#! Minecraft: 1.18.2 [21:54:25 ERROR]: #!#! Java: 17.0.9 (OpenJDK 64-Bit Server VM 17.0.9+9) [21:54:25 ERROR]: #!#! OS: Linux amd64 5.10.0-21-amd64 [21:54:25 ERROR]: #!#! [21:54:25 ERROR]: #!#! Server platform: Paper [21:54:25 ERROR]: #!#! [21:54:25 ERROR]: #!#! Current node: null [21:54:25 ERROR]: #!#! Current item: execute "SELECT result FROM VAR_TEXT WHERE var=%expression 2% AND uuid=%UUID of expression 1%" in {-sql} (as com.zaxxer.hikari.HikariDataSource) [21:54:25 ERROR]: #!#! Current trigger: effect [SQL] get[ |-]data text for %offlineplayer% to %string% and put in %object% (simple event) (BungeeSK/!SQL.sk, line -1) [21:54:25 ERROR]: #!#! [21:54:25 ERROR]: #!#! Thread: Server thread [21:54:25 ERROR]: #!#! [21:54:25 ERROR]: #!#! Language: french [21:54:25 ERROR]: #!#! Link parse mode: STRICT [21:54:25 ERROR]: #!#! [21:54:25 ERROR]: #!#! End of Error. [21:54:25 ERROR]: #!#!
Pastebin : https://pastebin.com/raw/RUekV7Nr
[22:06:18 INFO]: [Skript] Les alias de Skript se trouvent ici : https://github.com/SkriptLang/skript-aliases (en anglais) [22:06:18 INFO]: [Skript] La documentation de Skript se trouve ici : https://docs.skriptlang.org/ (en anglais) [22:06:18 INFO]: [Skript] Les tutoriels de Skript se trouvent ici : https://docs.skriptlang.org/tutorials (en anglais) [22:06:18 INFO]: [Skript] Version du serveur : git-Paper-388 (MC: 1.18.2) [22:06:18 INFO]: [Skript] Version de Skript : 2.8.0 (skriptlang-github) [22:06:18 INFO]: [Skript] Addons Skript installés : [22:06:18 INFO]: [Skript] - skript-placeholders v1.5.2 (https://github.com/APickledWalrus/skript-placeholders) [22:06:18 INFO]: [Skript] - Skent v3.2.0 [22:06:18 INFO]: [Skript] - Skellett v2.0.9 (https://forums.skunity.com/resources/skellett.24/) [22:06:18 INFO]: [Skript] - skript-gui v1.3 (https://github.com/APickledWalrus/skript-gui) [22:06:18 INFO]: [Skript] - BungeeSK v2.0.0 (https://github.com/ZorgBtw/BungeeSK) [22:06:18 INFO]: [Skript] - skript-yaml v1.5 [22:06:18 INFO]: [Skript] - skript-reflect v2.4 (https://github.com/SkriptLang/skript-reflect) [22:06:18 INFO]: [Skript] - skript-db v1.4.0 [22:06:18 INFO]: [Skript] - Skungee v2.0.0-BETA-5 [22:06:18 INFO]: [Skript] - SkBee v2.18.4 (https://github.com/ShaneBeee/SkBee) [22:06:18 INFO]: [Skript] - ItemsAdder v3.6.3-beta-9 (devs.beer) [22:06:18 INFO]: [Skript] Dépendances installées : [22:06:18 INFO]: [Skript] - Vault v1.7.3-b131
Pastebin : https://pastebin.com/raw/g35eAYdU
Code :
effect [SQL] get[ |-]data text for %OfflinePlayer% to %text% and put in %object%: parse: expr-3 is an instance of Variable # to check if the second argument is a variable continue trigger: delay effect execute "SELECT result FROM VAR_TEXT WHERE var=%expr-2% AND uuid=%uuid of expr-1%" in {-sql} and store the result in {_output::*} set the raw expr-3 to {_output::result::1} continue
Pastebin : https://pastebin.com/raw/ry9Qy49k
I have the same problem after updating to Skript version 2.8 stable latest. The Plugin does not work anymore for the latest version of Skript and need to be updated to work with the new breaking changes from Skript. I hope the plugin can be updated to work with newer versions. I for now downgrade the Skript version to below 2.6 that everything works for now.