java.lang.RuntimeException: java.io.IOException: Snippet #1000535 not found or not public at main.rethrow(m1008705.java:173) at main.loadSnippet(m1008705.java:342) at main.html2(m1008705.java:83) at main.html(m1008705.java:67) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:577) at main.invokeMethod(m1008705.java:1601) at main.callOpt_withVarargs(m1008705.java:4387) at main.callOpt(m1008705.java:3326) at main.callHtmlMethod2(m1008705.java:11404) at main$MyHTTPD$1.get(m1008705.java:7337) at main$MyHTTPD$1.get(m1008705.java:1) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:577) at main.invokeMethod(m1008705.java:1601) at main.safeCallF(m1008705.java:642) at main.callF(m1008705.java:611) at main$MyHTTPD.serve(m1008705.java:7373) at main$NanoHTTPD.serve_2(m1008705.java:9572) at main$NanoHTTPD.serve(m1008705.java:9553) at main$NanoHTTPD$HTTPSession.execute(m1008705.java:8453) at main$NanoHTTPD$ClientHandler.run(m1008705.java:7829) at java.base/java.lang.Thread.run(Thread.java:833) Caused by: java.io.IOException: Snippet #1000535 not found or not public at main.loadSnippet_noResourceLoader(m1008705.java:395) at main.loadSnippet(m1008705.java:365) at main.loadSnippet(m1008705.java:341) ... 21 more
Requires class JsonTok (!include #728)
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
| ID | Author/Program | Comment | Date | |
|---|---|---|---|---|
| 954 | #1000604 (pitcher) | 2015-08-20 15:28:24 | ||
| 953 | #1000610 | Edit suggestion: !636 !629 main { static Object androidContext; static String programID; public static void main(String[] args) throws Exception { // for now, no caching... static String[] loadSnippetAndTitle(String id) throws IOException { long snippetID = parseSnippetID(id); String json; try { URL url = new URL("http://tinybrain.de:8080/tb-int/get.php?id=" + snippetID + "&full=1"); json = loadPage(url); } catch (FileNotFoundException e) { throw new IOException("Snippet #" + snippetID + " not found or not public"); } Map<String, String> map = loadSnippetAndTitle_parseJsonObject(json); return new String[] {map.get("text"), map.get("title")}; } static Map<String, String> loadSnippetAndTitle_parseJsonObject(String s) { List<String> tok = JsonTok.split(s); new (Tree)Map<String, String> map; for (int i = 1; i+4 < tok.size(); i += 2) { if (tok.get(i+2).equals(":")) map.put(unquote(tok.get(i)), unquote(tok.get(i+4))); } return map; } }} | 2015-08-20 06:57:26 | delete |
| Snippet ID: | #1000535 |
| Snippet name: | loadSnippetAndTitle |
| Eternal ID of this version: | #1000535/2 |
| Text MD5: | d5b7cb4ca24166aea4155e5ceb91796e |
| Author: | stefan |
| Category: | |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-01-26 13:23:22 |
| Source code size: | 554 bytes / 15 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 1833 / 2136 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |