This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-06-13
Channels
- # babashka (5)
- # beginners (52)
- # biff (11)
- # brompton (5)
- # calva (2)
- # cider (7)
- # clojure (80)
- # clojure-europe (3)
- # clojure-finland (1)
- # clojure-nl (3)
- # clojure-norway (1)
- # clojure-uk (3)
- # clojurescript (15)
- # conjure (4)
- # core-async (9)
- # cursive (3)
- # datahike (38)
- # datascript (1)
- # datomic (7)
- # duct (9)
- # emacs (4)
- # fulcro (11)
- # graalvm (21)
- # honeysql (5)
- # lambdaisland (1)
- # leiningen (1)
- # news-and-articles (1)
- # off-topic (8)
- # react (42)
- # reagent (6)
- # reitit (11)
- # shadow-cljs (62)
- # specter (1)
- # spire (2)
- # sql (1)
- # tools-deps (12)
- # vim (5)
is it possible to add reflection config for an interface? i'm playing with netty and while i got it to compile it now throws tons of "missing method" warnings at runtime, all the ChannelInboundHandler interface.
hmm
[io.netty/netty-transport-native-epoll "4.1.50.Final" :classifier "linux-x86_64"]
installing that platform-specific binary won't let native-image compile. remove the :classifier and it worksgonna check it out for reference. for now i ran the -agentlib=native-image-agent thing and had graal generate the config files
That works but only for classes it actually runs during execution. In babashka it is unknown which classes are going to be used by a user
yeah my goal was to just check if this will build at all (gonna turn it into a library eventually)
Hey, I'm trying to get HikariCP to work with GraalVM, but hitting a wall atm.
(hikari-cp/make-datasource {:jdbc-url "jdbc:})
This line, with GraalVM, returns the following error:
Exception in thread "main" com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: null
at com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException(HikariPool.java:576)
at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:562)
at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:115)
at com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:81)
at hikari_cp.core$make_datasource.invokeStatic(core.clj:248)
at myapp.main$_main.invokeStatic(main.clj:65)
at myapp.main$_main.doInvoke(main.clj:64)
at clojure.lang.RestFn.invoke(RestFn.java:397)
at clojure.lang.AFn.applyToHelper(AFn.java:152)
at clojure.lang.RestFn.applyTo(RestFn.java:132)
at myapp.main.main(Unknown Source)
Caused by: java.lang.NullPointerException
at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:369)
at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:198)
at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:467)
at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:541)
However, when I run it with clj -m myapp.main
it works. Anyone have an idea?@kevin.van.rooijen Take a look at the pgmig project, it uses hikari. Could be Postgres a driver problem. You need this flag for postgres: https://github.com/babashka/babashka-sql-pods/blob/5d0f2a2ce8c7b82a8df1a51e8a44411e01c93d4f/script/compile#L60
new project: https://github.com/justone/brisk