Replies: 1 comment 1 reply
-
Hi there Dwight, |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
I'm using java version "1.8.0_161" & maven for build. I added maven dependencies as described on the build instructions.
I added an alpaca.properties file with my creds & put it in the resources directory. However when I attempt to run a code example:
I get the below error message. Not sure why since it seems like I have all dependencies. Any ideas are appreciated!
2022-08-16 10:42:03 INFO PropertyUtil:126 - Loaded properties file: alpaca.properties
Exception in thread "main" java.lang.NoSuchMethodError: kotlin.collections.ArraysKt.copyInto([B[BIII)[B
at okio.Segment.writeTo(Segment.kt:169)
at okio.Segment.compact(Segment.kt:152)
at okio.Buffer.write(Buffer.kt:1491)
at okio.Buffer.read(Buffer.kt:1503)
at okio.Buffer.writeAll(Buffer.kt:1290)
at okio.Options$Companion.buildTrieRecursive(Options.kt:189)
at okio.Options$Companion.buildTrieRecursive(Options.kt:175)
at okio.Options$Companion.buildTrieRecursive$default(Options.kt:107)
at okio.Options$Companion.of(Options.kt:72)
at okhttp3.internal.Util.(Util.kt:70)
at okhttp3.internal.concurrent.TaskRunner.(TaskRunner.kt:309)
at okhttp3.ConnectionPool.(ConnectionPool.kt:41)
at okhttp3.ConnectionPool.(ConnectionPool.kt:47)
at okhttp3.OkHttpClient$Builder.(OkHttpClient.kt:471)
at net.jacobpeterson.alpaca.AlpacaAPI.(AlpacaAPI.java:136)
at net.jacobpeterson.alpaca.AlpacaAPI.(AlpacaAPI.java:102)
at net.jacobpeterson.alpaca.AlpacaAPI.(AlpacaAPI.java:75)
at TestClass.main(TestClass.java:74)
Thanks for developing this library, it looks cool. I've been using the python alpaca client but prefer using Java.
Best
Dwight Schrute
Beta Was this translation helpful? Give feedback.
All reactions