org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: java.lang.IllegalThreadStateException: Thread already started

GitHub | srkannan | 4 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    uiautomator2 - stopping and starting the script with out ending the session causes issue

    GitHub | 4 months ago | srkannan
    org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: java.lang.IllegalThreadStateException: Thread already started
  2. 0

    Exception in findElement when using automationName=uiautomator2

    GitHub | 4 months ago | ptsiakos77
    org.w3c.dom.DOMException: android.support.v7.app.ActionBar$Tab
  3. 0

    click the same element twice or more, throw a uiautomator exception

    GitHub | 5 months ago | wenshi11019
    org.openqa.selenium.StaleElementReferenceException: android.support.test.uiautomator.StaleObjectException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.openqa.selenium.WebDriverException

      An unknown server-side error occurred while processing the command. Original error: java.lang.IllegalThreadStateException: Thread already started

      at java.lang.Thread.checkNotStarted()
    2. Java RT
      Thread.start
      1. java.lang.Thread.checkNotStarted(Thread.java:849)
      2. java.lang.Thread.start(Thread.java:1059)
      2 frames
    3. io.appium.uiautomator2
      ServerHandler.channelRead
      1. io.appium.uiautomator2.model.NotificationListener.start(NotificationListener.java:32)
      2. io.appium.uiautomator2.model.Session.<init>(Session.java:23)
      3. io.appium.uiautomator2.model.AppiumUiAutomatorDriver.initializeSession(AppiumUiAutomatorDriver.java:19)
      4. io.appium.uiautomator2.handler.NewSession.safeHandle(NewSession.java:31)
      5. io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:54)
      6. io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:201)
      7. io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:192)
      8. io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:44)
      8 frames
    4. Netty
      DefaultThreadFactory$DefaultRunnableDecorator.run
      1. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
      2. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
      3. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)
      4. io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102)
      5. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
      6. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
      7. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)
      8. io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelRead(CombinedChannelDuplexHandler.java:435)
      9. io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293)
      10. io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:267)
      11. io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:250)
      12. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
      13. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
      14. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)
      15. io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1294)
      16. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
      17. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
      18. io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:911)
      19. io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)
      20. io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:611)
      21. io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:514)
      22. io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:468)
      23. io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:438)
      24. io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:140)
      25. io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144)
      25 frames
    5. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:818)
      1 frame