zhoutianli518 opened a new issue #1973:
URL: https://github.com/apache/servicecomb-java-chassis/issues/1973
用的CSE 3.1.1版本,继承的ServiceComb为2.1.1。走rest协议没问题,开启highWay后,连续请求的话,会成功一次,失败一次
。成功失败交替出现。失败的情况下,报如下异常。
2020-09-25 11:13:42.159|ERROR|eop|13|172.16.1.43|6876257328093873291|Failed
to mergeFrom,
field=org.apache.servicecomb.transport.highway.message.RequestHeader.context_entry:context,
type=context_entry|org.apache.servicecomb.foundation.protobuf.internal.schema.deserializer.MessageReadSchema
2020-09-25 11:13:42.160|ERROR|eop|13|172.16.1.43|6876257328093873291|decode
request header error,
msgId=0|org.apache.servicecomb.transport.highway.HighwayServerConnection
io.protostuff.ProtobufException: CodedInput encountered an embedded string
or bytes that misreported its size.
at
io.protostuff.ProtobufException.misreportedSize(ProtobufException.java:86)
at io.protostuff.ByteArrayInputEx.readString(ByteArrayInputEx.java:329)
at
org.apache.servicecomb.foundation.protobuf.internal.schema.deserializer.scalar.StringReadSchemas$StringSchema.mergeFrom(StringReadSchemas.java:59)
at
org.apache.servicecomb.foundation.protobuf.internal.schema.map.MapEntrySchema.mergeFrom(MapEntrySchema.java:55)
at
org.apache.servicecomb.foundation.protobuf.internal.schema.map.MapEntrySchema.mergeFrom(MapEntrySchema.java:30)
at io.protostuff.ByteArrayInputEx.mergeObject(ByteArrayInputEx.java:378)
at
org.apache.servicecomb.foundation.protobuf.internal.schema.map.MapSchema.mergeFrom(MapSchema.java:59)
at
org.apache.servicecomb.foundation.protobuf.internal.schema.deserializer.MessageReadSchema.mergeFrom(MessageReadSchema.java:159)
at
org.apache.servicecomb.foundation.protobuf.RootDeserializer.deserialize(RootDeserializer.java:44)
at
org.apache.servicecomb.transport.highway.message.RequestHeader.readObject(RequestHeader.java:43)
at
org.apache.servicecomb.transport.highway.HighwayCodec.readRequestHeader(HighwayCodec.java:88)
at
org.apache.servicecomb.transport.highway.HighwayServerConnection.decodeRequestHeader(HighwayServerConnection.java:81)
at
org.apache.servicecomb.transport.highway.HighwayServerConnection.handle(HighwayServerConnection.java:61)
at
org.apache.servicecomb.foundation.vertx.server.TcpParser.onReadOnePackage(TcpParser.java:130)
at
org.apache.servicecomb.foundation.vertx.server.TcpParser.onParse(TcpParser.java:121)
at
io.vertx.core.parsetools.impl.RecordParserImpl.handleParsing(RecordParserImpl.java:214)
at
io.vertx.core.parsetools.impl.RecordParserImpl.handle(RecordParserImpl.java:285)
at
org.apache.servicecomb.foundation.vertx.server.TcpParser.handle(TcpParser.java:137)
at
org.apache.servicecomb.foundation.vertx.server.TcpParser.handle(TcpParser.java:32)
at
io.vertx.core.net.impl.NetSocketImpl$DataMessageHandler.handle(NetSocketImpl.java:378)
at
io.vertx.core.net.impl.NetSocketImpl.lambda$new$2(NetSocketImpl.java:100)
at
io.vertx.core.streams.impl.InboundBuffer.handleEvent(InboundBuffer.java:237)
at
io.vertx.core.streams.impl.InboundBuffer.write(InboundBuffer.java:127)
at
io.vertx.core.net.impl.NetSocketImpl.handleMessage(NetSocketImpl.java:356)
at io.vertx.core.impl.ContextImpl.executeTask(ContextImpl.java:369)
at io.vertx.core.impl.EventLoopContext.execute(EventLoopContext.java:43)
at io.vertx.core.impl.ContextImpl.executeFromIO(ContextImpl.java:232)
at
io.vertx.core.net.impl.VertxHandler.channelRead(VertxHandler.java:173)
at
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
at
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
at
io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
at
io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)
at
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
at
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
at
io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)
at
io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163)
at
io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:714)
at
io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:650)
at
io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:576)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493)
at
io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
at
io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at
io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.lang.Thread.run(Thread.java:748)
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]