OH 5.0.0 to OH5.1.0-SNAPHOT Error - ScriptEngine for language 'application/javascript' could not be found for identifier:

Hi All

Hoping for some help/advise.

I have tried to update my working OH 5.0.0 system to the latest SNAPSHOT and I am now getting the following errors:

2025-08-17 09:28:14.091 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: 7d3de9b5-05ca-42d8-a090-9aeaf9f3f59b
2025-08-17 09:28:14.103 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: 8e86ce41-7f2f-4e85-9134-64ebca47fd3b
2025-08-17 09:28:14.107 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: 6017c29b-c3fe-4d93-b90b-3bcdcd94329b
2025-08-17 09:28:14.109 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: 163b4f31-5571-4897-8b5d-29cef1bd12cc
2025-08-17 09:28:14.112 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: d67d3ba4-7112-4e37-baac-699990ce0179
2025-08-17 09:28:14.117 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: 5124fab1-471f-40db-b743-09d9cbfe5466
2025-08-17 09:28:14.121 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: 93c72dc5-8bde-4d3f-bbd0-cb49e25fa954
2025-08-17 09:28:14.127 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: fa1c5875-f1d6-4116-b3ca-6d673bfba6ba

I also see the following warning:

2025-08-17 09:29:45.428 [WARN ] [.thing.internal.CommunicationManager] - No ProfileFactory found which supports profile 'transform:JS' for link 'SunSynk_pvetoday -> modbus:data:SunSynk_Poll_PVE:SunSynk_pvetoday:number'

I would appreciate any suggestions advise as this was a working setup.

Thanks

Mark

The JS Scripting add-on isn’t installed so every time a rule or transform triggers that needs that add-on you get an error.

After an upgrade it can take some time for all the add-ons and bundles to get downloaded and reinstalled with the new versions. During that time, OH will continue to start up and run so stuff will start happening before everything is available.
Usually letting things settle after an upgrade than doing a restart is sufficient. However, if you see errors about installing add-ons during start up than that’s the root problem.

Hi Rich

Thanks fro the response. I did leave the system for quite some time and restarted to double check.

I have just tried again and get the same errors:

2025-08-18 18:56:14.600 [INFO ] [org.openhab.core.Activator          ] - Starting openHAB 5.1.0 (Build #4800)
2025-08-18 18:56:15.014 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Time zone set to 'Africa/Johannesburg'.
2025-08-18 18:56:15.024 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Location set to '-29.7745707,31.050459'.
2025-08-18 18:56:15.025 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Locale set to 'en_ZA'.
2025-08-18 18:56:15.025 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Measurement system set to 'SI'.
2025-08-18 18:56:20.923 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'influxdb.persist'
2025-08-18 18:56:21.616 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'garmin.sitemap'
2025-08-18 18:56:21.761 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'alarm.sitemap'
2025-08-18 18:56:37.072 [INFO ] [.core.model.lsp.internal.ModelServer] - Started Language Server Protocol (LSP) service on port 5007
2025-08-18 18:56:37.761 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: 3c863d9c-d801-4911-9b64-bda614a7b673
2025-08-18 18:56:37.768 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: 53a18ac6-73b4-428c-b6c8-9e7c0e223a7e
2025-08-18 18:56:37.772 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: c72bfb6e-a958-43d3-8a58-e90c81e06c64
2025-08-18 18:56:37.775 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: e50bb071-cd52-4c47-bc50-3e4b14725fd8
2025-08-18 18:56:37.779 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: f0407f55-3471-495f-a074-5ae9634c87f0
2025-08-18 18:56:37.784 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: c4c3f150-0078-49e5-995b-59a71d345d2e
2025-08-18 18:56:37.788 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: 6c85ad86-b8a6-4f4d-a172-3400919259e8
2025-08-18 18:56:37.795 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: d1434207-9425-4c1a-b65d-30818e5db8d9
2025-08-18 18:56:37.800 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: 620f9666-51dd-4eb4-a72a-e2f7df50f00e
2025-08-18 18:56:37.802 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: c00c215e-8924-4791-b7fc-eb8f19096bd0
2025-08-18 18:56:37.805 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: ecdacbf1-3cf3-4793-831b-760fcd6dbf97
2025-08-18 18:56:37.815 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: d1f92b48-3780-4c0b-80df-c376356b6c87
2025-08-18 18:56:37.818 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: 5327c96a-2025-45a9-adbd-563243540f7c
2025-08-18 18:56:37.823 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: b9b497bd-a10a-4842-b1e4-057a9be7a43d
2025-08-18 18:56:37.825 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: 956be7e7-65cc-439e-bedd-201cd4a3757c
2025-08-18 18:56:37.828 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: 24a5fc2b-32a0-4373-9e2b-b87cb2c81d6d
2025-08-18 18:56:37.833 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: db706b0f-ff89-48b8-9b09-1ec4b942ce44
2025-08-18 18:56:37.836 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: 5134299c-97b5-4fad-9ca2-ee3e707d0f09
2025-08-18 18:56:37.839 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: 441462ee-ad76-4dcf-830b-7bafbaab8b0f
2025-08-18 18:56:37.845 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: e0066903-c422-4756-8432-fe6923cc10a9
2025-08-18 18:56:37.848 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: e6845d0b-5845-403c-b19a-9f57320f6be5
2025-08-18 18:56:37.851 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: 19a964bc-1ab7-4e2a-bfbe-f68e2565bb34

I have also checked and openHAB reaches Run Level 100 - which I assume means that all addons etc should be installed:

runtimeInfo:
  version: 5.1.0
  buildString: "Build #4800"
locale: en-ZA
systemInfo:
  configFolder: C:\openHAB\conf
  userdataFolder: C:\openHAB\userdata
  logFolder: C:\openHAB\userdata\logs
  javaVersion: 21.0.6
  javaVendor: Eclipse Adoptium
  javaVendorVersion: Temurin-21.0.6+7
  osName: Windows 11
  osVersion: "10.0"
  osArchitecture: amd64
  availableProcessors: 8
  freeMemory: 67573040
  totalMemory: 405798912
  uptime: 93
  startLevel: 100
addons:
  - automation-jsscripting
  - binding-astro
  - binding-chromecast
  - binding-gpstracker
  - binding-harmonyhub
  - binding-http
  - binding-hue
  - binding-lgwebos
  - binding-modbus
  - binding-ntp
  - binding-openweathermap
  - binding-paradoxalarm
  - binding-shelly
  - binding-systeminfo
  - binding-tuya
  - misc-openhabcloud
  - persistence-influxdb
  - persistence-mapdb
  - transformation-map
  - transformation-regex
  - transformation-scale
  - voice-googletts
clientInfo:
  device:
    ios: false
    android: false
    androidChrome: false
    desktop: true
    iphone: false
    ipod: false
    ipad: false
    edge: false
    ie: false
    firefox: false
    macos: false
    windows: true
    cordova: false
    phonegap: false
    electron: false
    nwjs: false
    webView: false
    webview: false
    standalone: false
    os: windows
    pixelRatio: 1.25
    prefersColorScheme: light
  isSecureContext: true
  locationbarVisible: true
  menubarVisible: true
  navigator:
    cookieEnabled: true
    deviceMemory: 8
    hardwareConcurrency: 8
    language: en-US
    languages:
      - en-US
      - en
    onLine: true
    platform: Win32
  screen:
    width: 1536
    height: 864
    colorDepth: 24
  support:
    touch: false
    pointerEvents: true
    observer: true
    passiveListener: true
    gestures: false
    intersectionObserver: true
  themeOptions:
    dark: light
    filled: true
    pageTransitionAnimation: default
    bars: light
    homeNavbar: default
    homeBackground: default
    expandableCardAnimation: default
    blocklyRenderer: null
  userAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
    like Gecko) Chrome/139.0.0.0 Safari/537.36
timestamp: 2025-08-18T16:57:39.581Z

I do not see any errors related to insralling addons etc.

Any other suggestions?

Thansk

Mark

No, whether add-ons are installed and available has no influence over run levels.

From the karaf console see if thejs-scripting bundle is Active.

314 │ Active │  80 │ 5.0.0                 │ openHAB Add-ons :: Bundles :: Automation :: JavaScript Scripting

The bundle is active:

281 │ Active │  80 │ 5.1.0.202508170329    │ openHAB Add-ons :: Bundles :: Automation :: JavaScript Scripting

Since this is on a snapshot, something may be broken. Please file an issue. I expect the problem is on the add-on so I would start there on the openhab-addons repo.

1 Like

Look at this:

https://github.com/openhab/openhab-addons/issues/19185

The linked issue isn’t related to what is reported here, and the issue title is slightly misleading as well.

BTW JS Scripting working fine for me in the snapshots on several installations, so I don’t think there is a general issue.

Also, if it’s complaining about the MIME type that implies managed and not file based, right?

Or do .js files also have the MIME type applied?

@Mark_VG Does it help to restart the bundle from the console?

bundle:restart BUNDLE_ID

(You need to get the bundle ID through

bundle:list org.openhab.automation.jsscripting

)

It seems there is an issue with the ScripEngineManager not „seeing“ JS Scripting.

Practically yes, though file based scripting also uses the ScriptEngineManager and gets the engine through the MIME type that is associated with the file extension.

If the add-on doesn’t start up and register its stuff properly .js files won’t load at all so for file based scripts the ScriptEngineManager won’t log those errors.

1 Like

So just FYI i also saw this error (mime type) as I mentioned in the github issue. I don’t know if after i enabled the new setting to auto inject for file based rules had any affect on this error, but my rules did load after enabling that.

Does not make any difference and I do not see anything in the logs when I do this.

Also, just to confirm that all my rules are UI managed - no file based rules. I also use BLOCKLY

EDIT: What is strange in my BLOCKLY rules seem to work.

Maybe I need to determin what the identifiers link to and test that? Not sure how to do that though.

Do you have a „rule engine started“ message in the logs?

I had the same error ( js transformation didn‘t work), rule engine was not running. I removed the js scripting add-on , did a restart of the docker container OH snap 4801 , reloaded js scripting add-on and change to ‚auto inject all scripts‘. Now it‘s working fine.

Hi

Yes, I do. It comes after the errors:

2025-08-19 07:16:02.841 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: a721e779-aaff-4b76-9690-7356ab174a1e
2025-08-19 07:16:02.844 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: 4bff20bb-b4f3-49b9-9578-03520c049a92
2025-08-19 07:16:13.686 [INFO ] [.influxdb.InfluxDBPersistenceService] - InfluxDB persistence service started.
2025-08-19 07:16:26.902 [INFO ] [e.automation.internal.RuleEngineImpl] - Rule engine started.

Did not help in my case I am sad to report.

Just a heads-up, this issue also seems to have made its way into 5.0.1. After upgrading this morning I now see:

2025-08-20 11:08:32.889 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: a893cc0f-889f-4fc3-bed4-70ae7eec1c76
2025-08-20 11:08:32.890 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: 21fa6c92-5a37-41f6-a108-233f1498bbc9
2025-08-20 11:08:32.890 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: e612846a-fe81-4e41-b147-764bed940d88
2025-08-20 11:08:32.891 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: 47784a9a-ff5d-4f6f-b22e-86d150754aa7
2025-08-20 11:08:32.892 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: d7a2372a-6ba3-4e27-a819-92dc5c988f2a
2025-08-20 11:08:32.893 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: 337a8253-5e65-48d7-a4e1-aa0a776e182c
2025-08-20 11:08:32.893 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: 85ec464f-2696-47c2-88fa-1b49db875ef1
2025-08-20 11:08:32.894 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: 9a900215-584c-45b8-87f0-2e8823ede487
2025-08-20 11:08:32.894 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: 60ee1a52-f332-4e6a-87aa-bf3867756bea
2025-08-20 11:08:32.894 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: dd138c30-da9a-4977-aa64-d8fa39cf5fca
2025-08-20 11:08:32.895 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: 34d7ad8d-2289-4f1c-b162-28fab7af6c17
2025-08-20 11:08:32.895 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: 1665b27d-502c-4084-afd8-43aadd86ceae
2025-08-20 11:08:32.895 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: b5a5d2fc-c9a5-4107-8742-019a902e14ec
2025-08-20 11:08:32.896 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: f3391261-6f00-4441-974d-4748c8e5e7cd
2025-08-20 11:08:32.897 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: 457b542d-0725-4af7-add2-8714a8cf5b6f
2025-08-20 11:08:32.898 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: 6c012c24-e561-4981-bb66-7dfc5af7145c
2025-08-20 11:08:32.898 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: 3c3ee7a7-ca1c-40e3-bdb3-fc80c69ca5f5
2025-08-20 11:08:32.899 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: d6c8849b-b1e4-41ac-a9fa-42204482a9ec
2025-08-20 11:08:32.900 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: 6b436a6d-5663-4534-b3ef-2bc52c1e1dc2
2025-08-20 11:08:32.902 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: 00997553-1e77-40a2-ba3c-590720b2895e
2025-08-20 11:08:32.906 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: 8626dd98-10bd-4be5-907f-9e35be900718
2025-08-20 11:08:32.907 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: c0c0ada5-a1d3-41a6-8c4e-63616af69b51
2025-08-20 11:08:32.911 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: e8081363-1bb7-460c-aabd-5f8b9f47999f
2025-08-20 11:08:32.913 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: d3ab7145-e79f-4b95-803d-3857d66ccc2d
2025-08-20 11:08:32.914 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - ScriptEngine for language 'application/javascript' could not be found for identifier: a9df9813-49fd-4193-9b2a-29e7f684adf4

But the rules engine seems to start ok, and I have tested a number of rules and they actually seem to work ok.

All my rules are UI-Based (No file based rules at all). JS Add-on settings are as follows:

I have tried removing and re-adding the JSS add-on as well.

I am seeing the same thing.
I am using UI only as well.

For UI rules, I remember a discussion in GitHub that saving again the rule solved the problem.

I was not able to find this GitHub issue unfortunately.

Worth trying.

Would then be interesting to compare the JSON file before and after.