This page last changed on Aug 24, 2015 by manieq.

After synchronization of the design I have observed some parsing exceptions for the controller file, which appears to be correctly written. Below the log and file: webapps/controller/controller.xml

ERROR 2015-08-24 15:50:54,163 : Creating sensor failed. Error : The <include> element in sensor (ID = 107149645) contains an invalid reference identifier. The value is not a valid integer : 23
 XML Element : <sensor xmlns="http://www.openremote.org" id="107149645" name="incl_STATUS" type="switch">
      <include type="command" ref="23" />
      <state name="on" />
      <state name="off" />
    </sensor>
org.openremote.controller.exception.XMLParsingException: The <include> element in sensor (ID = 107149645) contains an invalid reference identifier. The value is not a valid integer : 23
	at org.openremote.controller.model.xml.Version20SensorBuilder.parseSensorEventProducer(Version20SensorBuilder.java:442)
	at org.openremote.controller.model.xml.Version20SensorBuilder.build(Version20SensorBuilder.java:287)
	at org.openremote.controller.deployer.Version20ModelBuilder.buildSensorObjectModelFromXML(Version20ModelBuilder.java:817)
	at org.openremote.controller.deployer.Version20ModelBuilder.buildSensorModel(Version20ModelBuilder.java:663)
	at org.openremote.controller.deployer.Version20ModelBuilder.build(Version20ModelBuilder.java:557)
	at org.openremote.controller.deployer.AbstractModelBuilder.buildModel(AbstractModelBuilder.java:154)
	at org.openremote.controller.service.Deployer.startup(Deployer.java:872)
	at org.openremote.controller.service.Deployer.startController(Deployer.java:350)
	at org.openremote.controller.spring.SpringContext.initializeController(SpringContext.java:109)
	at org.openremote.controller.service.ServiceContext.init(ServiceContext.java:427)
	at org.openremote.controller.bootstrap.Startup.loadServiceContext(Startup.java:88)
	at org.openremote.controller.bootstrap.servlet.ServletStartup.initializeServiceContext(ServletStartup.java:195)
	at org.openremote.controller.bootstrap.servlet.ServletStartup.contextInitialized(ServletStartup.java:109)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
	at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)
	at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
	at org.apache.catalina.core.StandardService.start(StandardService.java:516)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

File: webapps/controller/controller.xml

<?xml version="1.0" encoding="UTF-8"?>
<openremote xmlns="http://www.openremote.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openremote.org http://www.openremote.org/schemas/controller.xsd">
  <components>
    <switch id="18">
      <on>
        <include type="command" ref="21" />
      </on>
      <off>
        <include type="command" ref="22" />
      </off>
      <include type="sensor" ref="107149645" />
    </switch>
    <switch id="20">
      <on>
        <include type="command" ref="24" />
      </on>
      <off>
        <include type="command" ref="25" />
      </off>
      <include type="sensor" ref="107149646" />
    </switch>
  </components>
  <sensors>
    <sensor id="107149646" name="excl_STATUS" type="switch">
      <include type="command" ref="26" />
      <state name="on" />
      <state name="off" />
    </sensor>
    <sensor id="107149645" name="incl_STATUS" type="switch">
      <include type="command" ref="23" />
      <state name="on" />
      <state name="off" />
    </sensor>
  </sensors>
  <commands>
    <command id="21" protocol="zwave">
      <property name="nodeId" value="1" />
      <property name="command" value="INCLUSION_MODE_ON" />
      <property name="name" value="incl_ON" />
    </command>
    <command id="22" protocol="zwave">
      <property name="nodeId" value="1" />
      <property name="command" value="INCLUSION_MODE_OFF" />
      <property name="name" value="incl_OFF" />
    </command>
    <command id="23" protocol="zwave">
      <property name="nodeId" value="1" />
      <property name="command" value="INCLUSION_MODE_STATUS" />
      <property name="name" value="incl_STATUS" />
    </command>
    <command id="24" protocol="zwave">
      <property name="nodeId" value="1" />
      <property name="command" value="EXCLUSION_MODE_ON" />
      <property name="name" value="excl_ON" />
    </command>
    <command id="25" protocol="zwave">
      <property name="nodeId" value="1" />
      <property name="command" value="EXCLUSION_MODE_OFF" />
      <property name="name" value="excl_OFF" />
    </command>
    <command id="26" protocol="zwave">
      <property name="nodeId" value="1" />
      <property name="command" value="EXCLUSION_MODE_STATUS" />
      <property name="name" value="excl_STATUS" />
    </command>
  </commands>
  <config>
    <property name="controller.roundrobin.multicast.port" value="10000" />
    <property name="controller.roundrobin.tcpserver.port" value="20000" />
    <property name="controller.groupname" value="floor20" />
    <property name="multicast.port" value="3333" />
    <property name="enocean.commLayer" value="" />
    <property name="enocean.comPort" value="" />
    <property name="controller.groupmember.autodetect.on" value="true" />
    <property name="amx_ni.port" value="50000" />
    <property name="enocean.serialProtocol" value="ESP3" />
    <property name="protocol.zwave.classname" value="org.openremote.controller.protocol.zwave.ZWaveCommandBuilder" />
    <property name="copy.lircd.conf.on" value="true" />
    <property name="irsend.path" value="/usr/local/bin/irsend" />
    <property name="domintell.port" value="17481" />
    <property name="controller.applicationname" value="controller" />
    <property name="domintell.address" value="192.168.1.1" />
    <property name="multicast.address" value="224.0.1.100" />
    <property name="Macro.IR.Execution.Delay" value="500" />
    <property name="controller.roundrobin.multicast.address" value="224.0.1.200" />
    <property name="lutron_homeworks.password" value="openremote" />
    <property name="lagarto_network.broadcast" value="tcp://127.0.0.1:5001" />
    <property name="lircd.conf.path" value="/etc/lircd.conf" />
    <property name="lutron_homeworks.port" value="23" />
    <property name="lutron_homeworks.address" value="192.168.1.1" />
    <property name="lutron_homeworks.username" value="openremote" />
    <property name="webapp.port" value="8080" />
    <property name="zwave.comPort" value="/dev/cu.usbmodemfa131" />
    <property name="zwave.pad.port" value="" />
    <property name="resource.upload.enable" value="true" />
    <property name="amx_ni.address" value="192.168.1.1" />
    <property name="zwave.pad.host" value="" />
    <property name="zwave.commLayer" value="RXTX" />
    <property name="vera.address" value="" />
    <property name="protocol.vera.classname" value="org.openremote.controller.protocol.vera.VeraCommandBuilder" />
  </config>
</openremote>
Document generated by Confluence on Jun 05, 2016 09:31