Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error using driver #295

Open
opiym-7 opened this issue Feb 20, 2024 · 1 comment
Open

Error using driver #295

opiym-7 opened this issue Feb 20, 2024 · 1 comment
Labels

Comments

@opiym-7
Copy link

opiym-7 commented Feb 20, 2024

Hello.
I use a self-written driver for RouterOS.
The driver works correctly for all devices except one.
There are the same devices on my network with the same firmware.
It gives this error.
Tell me please what does it mean?

[INFO] Snapshot task for device [NONAME] (172.20.20.20). [INFO] Auto-trying SSH with credentials GW. [INFO] Connected using SSH to 172.20.20.20.1:22 using credentials GW. [ERROR] Error while running snapshot using driver RouterOS: 'TypeError: invokeMember (set) on onl.netfishers.netshot.device.script.helper.JsDeviceHelper failed due to: no applicable overload found (overloads: [Method[public void onl.netfishers.netshot.device.script.helper.JsDeviceHelper.set(java.lang.String,java.lang.Double)], Method[public void onl.netfishers.netshot.device.script.helper.JsDeviceHelper.set(java.lang.String,java.lang.String)], Method[public void onl.netfishers.netshot.device.script.helper.JsDeviceHelper.set(java.lang.String,java.lang.Boolean)]], arguments: [name (TruffleString), com.oracle.truffle.js.runtime.builtins.JSArrayObject@132eb6ca (JSArrayObject)])'. [ERROR] Error while taking the snapshot: TypeError: invokeMember (set) on onl.netfishers.netshot.device.script.helper.JsDeviceHelper failed due to: no applicable overload found (overloads: [Method[public void onl.netfishers.netshot.device.script.helper.JsDeviceHelper.set(java.lang.String,java.lang.Double)], Method[public void onl.netfishers.netshot.device.script.helper.JsDeviceHelper.set(java.lang.String,java.lang.String)], Method[public void onl.netfishers.netshot.device.script.helper.JsDeviceHelper.set(java.lang.String,java.lang.Boolean)]], arguments: [name (TruffleString), com.oracle.truffle.js.runtime.builtins.JSArrayObject@132eb6ca (JSArrayObject)])

@SCadilhac
Copy link
Contributor

This means you are trying to device.set() an array instead of a simple type (number or string).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants