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

Bug with the latest version of DiscordSRV #3399

Closed
NoltoxGit opened this issue Jan 5, 2024 · 4 comments
Closed

Bug with the latest version of DiscordSRV #3399

NoltoxGit opened this issue Jan 5, 2024 · 4 comments
Labels
Bug Issues that contain unintended behavior

Comments

@NoltoxGit
Copy link

Describe the issue

Hello,
Since the last DiscordSRV update, Plan has been making errors in the console.

Exceptions & Other Logs

https://pastebin.com/raw/Sq71QKCQ

---- Stacktrace ----
com.djrapitops.plan.exceptions.DataExtensionMethodCallException: DiscordSRV.accountsLinkedPerMembers errored: java.lang.IncompatibleClassChangeError: Found interface github.scarsz.discordsrv.objects.managers.AccountLinkManager, but class was expected
   Plan-5.6-build-2614.jar//com.djrapitops.plan.extension.implementation.providers.MethodWrapper.callMethod(MethodWrapper.java:56)
   Plan-5.6-build-2614.jar//com.djrapitops.plan.extension.implementation.providers.gathering.DataValueGatherer.callMethod(DataValueGatherer.java:322)
   Plan-5.6-build-2614.jar//com.djrapitops.plan.extension.implementation.providers.gathering.DataValueGatherer.lambda$tryToBuildPercentage$5(DataValueGatherer.java:264)
   Plan-5.6-build-2614.jar//com.djrapitops.plan.extension.implementation.builder.BuiltDataValue.getValue(BuiltDataValue.java:48)
   Plan-5.6-build-2614.jar//com.djrapitops.plan.extension.implementation.providers.gathering.DataValueGatherer.getValue(DataValueGatherer.java:452)
   Plan-5.6-build-2614.jar//com.djrapitops.plan.extension.implementation.providers.gathering.DataValueGatherer.storeDouble(DataValueGatherer.java:495)
   Plan-5.6-build-2614.jar//com.djrapitops.plan.extension.implementation.providers.gathering.DataValueGatherer.lambda$gather$27(DataValueGatherer.java:402)
   java.base/java.util.Optional.ifPresent(Optional.java:178)
   Plan-5.6-build-2614.jar//com.djrapitops.plan.extension.implementation.providers.gathering.DataValueGatherer.gather(DataValueGatherer.java:402)
   Plan-5.6-build-2614.jar//com.djrapitops.plan.extension.implementation.providers.gathering.DataValueGatherer.tryToUpdateValues(DataValueGatherer.java:363)
   Plan-5.6-build-2614.jar//com.djrapitops.plan.extension.implementation.providers.gathering.DataValueGatherer.updateValues(DataValueGatherer.java:351)
   Plan-5.6-build-2614.jar//com.djrapitops.plan.extension.ExtensionSvc.updateServerValues(ExtensionSvc.java:195)
   Plan-5.6-build-2614.jar//com.djrapitops.plan.extension.ExtensionSvc.lambda$register$0(ExtensionSvc.java:127)
   Plan-5.6-build-2614.jar//com.djrapitops.plan.processing.Processing.lambda$submitNonCritical$1(Processing.java:85)
   java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
   java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
   java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
   java.base/java.lang.Thread.run(Thread.java:1583)
Caused by:
java.lang.reflect.InvocationTargetException
   java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:118)
   java.base/java.lang.reflect.Method.invoke(Method.java:580)
   Plan-5.6-build-2614.jar//com.djrapitops.plan.extension.implementation.providers.Parameters$ServerParameters.usingOn(Parameters.java:64)
   Plan-5.6-build-2614.jar//com.djrapitops.plan.extension.implementation.providers.MethodWrapper.callMethod(MethodWrapper.java:50)
   Plan-5.6-build-2614.jar//com.djrapitops.plan.extension.implementation.providers.gathering.DataValueGatherer.callMethod(DataValueGatherer.java:322)
   Plan-5.6-build-2614.jar//com.djrapitops.plan.extension.implementation.providers.gathering.DataValueGatherer.lambda$tryToBuildPercentage$5(DataValueGatherer.java:264)
   Plan-5.6-build-2614.jar//com.djrapitops.plan.extension.implementation.builder.BuiltDataValue.getValue(BuiltDataValue.java:48)
   Plan-5.6-build-2614.jar//com.djrapitops.plan.extension.implementation.providers.gathering.DataValueGatherer.getValue(DataValueGatherer.java:452)
   Plan-5.6-build-2614.jar//com.djrapitops.plan.extension.implementation.providers.gathering.DataValueGatherer.storeDouble(DataValueGatherer.java:495)
   Plan-5.6-build-2614.jar//com.djrapitops.plan.extension.implementation.providers.gathering.DataValueGatherer.lambda$gather$27(DataValueGatherer.java:402)
   java.base/java.util.Optional.ifPresent(Optional.java:178)
   Plan-5.6-build-2614.jar//com.djrapitops.plan.extension.implementation.providers.gathering.DataValueGatherer.gather(DataValueGatherer.java:402)
   Plan-5.6-build-2614.jar//com.djrapitops.plan.extension.implementation.providers.gathering.DataValueGatherer.tryToUpdateValues(DataValueGatherer.java:363)
   Plan-5.6-build-2614.jar//com.djrapitops.plan.extension.implementation.providers.gathering.DataValueGatherer.updateValues(DataValueGatherer.java:351)
   Plan-5.6-build-2614.jar//com.djrapitops.plan.extension.ExtensionSvc.updateServerValues(ExtensionSvc.java:195)
   Plan-5.6-build-2614.jar//com.djrapitops.plan.extension.ExtensionSvc.lambda$register$0(ExtensionSvc.java:127)
   Plan-5.6-build-2614.jar//com.djrapitops.plan.processing.Processing.lambda$submitNonCritical$1(Processing.java:85)
   java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
   java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
   java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
   java.base/java.lang.Thread.run(Thread.java:1583)
Caused by:
java.lang.IncompatibleClassChangeError: Found interface github.scarsz.discordsrv.objects.managers.AccountLinkManager, but class was expected
   Plan-5.6-build-2614.jar//net.playeranalytics.extension.discordsrv.DiscordSRVExtension.getLinkedAccountCount(DiscordSRVExtension.java:86)
   Plan-5.6-build-2614.jar//net.playeranalytics.extension.discordsrv.DiscordSRVExtension.accountsLinkedPerMembers(DiscordSRVExtension.java:236)
   java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
   java.base/java.lang.reflect.Method.invoke(Method.java:580)
   Plan-5.6-build-2614.jar//com.djrapitops.plan.extension.implementation.providers.Parameters$ServerParameters.usingOn(Parameters.java:64)
   Plan-5.6-build-2614.jar//com.djrapitops.plan.extension.implementation.providers.MethodWrapper.callMethod(MethodWrapper.java:50)
   Plan-5.6-build-2614.jar//com.djrapitops.plan.extension.implementation.providers.gathering.DataValueGatherer.callMethod(DataValueGatherer.java:322)
   Plan-5.6-build-2614.jar//com.djrapitops.plan.extension.implementation.providers.gathering.DataValueGatherer.lambda$tryToBuildPercentage$5(DataValueGatherer.java:264)
   Plan-5.6-build-2614.jar//com.djrapitops.plan.extension.implementation.builder.BuiltDataValue.getValue(BuiltDataValue.java:48)
   Plan-5.6-build-2614.jar//com.djrapitops.plan.extension.implementation.providers.gathering.DataValueGatherer.getValue(DataValueGatherer.java:452)
   Plan-5.6-build-2614.jar//com.djrapitops.plan.extension.implementation.providers.gathering.DataValueGatherer.storeDouble(DataValueGatherer.java:495)
   Plan-5.6-build-2614.jar//com.djrapitops.plan.extension.implementation.providers.gathering.DataValueGatherer.lambda$gather$27(DataValueGatherer.java:402)
   java.base/java.util.Optional.ifPresent(Optional.java:178)
   Plan-5.6-build-2614.jar//com.djrapitops.plan.extension.implementation.providers.gathering.DataValueGatherer.gather(DataValueGatherer.java:402)
   Plan-5.6-build-2614.jar//com.djrapitops.plan.extension.implementation.providers.gathering.DataValueGatherer.tryToUpdateValues(DataValueGatherer.java:363)
   Plan-5.6-build-2614.jar//com.djrapitops.plan.extension.implementation.providers.gathering.DataValueGatherer.updateValues(DataValueGatherer.java:351)
   Plan-5.6-build-2614.jar//com.djrapitops.plan.extension.ExtensionSvc.updateServerValues(ExtensionSvc.java:195)
   Plan-5.6-build-2614.jar//com.djrapitops.plan.extension.ExtensionSvc.lambda$register$0(ExtensionSvc.java:127)
   Plan-5.6-build-2614.jar//com.djrapitops.plan.processing.Processing.lambda$submitNonCritical$1(Processing.java:85)
   java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
   java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
   java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
   java.base/java.lang.Thread.run(Thread.java:1583)

Plugin versions

Server version: Purpur-2117 1.20.4
Plan version: 5.6 build 2614
DiscordSRV version: 1.27.0

Additional information

@NoltoxGit NoltoxGit added the Bug Issues that contain unintended behavior label Jan 5, 2024
@Vankka
Copy link
Contributor

Vankka commented Jan 5, 2024

Fix @ plan-player-analytics/Extension-DiscordSRV#4

@NoltoxGit
Copy link
Author

NoltoxGit commented Jan 5, 2024

Fix @ plan-player-analytics/Extension-DiscordSRV#4

Ohhh, thank you so much !
Where can i download this latest build?

@Vankka
Copy link
Contributor

Vankka commented Jan 5, 2024

There's no Plan build yet, until then you can use this DiscordSRV build (from before the breaking change was made)
https://download.discordsrv.com/v2/DiscordSRV/DiscordSRV/snapshot/download/36129124dc8994b04540c1a7a2fb14a47fb3421d/DiscordSRV-1.27.0-SNAPSHOT-3612912.jar

@AuroraLS3
Copy link
Collaborator

Build will appear here when complete https://github.com/plan-player-analytics/Plan/actions/runs/7432566500

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Issues that contain unintended behavior
Projects
None yet
Development

No branches or pull requests

3 participants