Hi All,
We are trying to move from Java 8 to Java11, as Java 8 reaches its end of life. currently we are using latest Ngnix-Clojure (V0.4.5). While moving to Java 11, we are facing below issues..
2019-05-10 10:10:31[error][61200][main]server unhandled exception!
java.lang.ClassCastException: class [B cannot be cast to class [C ([B and [C are in module java.base of loader 'bootstrap')
at nginx.clojure.NginxSimpleHandler.buildResponseStringBuf(NginxSimpleHandler.java:482)
at nginx.clojure.NginxSimpleHandler.buildResponseItemBuf(NginxSimpleHandler.java:609)
at nginx.clojure.NginxSimpleHandler.buildOutputChain(NginxSimpleHandler.java:377)
at nginx.clojure.NginxClojureRT.handleResponse(NginxClojureRT.java:1515)
at nginx.clojure.NginxSimpleHandler.execute(NginxSimpleHandler.java:125)
at nginx.clojure.NginxClojureRT.eval(NginxClojureRT.java:1133)
Exception in thread "main" java.lang.ClassCastException: class [B cannot be cast to class [C ([B and [C are in module java.base of loader 'bootstrap')
at nginx.clojure.HackUtils.encode(HackUtils.java:226)
at nginx.clojure.NginxClojureRT.pushString(NginxClojureRT.java:1043)
at nginx.clojure.NginxClojureRT.pushNGXString(NginxClojureRT.java:929)
at nginx.clojure.NginxSimpleHandler.prepareHeaders(NginxSimpleHandler.java:355)
at nginx.clojure.NginxClojureRT.handleResponse(NginxClojureRT.java:1518)
at nginx.clojure.NginxSimpleHandler.execute(NginxSimpleHandler.java:125)
at nginx.clojure.NginxClojureRT.eval(NginxClojureRT.java:1133)
Looks like current version of Nginx-Clojure is not compatible with Java 11, Please let us know if we are missing something, or if not supported, when we can expect Java 11 support.
We are eagerly waiting for reply, so we can plan things accordingly.
Thanks in Advance,
Jeet Kaushik
Technical Lead