-
Notifications
You must be signed in to change notification settings - Fork 1k
[2.x] "server was not detected" (server should print error) #8812
Copy link
Copy link
Closed
Description
steps
Use JDK 8.
$ touch build.sbt
$ sbt -Dsbt.version=2.0.0-RC9problem
$ sbt -Dsbt.version=2.0.0-RC9
[info] server was not detected. starting an instance
[error] failed to connect to serverThis is somewhat confusing error since it hides the server error.
expectation
When the server fails to start up, it should print out the error message on stderr, similar to what we'd get if we passed --server flag:
$ sbt -Dsbt.version=2.0.0-RC9 --server
java.lang.UnsupportedClassVersionError: scala/Option has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:757)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:473)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:419)
at java.lang.ClassLoader.loadClass(ClassLoader.java:406)
at java.lang.ClassLoader.loadClass(ClassLoader.java:352)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at xsbt.boot.Pre$.classMissing$1(Pre.scala:72)
at xsbt.boot.Pre$.getMissing$$anonfun$1(Pre.scala:74)
at scala.collection.immutable.List.filter(List.scala:516)
at xsbt.boot.Pre$.getMissing(Pre.scala:74)
at xsbt.boot.Launch.checkLoader(Launch.scala:258)
at xsbt.boot.Launch.provider$1(Launch.scala:391)
at xsbt.boot.Launch.getScalaProvider0$$anonfun$2(Launch.scala:393)
at scala.Option.flatMap(Option.scala:283)
at xsbt.boot.Launch.xsbt$boot$Launch$$getScalaProvider0(Launch.scala:392)
at xsbt.boot.Launch$$anon$2.call(Launch.scala:374)
at xsbt.boot.Launch$$anon$2.call(Launch.scala:374)
at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:51)
at xsbt.boot.Locks$.apply0(Locks.scala:45)
at xsbt.boot.Locks$.apply(Locks.scala:36)
at xsbt.boot.Launch.locked(Launch.scala:365)
at xsbt.boot.Launch.getScalaProvider(Launch.scala:374)
at xsbt.boot.Launch.$init$$$anonfun$3(Launch.scala:208)
at xsbt.boot.Cache.newEntry(Cache.scala:19)
at xsbt.boot.Cache.getFromReference(Cache.scala:15)
at xsbt.boot.Cache.apply(Cache.scala:13)
at xsbt.boot.Launch.getScala(Launch.scala:191)
at xsbt.boot.Launch.getScala(Launch.scala:189)
at xsbt.boot.Launch.xsbt$boot$Launch$$getAppProvider0(Launch.scala:343)
at xsbt.boot.Launch$$anon$1.call(Launch.scala:282)
at xsbt.boot.Launch$$anon$1.call(Launch.scala:282)
at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:100)
at xsbt.boot.Locks$GlobalLock.withChannelRetries$1(Locks.scala:80)
at xsbt.boot.Locks$GlobalLock.withFileLock$$anonfun$1(Locks.scala:103)
at xsbt.boot.Using$.withResource(Using.scala:14)
at xsbt.boot.Using$.apply(Using.scala:11)
at xsbt.boot.Locks$GlobalLock.withFileLock(Locks.scala:103)
at xsbt.boot.Locks$GlobalLock.ignoringDeadlockAvoided(Locks.scala:64)
at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:55)
at xsbt.boot.Locks$.apply0(Locks.scala:45)
at xsbt.boot.Locks$.apply(Locks.scala:36)
at xsbt.boot.Launch.locked(Launch.scala:365)
at xsbt.boot.Launch.getAppProvider(Launch.scala:282)
at xsbt.boot.Launch.app(Launch.scala:194)
at xsbt.boot.Launch.app(Launch.scala:192)
at xsbt.boot.Launch$.run(Launch.scala:124)
at xsbt.boot.Launch$.apply$$anonfun$1(Launch.scala:43)
at xsbt.boot.Launch$.launch(Launch.scala:142)
at xsbt.boot.Launch$.apply(Launch.scala:43)
at xsbt.boot.Launch$.apply(Launch.scala:24)
at xsbt.boot.Boot$.runImpl(Boot.scala:73)
at xsbt.boot.Boot$.run(Boot.scala:69)
at xsbt.boot.Boot$.main(Boot.scala:23)
at xsbt.boot.Boot.main(Boot.scala)
[error] [launcher] error during sbt launcher: java.lang.UnsupportedClassVersionError: scala/Option has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels