clightning4j / btcli4j

It is a core lightning plugin to override Bitcoin backend plugin with esplora by Blockstream and give the possibility to make the running process with bitcoind in pruning mode more solid.
GNU General Public License v2.0
9 stars 7 forks source link

Crash on close transaction #17

Closed vincenzopalazzo closed 3 years ago

vincenzopalazzo commented 3 years ago

When I close the channel on mobile I receive the following crash to the server side

2021-02-14T23:01:34.528Z UNUSUAL plugin-btcli4j-gen.sh: {
2021-02-14T23:01:34.529Z UNUSUAL plugin-btcli4j-gen.sh:   \"jsonrpc\": \"2.0\",
2021-02-14T23:01:34.530Z UNUSUAL plugin-btcli4j-gen.sh:   \"id\": 79106,
2021-02-14T23:01:34.530Z UNUSUAL plugin-btcli4j-gen.sh:   \"method\": \"sendrawtransaction\",
2021-02-14T23:01:34.530Z UNUSUAL plugin-btcli4j-gen.sh:   \"params\": {
2021-02-14T23:01:34.530Z UNUSUAL plugin-btcli4j-gen.sh:     \"tx\": \"02000000000101dae47bdf7fd5010e472af2bfe9aa6d80a8d75047372b5f6a50b1bd19b77f3eff0000000000ffffffff017d9c1000000000001600146b3590d9c69a721493f91a37f8b3ba2a9a22e7c2040047304402204fb97a8332ddf23738abe094fa72ae4a453bd7a7f0d2fcccac5d129963cd4ee20220031cf5ae1d82c4d3f2b4b93f816e8abc8705568fc91782ab285efae1ea9845240147304402201b00d2c6391f1e7b9ff9d577088af853ccfb138f57b3400ca9eaa4d2e1309f74022056c37bb84c0c360f654dd5a52da06482abcbe9d3d8431911d517d66c2433610b01475221037e8131ee4080bebd55091d143edff2728fda0a7ec8e54364e76926415309b4652103c2b0675e43dc38ea4d38cc5fe41ec2b058b7dee5aa6e48bda5efa81087be304152ae00000000\",
2021-02-14T23:01:34.531Z UNUSUAL plugin-btcli4j-gen.sh:     \"allowhighfees\": false
2021-02-14T23:01:34.531Z UNUSUAL plugin-btcli4j-gen.sh:   }
2021-02-14T23:01:34.531Z UNUSUAL plugin-btcli4j-gen.sh: }
2021-02-14T23:01:34.807Z **BROKEN** plugin-btcli4j-gen.sh: Message empty
java.lang.reflect.InvocationTargetException
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:564)
    at jrpc.clightning.plugins.rpcmethods.RPCMethodReflection.doRun(RPCMethodReflection.java:31)
    at jrpc.clightning.plugins.CLightningPlugin.doMethods(CLightningPlugin.java:283)
    at jrpc.clightning.plugins.CLightningPlugin.start(CLightningPlugin.java:128)
    at io.vincenzopalazzo.btcli4j.AppKt.main(App.kt:26)
    at io.vincenzopalazzo.btcli4j.AppKt.main(App.kt)
Caused by: java.lang.NoClassDefFoundError: okhttp3/internal/http1/Http1ExchangeCodec$KnownLengthSink
    at okhttp3.internal.http1.Http1ExchangeCodec.newKnownLengthSink(Http1ExchangeCodec.kt:215)
    at okhttp3.internal.http1.Http1ExchangeCodec.createRequestBody(Http1ExchangeCodec.kt:96)
    at okhttp3.internal.connection.Exchange.createRequestBody(Exchange.kt:73)
    at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.kt:58)
    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
    at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:34)
    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
    at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
    at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
    at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
    at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
    at okhttp3.internal.connection.RealCall.execute(RealCall.kt:154)
    at io.vincenzopalazzo.btcli4j.util.HttpRequestFactory.execRequest(HttpRequestFactory.kt:102)
    at io.vincenzopalazzo.btcli4j.control.commands.SendRawTransactionCommand.run(SendRawTransactionCommand.kt:41)
    at io.vincenzopalazzo.btcli4j.control.MediationMethod.runCommand(MediationMethod.kt:44)
    at io.vincenzopalazzo.btcli4j.Plugin.sendRawTransaction(Plugin.kt:83)
    ... 9 more
Caused by: java.lang.ClassNotFoundException: okhttp3.internal.http1.Http1ExchangeCodec$KnownLengthSink
    at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:602)
    at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
    ... 28 more
/home/vincent/Github/btcli4j/btcli4j-gen.sh error: bad response to sendrawtransaction (bad 'result' field: Parsing '{result:{success:': object does not have member success), response was {"id":79106,"jsonrpc":"2.0","result":{}}
2021-02-14T23:01:34.885Z **BROKEN** lightningd: /home/vincent/Github/btcli4j/btcli4j-gen.sh error: bad response to sendrawtransaction (bad 'result' field: Parsing '{result:{success:': object does not have member success), response was {"id":79106,"jsonrpc":"2.0","result":{}}
lightningd: FATAL SIGNAL 6 (version 0.9.3rc2)
0x55a213feadf8 send_backtrace
    common/daemon.c:38
0x55a213feae92 crashdump
    common/daemon.c:51
0x7fbc7de8720f ???
    ???:0
0x7fbc7de8718b ???
    ???:0
0x7fbc7de66858 ???
    ???:0
0x55a213fb5e58 fatal
    lightningd/log.c:803
0x55a213fa1221 bitcoin_plugin_error
    lightningd/bitcoind.c:120
0x55a213fa14d3 sendrawtx_callback
    lightningd/bitcoind.c:275
0x55a213fa152b sendrawtx_compatv090_callback
    lightningd/bitcoind.c:344
0x55a213fcd45c plugin_response_handle
    lightningd/plugin.c:432
0x55a213fcd57e plugin_read_json_one
    lightningd/plugin.c:538
0x55a213fcd702 plugin_read_json
    lightningd/plugin.c:583
0x55a2140242df next_plan
    ccan/ccan/io/io.c:59
0x55a21402478a do_plan
    ccan/ccan/io/io.c:407
0x55a214024827 io_ready
    ccan/ccan/io/io.c:417
0x55a21402616b io_loop
    ccan/ccan/io/poll.c:445
0x55a213fb0524 io_loop_with_timers
    lightningd/io_loop_with_timers.c:24
0x55a213fb3e8f main
    lightningd/lightningd.c:1016
0x7fbc7de680b2 ???
    ???:0
0x55a213fa0f6d ???
    ???:0
0xffffffffffffffff ???
    ???:0
2021-02-14T23:01:35.080Z **BROKEN** lightningd: FATAL SIGNAL 6 (version 0.9.3rc2)