by@kuromunori
WA
4442ms
import ballerina/http; + @http:ServiceConfig { + basePath: "/api" + } service hello on new http:Listener(9090) { + @http:ResourceConfig { + methods: ["POST"], + path: "/say" + } resource function sayHello(http:Caller caller, http:Request request) { http:Response response = new; response.setTextPayload("Hello Ballerina!"); _ = caller -> respond(response); } }
T K
error: .::code.bal:3:1: extraneous input '+' error: .::code.bal:5:3: extraneous input '}' error: .::code.bal:6:9: mismatched input 'hello'. expecting {'is', ',', '}', '[', '?', '+', '-', '*', '/', '%', '==', '!=', '>', '<', '>=', '<=', '&&', '||', '===', '!==', '&', '^', '...', '|', '?:', '->>', '..<'} error: .::code.bal:6:15: mismatched input 'on'. expecting {'[', '?', '|', Identifier} error: .::code.bal:6:26: mismatched input ':'. expecting '=' error: .::code.bal:6:35: mismatched input '('. expecting {'[', '?', '|', Identifier} error: .::code.bal:10:7: mismatched input '}'. expecting {'service', 'function', 'object', 'record', 'abstract', 'client', 'from', 'int', 'byte', 'float', 'decimal', 'boolean', 'string', 'error', 'map', 'json', 'xml', 'table', 'stream', 'any', 'typedesc', 'future', 'anydata', 'new', '__init', 'foreach', 'continue', 'trap', 'untaint', 'start', 'check', 'checkpanic', 'flush', 'wait', '{', '(', '[', '+', '-', '!', '<', '~', '<-', '@', DecimalIntegerLiteral, HexIntegerLiteral, HexadecimalFloatingPointLiteral, DecimalFloatingPointNumber, BooleanLiteral, QuotedStringLiteral, Base16BlobLiteral, Base64BlobLiteral, 'null', Identifier, XMLLiteralStart, StringTemplateLiteralStart} error: .::code.bal:11:5: extraneous input 'resource' error: .::code.bal:16:1: extraneous input '}'
11 execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7fff1b7baf20 /* 8 vars */) = 0 12 execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x557e0ab6ad18 /* 8 vars */) = 0 12 +++ exited with 0 +++ 11 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=12, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 13 execve("/bin/ln", ["ln", "-sf", "/volume/CODE", "/tmp/code.bal"], 0x557e0ab6ad38 /* 8 vars */) = 0 13 +++ exited with 0 +++ 11 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=13, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 15 execve("/root/ballerina/bin/ballerina", ["/root/ballerina/bin/ballerina", "run", "/tmp/code.bal"], 0x557e0bb52068 /* 8 vars */ <unfinished ...> 14 execve("/bin/cat", ["cat", "-"], 0x557e0ab6ad70 /* 8 vars */) = 0 14 +++ exited with 0 +++ 11 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=14, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 15 <... execve resumed> ) = 0 16 execve("/bin/uname", ["uname"], 0x56001e6b7d40 /* 9 vars */) = 0 16 +++ exited with 0 +++ 15 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=16, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 17 execve("/usr/bin/dirname", ["dirname", "/root/ballerina/bin/ballerina"], 0x56001e6bbc40 /* 9 vars */) = 0 17 +++ exited with 0 +++ 15 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=17, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 18 +++ exited with 0 +++ 15 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=18, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 20 execve("/usr/lib/jvm/java-1.8-openjdk/bin/java", ["/usr/lib/jvm/java-1.8-openjdk/bi"..., "-version"], 0x56001e6bc0e0 /* 10 vars */) = 0 21 execve("/bin/grep", ["grep", "-e", "1.8."], 0x56001e6bc0e0 /* 10 vars */) = 0 20 execve("/usr/lib/jvm/java-1.8-openjdk/bin/java", ["/usr/lib/jvm/java-1.8-openjdk/bi"..., "-version"], 0x7ff04d44aaa0 /* 11 vars */) = 0 20 --- SIGRT_2 {si_signo=SIGRT_2, si_code=SI_TKILL, si_pid=20, si_uid=0} --- 22 --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} --- 30 +++ exited with 0 +++ 26 +++ exited with 0 +++ 23 +++ exited with 0 +++ 22 +++ exited with 0 +++ 29 +++ exited with 0 +++ 28 +++ exited with 0 +++ 27 +++ exited with 0 +++ 24 +++ exited with 0 +++ 25 +++ exited with 0 +++ 21 +++ exited with 0 +++ 20 +++ exited with 0 +++ 19 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=21, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 19 +++ exited with 0 +++ 15 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=19, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 31 execve("/usr/lib/jvm/java-1.8-openjdk/bin/java", ["/usr/lib/jvm/java-1.8-openjdk/bi"..., "-Xbootclasspath/a:", "-Xms256m", "-Xmx1024m", "-XX:+HeapDumpOnOutOfMemoryError", "-XX:HeapDumpPath=/root/ballerina"..., "-classpath", ":/root/ballerina/bre/lib/HdrHist"..., "-Dballerina.home=/root/ballerina", "-Dballerina.version=0.991.0", "-Djava.util.logging.config.class"..., "-Djava.util.logging.manager=org."..., "-Denable.nonblocking=false", "-Djava.security.egd=file:/dev/./"..., "-Dfile.encoding=UTF8", "org.ballerinalang.launcher.Main", "run", "/tmp/code.bal"], 0x56001e6bc0e0 /* 10 vars */) = 0 31 execve("/usr/lib/jvm/java-1.8-openjdk/bin/java", ["/usr/lib/jvm/java-1.8-openjdk/bi"..., "-Xbootclasspath/a:", "-Xms256m", "-Xmx1024m", "-XX:+HeapDumpOnOutOfMemoryError", "-XX:HeapDumpPath=/root/ballerina"..., "-classpath", ":/root/ballerina/bre/lib/HdrHist"..., "-Dballerina.home=/root/ballerina", "-Dballerina.version=0.991.0", "-Djava.util.logging.config.class"..., "-Djava.util.logging.manager=org."..., "-Denable.nonblocking=false", "-Djava.security.egd=file:/dev/./"..., "-Dfile.encoding=UTF8", "org.ballerinalang.launcher.Main", "run", "/tmp/code.bal"], 0x7f06fafcaba0 /* 11 vars */) = 0 31 --- SIGRT_2 {si_signo=SIGRT_2, si_code=SI_TKILL, si_pid=31, si_uid=0} --- 32 --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} --- 40 +++ exited with 0 +++ 36 +++ exited with 0 +++ 32 --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_ACCERR, si_addr=0x7f80d2114480} --- 39 +++ exited with 1 +++ 38 +++ exited with 1 +++ 35 +++ exited with 1 +++ 37 +++ exited with 1 +++ 34 +++ exited with 1 +++ 33 +++ exited with 1 +++ 32 +++ exited with 1 +++ 41 +++ exited with 1 +++ 31 +++ exited with 1 +++ 15 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=31, si_uid=0, si_status=1, si_utime=217, si_stime=34} --- 15 +++ exited with 1 +++ 11 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=15, si_uid=0, si_status=1, si_utime=2, si_stime=0} --- 42 execve("/bin/rm", ["rm", "/tmp/code.bal"], 0x557e0ab6ac98 /* 8 vars */) = 0 42 +++ exited with 0 +++ 11 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=42, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 11 +++ exited with 0 +++