This page last changed on Jan 31, 2015 by pz1.

Upgrade to Java 8 on my Synology DS212+ with Pro 1.1.1beta controller causes serious problems with Drools

INFO 2015-01-31 12:19:36,995 : Starting device discovery service...
ERROR 2015-01-31 12:19:53,430 : Error in rule definition 'modeler_rules.drl' : wrong class format
java.lang.RuntimeException: wrong class format
	at org.drools.commons.jci.compilers.EclipseJavaCompiler$2.findType(EclipseJavaCompiler.java:260)
	at org.drools.commons.jci.compilers.EclipseJavaCompiler$2.findType(EclipseJavaCompiler.java:204)
	at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType(LookupEnvironment.java:102)
	at org.eclipse.jdt.internal.compiler.lookup.UnresolvedReferenceBinding.resolve(UnresolvedReferenceBinding.java:49)
	at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.resolveType(BinaryTypeBinding.java:122)
	at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.getTypeFromTypeSignature(LookupEnvironment.java:1188)
	at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.getTypeFromVariantTypeSignature(LookupEnvironment.java:1244)
	at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.getTypeArgumentsFromSignature(LookupEnvironment.java:1031)
	at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.getTypeFromTypeSignature(LookupEnvironment.java:1193)
	at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.createFields(BinaryTypeBinding.java:355)
	at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.cachePartsFrom(BinaryTypeBinding.java:326)
	at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.createBinaryTypeFrom(LookupEnvironment.java:640)
	at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.createBinaryTypeFrom(LookupEnvironment.java:619)
	at org.eclipse.jdt.internal.compiler.Compiler.accept(Compiler.java:295)
	at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType(LookupEnvironment.java:107)
	at org.eclipse.jdt.internal.compiler.lookup.UnresolvedReferenceBinding.resolve(UnresolvedReferenceBinding.java:49)
	at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.resolveType(BinaryTypeBinding.java:122)
	at org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding.resolve(ParameterizedTypeBinding.java:851)
	at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.resolveType(BinaryTypeBinding.java:100)
	at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.resolveTypesFor(BinaryTypeBinding.java:1016)
	at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.getExactMethod(BinaryTypeBinding.java:771)
	at org.eclipse.jdt.internal.compiler.lookup.Scope.findExactMethod(Scope.java:893)
	at org.eclipse.jdt.internal.compiler.lookup.Scope.getMethod(Scope.java:2234)
	at org.eclipse.jdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:401)
	at org.eclipse.jdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:314)
	at org.eclipse.jdt.internal.compiler.ast.Expression.resolve(Expression.java:913)
	at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:447)
	at org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:189)
	at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:406)
	at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:1131)
	at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:1219)
	at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.resolve(CompilationUnitDeclaration.java:528)
	at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:759)
	at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:464)
	at org.drools.commons.jci.compilers.EclipseJavaCompiler.compile(EclipseJavaCompiler.java:351)
	at org.drools.commons.jci.compilers.AbstractJavaCompiler.compile(AbstractJavaCompiler.java:51)
	at org.drools.rule.builder.dialect.java.JavaDialect.compileAll(JavaDialect.java:389)
	at org.drools.compiler.DialectCompiletimeRegistry.compileAll(DialectCompiletimeRegistry.java:56)
	at org.drools.compiler.PackageRegistry.compileAll(PackageRegistry.java:74)
	at org.drools.compiler.PackageBuilder.compileAll(PackageBuilder.java:677)
	at org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:640)
	at org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:266)
	at org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:458)
	at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:28)
	at org.openremote.controller.statuscache.rules.RuleEngine.getValidKnowledgePackages(Unknown Source)
	at org.openremote.controller.statuscache.rules.RuleEngine.start(Unknown Source)
	at org.openremote.controller.statuscache.EventProcessorChain.start(Unknown Source)
	at org.openremote.controller.statuscache.StatusCache.start(Unknown Source)
	at org.openremote.controller.deployer.Version20ModelBuilder.buildSensorModel(Unknown Source)
	at org.openremote.controller.deployer.Version20ModelBuilder.build(Unknown Source)
	at org.openremote.controller.deployer.AbstractModelBuilder.buildModel(Unknown Source)
	at org.openremote.controller.service.Deployer.startup(Unknown Source)
	at org.openremote.controller.service.Deployer.startController(Unknown Source)
	at org.openremote.controller.spring.SpringContext.initializeController(Unknown Source)
	at org.openremote.controller.service.ServiceContext.init(Unknown Source)
	at org.openremote.controller.bootstrap.Startup.loadServiceContext(Unknown Source)
	at org.openremote.controller.bootstrap.servlet.ServletStartup.initializeServiceContext(Unknown Source)
	at org.openremote.controller.bootstrap.servlet.ServletStartup.contextInitialized(Unknown Source)
	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:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:483)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: org.eclipse.jdt.internal.compiler.classfmt.ClassFormatException
	at org.eclipse.jdt.internal.compiler.classfmt.ClassFileReader.<init>(ClassFileReader.java:372)
	at org.drools.commons.jci.compilers.EclipseJavaCompiler$2.findType(EclipseJavaCompiler.java:254)
	... 81 more
ERROR 2015-01-31 12:19:54,034 : Cannot start event processor 'Drools Rule Engine' : java.lang.ClassNotFoundException: org/openremote/controller/model/event/Rule_SolarQoS2_0DefaultConsequenceInvoker
org.drools.RuntimeDroolsException: java.lang.ClassNotFoundException: org/openremote/controller/model/event/Rule_SolarQoS2_0DefaultConsequenceInvoker
	at org.drools.rule.JavaDialectRuntimeData.reload(JavaDialectRuntimeData.java:383)
	at org.drools.rule.JavaDialectRuntimeData.onBeforeExecute(JavaDialectRuntimeData.java:139)
	at org.drools.rule.DialectRuntimeRegistry.onBeforeExecute(DialectRuntimeRegistry.java:132)
	at org.drools.common.AbstractRuleBase.addPackages(AbstractRuleBase.java:509)
	at org.drools.reteoo.ReteooRuleBase.addPackages(ReteooRuleBase.java:445)
	at org.drools.impl.KnowledgeBaseImpl.addKnowledgePackages(KnowledgeBaseImpl.java:142)
	at org.openremote.controller.statuscache.rules.RuleEngine.getValidKnowledgePackages(Unknown Source)
	at org.openremote.controller.statuscache.rules.RuleEngine.start(Unknown Source)
	at org.openremote.controller.statuscache.EventProcessorChain.start(Unknown Source)
	at org.openremote.controller.statuscache.StatusCache.start(Unknown Source)
	at org.openremote.controller.deployer.Version20ModelBuilder.buildSensorModel(Unknown Source)
	at org.openremote.controller.deployer.Version20ModelBuilder.build(Unknown Source)
	at org.openremote.controller.deployer.AbstractModelBuilder.buildModel(Unknown Source)
	at org.openremote.controller.service.Deployer.startup(Unknown Source)
	at org.openremote.controller.service.Deployer.startController(Unknown Source)
	at org.openremote.controller.spring.SpringContext.initializeController(Unknown Source)
	at org.openremote.controller.service.ServiceContext.init(Unknown Source)
	at org.openremote.controller.bootstrap.Startup.loadServiceContext(Unknown Source)
	at org.openremote.controller.bootstrap.servlet.ServletStartup.initializeServiceContext(Unknown Source)
	at org.openremote.controller.bootstrap.servlet.ServletStartup.contextInitialized(Unknown Source)
	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:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:483)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.lang.ClassNotFoundException: org/openremote/controller/model/event/Rule_SolarQoS2_0DefaultConsequenceInvoker
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:344)
	at org.drools.rule.DroolsCompositeClassLoader.loadClass(DroolsCompositeClassLoader.java:91)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at org.drools.rule.JavaDialectRuntimeData.wire(JavaDialectRuntimeData.java:312)
	at org.drools.rule.JavaDialectRuntimeData.reload(JavaDialectRuntimeData.java:379)
	... 43 more
Document generated by Confluence on Jun 05, 2016 09:38