Changeset 483f043


Ignore:
Timestamp:
Aug 25, 2018 6:22:55 PM (23 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
3adbea9
Parents:
819985f
Message:

Bettor error message on covariant fail

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/routerconsole/java/src/net/i2p/router/web/SummaryListener.java

    r819985f r483f043  
    177177        } catch (IOException ioe) {
    178178            _log.error("Error starting RRD for stat " + baseName, ioe);
     179        } catch (NoSuchMethodError nsme) {
     180            // Covariant fail Java 8/9/10
     181            // java.lang.NoSuchMethodError: java.nio.MappedByteBuffer.position(I)Ljava/nio/MappedByteBuffer;
     182            // see e.g. https://jira.mongodb.org/browse/JAVA-2559
     183            _log.error("Error starting RRD for stat " + baseName, nsme);
     184            String s = "Error:" +
     185                       "\nCompiler JDK mismatch with JRE version " + System.getProperty("java.version") +
     186                       " and no bootclasspath specified when building." +
     187                       "\nContact packager.";
     188            _log.log(Log.CRIT, s);
     189            System.out.println(s);
    179190        } catch (Throwable t) {
    180191            _log.error("Error starting RRD for stat " + baseName, t);
Note: See TracChangeset for help on using the changeset viewer.