Skip to content

Instantly share code, notes, and snippets.

@jpkleemans
Created December 15, 2020 15:37
Show Gist options
  • Save jpkleemans/88e80aa3251917c1e337e4fae8853f68 to your computer and use it in GitHub Desktop.
Save jpkleemans/88e80aa3251917c1e337e4fae8853f68 to your computer and use it in GitHub Desktop.
[HTTP] --> POST /wd/hub/session/c53f2465-d128-4baa-a4ab-67481bf7cfbe/element
[HTTP] {"using":"xpath","value":"//android.widget.FrameLayout[@content-desc=\"Profile\"]"}
[debug] [MJSONWP (c53f2465)] Calling AppiumDriver.findElement() with args: ["xpath","//android.widget.FrameLayout[@content-desc=\"Profile\"]","c53f2465-d128-4baa-a4ab-67481bf7cfbe"]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, css selector, -android uiautomator
[debug] [BaseDriver] Waiting up to 300000 ms for condition
[debug] [WD Proxy] Matched '/element' to command name 'findElement'
[debug] [WD Proxy] Proxying [POST /element] to [POST http://127.0.0.1:8200/wd/hub/session/52d284c4-2b06-4f43-b12d-821bd1d1be6d/element] with body: {"strategy":"xpath","selector":"//android.widget.FrameLayout[@content-desc=\"Profile\"]","context":"","multiple":false}
[WD Proxy] Got response with status 500: {"sessionId":"52d284c4-2b06-4f43-b12d-821bd1d1be6d","value":{"error":"unknown error","message":"java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.String java.lang.CharSequence.toString()' on a null object reference","stacktrace":"io.appium.uiautomator2.common.exceptions.UiAutomator2Exception: java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.String java.lang.CharSequence.toString()' on a null object reference\n\tat io.appium.uiautomator2.core.AccessibilityNodeInfoDumper.findNodes(AccessibilityNodeInfoDumper.java:237)\n\tat io.appium.uiautomator2.utils.ElementLocationHelpers.getXPathNodeMatch(ElementLocationHelpers.java:86)\n\tat io.appium.uiautomator2.handler.FindElement.findElement(FindElement.java:100)\n\tat io.appium.uiautomator2.handler.FindElement.safeHandle(FindElement.java:72)\n\tat io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:38)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumS...
[debug] [W3C] Matched W3C error code 'unknown error' to UnknownError
[debug] [MJSONWP (c53f2465)] Encountered internal error running command: An unknown server-side error occurred while processing the command. Original error: java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.String java.lang.CharSequence.toString()' on a null object reference
[debug] [MJSONWP (c53f2465)] io.appium.uiautomator2.common.exceptions.UiAutomator2Exception: java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.String java.lang.CharSequence.toString()' on a null object reference
[debug] [MJSONWP (c53f2465)] at io.appium.uiautomator2.core.AccessibilityNodeInfoDumper.findNodes(AccessibilityNodeInfoDumper.java:237)
[debug] [MJSONWP (c53f2465)] at io.appium.uiautomator2.utils.ElementLocationHelpers.getXPathNodeMatch(ElementLocationHelpers.java:86)
[debug] [MJSONWP (c53f2465)] at io.appium.uiautomator2.handler.FindElement.findElement(FindElement.java:100)
[debug] [MJSONWP (c53f2465)] at io.appium.uiautomator2.handler.FindElement.safeHandle(FindElement.java:72)
[debug] [MJSONWP (c53f2465)] at io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:38)
[debug] [MJSONWP (c53f2465)] at io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:252)
[debug] [MJSONWP (c53f2465)] at io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:242)
[debug] [MJSONWP (c53f2465)] at io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:51)
[debug] [MJSONWP (c53f2465)] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
[debug] [MJSONWP (c53f2465)] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
[debug] [MJSONWP (c53f2465)] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)
[debug] [MJSONWP (c53f2465)] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102)
[debug] [MJSONWP (c53f2465)] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
[debug] [MJSONWP (c53f2465)] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
[debug] [MJSONWP (c53f2465)] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)
[debug] [MJSONWP (c53f2465)] at io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelRead(CombinedChannelDuplexHandler.java:435)
[debug] [MJSONWP (c53f2465)] at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293)
[debug] [MJSONWP (c53f2465)] at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:267)
[debug] [MJSONWP (c53f2465)] at io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:250)
[debug] [MJSONWP (c53f2465)] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
[debug] [MJSONWP (c53f2465)] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
[debug] [MJSONWP (c53f2465)] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)
[debug] [MJSONWP (c53f2465)] at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1294)
[debug] [MJSONWP (c53f2465)] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
[debug] [MJSONWP (c53f2465)] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
[debug] [MJSONWP (c53f2465)] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:911)
[debug] [MJSONWP (c53f2465)] at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)
[debug] [MJSONWP (c53f2465)] at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:611)
[debug] [MJSONWP (c53f2465)] at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:552)
[debug] [MJSONWP (c53f2465)] at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:466)
[debug] [MJSONWP (c53f2465)] at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:438)
[debug] [MJSONWP (c53f2465)] at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:140)
[debug] [MJSONWP (c53f2465)] at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144)
[debug] [MJSONWP (c53f2465)] at java.lang.Thread.run(Thread.java:764)
[debug] [MJSONWP (c53f2465)] Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.String java.lang.CharSequence.toString()' on a null object reference
[debug] [MJSONWP (c53f2465)] at android.view.accessibility.AccessibilityInteractionClient.finalizeAndCacheAccessibilityNodeInfo(AccessibilityInteractionClient.java:738)
[debug] [MJSONWP (c53f2465)] at android.view.accessibility.AccessibilityInteractionClient.finalizeAndCacheAccessibilityNodeInfos(AccessibilityInteractionClient.java:765)
[debug] [MJSONWP (c53f2465)] at android.view.accessibility.AccessibilityInteractionClient.findAccessibilityNodeInfoByAccessibilityId(AccessibilityInteractionClient.java:299)
[debug] [MJSONWP (c53f2465)] at android.view.accessibility.AccessibilityNodeInfo.getChild(AccessibilityNodeInfo.java:959)
[debug] [MJSONWP (c53f2465)] at io.appium.uiautomator2.model.UiAutomationElement.buildChildren(UiAutomationElement.java:180)
[debug] [MJSONWP (c53f2465)] at io.appium.uiautomator2.model.UiAutomationElement.<init>(UiAutomationElement.java:92)
[debug] [MJSONWP (c53f2465)] at io.appium.uiautomator2.model.UiAutomationElement.getOrCreateElement(UiAutomationElement.java:141)
[debug] [MJSONWP (c53f2465)] at io.appium.uiautomator2.model.UiAutomationElement.buildChildren(UiAutomationElement.java:183)
[debug] [MJSONWP (c53f2465)] at io.appium.uiautomator2.model.UiAutomationElement.<init>(UiAutomationElement.java:92)
[debug] [MJSONWP (c53f2465)] at io.appium.uiautomator2.model.UiAutomationElement.getOrCreateElement(UiAutomationElement.java:141)
[debug] [MJSONWP (c53f2465)] at io.appium.uiautomator2.model.UiAutomationElement.buildChildren(UiAutomationElement.java:183)
[debug] [MJSONWP (c53f2465)] at io.appium.uiautomator2.model.UiAutomationElement.<init>(UiAutomationElement.java:92)
[debug] [MJSONWP (c53f2465)] at io.appium.uiautomator2.model.UiAutomationElement.getOrCreateElement(UiAutomationElement.java:141)
[debug] [MJSONWP (c53f2465)] at io.appium.uiautomator2.model.UiAutomationElement.buildChildren(UiAutomationElement.java:183)
[debug] [MJSONWP (c53f2465)] at io.appium.uiautomator2.model.UiAutomationElement.<init>(UiAutomationElement.java:92)
[debug] [MJSONWP (c53f2465)] at io.appium.uiautomator2.model.UiAutomationElement.getOrCreateElement(UiAutomationElement.java:141)
[debug] [MJSONWP (c53f2465)] at io.appium.uiautomator2.model.UiAutomationElement.buildChildren(UiAutomationElement.java:183)
[debug] [MJSONWP (c53f2465)] at io.appium.uiautomator2.model.UiAutomationElement.<init>(UiAutomationElement.java:92)
[debug] [MJSONWP (c53f2465)] at io.appium.uiautomator2.model.UiAutomationElement.getOrCreateElement(UiAutomationElement.java:141)
[debug] [MJSONWP (c53f2465)] at io.appium.uiautomator2.model.UiAutomationElement.buildChildren(UiAutomationElement.java:183)
[debug] [MJSONWP (c53f2465)] at io.appium.uiautomator2.model.UiAutomationElement.<init>(UiAutomationElement.java:92)
[debug] [MJSONWP (c53f2465)] at io.appium.uiautomator2.model.UiAutomationElement.getOrCreateElement(UiAutomationElement.java:141)
[debug] [MJSONWP (c53f2465)] at io.appium.uiautomator2.model.UiAutomationElement.buildChildren(UiAutomationElement.java:183)
[debug] [MJSONWP (c53f2465)] at io.appium.uiautomator2.model.UiAutomationElement.<init>(UiAutomationElement.java:92)
[debug] [MJSONWP (c53f2465)] at io.appium.uiautomator2.model.UiAutomationElement.getOrCreateElement(UiAutomationElement.java:141)
[debug] [MJSONWP (c53f2465)] at io.appium.uiautomator2.model.UiAutomationElement.buildChildren(UiAutomationElement.java:183)
[debug] [MJSONWP (c53f2465)] at io.appium.uiautomator2.model.UiAutomationElement.<init>(UiAutomationElement.java:92)
[debug] [MJSONWP (c53f2465)] at io.appium.uiautomator2.model.UiAutomationElement.getOrCreateElement(UiAutomationElement.java:141)
[debug] [MJSONWP (c53f2465)] at io.appium.uiautomator2.model.UiAutomationElement.buildChildren(UiAutomationElement.java:183)
[debug] [MJSONWP (c53f2465)] at io.appium.uiautomator2.model.UiAutomationElement.<init>(UiAutomationElement.java:92)
[debug] [MJSONWP (c53f2465)] at io.appium.uiautomator2.model.UiAutomationElement.getOrCreateElement(UiAutomationElement.java:141)
[debug] [MJSONWP (c53f2465)] at io.appium.uiautomator2.model.UiAutomationElement.buildChildren(UiAutomationElement.java:183)
[debug] [MJSONWP (c53f2465)] at io.appium.uiautomator2.model.UiAutomationElement.<init>(UiAutomationElement.java:92)
[debug] [MJSONWP (c53f2465)] at io.appium.uiautomator2.model.UiAutomationElement.getOrCreateElement(UiAutomationElement.java:141)
[debug] [MJSONWP (c53f2465)] at io.appium.uiautomator2.model.UiAutomationElement.buildChildren(UiAutomationElement.java:183)
[debug] [MJSONWP (c53f2465)] at io.appium.uiautomator2.model.UiAutomationElement.<init>(UiAutomationElement.java:92)
[debug] [MJSONWP (c53f2465)] at io.appium.uiautomator2.model.UiAutomationElement.getOrCreateElement(UiAutomationElement.java:141)
[debug] [MJSONWP (c53f2465)] at io.appium.uiautomator2.model.UiAutomationElement.buildChildren(UiAutomationElement.java:183)
[debug] [MJSONWP (c53f2465)] at io.appium.uiautomator2.model.UiAutomationElement.<init>(UiAutomationElement.java:92)
[debug] [MJSONWP (c53f2465)] at io.appium.uiautomator2.model.UiAutomationElement.<init>(UiAutomationElement.java:103)
[debug] [MJSONWP (c53f2465)] at io.appium.uiautomator2.model.UiAutomationElement.rebuildForNewRoots(UiAutomationElement.java:122)
[debug] [MJSONWP (c53f2465)] at io.appium.uiautomator2.core.AccessibilityNodeInfoDumper.toStream(AccessibilityNodeInfoDumper.java:169)
[debug] [MJSONWP (c53f2465)] at io.appium.uiautomator2.core.AccessibilityNodeInfoDumper.findNodes(AccessibilityNodeInfoDumper.java:212)
[debug] [MJSONWP (c53f2465)] ... 33 more
[debug] [MJSONWP (c53f2465)]
[HTTP] <-- POST /wd/hub/session/c53f2465-d128-4baa-a4ab-67481bf7cfbe/element 500 2999 ms - 317
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment