Startup rule is not executed

Hi all,

I’m working on a rule that should initialize some dictionaries at startup. This worked initially but suddenly stopped working. I’ve upgraded to OH 2.5.9 and deleted tmp and cache; did several restarts of OH - but still the startup is not called. The file has been loaded and parsed - as other rules in the file are executed and no error is visible in openhab.log. Any ideas what might be wrong here?

The initialization is quite simple:

import java.util.Hashtable

val defaultCover = "http://192.168.0.73:8080/static/img/default-release-cd.png"

val _favoriten = new Hashtable<Integer, String>()
val _favoritenItems = new Hashtable<PlayerItem, StringItem>()

val _podcastItems = new Hashtable<Integer, StringItem>()

val loggerName="Radio.rules"

rule "Initialization"
when
    System started
then
    logInfo(fileName, "Initialization ...")
    
    _favoriten.put(0, "SRF 1 Aargau Solothurn");
    _favoriten.put(1, "SRF 2 Kultur");    
    _favoriten.put(2, "SRF 3");
    _favoriten.put(3, "SRF 4 News");
    _favoriten.put(4, "Radio Argovia");
    _favoriten.put(5, "Radio Swiss Pop");
    _favoriten.put(6, "Radio Swiss Jazz");
    _favoriten.put(7, "SwissGroove")
    _favoriten.put(8, "Gotha Lounge")

    _favoritenItems.put(ItemRadioControlSchlafzimmer, ItemSonosFavoriteSchlafzimmer)
    _favoritenItems.put(ItemRadioControlKueche, ItemSonosFavoriteKueche)
    _favoritenItems.put(ItemRadioControlBad, ItemSonosFavoriteBad)
    _favoritenItems.put(ItemRadioControlBastelzimmer, ItemSonosFavoriteBastelzimmer)
    _favoritenItems.put(ItemRadioControlBuero, ItemSonosFavoriteBuero)

    _podcastItems.put(0, ItemPodcastEchoDerZeit)
    _podcastItems.put(1, ItemPodcastRegionalJournal)
    _podcastItems.put(2, ItemPodcastPeterSchneider)
    _podcastItems.put(3, ItemPodcastPopRoutes)
    _podcastItems.put(4, ItemPodcastKontext)
    _podcastItems.put(5, ItemPodcastInput)
    _podcastItems.put(6, ItemPodcastForschungAktuell)
    _podcastItems.put(7, ItemPodcastWissenschaftImBrennpunkt)
    _podcastItems.put(8, ItemPodcastTatort)
 
    _uriItems.put(ItemRadioControlSchlafzimmer, ItemRadioPlayUriSchlafzimmer)
    _uriItems.put(ItemRadioControlKueche, ItemRadioPlayUriKueche)
    _uriItems.put(ItemRadioControlBad, ItemRadioPlayUriBad)
    _uriItems.put(ItemRadioControlBastelzimmer, ItemRadioPlayUriBastelzimmer)
    _uriItems.put(ItemRadioControlBuero, ItemRadioPlayUriBuero)

    ItemRadioSelectStation.postUpdate(-1)
    ItemRadioSelectPodcast.postUpdate(-1)    
end

Attached the complete file:

Radio.rules.txt (5.7 KB)

with kind regards,
Patrik

Are you sure variable names beginning with underscore are allowed?