Hi,
I am trying to do file upload using sikuli and grid extensions.
Following is the setup I have:
OS: Mac OS 10.14.5 (Mojave)
Selenium grid: selenium-server-standalone-3.141.59.jar or selenium-server-standalone-3.12.0 getting the same error with both versions of selenium grid
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:200)
at com.google.gson.Gson.fromJson(Gson.java:810)
at com.google.gson.Gson.fromJson(Gson.java:775)
at com.google.gson.Gson.fromJson(Gson.java:724)
at com.google.gson.Gson.fromJson(Gson.java:696)
at io.sterodium.rmi.protocol.client.RemoteInvoker.invoke(RemoteInvoker.java:42)
at io.sterodium.rmi.protocol.client.RemoteObjectMethodInterceptor.invoke(RemoteObjectMethodInterceptor.java:69)
at io.sterodium.rmi.protocol.client.RemoteObjectMethodInterceptor.intercept(RemoteObjectMethodInterceptor.java:51)
at io.sterodium.extensions.node.rmi.TargetFactory$$EnhancerByCGLIB$$989c1c50.createImageTarget()
Hi, I am trying to do file upload using sikuli and grid extensions.
Following is the setup I have:
OS: Mac OS 10.14.5 (Mojave) Selenium grid: selenium-server-standalone-3.141.59.jar or selenium-server-standalone-3.12.0 getting the same error with both versions of selenium grid
Grid jars: all-node-extensions-1.0.jar, extension-proxy-1.0.jar
Client jars: sterodium-rmi-0.3.jar
hubConfig: { "port": 4444, "newSessionWaitTimeout": -1, "servlet": "io.sterodium.extensions.hub.proxy.HubRequestsProxyingServlet", "withoutServlets": [], "custom": {}, "capabilityMatcher": "io.sterodium.extensions.capability.CustomCapabilityMatcher", "throwOnCapabilityNotPresent": true, "nodePolling": 5000, "cleanUpCycle": 5000, "timeout": 300000, "browserTimeout": 0, "maxSession": 5, "jettyMaxThreads": -1 }
node config: { "capabilities": [ { "browserName": "chrome", "maxInstances": 5, "seleniumProtocol": "WebDriver", "extension.sikuliCapability": true } ], "proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy", "maxSession": 5, "port": 5555, "register": true, "registerCycle": 5000, "hub": "http://localhost:4444", "role": "node", "debug": false, "servlets" : ["io.sterodium.extensions.node.SikuliExtensionServlet","io.sterodium.extensions.node.upload.FileUploadServlet","io.sterodium.extensions.node.download.FileDownloadServlet"], "withoutServlets": [], "custom": {} }
Following is the stacktrace:
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $ at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:200) at com.google.gson.Gson.fromJson(Gson.java:810) at com.google.gson.Gson.fromJson(Gson.java:775) at com.google.gson.Gson.fromJson(Gson.java:724) at com.google.gson.Gson.fromJson(Gson.java:696) at io.sterodium.rmi.protocol.client.RemoteInvoker.invoke(RemoteInvoker.java:42) at io.sterodium.rmi.protocol.client.RemoteObjectMethodInterceptor.invoke(RemoteObjectMethodInterceptor.java:69) at io.sterodium.rmi.protocol.client.RemoteObjectMethodInterceptor.intercept(RemoteObjectMethodInterceptor.java:51) at io.sterodium.extensions.node.rmi.TargetFactory$$EnhancerByCGLIB$$989c1c50.createImageTarget()