You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Successfully run test classes annotated with @MicronautTest when Micronaut Test Resource Server is running.
Note:
This used to work for me with no issue. Since then, I haven't made dependency updates. Only code updates. I also have issues starting/stopping the test resource service. Any help in knowing how to find/kill the test resource process is appreciated.
Actual Behaviour
When I run my tests annotated with @MicronautTest via Maven commands or IntelliJ, I receive the following error:
io.micronaut.testresources.client.TestResourcesException: java.io.IOException: Invalid status line: "��������A{"Dns4":{"ProtectionState":"open"},"Ip4":{"ProtectionState":"notProtected","connectionError":"false"},"Dns6":{"ProtectionState":"open"},"Ip6":{"ProtectionState":"notProtected","connectionError":"false"},"LastConnectedTime":"0","LogUploadEnabled":"false","ClientName":"UnknownClient","UserName":"UnknownUser","AgentStatus":"noOrginfo","SWG":{"State":"unprotected","Licensed":"false","Enabled":"false"}}"
at io.micronaut.testresources.client.DefaultTestResourcesClient.request(DefaultTestResourcesClient.java:157)
at io.micronaut.testresources.client.DefaultTestResourcesClient.getRequiredPropertyEntries(DefaultTestResourcesClient.java:104)
at java.base/java.util.Optional.map(Optional.java:260)
at io.micronaut.testresources.client.TestResourcesClientPropertySourceLoader$ClientTestResourcesResolver.getPropertyEntries(TestResourcesClientPropertySourceLoader.java:50)
at io.micronaut.testresources.core.LazyTestResourcesPropertySourceLoader$LazyPropertySource.computeKeys(LazyTestResourcesPropertySourceLoader.java:98)
at io.micronaut.testresources.core.LazyTestResourcesPropertySourceLoader$LazyPropertySource.iterator(LazyTestResourcesPropertySourceLoader.java:90)
at io.micronaut.context.env.PropertySourcePropertyResolver.processPropertySource(PropertySourcePropertyResolver.java:588)
at io.micronaut.context.env.DefaultEnvironment.readPropertySources(DefaultEnvironment.java:459)
at io.micronaut.context.env.DefaultEnvironment.start(DefaultEnvironment.java:277)
at io.micronaut.context.DefaultApplicationContext$RuntimeConfiguredEnvironment.start(DefaultApplicationContext.java:909)
at io.micronaut.context.DefaultApplicationContext$RuntimeConfiguredEnvironment.start(DefaultApplicationContext.java:878)
at io.micronaut.context.DefaultApplicationContext.startEnvironment(DefaultApplicationContext.java:266)
at io.micronaut.context.DefaultApplicationContext.start(DefaultApplicationContext.java:201)
at io.micronaut.test.extensions.AbstractMicronautExtension.startApplicationContext(AbstractMicronautExtension.java:507)
at io.micronaut.test.extensions.AbstractMicronautExtension.beforeClass(AbstractMicronautExtension.java:346)
at io.micronaut.test.extensions.junit5.MicronautJunit5Extension.beforeAll(MicronautJunit5Extension.java:84)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
Caused by: java.io.IOException: Invalid status line: "��������A{"Dns4":{"ProtectionState":"open"},"Ip4":{"ProtectionState":"notProtected","connectionError":"false"},"Dns6":{"ProtectionState":"open"},"Ip6":{"ProtectionState":"notProtected","connectionError":"false"},"LastConnectedTime":"0","LogUploadEnabled":"false","ClientName":"UnknownClient","UserName":"UnknownUser","AgentStatus":"noOrginfo","SWG":{"State":"unprotected","Licensed":"false","Enabled":"false"}}"
at java.net.http/jdk.internal.net.http.HttpClientImpl.send(HttpClientImpl.java:586)
at java.net.http/jdk.internal.net.http.HttpClientFacade.send(HttpClientFacade.java:119)
at io.micronaut.testresources.client.DefaultTestResourcesClient.request(DefaultTestResourcesClient.java:140)
... 16 more
Caused by: java.net.ProtocolException: Invalid status line: "��������A{"Dns4":{"ProtectionState":"open"},"Ip4":{"ProtectionState":"notProtected","connectionError":"false"},"Dns6":{"ProtectionState":"open"},"Ip6":{"ProtectionState":"notProtected","connectionError":"false"},"LastConnectedTime":"0","LogUploadEnabled":"false","ClientName":"UnknownClient","UserName":"UnknownUser","AgentStatus":"noOrginfo","SWG":{"State":"unprotected","Licensed":"false","Enabled":"false"}}"
at java.net.http/jdk.internal.net.http.Http1HeaderParser.protocolException(Http1HeaderParser.java:342)
at java.net.http/jdk.internal.net.http.Http1HeaderParser.readStatusLineFeed(Http1HeaderParser.java:190)
at java.net.http/jdk.internal.net.http.Http1HeaderParser.parse(Http1HeaderParser.java:121)
at java.net.http/jdk.internal.net.http.Http1Response$HeadersReader.handle(Http1Response.java:690)
at java.net.http/jdk.internal.net.http.Http1Response$HeadersReader.handle(Http1Response.java:621)
at java.net.http/jdk.internal.net.http.Http1Response$Receiver.accept(Http1Response.java:612)
at java.net.http/jdk.internal.net.http.Http1Response$HeadersReader.tryAsyncReceive(Http1Response.java:668)
at java.net.http/jdk.internal.net.http.Http1AsyncReceiver.flush(Http1AsyncReceiver.java:233)
at java.net.http/jdk.internal.net.http.common.SequentialScheduler$LockingRestartableTask.run(SequentialScheduler.java:205)
at java.net.http/jdk.internal.net.http.common.SequentialScheduler$CompleteRestartableTask.run(SequentialScheduler.java:149)
at java.net.http/jdk.internal.net.http.common.SequentialScheduler$SchedulableTask.run(SequentialScheduler.java:230)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)
Steps To Reproduce
Create test class and annotate with @MicronautTest
Create test
Start test service via mvn mn:start-testresources-service
Expected Behavior
Successfully run test classes annotated with
@MicronautTest
when Micronaut Test Resource Server is running.Note:
This used to work for me with no issue. Since then, I haven't made dependency updates. Only code updates. I also have issues starting/stopping the test resource service. Any help in knowing how to find/kill the test resource process is appreciated.
Actual Behaviour
When I run my tests annotated with
@MicronautTest
via Maven commands or IntelliJ, I receive the following error:Steps To Reproduce
@MicronautTest
mvn mn:start-testresources-service
Environment Information
Example Application
No response
Version
4.4.3
The text was updated successfully, but these errors were encountered: