Caused by: io.netty.handler.codec.EncoderException: java.lang.IndexOutOfBoundsException: writerIndex(2147480528) + minWritableBytes(168498) exceeds maxCapacity(2147483647): PooledUnsafeDirectByteBuf(ridx: 0, widx: 2147480528, cap: 2147483647)

Hi All,

UAT environment were went down, from our Appian admin we received the tomcat.std logs with below error:

2022-11-22 14:05:56,714 [ThreadPoolTaskExecutor-147] ERROR com.appiancorp.process.workpoller.WorkItemListener - Error while trying to connect to send call 'completeWork'. WorkItem is going to Timeout in the requesting server: [WorkId: 71, EngineId: execution00, Request: ExpressionGroupRequest:2107325 as mm55767 by am85788, Response: ExpressionGroupResultResponse:2107325 type 117 daysToWait 0.0 canBeRetried false elapsed 7051.0]
com.appian.komodo.client.FailedToSendRequestException: Unable to write request f2660200-f2bc-43bd-8c3a-858abfdedfc7 to localhost:5024
	at com.appian.komodo.client.EngineSubchannel.lambda$internalSend$3(EngineSubchannel.java:253)
	at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:578)
	at io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:552)
	at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:491)
	at io.netty.util.concurrent.DefaultPromise.setValue0(DefaultPromise.java:616)
	at io.netty.util.concurrent.DefaultPromise.setFailure0(DefaultPromise.java:609)
	at io.netty.util.concurrent.DefaultPromise.tryFailure(DefaultPromise.java:117)
	at io.netty.util.internal.PromiseNotificationUtil.tryFailure(PromiseNotificationUtil.java:64)
	at io.netty.channel.AbstractChannelHandlerContext.notifyOutboundHandlerException(AbstractChannelHandlerContext.java:814)
	at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:719)
	at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:709)
	at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:792)
	at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:702)
	at io.netty.channel.ChannelDuplexHandler.write(ChannelDuplexHandler.java:115)
	at com.appian.komodo.client.handler.EngineResponseHandler.handleEngineCall(EngineResponseHandler.java:131)
	at com.appian.komodo.client.handler.EngineResponseHandler.write(EngineResponseHandler.java:102)
	at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:717)
	at io.netty.channel.AbstractChannelHandlerContext.invokeWriteAndFlush(AbstractChannelHandlerContext.java:764)
	at io.netty.channel.AbstractChannelHandlerContext$WriteTask.run(AbstractChannelHandlerContext.java:1071)
	at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
	at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:469)
	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500)
	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)
	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
	at java.lang.Thread.run(Thread.java:745)
Caused by: io.netty.handler.codec.EncoderException: java.lang.IndexOutOfBoundsException: writerIndex(2147480528) + minWritableBytes(168498) exceeds maxCapacity(2147483647): PooledUnsafeDirectByteBuf(ridx: 0, widx: 2147480528, cap: 2147483647)

Please help us whether this error can handled from Appian Developer or Appian Adminstration.

Regards,
Sandeep

  Discussion posts and replies are publicly visible