Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.

build error under jdk 11 #14

Open
oldratlee opened this issue Jul 15, 2021 · 0 comments
Open

build error under jdk 11 #14

oldratlee opened this issue Jul 15, 2021 · 0 comments

Comments

@oldratlee
Copy link
Member

oldratlee commented Jul 15, 2021

using jdk 8, build is ok; using jdk 11, build error.

Maybe upgrade sbt can resolve this problem.


using jdk 11, sbt build error info:

$ sbt clean
[warn] The global sbt directory is now versioned and is located at ~/.sbt/0.13.
[warn]   You are seeing this warning because there is global configuration in ~/.sbt but not in ~/.sbt/0.13.
[warn]   The global sbt directory may be changed via the sbt.global.base system property.
[info] Loading project definition from ~/sbt-one-log/project
[warn] The global sbt directory is now versioned and is located at ~/.sbt/0.13.
[warn]   You are seeing this warning because there is global configuration in ~/.sbt but not in ~/.sbt/0.13.
[warn]   The global sbt directory may be changed via the sbt.global.base system property.
[info] Updating {file:~/sbt-one-log/project/}sbt-one-log-build...
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by sbt.ivyint.ErrorMessageAuthenticator$ (file:~/.sbt/boot/scala-2.10.4/org.scala-sbt/sbt/0.13.7/ivy-0.13.7.jar) to field java.net.Authenticator.theAuthenticator
WARNING: Please consider reporting this to the maintainers of sbt.ivyint.ErrorMessageAuthenticator$
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter
        at sbt.inc.TextAnalysisFormat$ObjectStringifier$$anonfun$34.apply(TextAnalysisFormat.scala:334)
        at sbt.inc.TextAnalysisFormat$ObjectStringifier$$anonfun$34.apply(TextAnalysisFormat.scala:334)
        at sbt.inc.FormatTimer$.aggregate(TextAnalysisFormat.scala:18)
        at sbt.inc.TextAnalysisFormat$ObjectStringifier$.stringToObj(TextAnalysisFormat.scala:334)
        at sbt.inc.TextAnalysisFormat$APIsF$$anonfun$14.apply(TextAnalysisFormat.scala:212)
        at sbt.inc.TextAnalysisFormat$APIsF$$anonfun$14.apply(TextAnalysisFormat.scala:212)
        at sbt.inc.TextAnalysisFormat$.sbt$inc$TextAnalysisFormat$$toPair$1(TextAnalysisFormat.scala:395)
        at sbt.inc.TextAnalysisFormat$$anonfun$sbt$inc$TextAnalysisFormat$$readPairs$1.apply(TextAnalysisFormat.scala:400)
        at sbt.inc.TextAnalysisFormat$$anonfun$sbt$inc$TextAnalysisFormat$$readPairs$1.apply(TextAnalysisFormat.scala:400)
        at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
        at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
        at scala.collection.immutable.Range.foreach(Range.scala:141)
        at scala.collection.TraversableLike$class.map(TraversableLike.scala:244)
        at scala.collection.AbstractTraversable.map(Traversable.scala:105)
        at sbt.inc.TextAnalysisFormat$.sbt$inc$TextAnalysisFormat$$readPairs(TextAnalysisFormat.scala:400)
        at sbt.inc.TextAnalysisFormat$.sbt$inc$TextAnalysisFormat$$readMap(TextAnalysisFormat.scala:404)
        at sbt.inc.TextAnalysisFormat$APIsF$.read(TextAnalysisFormat.scala:224)
        at sbt.inc.TextAnalysisFormat$$anonfun$4.apply(TextAnalysisFormat.scala:75)
        at sbt.inc.TextAnalysisFormat$$anonfun$4.apply(TextAnalysisFormat.scala:75)
        at sbt.inc.FormatTimer$.aggregate(TextAnalysisFormat.scala:18)
        at sbt.inc.FormatTimer$.time(TextAnalysisFormat.scala:25)
        at sbt.inc.TextAnalysisFormat$.read(TextAnalysisFormat.scala:75)
        at sbt.inc.FileBasedStore$$anon$1$$anonfun$getUncaught$1.apply(FileBasedStore.scala:18)
        at sbt.inc.FileBasedStore$$anon$1$$anonfun$getUncaught$1.apply(FileBasedStore.scala:18)
        at sbt.Using.apply(Using.scala:24)
        at sbt.inc.FileBasedStore$$anon$1.getUncaught(FileBasedStore.scala:18)
        at sbt.inc.FileBasedStore$$anon$1.get(FileBasedStore.scala:16)
        at sbt.inc.AnalysisStore$$anon$1.get(AnalysisStore.scala:22)
        at sbt.inc.AnalysisStore$$anon$2.get(AnalysisStore.scala:28)
        at sbt.compiler.AggressiveCompile.compile1(AggressiveCompile.scala:64)
        at sbt.compiler.AggressiveCompile.apply(AggressiveCompile.scala:45)
        at sbt.Compiler$.apply(Compiler.scala:74)
        at sbt.Compiler$.apply(Compiler.scala:65)
        at sbt.Defaults$.sbt$Defaults$$compileTaskImpl(Defaults.scala:789)
        at sbt.Defaults$$anonfun$compileTask$1.apply(Defaults.scala:781)
        at sbt.Defaults$$anonfun$compileTask$1.apply(Defaults.scala:781)
        at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
        at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
        at sbt.std.Transform$$anon$4.work(System.scala:63)
        at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
        at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
        at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
        at sbt.Execute.work(Execute.scala:235)
        at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
        at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
        at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
        at sbt.CompletionService$$anon$2.call(CompletionService.scala:28)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.DatatypeConverter
        at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:471)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
        at sbt.inc.TextAnalysisFormat$ObjectStringifier$$anonfun$34.apply(TextAnalysisFormat.scala:334)
        at sbt.inc.TextAnalysisFormat$ObjectStringifier$$anonfun$34.apply(TextAnalysisFormat.scala:334)
        at sbt.inc.FormatTimer$.aggregate(TextAnalysisFormat.scala:18)
        at sbt.inc.TextAnalysisFormat$ObjectStringifier$.stringToObj(TextAnalysisFormat.scala:334)
        at sbt.inc.TextAnalysisFormat$APIsF$$anonfun$14.apply(TextAnalysisFormat.scala:212)
        at sbt.inc.TextAnalysisFormat$APIsF$$anonfun$14.apply(TextAnalysisFormat.scala:212)
        at sbt.inc.TextAnalysisFormat$.sbt$inc$TextAnalysisFormat$$toPair$1(TextAnalysisFormat.scala:395)
        at sbt.inc.TextAnalysisFormat$$anonfun$sbt$inc$TextAnalysisFormat$$readPairs$1.apply(TextAnalysisFormat.scala:400)
        at sbt.inc.TextAnalysisFormat$$anonfun$sbt$inc$TextAnalysisFormat$$readPairs$1.apply(TextAnalysisFormat.scala:400)
        at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
        at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
        at scala.collection.immutable.Range.foreach(Range.scala:141)
        at scala.collection.TraversableLike$class.map(TraversableLike.scala:244)
        at scala.collection.AbstractTraversable.map(Traversable.scala:105)
        at sbt.inc.TextAnalysisFormat$.sbt$inc$TextAnalysisFormat$$readPairs(TextAnalysisFormat.scala:400)
        at sbt.inc.TextAnalysisFormat$.sbt$inc$TextAnalysisFormat$$readMap(TextAnalysisFormat.scala:404)
        at sbt.inc.TextAnalysisFormat$APIsF$.read(TextAnalysisFormat.scala:224)
        at sbt.inc.TextAnalysisFormat$$anonfun$4.apply(TextAnalysisFormat.scala:75)
        at sbt.inc.TextAnalysisFormat$$anonfun$4.apply(TextAnalysisFormat.scala:75)
        at sbt.inc.FormatTimer$.aggregate(TextAnalysisFormat.scala:18)
        at sbt.inc.FormatTimer$.time(TextAnalysisFormat.scala:25)
        at sbt.inc.TextAnalysisFormat$.read(TextAnalysisFormat.scala:75)
        at sbt.inc.FileBasedStore$$anon$1$$anonfun$getUncaught$1.apply(FileBasedStore.scala:18)
        at sbt.inc.FileBasedStore$$anon$1$$anonfun$getUncaught$1.apply(FileBasedStore.scala:18)
        at sbt.Using.apply(Using.scala:24)
        at sbt.inc.FileBasedStore$$anon$1.getUncaught(FileBasedStore.scala:18)
        at sbt.inc.FileBasedStore$$anon$1.get(FileBasedStore.scala:16)
        at sbt.inc.AnalysisStore$$anon$1.get(AnalysisStore.scala:22)
        at sbt.inc.AnalysisStore$$anon$2.get(AnalysisStore.scala:28)
        at sbt.compiler.AggressiveCompile.compile1(AggressiveCompile.scala:64)
        at sbt.compiler.AggressiveCompile.apply(AggressiveCompile.scala:45)
        at sbt.Compiler$.apply(Compiler.scala:74)
        at sbt.Compiler$.apply(Compiler.scala:65)
        at sbt.Defaults$.sbt$Defaults$$compileTaskImpl(Defaults.scala:789)
        at sbt.Defaults$$anonfun$compileTask$1.apply(Defaults.scala:781)
        at sbt.Defaults$$anonfun$compileTask$1.apply(Defaults.scala:781)
        at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
        at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
        at sbt.std.Transform$$anon$4.work(System.scala:63)
        at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
        at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
        at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
        at sbt.Execute.work(Execute.scala:235)
        at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
        at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
        at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
        at sbt.CompletionService$$anon$2.call(CompletionService.scala:28)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:829)
[error] (compile:compile) java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore?
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant