seominho77 opened a new issue #63:
URL: https://github.com/apache/apisix-java-plugin-runner/issues/63
### When user HttpRequest.getConfig get config some times occured
java.lang.IndexOutOfBoundsException: null
java 插件获取配置信息是出现异常,刚开始时正常,过一会儿就开始经常出现此异常。
### Environment
* your apisix-java-plugin-runner version 2.8
### Minimal test code / Steps to reproduce the issue
String configStr = request.getConfig(this);
### What's the actual result? (including assertion message & call stack if
applicable)
error info:
java.lang.IndexOutOfBoundsException: null
at java.nio.Buffer.checkIndex(Buffer.java:551) ~[?:1.8.0_292]
at java.nio.DirectByteBuffer.getInt(DirectByteBuffer.java:684)
~[?:1.8.0_292]
at com.google.flatbuffers.Table.__reset(Table.java:301)
~[flatbuffers-java-1.12.0.jar!/:?]
at io.github.api7.A6.TextEntry.__init(TextEntry.java:15)
~[A6-0.1.0-RELEASE.jar!/:?]
at io.github.api7.A6.TextEntry.__assign(TextEntry.java:16)
~[A6-0.1.0-RELEASE.jar!/:?]
at io.github.api7.A6.PrepareConf.Req.conf(Req.java:19)
~[A6-0.1.0-RELEASE.jar!/:?]
at io.github.api7.A6.PrepareConf.Req.conf(Req.java:18)
~[A6-0.1.0-RELEASE.jar!/:?]
at
org.apache.apisix.plugin.runner.HttpRequest.getConfig(HttpRequest.java:62)
~[apisix-runner-plugin-sdk-0.1.0.jar!/:0.1.0]
at
org.apache.apisix.plugin.runner.filter.LoginAuthFilter.filter(LoginAuthFilter.java:46)
~[apisix-runner-plugin-0.1.0.jar!/:0.1.0]
at
org.apache.apisix.plugin.runner.filter.PluginFilterChain.filter(PluginFilterChain.java:54)
~[apisix-runner-plugin-sdk-0.1.0.jar!/:0.1.0]
at
org.apache.apisix.plugin.runner.handler.A6HttpCallHandler.handle(A6HttpCallHandler.java:57)
~[apisix-runner-core-0.1.0.jar!/:0.1.0]
at
org.apache.apisix.plugin.runner.handler.A6HandlerConfiguration.lambda$createDispatcher$0(A6HandlerConfiguration.java:76)
~[apisix-runner-core-0.1.0.jar!/:0.1.0]
at
reactor.core.publisher.FluxMap$MapSubscriber.onNext(FluxMap.java:106)
[reactor-core-3.4.5.jar!/:3.4.5]
at
reactor.core.publisher.FluxMap$MapSubscriber.onNext(FluxMap.java:120)
[reactor-core-3.4.5.jar!/:3.4.5]
at
reactor.core.publisher.FluxHandle$HandleSubscriber.onNext(FluxHandle.java:118)
[reactor-core-3.4.5.jar!/:3.4.5]
at
reactor.core.publisher.FluxMap$MapConditionalSubscriber.onNext(FluxMap.java:220)
[reactor-core-3.4.5.jar!/:3.4.5]
at
reactor.netty.channel.FluxReceive.drainReceiver(FluxReceive.java:280)
[reactor-netty-core-1.0.6.jar!/:1.0.6]
at
reactor.netty.channel.FluxReceive.onInboundNext(FluxReceive.java:389)
[reactor-netty-core-1.0.6.jar!/:1.0.6]
at
reactor.netty.channel.ChannelOperations.onInboundNext(ChannelOperations.java:401)
[reactor-netty-core-1.0.6.jar!/:1.0.6]
at
reactor.netty.channel.ChannelOperationsHandler.channelRead(ChannelOperationsHandler.java:94)
[reactor-netty-core-1.0.6.jar!/:1.0.6]
at
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
[netty-transport-4.1.63.Final.jar!/:4.1.63.Final]
at
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
[netty-transport-4.1.63.Final.jar!/:4.1.63.Final]
at
io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
[netty-transport-4.1.63.Final.jar!/:4.1.63.Final]
at
io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:324)
[netty-codec-4.1.63.Final.jar!/:4.1.63.Final]
at
io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:296)
[netty-codec-4.1.63.Final.jar!/:4.1.63.Final]
at
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
[netty-transport-4.1.63.Final.jar!/:4.1.63.Final]
at
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
[netty-transport-4.1.63.Final.jar!/:4.1.63.Final]
at
io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
[netty-transport-4.1.63.Final.jar!/:4.1.63.Final]
at
io.netty.handler.logging.LoggingHandler.channelRead(LoggingHandler.java:271)
[netty-handler-4.1.63.Final.jar!/:4.1.63.Final]
at
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannel,
context: ngx.timer
2021/08/12 11:44:58 [warn] 1751#1751: *8209277 [lua] init.lua:617:
HandlerContext.java:379) [netty-transport-4.1.63.Final.jar!/:4.1.63.Final]
at
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
[netty-transport-4.1.63.Final.jar!/:4.1.63.Final]
at io.netty.channel.AbstractChannelHandlerContext.fireChannel,
context: ngx.timer
2021/08/12 11:44:58 [warn] 1751#1751: *8209277 [lua] init.lua:617:
Read(AbstractChannelHandlerContext.java:357)
[netty-transport-4.1.63.Final.jar!/:4.1.63.Final]
at
io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)
[netty-transport-4.1.63.Final.jar!/:4.1.63.Final]
at
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
[netty-transport-4.1.63.Final.jar!/:4.1.63.Final]
at
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
[netty-transport-4.1.63.Final.jar!/:4.1.63.Final]
at
io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)
[netty-transport-4.1.63.Final.jar!/:4.1.63.Final]
at
io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(AbstractEpollStreamChannel.java:795)
[netty-transport-native-epoll-4.1.63.Final-linux-x86_64.jar!/:4.1.63.Final]
at
io.netty.channel.epoll.EpollDomainSocketChannel$EpollDomainUnsafe.epollInReady(EpollDomainSocketChannel.java:138)
[netty-transport-native-epoll-4.1.63.Final-linux-x86_64.jar!/:4.1.63.Final]
at
io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:480)
[netty-transport-native-epoll-4.1.63.Final-linux-x86_64.jar!/:4.1.63.Final]
at
io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:378)
[netty-transport-native-epoll-4.1.63.Final-linux-x86_64.jar!/:4.1.63.Final]
at
io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
[netty-common-4.1.63.Final.jar!/:4.1.63.Final]
at
io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
[netty-common-4.1.63.Final.jar!/:4.1.63.Final]
at
io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
[netty-common-4.1.63.Final.jar!/:4.1.63.Final]
### What's the expected result?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]