Botbosa 0 Share Posted January 26, 2023 I have a Kotlin script where I'm trying to use gRPC to send messages to a server. When I build and run the shaded jar manually, everything works. When I load the script in DreamBot I get the following error: java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;CLjava/lang/Object;)V at io.grpc.Metadata$Key.validateName(Metadata.java:754) at io.grpc.Metadata$Key.<init>(Metadata.java:762) at io.grpc.Metadata$Key.<init>(Metadata.java:671) at io.grpc.Metadata$AsciiKey.<init>(Metadata.java:971) at io.grpc.Metadata$AsciiKey.<init>(Metadata.java:966) at io.grpc.Metadata$Key.of(Metadata.java:708) at io.grpc.Metadata$Key.of(Metadata.java:704) at io.grpc.internal.GrpcUtil.<clinit>(GrpcUtil.java:98) at io.grpc.netty.shaded.io.grpc.netty.Utils.<clinit>(Utils.java:83) at io.grpc.netty.shaded.io.grpc.netty.UdsNettyChannelProvider.isAvailable(UdsNettyChannelProvider.java:34) at io.grpc.ManagedChannelRegistry$ManagedChannelPriorityAccessor.isAvailable(ManagedChannelRegistry.java:211) at io.grpc.ManagedChannelRegistry$ManagedChannelPriorityAccessor.isAvailable(ManagedChannelRegistry.java:207) at io.grpc.ServiceProviders.loadAll(ServiceProviders.java:68) at io.grpc.ManagedChannelRegistry.getDefaultRegistry(ManagedChannelRegistry.java:101) at io.grpc.ManagedChannelProvider.provider(ManagedChannelProvider.java:43) at io.grpc.ManagedChannelBuilder.forAddress(ManagedChannelBuilder.java:39) at org.botbosa.untitled2.TestScript.onStart(TestScript.kt:16) at org.dreambot.api.script.AbstractScript.run(AbstractScript.java:170) at java.lang.Thread.run(Thread.java:750) As far as I can tell, I'm assuming this is being caused because DreamBot also uses gRPC? Any idea how I might get past this? Thanks Link to comment Share on other sites More sharing options...
holic 233 Share Posted January 27, 2023 Maybe include the library in the jar build but, just FYI, the script won't use external libraries if you decide to put it on the SDN. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now