MPD Binding an Control over a Sitemap

  • Platform information:
    • Hardware: x64/4GB/100GB NVME
    • OS: Ubuntu 20.04 Virtual Maschine Desktop
    • Java Runtime Environment: Zulu 8
    • openHAB version: lastet
  • Issue of the topic: MPD Binding an Control over a Sitemap
  • Please post configurations (if applicable):

We have troubles to control the mpd from a sitemap. When we click on the Play / Pause / Volume Button the erros in the logs executes

  • Items
Switch          MPD1_StartStop          "Start/Stop"                    {mpd="ON:MPD1:play, OFF:MPD1:stop"}
Switch          MPD1_NextPrev           "Track Control"                 {mpd="ON:MPD1:next, OFF:MPD1:prev"}
Dimmer          MPD1_Volume             "Volume [%d%%]"                 {mpd="INCREASE:MPD1:volume_increase, DECREASE:MPD1:volume_decrease, PERCENT:MPD1:volume"}
String          MPD1_CurrentTrack       "Current Track"                 {mpd="TITLE:MPD1:tracktitle"}
String          MPD1_CurrentArtist      "Current Artist [%s]"           {mpd="ARTIST:MPD1:trackartist"}
String          MPD1_ContactInfo        "Now Playing [%s]"              

  • Sitemap configuration related to the issue
sitemap mpd label="DND Multimedia Control" {

    Switch item=MPD1_StartStop mappings=[OFF="PAUSE", ON="Play"]
    Switch item=MPD1_NextPrev mappings=[OFF="Previous", ON="Next"]
    Slider item=MPD1_Volume

    Text item=MPD1_CurrentTrack
    Text item=MPD1_CurrentArtist
    Text item=MPD1_ContactInfo

  • Services configuration related to the issue
mpd="ON:MPD1:play, OFF:MPD1:stop"
mpd="INCREASE:MPD1:volume_increase, DECREASE:MPD1:volume_decrease"
  • If logs where generated please post these here using code fences:
.MpdBinding.executePlayerCommand( ~[?:?]

	at org.openhab.binding.mpd.internal.MpdBinding.internalReceiveCommand( ~[?:?]

	at org.openhab.core.binding.AbstractBinding.receiveCommand( ~[?:?]

	at ~[?:?]

	at org.apache.felix.eventadmin.impl.handler.EventHandlerProxy.sendEvent( [bundleFile:?]

	at org.apache.felix.eventadmin.impl.tasks.HandlerTask.runWithoutBlacklistTiming( [bundleFile:?]

	at org.apache.felix.eventadmin.impl.tasks.SyncDeliverTasks.execute( [bundleFile:?]

	at org.apache.felix.eventadmin.impl.tasks.AsyncDeliverTasks$ [bundleFile:?]

	at java.util.concurrent.Executors$ [?:1.8.0_252]

	at [?:1.8.0_252]

	at java.util.concurrent.ThreadPoolExecutor.runWorker( [?:1.8.0_252]

	at java.util.concurrent.ThreadPoolExecutor$ [?:1.8.0_252]

	at [?:1.8.0_252]

2020-04-27 00:00:00.005 [ERROR] [org.quartz.core.ErrorLogger         ] - An error occured instantiating job to be executed. job= 'MPD.Reconnect'

org.quartz.SchedulerException: Problem instantiating class 'org.openhab.binding.mpd.internal.MpdBinding$ReconnectJob' - 

	at org.quartz.core.JobRunShell.initialize( [bundleFile:?]

	at [bundleFile:?]

Caused by: Guice configuration errors:

1) Injecting into inner classes is not supported.  Please use a 'static' class (top-level or nested) instead of org.openhab.binding.mpd.internal.MpdBinding$ReconnectJob.

  while locating org.openhab.binding.mpd.internal.MpdBinding$ReconnectJob

1 error

	at ~[?:?]

	at ~[?:?]

	at ~[?:?]

	at org.eclipse.smarthome.model.rule.runtime.internal.engine.GuiceAwareJobFactory.newJob( ~[?:?]

	at org.quartz.core.JobRunShell.initialize( ~[?:?]

I suggest trying the Oracle JDK instead.

@namraccr thanks for your reply. i have try uninstall zulu 8 and install the oracle jdk
same error ;(