-
Notifications
You must be signed in to change notification settings - Fork 212
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
Creating record from Clojure results into "Cannot cast com.aerospike.client.Bin to [Lcom.aerospike.client.Bin;" #19
Comments
andreiursan
changed the title
Creating record from Clojure results into " Cannot cast com.aerospike.client.Bin to [Lcom.aerospike.client.Bin; "
Creating record from Clojure results into "Cannot cast com.aerospike.client.Bin to [Lcom.aerospike.client.Bin;"
Feb 21, 2015
[Lcom.aerospike.client.Bin; is the Java class name for an array of Bin. In (. conn put write-policy key bin), maybe the last thing takes |
@puredanger That fixed my issue. the fixed function is: (defn create [conn data]
"[C]RUD creates a record"
(let [bin (new Bin (:column-name data) (:value data))
key (new Key key-namespace (:set-name data) (uuid))]
(. conn put write-policy key (into-array [bin])))) |
BrianNichols
pushed a commit
that referenced
this issue
May 16, 2019
ijusti
pushed a commit
to ijusti/aerospike-client-java
that referenced
this issue
Mar 28, 2023
…operations Remove duplicate operations
ijusti
pushed a commit
to ijusti/aerospike-client-java
that referenced
this issue
Mar 28, 2023
…ersion Update readme
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Trying to create aerospike records, using the client e.g. version
[com.aerospike/aerospike-client "3.0.34"]
or[com.aerospike/aerospike-client "3.0.20"]
results in the following error:
ClassCastException Cannot cast com.aerospike.client.Bin to [Lcom.aerospike.client.Bin; java.lang.Class.cast (Class.java:3133)
trying to create a record from the repl, results in the mentioned error
and this is the stacktrace
I want to creat an aerospike todo app to showcase the client API.
here is the github repo https://github.com/andreiursan/todo-aerospike
The text was updated successfully, but these errors were encountered: