-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[jsscripting] Unable to import classes from org.openhab.core #11222
Comments
This issue has been mentioned on openHAB Community. There might be relevant details there: |
This issue has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/usage-of-new-ecma2021-automation-scripting-graalvm/122724/24 |
I'm having the same issue. The workaround identifed is no longer working: I'm unable to get services via the bundlecontext. Any ideas @jpg0 ? |
@LukasA83 please note that this particular issue I have reported is separate from ohj & ohj-support . Here we are talking issues experienced just with the jsscripting addon and the nonworking import with openhab packages/classes. Are the issues you refer to related to these 3rd party plugins (ohj, ohj-support)? If so, it might be better to file the issue to their respective issue handlers? However, I would be curious to learn if the OSGI service lookup of openHAB services also becomes non-working when jsscripting addon is installed. |
It's interesting that the import of the first (sl4j) class succeeds, yet it fails to import the openHAB class. Currently the bundle is marked as |
ok, I believe I found another workaround. Still strange, that the scriptExtension is not available. Any hint? |
Fixes openhab#11222 Signed-off-by: Dan Cunningham <dan@digitaldan.com>
Fixes openhab#11222 Signed-off-by: Dan Cunningham <dan@digitaldan.com>
…urrent class. (openhab#11400) Fixes openhab#11222 Signed-off-by: Dan Cunningham <dan@digitaldan.com>
…urrent class. (openhab#11400) Fixes openhab#11222 Signed-off-by: Dan Cunningham <dan@digitaldan.com> Signed-off-by: Dave J Schoepel <dave@theschoepels.com>
This issue has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/usage-of-new-ecma2021-automation-scripting-graalvm/122724/25 |
Fixes #11222 Signed-off-by: Dan Cunningham <dan@digitaldan.com>
…urrent class. (openhab#11400) Fixes openhab#11222 Signed-off-by: Dan Cunningham <dan@digitaldan.com> Signed-off-by: Nick Waterton <n.waterton@outlook.com>
Fixes openhab#11222 Signed-off-by: Dan Cunningham <dan@digitaldan.com> Signed-off-by: Nick Waterton <n.waterton@outlook.com>
Fixes openhab#11222 Signed-off-by: Dan Cunningham <dan@digitaldan.com> Signed-off-by: Michael Schmidt <mi.schmidt.83@gmail.com>
…urrent class. (openhab#11400) Fixes openhab#11222 Signed-off-by: Dan Cunningham <dan@digitaldan.com>
Fixes openhab#11222 Signed-off-by: Dan Cunningham <dan@digitaldan.com>
…urrent class. (openhab#11400) Fixes openhab#11222 Signed-off-by: Dan Cunningham <dan@digitaldan.com>
Fixes openhab#11222 Signed-off-by: Dan Cunningham <dan@digitaldan.com>
Fixes openhab#11222 Signed-off-by: Dan Cunningham <dan@digitaldan.com>
Fixes openhab#11222 Signed-off-by: Dan Cunningham <dan@digitaldan.com> Signed-off-by: Andras Uhrin <andras.uhrin@gmail.com>
After installing jsscripting addon (using workaround steps documented in #11219), I cannot seem to import classes from org.openhab.core, although other java imports seem to work (e.g.
org.slf4j.LoggerFactory
)Expected Behavior
Java.type("org.openhab.core.items.Metadata")
should work successfully with jsscripting bundle installed, similar how it works with the default javascript engine.Current Behavior
Error is raised when executing script
Steps to Reproduce (for Bugs)
Context
Trying to migrate to ES6 in rules/scripts. This is blocking such transition as, combined with #11221, openHAB functionality is completely unavailable from rules/script with jsscripting addon installed.
Your Environment
I can reproduce with 3.1.0 release and 3.2.0 M2.
The text was updated successfully, but these errors were encountered: