This page last changed on Feb 06, 2014 by aktoy098.

My z-wave design, simple lighting control, works well. I can turn each light on and off. But when I try to add a simple rule the controller crashes. I'm running on a Mac/Maverics, and the latest version of the Controller (2.1.0_SNAPSHOT-2013-06-17).

..........................................................
package org.openremote.controller.model.event
global org.openremote.controller.statuscache.CommandFacade execute;
global org.openremote.controller.statuscache.SwitchFacade switches;

///-----------------------------------------------------------------
// Initialize the system by setting minutes in day

rule "Test fmrm on"
when

Event( source="FmRm switch", value == "on" )

then
execute.command("FmRm ON");
end
..........................................................

I first tried more complex rules based on the sunrise/sunset example, that crashed the controller, so I then tried the simple rule above, it too crashed the controller.

This is from the crash.

#

  1. A fatal error has been detected by the Java Runtime Environment:
    #
  2. SIGSEGV (0xb) at pc=0x000000019e20f12f, pid=2603, tid=22275
    #
  3. JRE version: Java(TM) SE Runtime Environment (7.0_51-b13) (build 1.7.0_51-b13)
  4. Java VM: Java HotSpot(TM) 64-Bit Server VM (24.51-b03 mixed mode bsd-amd64 compressed oops)
  5. Problematic frame:
  6. C librxtxSerial.jnilib\+0x312f Java_gnu_io_RXTXPort_interruptEventLoop+0x6b
    #
  7. Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
    #
  8. If you would like to submit a bug report, please visit:
  9. http://bugreport.sun.com/bugreport/crash.jsp
  10. The crash happened outside the Java Virtual Machine in native code.
  11. See problematic frame for where to report the bug.
    #

Looking at your crash log I notice you´re running Java 1.7:

JRE version: Java(TM) SE Runtime Environment (7.0_51-b13) (build 1.7.0_51-b13)

OpenRemote´s version of Drools required Java 1.6 to be stable. So my advice is to downgrade Java to 1.6 and give your rule another go.

Posted by tjoek at Feb 06, 2014 09:58

That was the problem, when reset to use java 1.6 all works ok.

Posted by aktoy098 at Feb 08, 2014 00:13
Document generated by Confluence on Jun 05, 2016 09:34