100,000 byte Jython script size limit (java.io.IOException: Mark invalid)

One of my Jython rules is flirting with the 100,000 character size limit. Apparently it is a hard limit. Comments also count in the script size.

Suddenly the script stopped working. It took me a while to identify the script size limit. Here’s the offending log line in openhab.log:

2021-07-30 21:04:48.554 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - Error during evaluation of script 'file:/etc/openhab/automation/jsr223/python/personal/roller_shutters.py’: java.io.IOException: java.io.IOException: Mark invalid

I’m now gradually rewriting my rules to simplify the function logic and to make the code base more generic.

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.