Wrote /root/JavaX-Caches/tmp_2065345007/main.java - 12289 bytes (written=12289, should be 12289) javac=0, ecj=1, useJarBot=0 Checking ECJ at port 4898 at 127.0.0.1 /root/jdk-17/bin/javac -source 11 -target 11 -nowarn -encoding utf8 -Xdiags:verbose -cp /root/.javax/x30.jar:/root/dexcompiler/android.jar:/root/dexcompiler/support-v4-22.2.1.jar:/root/javafx/javafx.base.jar:/root/javafx/javafx.graphics.jar:/root/javafx/javafx.swing.jar -d /root/JavaX-Caches/tmp_1458086685 /root/JavaX-Caches/tmp_2065345007/main.java 2>&1
[Compilation Error]

Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.

/root/JavaX-Caches/tmp_2065345007/main.java:1: error: class, interface, or enum expected static Set<S> blockedIPs = synchroHashSet(); // important: cleaned regularly in #1009210 ^ /root/JavaX-Caches/tmp_2065345007/main.java:2: error: class, interface, or enum expected static Set<S> whiteListedIPs = synchroHashSet(); ^ /root/JavaX-Caches/tmp_2065345007/main.java:5: error: class, interface, or enum expected static int blockedIPDelay = 60; // seconds ^ /root/JavaX-Caches/tmp_2065345007/main.java:11: error: class, interface, or enum expected please include function serveRedirect. ^ /root/JavaX-Caches/tmp_2065345007/main.java:24: error: class, interface, or enum expected static new SS botNames; // see e.g. #1013896 ^ /root/JavaX-Caches/tmp_2065345007/main.java:26: error: class, interface, or enum expected static S anonymousDialogID = "web-anon"; ^ /root/JavaX-Caches/tmp_2065345007/main.java:28: error: class, interface, or enum expected static S webLogProgramID = "#1002576"; ^ /root/JavaX-Caches/tmp_2065345007/main.java:29: error: class, interface, or enum expected static S webLog = "webLog"; ^ /root/JavaX-Caches/tmp_2065345007/main.java:31: error: class, interface, or enum expected static int recentWebLogMax = 1000; ^ /root/JavaX-Caches/tmp_2065345007/main.java:32: error: class, interface, or enum expected static new LinkedList<Map> recentWebLog; ^ /root/JavaX-Caches/tmp_2065345007/main.java:34: error: class, interface, or enum expected static S homePageBotID = "#1002771"; ^ /root/JavaX-Caches/tmp_2065345007/main.java:36: error: class, interface, or enum expected static void webInit() { ^ /root/JavaX-Caches/tmp_2065345007/main.java:38: error: class, interface, or enum expected readLocally("homePageBotID"); ^ /root/JavaX-Caches/tmp_2065345007/main.java:41: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2065345007/main.java:45: error: class, interface, or enum expected static NanoHTTPD.Response serve(S uri, NanoHTTPD.Method method, ^ /root/JavaX-Caches/tmp_2065345007/main.java:48: error: class, interface, or enum expected final long startTime = sysNow(); ^ /root/JavaX-Caches/tmp_2065345007/main.java:49: error: class, interface, or enum expected temp tempAfterwards(r { print(formatDateAndTime() + " | " + (sysNow()-startTime) + " ms") }); ^ /root/JavaX-Caches/tmp_2065345007/main.java:51: error: class, interface, or enum expected SS headers = getSession().getHeaders(); ^ /root/JavaX-Caches/tmp_2065345007/main.java:52: error: class, interface, or enum expected S clientIP = headers.get("remote-addr"); ^ /root/JavaX-Caches/tmp_2065345007/main.java:54: error: class, interface, or enum expected Pair<Int, Bool> pair = simpleSpamClientDetect2(clientIP, uri); ^ /root/JavaX-Caches/tmp_2065345007/main.java:59: error: class, interface, or enum expected bool whiteListed = whiteListedIPs.contains(clientIP); ^ /root/JavaX-Caches/tmp_2065345007/main.java:60: error: class, interface, or enum expected if (whiteListed) pair.b = false; ^ /root/JavaX-Caches/tmp_2065345007/main.java:62: error: class, interface, or enum expected bool bad = eq(uri, "/simulate-bad-client"); ^ /root/JavaX-Caches/tmp_2065345007/main.java:64: error: class, interface, or enum expected int ipCount = pair.a; ^ /root/JavaX-Caches/tmp_2065345007/main.java:66: error: class, interface, or enum expected if (!bad && pair.b) { ^ /root/JavaX-Caches/tmp_2065345007/main.java:68: error: class, interface, or enum expected addBlockedIP(clientIP); ^ /root/JavaX-Caches/tmp_2065345007/main.java:69: error: class, interface, or enum expected bad = true; ^ /root/JavaX-Caches/tmp_2065345007/main.java:70: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2065345007/main.java:74: error: class, interface, or enum expected if (blockedIPDelay < 0) ^ /root/JavaX-Caches/tmp_2065345007/main.java:76: error: class, interface, or enum expected else { ^ /root/JavaX-Caches/tmp_2065345007/main.java:79: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2065345007/main.java:85: error: class, interface, or enum expected if (httpSession == null || blockedIPDelay >= 0) { ^ /root/JavaX-Caches/tmp_2065345007/main.java:87: error: class, interface, or enum expected sleepSeconds(blockedIPDelay); ^ /root/JavaX-Caches/tmp_2065345007/main.java:88: error: class, interface, or enum expected ret serve500("go away"); ^ /root/JavaX-Caches/tmp_2065345007/main.java:89: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2065345007/main.java:91: error: class, interface, or enum expected null; ^ /root/JavaX-Caches/tmp_2065345007/main.java:92: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2065345007/main.java:96: error: class, interface, or enum expected print(gmtWithSeconds() + ": Serving HTTP " + quote(headers.get("host") + /*colonPortUnless80(subBot_currentPort())*/ + uri) + " to " + clientIP + " (anti-spam count: " + ipCount + "/" + simpleSpamClientDetect2_spamMax + (whiteListed ? ", white-listed" : "") + ")"); ^ /root/JavaX-Caches/tmp_2065345007/main.java:98: error: class, interface, or enum expected int hitID; ^ /root/JavaX-Caches/tmp_2065345007/main.java:100: error: class, interface, or enum expected synchronized(webLock) { ^ /root/JavaX-Caches/tmp_2065345007/main.java:102: error: class, interface, or enum expected hitID = hitCount; ^ /root/JavaX-Caches/tmp_2065345007/main.java:103: error: class, interface, or enum expected if ((hitCount % 1000) == 1) { ^ /root/JavaX-Caches/tmp_2065345007/main.java:105: error: class, interface, or enum expected saveLocally("hitCount"); ^ /root/JavaX-Caches/tmp_2065345007/main.java:106: error: class, interface, or enum expected hitCount = hitID; ^ /root/JavaX-Caches/tmp_2065345007/main.java:107: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2065345007/main.java:110: error: class, interface, or enum expected pcall { webLog(litmap("time", now(), "request", hitID, "uri", uri, "method", str(method), "header", header, "params", params, "files", files)); } ^ /root/JavaX-Caches/tmp_2065345007/main.java:116: error: class, interface, or enum expected pcall { webLog(litmap("time", now(), "response", hitID)); } ^ /root/JavaX-Caches/tmp_2065345007/main.java:116: error: class, interface, or enum expected pcall { webLog(litmap("time", now(), "response", hitID)); } ^ /root/JavaX-Caches/tmp_2065345007/main.java:119: error: class, interface, or enum expected } catch (Throwable e) { ^ /root/JavaX-Caches/tmp_2065345007/main.java:121: error: class, interface, or enum expected pcall { webLog(litmap("time", now(), "response-error", hitID, getStackTrace(e))); } ^ /root/JavaX-Caches/tmp_2065345007/main.java:123: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2065345007/main.java:130: error: class, interface, or enum expected if (nempty(files)) ^ /root/JavaX-Caches/tmp_2065345007/main.java:132: error: class, interface, or enum expected uploadFiles.set(files); ^ /root/JavaX-Caches/tmp_2065345007/main.java:133: error: class, interface, or enum expected if (!startsWith(uri, "/")) ret serve404("Bad URI"); ^ /root/JavaX-Caches/tmp_2065345007/main.java:134: error: class, interface, or enum expected uri = dropPrefixMandatory("/", uri); ^ /root/JavaX-Caches/tmp_2065345007/main.java:136: error: class, interface, or enum expected if (!loaded) { ^ /root/JavaX-Caches/tmp_2065345007/main.java:141: error: class, interface, or enum expected S lbi = loadingBotID; ^ /root/JavaX-Caches/tmp_2065345007/main.java:142: error: class, interface, or enum expected if (sameSnippetID(lbi, "#1002317")) { ^ /root/JavaX-Caches/tmp_2065345007/main.java:144: error: class, interface, or enum expected if (x != null) { ^ /root/JavaX-Caches/tmp_2065345007/main.java:146: error: class, interface, or enum expected total += x[1]; ^ /root/JavaX-Caches/tmp_2065345007/main.java:147: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2065345007/main.java:150: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2065345007/main.java:153: error: class, interface, or enum expected if (lbi != null) ^ /root/JavaX-Caches/tmp_2065345007/main.java:156: error: class, interface, or enum expected ret serve500(s); ^ /root/JavaX-Caches/tmp_2065345007/main.java:157: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2065345007/main.java:161: error: class, interface, or enum expected if (visitorsBot != null) ^ /root/JavaX-Caches/tmp_2065345007/main.java:164: error: class, interface, or enum expected setDialogIDForWeb(); ^ /root/JavaX-Caches/tmp_2065345007/main.java:166: error: class, interface, or enum expected if (eq(uri, "") || eq(uri, "raw")) ^ /root/JavaX-Caches/tmp_2065345007/main.java:169: error: class, interface, or enum expected S host = dropFrom(header.get("host"), ":"); ^ /root/JavaX-Caches/tmp_2065345007/main.java:171: error: class, interface, or enum expected if (domainIsUnderOneOf(host, "code.botcompany.de", "tomii.me")) ^ /root/JavaX-Caches/tmp_2065345007/main.java:174: error: class, interface, or enum expected if (eq(uri, "favicon.ico")) ^ /root/JavaX-Caches/tmp_2065345007/main.java:175: error: illegal character: '#' ret serveFile(loadLibrary(or2(trimLoadTextFile(javaxDataDir("eleu-favicon.txt")), #1101146)), "image/x-icon"); ^ /root/JavaX-Caches/tmp_2065345007/main.java:177: error: class, interface, or enum expected int i = uri.indexOf('/'); ^ /root/JavaX-Caches/tmp_2065345007/main.java:178: error: class, interface, or enum expected if (i < 0) { uri += "/"; i = l(uri)-1; } ^ /root/JavaX-Caches/tmp_2065345007/main.java:178: error: class, interface, or enum expected if (i < 0) { uri += "/"; i = l(uri)-1; } ^ /root/JavaX-Caches/tmp_2065345007/main.java:178: error: class, interface, or enum expected if (i < 0) { uri += "/"; i = l(uri)-1; } ^ /root/JavaX-Caches/tmp_2065345007/main.java:182: error: class, interface, or enum expected if (botNames.containsKey(firstPart)) { ^ /root/JavaX-Caches/tmp_2065345007/main.java:185: error: class, interface, or enum expected i = uri.indexOf('/'); ^ /root/JavaX-Caches/tmp_2065345007/main.java:186: error: class, interface, or enum expected firstPart = i >= 0 ? uri.substring(0, i) : uri; ^ /root/JavaX-Caches/tmp_2065345007/main.java:188: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2065345007/main.java:192: error: class, interface, or enum expected if (possibleGlobalID(toLower(firstPart))) { ^ /root/JavaX-Caches/tmp_2065345007/main.java:193: error: illegal character: '#' ret serveBot(#1007510, "/raw/" + uri, params); ^ /root/JavaX-Caches/tmp_2065345007/main.java:199: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2065345007/main.java:204: error: class, interface, or enum expected ret serveBot(firstPart, rest, params); ^ /root/JavaX-Caches/tmp_2065345007/main.java:205: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2065345007/main.java:208: error: unclosed character literal sleepWhile(() -> isTrue_callOpt(getDispatcher(), 'isReloading, botID)); ^ /root/JavaX-Caches/tmp_2065345007/main.java:210: error: class, interface, or enum expected Class bot = getBot(botID); ^ /root/JavaX-Caches/tmp_2065345007/main.java:211: error: class, interface, or enum expected boolean raw = subUri.equals("/raw") || subUri.startsWith("/raw/"); ^ /root/JavaX-Caches/tmp_2065345007/main.java:212: error: class, interface, or enum expected if (raw) { ^ /root/JavaX-Caches/tmp_2065345007/main.java:214: error: class, interface, or enum expected if (subUri.length() == 0) subUri = "/"; ^ /root/JavaX-Caches/tmp_2065345007/main.java:215: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2065345007/main.java:219: error: class, interface, or enum expected try { ^ /root/JavaX-Caches/tmp_2065345007/main.java:221: error: class, interface, or enum expected } catch e { ^ /root/JavaX-Caches/tmp_2065345007/main.java:222: error: unclosed character literal callOpt(bot, 'print, "Error while serving " + subUri + ": " + stackTraceToString(e)); ^ /root/JavaX-Caches/tmp_2065345007/main.java:223: error: class, interface, or enum expected throw rethrow(e); ^ /root/JavaX-Caches/tmp_2065345007/main.java:224: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2065345007/main.java:228: error: class, interface, or enum expected if (eq(getClassName(botOut), NanoHTTPD.Response.class.getName())) ^ /root/JavaX-Caches/tmp_2065345007/main.java:228: error: <identifier> expected if (eq(getClassName(botOut), NanoHTTPD.Response.class.getName())) ^ /root/JavaX-Caches/tmp_2065345007/main.java:231: error: class, interface, or enum expected S botHtml = str(botOut); ^ /root/JavaX-Caches/tmp_2065345007/main.java:232: error: class, interface, or enum expected S html; ^ 100 errors only showing the first 100 errors, of 177 total; use -Xmaxerrs if you would like to see more