(defn make-apns-message [payload]
(let [buffer (ByteBuffer/allocate 3072)]
(doto buffer
(.put (byte 2))
(.position (int 5)) ;; this fails
(.put (byte 1))
;;<more .put's etc>
(.flip))
(Unpooled/wrappedBuffer buffer)))java.lang.NoSuchMethodError: java.nio.ByteBuffer.position(I)Ljava/nio/ByteBuffer;
at basis.apns$make_apns_message.invokeStatic(apns.clj:255)
at basis.apns$make_apns_message.invoke(apns.clj:249)
at basis.apns$send_queued_apns_messages.invokeStatic(apns.clj:162)
at basis.apns$send_queued_apns_messages.invoke(apns.clj:157)
at basis.apns$schedule_open_apns$fn__11654$fn__11655.invoke(apns.clj:109)
at clojure.core$binding_conveyor_fn$fn__5739.invoke(core.clj:2033)
at clojure.lang.AFn.applyToHelper(AFn.java:154)
at clojure.lang.RestFn.applyTo(RestFn.java:132)
at clojure.lang.Agent$Action.doRun(Agent.java:114)
at clojure.lang.Agent$Action.run(Agent.java:163)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
$ java -versionjava version "1.8.0_162"Java(TM) SE Runtime Environment (build 1.8.0_162-b12)Java HotSpot(TM) 64-Bit Server VM (build 25.162-b12, mixed mode)$ echo $JAVA_HOME
/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@googlegroups.com
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
clojure+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "Clojure" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/clojure/n6wpzSGj-Z0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to clojure+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.