by@kuromunori
ERROR
4432ms
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 '}'
10 execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffcfdc97c60 /* 8 vars */) = 0 11 execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x55f147d9bd18 /* 8 vars */) = 0 11 +++ exited with 0 +++ 10 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=11, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 12 execve("/bin/ln", ["ln", "-sf", "/volume/CODE", "/tmp/code.bal"], 0x55f147d9bd38 /* 8 vars */) = 0 12 +++ exited with 0 +++ 10 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=12, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 14 execve("/root/ballerina/bin/ballerina", ["/root/ballerina/bin/ballerina", "run", "/tmp/code.bal"], 0x55f148fe7068 /* 8 vars */ <unfinished ...> 13 execve("/bin/cat", ["cat", "-"], 0x55f147d9bd70 /* 8 vars */) = 0 13 +++ exited with 0 +++ 10 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=13, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 14 <... execve resumed> ) = 0 15 execve("/bin/uname", ["uname"], 0x563ca78b2d40 /* 9 vars */) = 0 15 +++ exited with 0 +++ 14 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=15, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 16 execve("/usr/bin/dirname", ["dirname", "/root/ballerina/bin/ballerina"], 0x563ca78b6c40 /* 9 vars */) = 0 16 +++ exited with 0 +++ 14 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=16, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 17 +++ exited with 0 +++ 14 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=17, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 20 execve("/bin/grep", ["grep", "-e", "1.8."], 0x563ca78b70e0 /* 10 vars */) = 0 19 execve("/usr/lib/jvm/java-1.8-openjdk/bin/java", ["/usr/lib/jvm/java-1.8-openjdk/bi"..., "-version"], 0x563ca78b70e0 /* 10 vars */) = 0 19 execve("/usr/lib/jvm/java-1.8-openjdk/bin/java", ["/usr/lib/jvm/java-1.8-openjdk/bi"..., "-version"], 0x7fad30b02aa0 /* 11 vars */) = 0 19 --- SIGRT_2 {si_signo=SIGRT_2, si_code=SI_TKILL, si_pid=19, si_uid=0} --- 21 --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} --- 29 +++ exited with 0 +++ 25 +++ exited with 0 +++ 22 +++ exited with 0 +++ 21 +++ exited with 0 +++ 27 +++ exited with 0 +++ 28 +++ exited with 0 +++ 26 +++ exited with 0 +++ 24 +++ exited with 0 +++ 23 +++ exited with 0 +++ 20 +++ exited with 0 +++ 19 +++ exited with 0 +++ 18 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=20, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 18 +++ exited with 0 +++ 14 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=18, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 30 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"], 0x563ca78b70e0 /* 10 vars */) = 0 30 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"], 0x7f232f0f7ba0 /* 11 vars */) = 0 30 --- SIGRT_2 {si_signo=SIGRT_2, si_code=SI_TKILL, si_pid=30, si_uid=0} --- 31 --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} --- 36 --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_ACCERR, si_addr=0x7f41333c9f00} --- 40 +++ exited with 0 +++ 39 +++ exited with 0 +++ 35 +++ exited with 0 +++ 38 +++ exited with 1 +++ 37 +++ exited with 1 +++ 32 +++ exited with 1 +++ 31 +++ exited with 1 +++ 36 +++ exited with 1 +++ 34 +++ exited with 1 +++ 33 +++ exited with 1 +++ 30 +++ exited with 1 +++ 14 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=30, si_uid=0, si_status=1, si_utime=221, si_stime=31} --- 14 +++ exited with 1 +++ 10 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=14, si_uid=0, si_status=1, si_utime=2, si_stime=0} --- 41 execve("/bin/rm", ["rm", "/tmp/code.bal"], 0x55f147d9bc98 /* 8 vars */) = 0 41 +++ exited with 0 +++ 10 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=41, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 10 +++ exited with 0 +++