Skip to content
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

Error upgrading to 0.13 using java 1.8 #82

Open
jaromil opened this issue Mar 17, 2019 · 4 comments
Open

Error upgrading to 0.13 using java 1.8 #82

jaromil opened this issue Mar 17, 2019 · 4 comments

Comments

@jaromil
Copy link

jaromil commented Mar 17, 2019

Not sure if occurring also with Java 1.9, in case documentation should state necessity to upgrade.
The error is:

java.lang.RuntimeException: Unable to find static field: CELL_TYPE_BOOLEAN in interface org.apache.poi.ss.usermodel.Cell

Pardon the approximation, I haven't investigated this further (happy 0.12 user).

@manuelherzog
Copy link
Contributor

for me it is working with java 1.8. I had that error during migration of docjure using apache-poi >= 4.0. Could it be you are also using apache-poi as your dependency and this one got an update too?

Otherwise can you provide more informations, so we can check for that issue? Best would be if these information provide a small example project showing that problem.

@jaromil
Copy link
Author

jaromil commented Mar 22, 2019

OK, will try to document more if necessary. Meanwhile yes I confirm the error occurred migrating also to apache-poi>=4.0 - isn't that supposed to happen? I realise now perhaps version 4 is not supported yet?

@manuelherzog
Copy link
Contributor

apache-poi>= 4.0 is planned but not yet finished. #81
So with one of the next releases we will have apache-poi >= 4.0, but for now we are stuck to < 4.0.
I'm also waiting for it, so i can switch back to the official release instead of mine, because i need 4.0 features in other parts of my app.

@vemv vemv mentioned this issue Oct 30, 2019
@timgilbert
Copy link

I'm seeing a similar CELL_TYPE_BOOLEAN error also, trying to run lein repl with Java 17 (this is on Windows 11, God help me). I'm upgrading from docjure 1.6.0 to 1.19.0 and from Clojure 1.11.0 to 1.12.0.

lein version reports Leiningen 2.11.2 on Java 17.0.12 OpenJDK 64-Bit Server VM.

#error {
 :cause CELL_TYPE_BOOLEAN
 :via
 [{:type clojure.lang.Compiler$CompilerException
   :message Syntax error macroexpanding at (engine.clj:1:1).
   :data #:clojure.error{:phase :execution, :line 1, :column 1, :source engine.clj}
   :at [clojure.lang.Compiler load Compiler.java 8177]}
  {:type java.lang.NoSuchFieldError
   :message CELL_TYPE_BOOLEAN
   :at [dk.ative.docjure.spreadsheet__init load nil 18]}]
 :trace
 [[dk.ative.docjure.spreadsheet__init load nil 18]
  [dk.ative.docjure.spreadsheet__init <clinit> nil -1]
  [java.lang.Class forName0 Class.java -2]
  [java.lang.Class forName Class.java 467]
  [clojure.lang.RT classForName RT.java 2229]
  [clojure.lang.RT classForName RT.java 2238]
  [clojure.lang.RT loadClassForName RT.java 2257]
  [clojure.lang.RT load RT.java 469]
  [clojure.lang.RT load RT.java 444]
  [clojure.core$load$fn__6931 invoke core.clj 6189]
[...]

Relevant part of my lein deps :tree looks like this:

 [dk.ative/docjure "1.19.0"]
   [org.apache.poi/poi-ooxml "5.2.3"]
     [com.github.virtuald/curvesapi "1.07"]
     [org.apache.commons/commons-compress "1.21"]
     [org.apache.poi/poi-ooxml-lite "5.2.3"]
     [org.apache.xmlbeans/xmlbeans "5.1.1"]
   [org.apache.poi/poi "5.2.3"]
     [com.zaxxer/SparseBitSet "1.2"]
     [org.apache.commons/commons-collections4 "4.4"]
     [org.apache.commons/commons-math3 "3.6.1"]
     [org.apache.logging.log4j/log4j-api "2.18.0"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants