ATF test error: Exception while executing request: stream has already been operated upon or closed

RenataN
Tera Contributor

Hi

 

I am dealyng with a erro in a ATF test in a step called Open Service Portal Page.

The error message says: 

 

This step failed because the client error 'Exception while executing request: stream has already been operated upon or closed: com.glide.rest.util.RESTRuntimeException: Exception while executing request: stream has already been operated upon or closed: com.glide.rest.handler.impl.ServiceHandlerImpl.handleInvocationTargetException(ServiceHandlerImpl.java:79)
com.glide.rest.handler.impl.ServiceHandlerImpl.invokeService(ServiceHandlerImpl.java:50)
com.glide.rest.processors.RESTAPIProcessor.invokeService(RESTAPIProcessor.java:514)
com.glide.rest.processors.RESTAPIProcessor.processInternal(RESTAPIProcessor.java:496)
com.glide.rest.processors.RESTAPIProcessor.process(RESTAPIProcessor.java:480)
com.glide.processors.AProcessor.runProcessor(AProcessor.java:934)
com.glide.processors.AProcessor.processTransaction(AProcessor.java:355)
com.glide.processors.ProcessorRegistry.process0(ProcessorRegistry.java:200)
com.glide.processors.ProcessorRegistry.lambda$processWithRollbackRecording$0(ProcessorRegistry.java:448)
com.glide.rollback.recording.RollbackRecorder.execute(RollbackRecorder.java:67)
com.glide.processors.ProcessorRegistry.processWithRollbackRecording(ProcessorRegistry.java:444)
com.glide.processors.ProcessorRegistry$TracingCallable.call(ProcessorRegistry.java:494)
com.glide.processors.ProcessorRegistry$TracingCallable.call(ProcessorRegistry.java:483)
com.glide.metadata.tracing.MetadataTracer.executeWithTrace(MetadataTracer.java:423)
com.glide.metadata.tracing.MetadataTracer.executeWithTrace(MetadataTracer.java:414)
com.glide.processors.ProcessorRegistry.process(ProcessorRegistry.java:181)
com.glide.ui.GlideServletTransaction.process(GlideServletTransaction.java:58)
com.glide.sys.Transaction.run(Transaction.java:3307)
com.glide.ui.HTTPTransaction.run(HTTPTransaction.java:76)
com.glide.sys.util.sema.SemaphoreQueueThreadPool$Semaphore.runTransaction(SemaphoreQueueThreadPool.java:374)
com.glide.sys.util.sema.SemaphoreQueueThreadPool$Semaphore.runThreadImpl(SemaphoreQueueThreadPool.java:338)
com.glide.sys.util.sema.SemaphoreQueueThreadPool$Semaphore.runThread(SemaphoreQueueThreadPool.java:159)
java.base/java.lang.Thread.run(Thread.java:1583)
' was detected on the page being tested. See failing Test Logs. To ignore these errors in the next test run, use 'Add all client errors to warning/ignored list' links.

 

Please, someone can help me to understand that error and how to solve it.

 

Thank you in advance

1 REPLY 1

Tanushree Maiti
Tera Patron

Hi @RenataN 

 

Validate the solution given in posts against same error:

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti