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

OpenJDK 11 Exception in thread "main" java.lang.NoClassDefFoundError: java/sql/Date #14

Open
kennethgillen opened this issue Dec 19, 2018 · 4 comments

Comments

@kennethgillen
Copy link

kennethgillen commented Dec 19, 2018

Freshly installed OpenJDK 11 and wrk-trello via Homebrew:

computer:~ user$ brew info wrk-trello
wrk-trello: stable 1.0.1
Command-line interface to Trello
https://github.com/blangel/wrk
Conflicts with:
  wrk (because both install `wrk` binaries)
/usr/local/Cellar/wrk-trello/1.0.1 (8 files, 1MB) *
  Built from source on 2018-12-19 at 10:44:48
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/wrk-trello.rb
computer:~ user$ java -version
openjdk version "11.0.1" 2018-10-16
OpenJDK Runtime Environment 18.9 (build 11.0.1+13)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.1+13, mixed mode)

Trying to start wrk leads to:

computer:~ user$ wrk
Exception in thread "main" java.lang.NoClassDefFoundError: java/sql/Date
        at org.codehaus.jackson.map.deser.std.StdDeserializer$SqlDateDeserializer.<init>(StdDeserializer.java:1079)
        at org.codehaus.jackson.map.deser.StdDeserializers.<init>(StdDeserializers.java:76)
        at org.codehaus.jackson.map.deser.StdDeserializers.constructAll(StdDeserializers.java:103)
        at org.codehaus.jackson.map.deser.BasicDeserializerFactory.<clinit>(BasicDeserializerFactory.java:46)
        at org.codehaus.jackson.map.deser.StdDeserializerProvider.<init>(StdDeserializerProvider.java:81)
        at org.codehaus.jackson.map.ObjectMapper.<init>(ObjectMapper.java:398)
        at org.codehaus.jackson.map.ObjectMapper.<init>(ObjectMapper.java:358)
        at org.codehaus.jackson.map.ObjectMapper.<init>(ObjectMapper.java:328)
        at net.ocheyedan.wrk.Json.<clinit>(Json.java:13)
        at net.ocheyedan.wrk.Config.init(Config.java:79)
        at net.ocheyedan.wrk.Wrk.main(Wrk.java:18)
@blangel
Copy link
Owner

blangel commented Dec 19, 2018

@kennethgillen right. Java, since 9, has new restrictions on reflection access and exporting of module types. I'll look into this in the coming days. I honestly haven't been maintaining this project but will try to devout some time to it.

@kennethgillen
Copy link
Author

kennethgillen commented Dec 19, 2018

No worries.

FYI it works fine with a fresh brew cask install java8 -

computer:~ user$ java -version
java version "1.8.0_192"
Java(TM) SE Runtime Environment (build 1.8.0_192-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.192-b12, mixed mode)
computer:~ user$ wrk
Open cards assigned to you:
  None

@IsraelBuitronD
Copy link

I still having this error.

I have installed java 11 by running brew install java11.
I have verified its version

openjdk version "11.0.10" 2021-01-19
OpenJDK Runtime Environment (build 11.0.10+9)
OpenJDK 64-Bit Server VM (build 11.0.10+9, mixed mode)

Finally, this error still appearing:

Exception in thread "main" java.lang.NoClassDefFoundError: java/sql/Date
	at org.codehaus.jackson.map.deser.std.StdDeserializer$SqlDateDeserializer.<init>(StdDeserializer.java:1079)
	at org.codehaus.jackson.map.deser.StdDeserializers.<init>(StdDeserializers.java:76)
	at org.codehaus.jackson.map.deser.StdDeserializers.constructAll(StdDeserializers.java:103)
	at org.codehaus.jackson.map.deser.BasicDeserializerFactory.<clinit>(BasicDeserializerFactory.java:46)
	at org.codehaus.jackson.map.deser.StdDeserializerProvider.<init>(StdDeserializerProvider.java:81)
	at org.codehaus.jackson.map.ObjectMapper.<init>(ObjectMapper.java:398)
	at org.codehaus.jackson.map.ObjectMapper.<init>(ObjectMapper.java:358)
	at org.codehaus.jackson.map.ObjectMapper.<init>(ObjectMapper.java:328)
	at net.ocheyedan.wrk.Json.<clinit>(Json.java:13)
	at net.ocheyedan.wrk.Config.init(Config.java:79)
	at net.ocheyedan.wrk.Wrk.main(Wrk.java:18)
$ wrk orgs
Exception in thread "main" java.lang.NoClassDefFoundError: java/sql/Date
	at org.codehaus.jackson.map.deser.std.StdDeserializer$SqlDateDeserializer.<init>(StdDeserializer.java:1079)
	at org.codehaus.jackson.map.deser.StdDeserializers.<init>(StdDeserializers.java:76)
	at org.codehaus.jackson.map.deser.StdDeserializers.constructAll(StdDeserializers.java:103)
	at org.codehaus.jackson.map.deser.BasicDeserializerFactory.<clinit>(BasicDeserializerFactory.java:46)
	at org.codehaus.jackson.map.deser.StdDeserializerProvider.<init>(StdDeserializerProvider.java:81)
	at org.codehaus.jackson.map.ObjectMapper.<init>(ObjectMapper.java:398)
	at org.codehaus.jackson.map.ObjectMapper.<init>(ObjectMapper.java:358)
	at org.codehaus.jackson.map.ObjectMapper.<init>(ObjectMapper.java:328)
	at net.ocheyedan.wrk.Json.<clinit>(Json.java:13)
	at net.ocheyedan.wrk.Config.init(Config.java:79)
	at net.ocheyedan.wrk.Wrk.main(Wrk.java:18)

@carlosonunez
Copy link

unfortunately this makes wrk unusable on M1 Macs, as no ARM64 version of Java8 exists.

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

4 participants