gauge-java
gauge-java copied to clipboard
Failed to kill Runner: rpc error: code = Unavailable desc = closing transport due to: connection error: desc = "error reading from server: EOF", received prior goaway: code: INTERNAL_ERROR, debug data: io/perfmark/PerfMark
Hello everyone! At startup, the login.spec is successfully build, but the test does not start, but falls into ignore
To Reproduce Select the login.spec and run it Pay attention to the Run result (check the log file attached gauge.log): "Failed to kill Runner: rpc error: code = Unavailable desc = closing transport due to: connection error: desc = "error reading from server: EOF", received prior goaway: code: INTERNAL_ERROR, debug data: io/perfmark/PerfMark"
Logs (gauge.log) SLF4J No SLF4J providers were found. SLF4J Defaulting to no-operation (NOP) logger implementation SLF4J See httpwww.slf4j.orgcodes.html#noProviders for further details. [ValidationError] CUsersvanyushinDocumentsGitHubGauge-Framework-Examplespecslogin.spec7 rpc error code = Unavailable desc = closing transport due to connection error desc = error reading from server EOF, received prior goaway code INTERNAL_ERROR, debug data ioperfmarkPerfMark = 'Goto mantis page.' [ValidationError] CUsersvanyushinDocumentsGitHubGauge-Framework-Examplespecslogin.spec8 rpc error code = Unavailable desc = closing transport due to connection error desc = error reading from server EOF, received prior goaway code INTERNAL_ERROR, debug data ioperfmarkPerfMark = 'Write login data administration root.' ноя 14, 2021 43329 PM io.grpc.netty.shaded.io.grpc.netty.NettyServerTransport notifyTerminated INFO Transport failed java.lang.NoClassDefFoundError ioperfmarkPerfMark at io.grpc.netty.shaded.io.grpc.netty.NettyServerStream$TransportState.init(NettyServerStream.java187) at io.grpc.netty.shaded.io.grpc.netty.NettyServerHandler.onHeadersRead(NettyServerHandler.java449) at io.grpc.netty.shaded.io.grpc.netty.NettyServerHandler.access$1000(NettyServerHandler.java104) at io.grpc.netty.shaded.io.grpc.netty.NettyServerHandler$FrameListener.onHeadersRead(NettyServerHandler.java832) at io.grpc.netty.shaded.io.netty.handler.codec.http2.DefaultHttp2ConnectionDecoder$FrameReadListener.onHeadersRead(DefaultHttp2ConnectionDecoder.java373) at io.grpc.netty.shaded.io.netty.handler.codec.http2.DefaultHttp2ConnectionDecoder$FrameReadListener.onHeadersRead(DefaultHttp2ConnectionDecoder.java321) at io.grpc.netty.shaded.io.netty.handler.codec.http2.DefaultHttp2ConnectionDecoder$PrefaceFrameListener.onHeadersRead(DefaultHttp2ConnectionDecoder.java665) at io.grpc.netty.shaded.io.netty.handler.codec.http2.Http2InboundFrameLogger$1.onHeadersRead(Http2InboundFrameLogger.java56) at io.grpc.netty.shaded.io.netty.handler.codec.http2.DefaultHttp2FrameReader$2.processFragment(DefaultHttp2FrameReader.java483) at io.grpc.netty.shaded.io.netty.handler.codec.http2.DefaultHttp2FrameReader.readHeadersFrame(DefaultHttp2FrameReader.java491) at io.grpc.netty.shaded.io.netty.handler.codec.http2.DefaultHttp2FrameReader.processPayloadState(DefaultHttp2FrameReader.java254) at io.grpc.netty.shaded.io.netty.handler.codec.http2.DefaultHttp2FrameReader.readFrame(DefaultHttp2FrameReader.java160) at io.grpc.netty.shaded.io.netty.handler.codec.http2.Http2InboundFrameLogger.readFrame(Http2InboundFrameLogger.java41) at io.grpc.netty.shaded.io.netty.handler.codec.http2.DefaultHttp2ConnectionDecoder.decodeFrame(DefaultHttp2ConnectionDecoder.java174) at io.grpc.netty.shaded.io.netty.handler.codec.http2.Http2ConnectionHandler$FrameDecoder.decode(Http2ConnectionHandler.java378) at io.grpc.netty.shaded.io.netty.handler.codec.http2.Http2ConnectionHandler$PrefaceDecoder.decode(Http2ConnectionHandler.java242) at io.grpc.netty.shaded.io.netty.handler.codec.http2.Http2ConnectionHandler.decode(Http2ConnectionHandler.java438) at io.grpc.netty.shaded.io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java501) at io.grpc.netty.shaded.io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java440) at io.grpc.netty.shaded.io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java276) at io.grpc.netty.shaded.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java379) at io.grpc.netty.shaded.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java365) at io.grpc.netty.shaded.io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java357) at io.grpc.netty.shaded.io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java1410) at io.grpc.netty.shaded.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java379) at io.grpc.netty.shaded.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java365) at io.grpc.netty.shaded.io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java919) at io.grpc.netty.shaded.io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java166) at io.grpc.netty.shaded.io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java714) at io.grpc.netty.shaded.io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java650) at io.grpc.netty.shaded.io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java576) at io.grpc.netty.shaded.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java493) at io.grpc.netty.shaded.io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java989) at io.grpc.netty.shaded.io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java74) at io.grpc.netty.shaded.io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java30) at java.lang.Thread.run(Thread.java748) Caused by java.lang.ClassNotFoundException io.perfmark.PerfMark at java.net.URLClassLoader.findClass(URLClassLoader.java382) at java.lang.ClassLoader.loadClass(ClassLoader.java418) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java355) at java.lang.ClassLoader.loadClass(ClassLoader.java351) ... 36 more ноя 14, 2021 43329 PM io.grpc.netty.shaded.io.grpc.netty.NettyServerTransport notifyTerminated INFO Transport failed java.lang.NoClassDefFoundError ioperfmarkPerfMark at io.grpc.netty.shaded.io.grpc.netty.NettyServerStream$TransportState.init(NettyServerStream.java187) at io.grpc.netty.shaded.io.grpc.netty.NettyServerHandler.onHeadersRead(NettyServerHandler.java449) at io.grpc.netty.shaded.io.grpc.netty.NettyServerHandler.access$1000(NettyServerHandler.java104) at io.grpc.netty.shaded.io.grpc.netty.NettyServerHandler$FrameListener.onHeadersRead(NettyServerHandler.java832) at io.grpc.netty.shaded.io.netty.handler.codec.http2.DefaultHttp2ConnectionDecoder$FrameReadListener.onHeadersRead(DefaultHttp2ConnectionDecoder.java373) at io.grpc.netty.shaded.io.netty.handler.codec.http2.DefaultHttp2ConnectionDecoder$FrameReadListener.onHeadersRead(DefaultHttp2ConnectionDecoder.java321) at io.grpc.netty.shaded.io.netty.handler.codec.http2.DefaultHttp2ConnectionDecoder$PrefaceFrameListener.onHeadersRead(DefaultHttp2ConnectionDecoder.java665) at io.grpc.netty.shaded.io.netty.handler.codec.http2.Http2InboundFrameLogger$1.onHeadersRead(Http2InboundFrameLogger.java56) at io.grpc.netty.shaded.io.netty.handler.codec.http2.DefaultHttp2FrameReader$2.processFragment(DefaultHttp2FrameReader.java483) at io.grpc.netty.shaded.io.netty.handler.codec.http2.DefaultHttp2FrameReader.readHeadersFrame(DefaultHttp2FrameReader.java491) at io.grpc.netty.shaded.io.netty.handler.codec.http2.DefaultHttp2FrameReader.processPayloadState(DefaultHttp2FrameReader.java254) at io.grpc.netty.shaded.io.netty.handler.codec.http2.DefaultHttp2FrameReader.readFrame(DefaultHttp2FrameReader.java160) at io.grpc.netty.shaded.io.netty.handler.codec.http2.Http2InboundFrameLogger.readFrame(Http2InboundFrameLogger.java41) at io.grpc.netty.shaded.io.netty.handler.codec.http2.DefaultHttp2ConnectionDecoder.decodeFrame(DefaultHttp2ConnectionDecoder.java174) at io.grpc.netty.shaded.io.netty.handler.codec.http2.Http2ConnectionHandler$FrameDecoder.decode(Http2ConnectionHandler.java378) at io.grpc.netty.shaded.io.netty.handler.codec.http2.Http2ConnectionHandler$PrefaceDecoder.decode(Http2ConnectionHandler.java242) at io.grpc.netty.shaded.io.netty.handler.codec.http2.Http2ConnectionHandler.decode(Http2ConnectionHandler.java438) at io.grpc.netty.shaded.io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java501) at io.grpc.netty.shaded.io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java440) at io.grpc.netty.shaded.io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java276) at io.grpc.netty.shaded.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java379) at io.grpc.netty.shaded.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java365) at io.grpc.netty.shaded.io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java357) at io.grpc.netty.shaded.io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java1410) at io.grpc.netty.shaded.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java379) at io.grpc.netty.shaded.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java365) at io.grpc.netty.shaded.io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java919) at io.grpc.netty.shaded.io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java166) at io.grpc.netty.shaded.io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java714) at io.grpc.netty.shaded.io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java650) at io.grpc.netty.shaded.io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java576) at io.grpc.netty.shaded.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java493) at io.grpc.netty.shaded.io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java989) at io.grpc.netty.shaded.io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java74) at io.grpc.netty.shaded.io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java30) at java.lang.Thread.run(Thread.java748) ноя 14, 2021 43329 PM io.grpc.netty.shaded.io.grpc.netty.NettyServerTransport notifyTerminated INFO Transport failed java.lang.NoClassDefFoundError ioperfmarkPerfMark at io.grpc.netty.shaded.io.grpc.netty.NettyServerStream$TransportState.init(NettyServerStream.java187) at io.grpc.netty.shaded.io.grpc.netty.NettyServerHandler.onHeadersRead(NettyServerHandler.java449) at io.grpc.netty.shaded.io.grpc.netty.NettyServerHandler.access$1000(NettyServerHandler.java104) at io.grpc.netty.shaded.io.grpc.netty.NettyServerHandler$FrameListener.onHeadersRead(NettyServerHandler.java832) at io.grpc.netty.shaded.io.netty.handler.codec.http2.DefaultHttp2ConnectionDecoder$FrameReadListener.onHeadersRead(DefaultHttp2ConnectionDecoder.java373) at io.grpc.netty.shaded.io.netty.handler.codec.http2.DefaultHttp2ConnectionDecoder$FrameReadListener.onHeadersRead(DefaultHttp2ConnectionDecoder.java321) at io.grpc.netty.shaded.io.netty.handler.codec.http2.Http2InboundFrameLogger$1.onHeadersRead(Http2InboundFrameLogger.java56) at io.grpc.netty.shaded.io.netty.handler.codec.http2.DefaultHttp2FrameReader$2.processFragment(DefaultHttp2FrameReader.java483) at io.grpc.netty.shaded.io.netty.handler.codec.http2.DefaultHttp2FrameReader.readHeadersFrame(DefaultHttp2FrameReader.java491) at io.grpc.netty.shaded.io.netty.handler.codec.http2.DefaultHttp2FrameReader.processPayloadState(DefaultHttp2FrameReader.java254) at io.grpc.netty.shaded.io.netty.handler.codec.http2.DefaultHttp2FrameReader.readFrame(DefaultHttp2FrameReader.java160) at io.grpc.netty.shaded.io.netty.handler.codec.http2.Http2InboundFrameLogger.readFrame(Http2InboundFrameLogger.java41) at io.grpc.netty.shaded.io.netty.handler.codec.http2.DefaultHttp2ConnectionDecoder.decodeFrame(DefaultHttp2ConnectionDecoder.java174) at io.grpc.netty.shaded.io.netty.handler.codec.http2.Http2ConnectionHandler$FrameDecoder.decode(Http2ConnectionHandler.java378) at io.grpc.netty.shaded.io.netty.handler.codec.http2.Http2ConnectionHandler.decode(Http2ConnectionHandler.java438) at io.grpc.netty.shaded.io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java501) at io.grpc.netty.shaded.io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java440) at io.grpc.netty.shaded.io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java276) at io.grpc.netty.shaded.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java379) at io.grpc.netty.shaded.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java365) at io.grpc.netty.shaded.io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java357) at io.grpc.netty.shaded.io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java1410) at io.grpc.netty.shaded.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java379) at io.grpc.netty.shaded.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java365) at io.grpc.netty.shaded.io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java919) at io.grpc.netty.shaded.io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java166) at io.grpc.netty.shaded.io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java714) at io.grpc.netty.shaded.io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java650) at io.grpc.netty.shaded.io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java576) at io.grpc.netty.shaded.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java493) at io.grpc.netty.shaded.io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java989) at io.grpc.netty.shaded.io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java74) at io.grpc.netty.shaded.io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java30) at java.lang.Thread.run(Thread.java748) Successfully generated html-report to = CUsersvanyushinDocumentsGitHubGauge-Framework-Examplereportshtml-reportindex.html
Failed to kill Runner rpc error code = Unavailable desc = closing transport due to connection error desc = error reading from server EOF, received prior goaway code INTERNAL_ERROR, debug data ioperfmarkPerfMark Specifications 0 executed 0 passed 0 failed 0 skipped Scenarios 0 executed 0 passed 0 failed 0 skipped
Run console output
SLF4J: No SLF4J providers were found.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#noProviders for further details.
[ValidationError] C:\Users\vanyushin\Documents\GitHub\Gauge-Framework-Example\specs\login.spec:7 rpc error: code = Unavailable desc = closing transport due to: connection error: desc = "error reading from server: EOF", received prior goaway: code: INTERNAL_ERROR, debug data: io/perfmark/PerfMark => 'Goto mantis page.'
[ValidationError] C:\Users\vanyushin\Documents\GitHub\Gauge-Framework-Example\specs\login.spec:8 rpc error: code = Unavailable desc = closing transport due to: connection error: desc = "error reading from server: EOF", received prior goaway: code: INTERNAL_ERROR, debug data: io/perfmark/PerfMark => 'Write login data "administration" "root".'
ноя 14, 2021 4:33:29 PM io.grpc.netty.shaded.io.grpc.netty.NettyServerTransport notifyTerminated
INFO: Transport failed
java.lang.NoClassDefFoundError: io/perfmark/PerfMark
at io.grpc.netty.shaded.io.grpc.netty.NettyServerStream$TransportState.
Failed to kill Runner: rpc error: code = Unavailable desc = closing transport due to: connection error: desc = "error reading from server: EOF", received prior goaway: code: INTERNAL_ERROR, debug data: io/perfmark/PerfMark Specifications: 0 executed 0 passed 0 failed 0 skipped Scenarios: 0 executed 0 passed 0 failed 0 skipped
Expected behavior
Expected a successful login to Mantis
Versions:
- Windows 10
- Java 11
- Gradle 7.1
gauge -v
Gauge version: 1.4.1 Commit Hash: a82478a
Plugins
html-report (4.1.2) java (0.7.15) screenshot (0.1.0) spectacle (0.1.4) xml-report (0.2.3)
I ask for help in this problem, I read similar problems, but I still could not solve my own. Could it be the versioning issue? Or some kind of settings? If required, I will always provide additional information
Thanks!
hi @ZmixZ - is there a project that I can try executing to see this error? It seems like this is thrown due to some unresolved gRPC dependency.
Good day @sriv ! Unfortunately, I have no idea how to do this. The fact is that I get this error in general in all projects that are on Gauge:). For example, I initially relied on the official project and there I also caught this error: https://github.com/getgauge-examples/java-gradle-selenium Perhaps if you ask me to send you some information, I can somehow contribute to the speedy resolution of the problem?
That is strange. What command are you using to run the tests for https://github.com/getgauge-examples/java-gradle-selenium?
I use ./gradlew gauge
.
The fact is that I get this error in general in all projects that are on Gauge:).
That's a bummer. Are your gauge projects using any build tool (maven/gradle)? If so, please share what commands you use to run the specs.
Also, do you see anything abnormal reported in the logs
?
@sriv Hmm, I run my specs through Run, but before that I tried to launch gradlew gauge in my project. I'm just learning how to work with gradle. What is interesting for me was just this message (launching the browser and working out the step was not): C:\Users\vanyushin\Documents\GitHub\Gauge-Framework-Example>gradlew gauge
BUILD SUCCESSFUL in 2s 1 actionable task: 1 executed
And for some reason I mentally dismissed it as a possible solution to the situation, but I tried to launch this project: https://github.com/getgauge-examples/java-gradle-selenium in the same way and it began to work out correctly.
My build.gradle: plugins { id 'java' id "org.gauge" version "1.8.2" id "com.gradleup.static-analysis" version "1.4" id "com.github.spotbugs" version "4.7.4" }
group 'org.example' version '1.0-SNAPSHOT'
repositories { mavenCentral() }
dependencies { compileOnly 'org.projectlombok:lombok:1.18.20' implementation 'org.mybatis:mybatis:3.5.7' implementation 'org.mariadb.jdbc:mariadb-java-client:2.7.4' implementation 'com.thoughtworks.gauge:gauge-java:0.7.15' implementation 'com.codeborne:selenide:5.18.1' implementation 'io.github.bonigarcia:webdrivermanager:4.4.3' implementation group: 'com.squareup.okhttp3', name: 'okhttp', version: '4.10.0-RC1' implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.13.0-rc1' implementation group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.13.0-rc1' implementation group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: '2.13.0-rc1' implementation group: 'com.google.inject', name: 'guice', version: '5.0.1' implementation group: 'org.mybatis', name: 'mybatis-guice', version: '3.12' }
staticAnalysis { penalty { maxErrors = 0 maxWarnings = 0 } checkstyle { toolVersion = 9.0 } pmd { } spotbugs { } }
test { useJUnitPlatform() }
gauge { specsDir = 'specs' inParallel = false nodes = 1 env = 'default' tags = 'tag1' additionalFlags = '--verbose' gaugeRoot = '/opt/gauge' }
Maybe you need some specific scripts in gradlew?
Gradle caches your build, so if it feels that there is no change since the last run, it will report the status without executing it again. Can you try running gradlew --no-build-cache
?
I'll investigate what's the best way to make gauge
task not cacheable
@sriv When I run gradlew --no-build-cache, I get the exact same build success message: C:\Users\vanyushin\Documents\GitHub\Gauge-Framework-Example>gradlew --no-build-cache
Task :help
Welcome to Gradle 7.1.
To run a build, run gradlew
To see a list of available tasks, run gradlew tasks
To see a list of command-line options, run gradlew --help
To see more detail about a task, run gradlew help --task
For troubleshooting, visit https://help.gradle.org
BUILD SUCCESSFUL in 1s 1 actionable task: 1 executed
I also tried to launch using gradlew --no-build-cache gauge and gradlew clean build --no-build-cache and gradlew gauge --rerun-tasks, or, for example, killed daemons with gradlew --stop, and then tried to launch using a new build, and give and always got the same thing (message above)