This page last changed on May 01, 2013 by juha.

Hi,

I created a simple program knx project design and online sync the controller. Testing with Ipad,button object normally working but switch objects only sends "on" command. On the command prompt

ERROR [Controller Definition File Watcher for Default Deployer]: Creating sensor failed. Error: The sensor type sensor switch is not a valid datatype.
  XML Element: <sensor xmlns="http://www.openremote.org" id="2448174" name="1.1.2/ Status A/" type="switch">
       ref="222" type="command" <include />
       <state name="on" />
       <state name="off" />
     </ sensor>

ERROR [HTTP-Thread-1]: Requested sensor id '2 .448.174 'was not found. Defaulting to 'N / A'.

and each time someone clicks the switch is

2013-04-12 07:59:50,100 ERROR: attempted to access the sensor with id '2 .448.174 'which did not exist in the device state cache.
ERROR [HTTP-Thread-6]: attempted to access the sensor with id '2 .448.174 'which did not exist in the device state cache.

Shows these errors. Waiting for your solutions?

Controller version = OpenRemote-Controller-2.1.0_FM_ORCJAVA-326 - OpenRemote-Controller-2.0.2.zip (and many more version)
Java version = jdk-6u21-windows-i586
KNX IP Gateway = ABB IPS/S KNX-IP
Operating system = Windows 7

Regards,
Ali Haydar


controller.xml (text/xml)
controller.xml (text/xml)
controller.xml (text/xml)
controller.xml (text/xml)
controller.xml (text/xml)
opre.jpg (image/jpeg)
openremote.zip (application/zip)

How does your controller.xml look?

Posted by mredeker at Apr 14, 2013 20:44
<?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="217">
      <on>
        <include type="command" ref="219" />
      </on>
      <off>
        <include type="command" ref="220" />
      </off>
      <include type="sensor" ref="2448177" />
    </switch>
    <switch id="213">
      <on>
        <include type="command" ref="219" />
      </on>
      <off>
        <include type="command" ref="220" />
      </off>
      <include type="sensor" ref="2448174" />
    </switch>
    <switch id="215">
      <on>
        <include type="command" ref="221" />
      </on>
      <off>
        <include type="command" ref="218" />
      </off>
      <include type="sensor" ref="2448175" />
    </switch>
    <button id="201">
      <include type="command" ref="218" />
    </button>
    <button id="203">
      <include type="command" ref="221" />
    </button>
    <button id="199">
      <include type="command" ref="219" />
    </button>
    <button id="193">
      <include type="command" ref="220" />
    </button>
    <label id="209" />
    <label id="211" />
  </components>
  <sensors>
    <sensor id="2448177" name="statuss" type="switch">
      <include type="command" ref="224" />
      <state name="on" />
      <state name="off" />
    </sensor>
    <sensor id="2448174" name="1.1.2/ Status A/" type="switch">
      <include type="command" ref="222" />
      <state name="on" />
      <state name="off" />
    </sensor>
    <sensor id="2448175" name="1.1.2/ Status C/" type="switch">
      <include type="command" ref="223" />
      <state name="on" />
      <state name="off" />
    </sensor>
  </sensors>
  <commands>
    <command id="218" protocol="knx">
      <property name="command" value="off" />
      <property name="groupAddress" value="0/0/3" />
      <property name="DPT" value="1.001" />
      <property name="name" value="1.1.2/ Switch C/ Alt Kat Tavan Ayd. (OFF)" />
    </command>
    <command id="219" protocol="knx">
      <property name="command" value="on" />
      <property name="groupAddress" value="0/0/1" />
      <property name="DPT" value="1.001" />
      <property name="name" value="1.1.2/ Switch A/ Giris Kat Tavan Ayd. (ON)" />
    </command>
    <command id="220" protocol="knx">
      <property name="command" value="off" />
      <property name="groupAddress" value="0/0/1" />
      <property name="DPT" value="1.001" />
      <property name="name" value="1.1.2/ Switch A/ Giris Kat Tavan Ayd. (OFF)" />
    </command>
    <command id="221" protocol="knx">
      <property name="command" value="on" />
      <property name="groupAddress" value="0/0/3" />
      <property name="DPT" value="1.001" />
      <property name="name" value="1.1.2/ Switch C/ Alt Kat Tavan Ayd. (ON)" />
    </command>
    <command id="222" protocol="knx">
      <property name="command" value="status" />
      <property name="groupAddress" value="0/0/21" />
      <property name="DPT" value="1.001" />
      <property name="name" value="1.1.2/ Status A/" />
    </command>
    <command id="223" protocol="knx">
      <property name="command" value="status" />
      <property name="groupAddress" value="0/0/23" />
      <property name="DPT" value="1.001" />
      <property name="name" value="1.1.2/ Status C/" />
    </command>
    <command id="224" protocol="knx">
      <property name="command" value="STATUS" />
      <property name="groupAddress" value="0/0/1" />
      <property name="DPT" value="1.001" />
      <property name="name" value="STATUS" />
    </command>
  </commands>
  <config>
    <property name="controller.roundrobin.tcpserver.port" value="20000" />
    <property name="multicast.address" value="192.168.2.5" />
    <property name="controller.roundrobin.multicast.port" value="10000" />
    <property name="multicast.port" value="3671" />
    <property name="controller.groupname" value="floor20" />
    <property name="Macro.IR.Execution.Delay" value="500" />
    <property name="controller.roundrobin.multicast.address" value="224.0.1.200" />
    <property name="lircd.conf.path" value="/etc/lircd.conf" />
    <property name="controller.groupmember.autodetect.on" value="true" />
    <property name="webapp.port" value="8080" />
    <property name="copy.lircd.conf.on" value="true" />
    <property name="irsend.path" value="/usr/local/bin/irsend" />
    <property name="resource.upload.enable" value="true" />
    <property name="controller.applicationname" value="controller" />
    <property name="enocean.commLayer" value="" />
    <property name="zwave.comPort" value="" />
    <property name="zwave.pad.port" value="7876" />
    <property name="lutron_homeworks.password" value="openremote" />
    <property name="enocean.comPort" value="" />
    <property name="lagarto_network.broadcast" value="tcp://127.0.0.1:5001" />
    <property name="amx_ni.port" value="50000" />
    <property name="lutron_homeworks.port" value="23" />
    <property name="lutron_homeworks.address" value="192.168.1.1" />
    <property name="zwave.pad.host" value="localhost" />
    <property name="lutron_homeworks.username" value="openremote" />
    <property name="enocean.serialProtocol" value="ESP3" />
    <property name="zwave.commLayer" value="" />
    <property name="protocol.zwave.classname" value="org.openremote.controller.protocol.zwave.ZWaveCommandBuilder" />
    <property name="amx_ni.address" value="192.168.1.1" />
  </config>
</openremote>

Posted by ali at Apr 15, 2013 09:05

This looks ok. But you have 2 switches that have the same "on" and "off" but different sensors.
Maybe you can cleanup your design and remove the "statuss" sensor.
You need different KNX group address for command and status anyway which is not the case for the "statuss" sensor and command.

Posted by mredeker at Apr 15, 2013 21:33

I created the project again many times. "sstatus" is only a test object. Now you've created a project that is clean again. New controller.xml file is at the attached. If your want the saved "log" file I might add. I'm working, but I can not run for a long time. What you need to do? Thanks.

--------
Last Errors:

--------

<?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="222">
      <on>
        <include type="command" ref="227" />
      </on>
      <off>
        <include type="command" ref="226" />
      </off>
      <include type="sensor" ref="2488370" />
    </switch>
    <label id="224">
      <include type="sensor" ref="2488370" />
    </label>
  </components>
  <sensors>
    <sensor id="2488370" name="1.1.2/ Status A/" type="switch">
      <include type="command" ref="225" />
      <state name="on" />
      <state name="off" />
    </sensor>
  </sensors>
  <commands>
    <command id="225" protocol="knx">
      <property name="command" value="status" />
      <property name="groupAddress" value="0/0/21" />
      <property name="DPT" value="1.001" />
      <property name="name" value="1.1.2/ Status A/" />
    </command>
    <command id="226" protocol="knx">
      <property name="command" value="off" />
      <property name="groupAddress" value="0/0/1" />
      <property name="DPT" value="1.001" />
      <property name="name" value="1.1.2/ Switch A/ Giris Kat Tavan Ayd. (OFF)" />
    </command>
    <command id="227" protocol="knx">
      <property name="command" value="on" />
      <property name="groupAddress" value="0/0/1" />
      <property name="DPT" value="1.001" />
      <property name="name" value="1.1.2/ Switch A/ Giris Kat Tavan Ayd. (ON)" />
    </command>
  </commands>
  <config>
    <property name="controller.roundrobin.tcpserver.port" value="20000" />
    <property name="multicast.address" value="192.168.2.5" />
    <property name="controller.roundrobin.multicast.port" value="10000" />
    <property name="multicast.port" value="3671" />
    <property name="controller.groupname" value="floor20" />
    <property name="Macro.IR.Execution.Delay" value="500" />
    <property name="controller.roundrobin.multicast.address" value="224.0.1.200" />
    <property name="lircd.conf.path" value="/etc/lircd.conf" />
    <property name="controller.groupmember.autodetect.on" value="true" />
    <property name="webapp.port" value="8080" />
    <property name="copy.lircd.conf.on" value="true" />
    <property name="irsend.path" value="/usr/local/bin/irsend" />
    <property name="resource.upload.enable" value="true" />
    <property name="controller.applicationname" value="controller" />
    <property name="enocean.commLayer" value="" />
    <property name="zwave.comPort" value="" />
    <property name="zwave.pad.port" value="7876" />
    <property name="lutron_homeworks.password" value="openremote" />
    <property name="enocean.comPort" value="" />
    <property name="lagarto_network.broadcast" value="tcp://127.0.0.1:5001" />
    <property name="amx_ni.port" value="50000" />
    <property name="lutron_homeworks.port" value="23" />
    <property name="lutron_homeworks.address" value="192.168.1.1" />
    <property name="zwave.pad.host" value="localhost" />
    <property name="lutron_homeworks.username" value="openremote" />
    <property name="enocean.serialProtocol" value="ESP3" />
    <property name="zwave.commLayer" value="" />
    <property name="protocol.zwave.classname" value="org.openremote.controller.protocol.zwave.ZWaveCommandBuilder" />
    <property name="amx_ni.address" value="192.168.1.1" />
  </config>
</openremote>
Posted by ali at Apr 16, 2013 10:48

Might be a cache problem which Eric had seen before.
Can you try and delete design from controller (just remove controller.xml should work) and also a clean console.

Posted by mredeker at Apr 16, 2013 12:31

I have tried "C:\OpenRemote\webapps\webconsole\WEB-INF\classes\org\openremote\web\console\controller" location in the all files remove and "C:\OpenRemote\webapps\controller" location clean but same problem continuous. "openremote controller" the following versions of the many times I've tried installing from beginning and also installed on another computer but he continues the same problem.

OpenRemote-Controller-2.1.0_FM_ORCJAVA-326
OpenRemote-Controller-2.0.2.zip
OpenRemote-Controller-2.1.0_Alpha-SNAPSHOT-2013-04-09
And many more version

Posted by ali at Apr 17, 2013 09:15

Sorry, I don't have another idea. Maybe create a new design but besides that I don't know.

Posted by mredeker at Apr 17, 2013 09:29

I created a new design many times, but the problem continues.

Can you send me a simple knx project? (openremote.zip). Switch (0/0/1), status (0/0/21) IP=192.168.2.5 . Thanks for your help.

Regards,
Ali Haydar

Posted by ali at Apr 17, 2013 10:02

Try this one: OpenRemote.zip
If you see an error regarding zwave, you can ignore that.

Posted by mredeker at Apr 19, 2013 21:17

Thank you very much but the same problem continues. Switch only "on" data sending and creating sensor failed.

Posted by ali at Apr 22, 2013 08:17

Does the sensor creation show the same error? This could not be since I have other id's.

Posted by mredeker at Apr 22, 2013 08:30

How many online designer website? What are the differences between them? Which should I use?

I know the two sites,

1 - http://composer.openremote.org/preview/login.jsp (Markab)
2 - http://composer.openremote.org/demo/login.jsp (Rosemary)

Posted by ali at Apr 22, 2013 08:31

Those are the 2 free ones.
"demo" is official and
"preview" a beta of the coming

On openremote.com you can also find the Pro version.

What is the error you get when you install my openremote.zip into your controller using the "offline" method?

Posted by mredeker at Apr 22, 2013 08:57

Yes, install the "offline" method is sync successfuly complated. but in the cmd screen "Creat sensor failed" error displayed. and when I click switch then sending only "on" in the ETS data screen.

Posted by ali at Apr 22, 2013 15:18

What is in the logs when you offline install my zip file?

Posted by mredeker at Apr 22, 2013 15:27
DEBUG 2013-04-22 10:04:43,222 : Deployer 'Default Deployer' initialized.
DEBUG 2013-04-22 10:04:43,272 : Runtime object model has not been initialized. Using default configuration only.
DEBUG 2013-04-22 10:04:43,292 : Runtime object model has not been initialized. Using default configuration only.
DEBUG 2013-04-22 10:04:43,292 : Runtime object model has not been initialized. Using default configuration only.
DEBUG 2013-04-22 10:04:43,302 : Runtime object model has not been initialized. Using default configuration only.
INFO 2013-04-22 10:04:43,312 : 

********************************************************************************

 Controller definition was not found in this OpenRemote Controller instance.      

 If you are starting the controller for the first time, please use your web     
 browser to connect to the controller home page and synchronize it with your    
 online account. 

********************************************************************************


Could not find a controller definition to load at path '..\webapps\controller\controller.xml' (for version 2.0)
INFO 2013-04-22 10:04:43,312 : Controller Definition File Watcher for Default Deployer started.
DEBUG 2013-04-22 10:07:56,751 : Resolved URI to 'file:/C:/OR/webapps/controller/panels.obj'
DEBUG 2013-04-22 10:07:56,761 : Attempting to extract 'panels.obj' to 'C:\OR\webapps\controller\panels.obj'.
DEBUG 2013-04-22 10:07:56,761 : Extraction of 'panels.obj' to 'C:\OR\webapps\controller\panels.obj' completed.
DEBUG 2013-04-22 10:07:56,761 : Resolved URI to 'file:/C:/OR/webapps/controller/panel.xml'
DEBUG 2013-04-22 10:07:56,761 : Attempting to extract 'panel.xml' to 'C:\OR\webapps\controller\panel.xml'.
DEBUG 2013-04-22 10:07:56,771 : Extraction of 'panel.xml' to 'C:\OR\webapps\controller\panel.xml' completed.
DEBUG 2013-04-22 10:07:56,771 : Resolved URI to 'file:/C:/OR/webapps/controller/controller.xml'
DEBUG 2013-04-22 10:07:56,771 : Attempting to extract 'controller.xml' to 'C:\OR\webapps\controller\controller.xml'.
DEBUG 2013-04-22 10:07:56,771 : Extraction of 'controller.xml' to 'C:\OR\webapps\controller\controller.xml' completed.
DEBUG 2013-04-22 10:07:56,771 : Resolved URI to 'file:/C:/OR/webapps/controller/rules/modeler_rules.drl'
DEBUG 2013-04-22 10:07:56,771 : Attempting to extract 'rules/modeler_rules.drl' to 'C:\OR\webapps\controller\rules\modeler_rules.drl'.
DEBUG 2013-04-22 10:07:56,771 : Extraction of 'rules/modeler_rules.drl' to 'C:\OR\webapps\controller\rules\modeler_rules.drl' completed.
INFO 2013-04-22 10:07:57,341 : 

--------------------------------------------------------------------

  UNDEPLOYING CURRENT CONTROLLER RUNTIME...

--------------------------------------------------------------------

DEBUG 2013-04-22 10:07:57,341 : Stopping event processor: Drools Rule Engine
INFO 2013-04-22 10:07:57,341 : Stopped event processor : Drools Rule Engine
INFO 2013-04-22 10:07:57,341 : Shutdown complete.
INFO 2013-04-22 10:07:57,341 : 

--------------------------------------------------------------------

  DEPLOYING NEW CONTROLLER RUNTIME...

--------------------------------------------------------------------

DEBUG 2013-04-22 10:07:57,491 : Created object model for Command( ID = 14, Type = knx, Properties : {name=office_on, command=on, groupAddress=0/0/1, DPT=1.001}).
DEBUG 2013-04-22 10:07:57,491 : Created object model for Command( ID = 15, Type = knx, Properties : {name=office_off, command=off, groupAddress=0/0/1, DPT=1.001}).
DEBUG 2013-04-22 10:07:57,491 : Created object model for Command( ID = 16, Type = knx, Properties : {name=office_status, command=status, groupAddress=0/0/21, DPT=1.001}).
DEBUG 2013-04-22 10:07:57,491 : Initializing event processor: Drools Rule Engine
DEBUG 2013-04-22 10:07:57,511 : Adding Rule 'modeler_rules.drl'...
DEBUG 2013-04-22 10:07:59,932 : Adding rule definitions from 'modeler_rules.drl'...
INFO 2013-04-22 10:08:00,032 : Initialized event processor : Drools Rule Engine
ERROR 2013-04-22 10:08:00,042 : Creating sensor failed. Error : Sensor type switch is not a valid sensor datatype. 
 XML Element : <sensor xmlns="http://www.openremote.org" id="17" name="office_light" type="switch">
      <include type="command" ref="16" />
      <state name="on" />
      <state name="off" />
    </sensor>
org.openremote.controller.exception.XMLParsingException: Sensor type switch is not a valid sensor datatype.
	at org.openremote.controller.model.xml.Version20SensorBuilder.parseSensorType(Version20SensorBuilder.java:373)
	at org.openremote.controller.model.xml.Version20SensorBuilder.build(Version20SensorBuilder.java:281)
	at org.openremote.controller.deployer.Version20ModelBuilder.buildSensorObjectModelFromXML(Version20ModelBuilder.java:773)
	at org.openremote.controller.deployer.Version20ModelBuilder.buildSensorModel(Version20ModelBuilder.java:619)
	at org.openremote.controller.deployer.Version20ModelBuilder.build(Version20ModelBuilder.java:537)
	at org.openremote.controller.deployer.AbstractModelBuilder.buildModel(AbstractModelBuilder.java:148)
	at org.openremote.controller.service.Deployer.startup(Deployer.java:760)
	at org.openremote.controller.service.Deployer.softRestart(Deployer.java:373)
	at org.openremote.controller.service.Deployer$ControllerDefinitionWatch.run(Deployer.java:1188)
	at java.lang.Thread.run(Thread.java:619)
INFO 2013-04-22 10:08:00,052 : Startup complete.
INFO 2013-04-22 10:08:02,052 : 

--------------------------------------------------------------------

  UNDEPLOYING CURRENT CONTROLLER RUNTIME...

--------------------------------------------------------------------

DEBUG 2013-04-22 10:08:02,052 : Stopping event processor: Drools Rule Engine
INFO 2013-04-22 10:08:02,052 : Stopped event processor : Drools Rule Engine
INFO 2013-04-22 10:08:02,052 : Shutdown complete.
INFO 2013-04-22 10:08:02,052 : 

--------------------------------------------------------------------

  DEPLOYING NEW CONTROLLER RUNTIME...

--------------------------------------------------------------------

DEBUG 2013-04-22 10:08:02,072 : Created object model for Command( ID = 14, Type = knx, Properties : {name=office_on, command=on, groupAddress=0/0/1, DPT=1.001}).
DEBUG 2013-04-22 10:08:02,072 : Created object model for Command( ID = 15, Type = knx, Properties : {name=office_off, command=off, groupAddress=0/0/1, DPT=1.001}).
DEBUG 2013-04-22 10:08:02,072 : Created object model for Command( ID = 16, Type = knx, Properties : {name=office_status, command=status, groupAddress=0/0/21, DPT=1.001}).
DEBUG 2013-04-22 10:08:02,072 : Initializing event processor: Drools Rule Engine
DEBUG 2013-04-22 10:08:02,072 : Adding Rule 'modeler_rules.drl'...
DEBUG 2013-04-22 10:08:02,132 : Adding rule definitions from 'modeler_rules.drl'...
INFO 2013-04-22 10:08:02,142 : Initialized event processor : Drools Rule Engine
ERROR 2013-04-22 10:08:02,142 : Creating sensor failed. Error : Sensor type switch is not a valid sensor datatype. 
 XML Element : <sensor xmlns="http://www.openremote.org" id="17" name="office_light" type="switch">
      <include type="command" ref="16" />
      <state name="on" />
      <state name="off" />
    </sensor>
org.openremote.controller.exception.XMLParsingException: Sensor type switch is not a valid sensor datatype.
	at org.openremote.controller.model.xml.Version20SensorBuilder.parseSensorType(Version20SensorBuilder.java:373)
	at org.openremote.controller.model.xml.Version20SensorBuilder.build(Version20SensorBuilder.java:281)
	at org.openremote.controller.deployer.Version20ModelBuilder.buildSensorObjectModelFromXML(Version20ModelBuilder.java:773)
	at org.openremote.controller.deployer.Version20ModelBuilder.buildSensorModel(Version20ModelBuilder.java:619)
	at org.openremote.controller.deployer.Version20ModelBuilder.build(Version20ModelBuilder.java:537)
	at org.openremote.controller.deployer.AbstractModelBuilder.buildModel(AbstractModelBuilder.java:148)
	at org.openremote.controller.service.Deployer.startup(Deployer.java:760)
	at org.openremote.controller.service.Deployer.softRestart(Deployer.java:373)
	at org.openremote.controller.service.Deployer$ControllerDefinitionWatch.run(Deployer.java:1188)
	at java.lang.Thread.run(Thread.java:619)
INFO 2013-04-22 10:08:02,142 : Startup complete.
INFO 2013-04-22 10:08:04,162 : 

--------------------------------------------------------------------

  UNDEPLOYING CURRENT CONTROLLER RUNTIME...

--------------------------------------------------------------------

DEBUG 2013-04-22 10:08:04,162 : Stopping event processor: Drools Rule Engine
INFO 2013-04-22 10:08:04,162 : Stopped event processor : Drools Rule Engine
INFO 2013-04-22 10:08:04,162 : Shutdown complete.
INFO 2013-04-22 10:08:04,162 : 

--------------------------------------------------------------------

  DEPLOYING NEW CONTROLLER RUNTIME...

--------------------------------------------------------------------

DEBUG 2013-04-22 10:08:04,172 : Created object model for Command( ID = 14, Type = knx, Properties : {name=office_on, command=on, groupAddress=0/0/1, DPT=1.001}).
DEBUG 2013-04-22 10:08:04,172 : Created object model for Command( ID = 15, Type = knx, Properties : {name=office_off, command=off, groupAddress=0/0/1, DPT=1.001}).
DEBUG 2013-04-22 10:08:04,172 : Created object model for Command( ID = 16, Type = knx, Properties : {name=office_status, command=status, groupAddress=0/0/21, DPT=1.001}).
DEBUG 2013-04-22 10:08:04,172 : Initializing event processor: Drools Rule Engine
DEBUG 2013-04-22 10:08:04,172 : Adding Rule 'modeler_rules.drl'...
DEBUG 2013-04-22 10:08:04,242 : Adding rule definitions from 'modeler_rules.drl'...
INFO 2013-04-22 10:08:04,242 : Initialized event processor : Drools Rule Engine
ERROR 2013-04-22 10:08:04,242 : Creating sensor failed. Error : Sensor type switch is not a valid sensor datatype. 
 XML Element : <sensor xmlns="http://www.openremote.org" id="17" name="office_light" type="switch">
      <include type="command" ref="16" />
      <state name="on" />
      <state name="off" />
    </sensor>
org.openremote.controller.exception.XMLParsingException: Sensor type switch is not a valid sensor datatype.
	at org.openremote.controller.model.xml.Version20SensorBuilder.parseSensorType(Version20SensorBuilder.java:373)
	at org.openremote.controller.model.xml.Version20SensorBuilder.build(Version20SensorBuilder.java:281)
	at org.openremote.controller.deployer.Version20ModelBuilder.buildSensorObjectModelFromXML(Version20ModelBuilder.java:773)
	at org.openremote.controller.deployer.Version20ModelBuilder.buildSensorModel(Version20ModelBuilder.java:619)
	at org.openremote.controller.deployer.Version20ModelBuilder.build(Version20ModelBuilder.java:537)
	at org.openremote.controller.deployer.AbstractModelBuilder.buildModel(AbstractModelBuilder.java:148)
	at org.openremote.controller.service.Deployer.startup(Deployer.java:760)
	at org.openremote.controller.service.Deployer.softRestart(Deployer.java:373)
	at org.openremote.controller.service.Deployer$ControllerDefinitionWatch.run(Deployer.java:1188)
	at java.lang.Thread.run(Thread.java:619)
INFO 2013-04-22 10:08:04,242 : Startup complete.

Posted by ali at Apr 22, 2013 15:45

That error should not happen. Since you already tried different controller version, I can only assume it has todo with your environment.
What language settings (Locale) are you using?

The java docs for a method used in this is:

Note: This method is locale sensitive, and may produce unexpected results if used for strings that are intended to be interpreted locale independently.
Examples are programming language identifiers, protocol keys, and HTML tags. For instance, "title".toUpperCase() in a Turkish locale returns "T?TLE",
where '?' is the LATIN CAPITAL LETTER I WITH DOT ABOVE character. To obtain correct results for locale insensitive strings, use toUpperCase(Locale.ENGLISH).

So indeed "switch" toUpperCase() can produce something which causes this error?

You can try and edit openremote.bat which is used to start the controller.
Add the following "-Duser.country=US -Duser.language=en" to line

set JAVA_OPTS=%JAVA_OPTS% -Djava.library.path="%CATALINA_BASE%\webapps\controller\WEB-INF\lib\native"
Posted by mredeker at Apr 22, 2013 19:41

We thought the diversity of language and this experiment, I tried on a PC installed windows 7 English but it is the PC 's language may have changed later.(TR>ENG). Newly format the a PC on and then I install Windows XP English. Now that you have specified topic. After trying to give you information.

Thanks
Ali Haydar

Posted by ali at Apr 22, 2013 20:30

Yes, thank you so much for all your answers. I use the computer "Region / Language" settings "TR" to "USA" changed to. and is now fixed the problem running smoothly.

Regards,
Ali Haydar

Posted by ali at Apr 23, 2013 09:32

Great! I will create an issue for this so we can track the problem and fix in a later version of the controller.

Posted by mredeker at Apr 23, 2013 10:12

OK. Thanks.

Posted by ali at Apr 23, 2013 13:04

Ali,

Thank you very much for reporting this issue and debugging and resolving it with Marcus.

There's a binary with a patch available with a fix to this issue (currently based on the 2.0.2 release tree, let me know if you need 2.1 based instead): OpenRemote-Controller-2.0.2_LocaleFixes.zip

While I've done some regression tests with locale set to turkish language, I'd really appreciate if you could give this binary a try on a Windows system that is installed with your own locale, and report back to us if the fix indeed is working.

Best regards,

– Juha

Posted by juha at May 01, 2013 14:06

Thanks for all your work. After the trial will give you information. After testing as soon as possible give you information.

Posted by ali at May 01, 2013 21:02

Great! Running smoothly. I need the version v2.1. Thank you.

Regards,
Ali Haydar

Posted by ali at May 06, 2013 07:30

Ali,

Thanks for confirming the fix.

A 2.1 snapshot with patches applied is available here: OpenRemote-Controller-2.1.0_LocaleFixes-SNAPSHOT-2013-05-07.zip

Posted by juha at May 07, 2013 11:43

Great! It works flawlessly. Thanks for all your work.

Regards,
Ali Haydar

Posted by ali at May 08, 2013 10:17
Document generated by Confluence on Jun 05, 2016 09:41