Controller 2.6.0 (Beta 2) on Qnap TS-239ProII+ not sync with online Design and offline.

Hi, all. Help is needed.

I installed the package OR OpenRemote_2.1.0.0617_x86.qpkg with a java8 on the Qnap TS-239ProII+ with QTS 4.2.4. Then I updated the folder to Webapps to version Controller 2.6.0. When I try to sync online, I get the following error:

An attempt was made to access service context before it was initialized.

``

When I try offline sync, I get the following:

An attempt was made to access service context before it was initialized.

``

Previously this design worked well for Synology (OR 2.6.0). And Qnap TS-119 (with second design OR 2.1.0).

Thankyou.

offline_sync.png

online_sync.png

package.png

In boot.log
ERROR 2017-03-18 16:06:10,748 : Manual configuration upload failed : An attempt was made to access service context before it was initialized.

java.lang.IllegalStateException: An attempt was made to access service context before it was initialized.

at org.openremote.controller.service.ServiceContext.getInstance(ServiceContext.java:458)

at org.openremote.controller.service.ServiceContext.getDeployer(ServiceContext.java:312)

at org.openremote.controller.action.ConfigManageController.uploadZip(ConfigManageController.java:88)

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:497)

at org.springframework.web.servlet.mvc.multiaction.MultiActionController.invokeNamedMethod(MultiActionController.java:445)

at org.springframework.web.servlet.mvc.multiaction.MultiActionController.handleRequestInternal(MultiActionController.java:382)

at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)

at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)

at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:859)

at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:793)

at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:476)

at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:441)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at org.openremote.controller.rest.support.json.JSONCallbackFilter.doFilter(JSONCallbackFilter.java:63)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)

at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)

at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)

at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)

at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:354)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at java.lang.Thread.run(Thread.java:745)

ERROR 2017-03-18 16:07:07,039 : Synchronizing controller with online account failed : An attempt was made to access service context before it was initialized.

java.lang.IllegalStateException: An attempt was made to access service context before it was initialized.

at org.openremote.controller.service.ServiceContext.getInstance(ServiceContext.java:458)

at org.openremote.controller.service.ServiceContext.getDeployer(ServiceContext.java:312)

at org.openremote.controller.action.ConfigManageController.syncOnline(ConfigManageController.java:140)

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:497)

at org.springframework.web.servlet.mvc.multiaction.MultiActionController.invokeNamedMethod(MultiActionController.java:445)

at org.springframework.web.servlet.mvc.multiaction.MultiActionController.handleRequestInternal(MultiActionController.java:382)

at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)

at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)

at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:859)

at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:793)

at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:476)

at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:441)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at org.openremote.controller.rest.support.json.JSONCallbackFilter.doFilter(JSONCallbackFilter.java:63)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)

at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)

at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)

at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)

at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:354)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at java.lang.Thread.run(Thread.java:745)

``

Hi

I had a similar error when manually starting OR Pro Controller 2.4.

When the rc.local file started the controller it was fine.

Someone suggested it might be an access rights issue, but as I'm a Velbus hardware person, I wouldn't like to guess at it.

Hi.
Strangely, I replaced the controller from version 2.6.0 to version 2.1.1 and used the my old second account (I used it previously for TS-119).

https://composer.openremote.org/preview/login.jsp

The account is perfectly synchronized and works, include Z-Wave stick S2. (on attachment)

But why does not the controller version 2.6.0 work and the first account (new Composer), that worked on Synology with controller 2.6.0 and java7.

https://designer.openremote.com/login.jsp

online_sync_2.1.1.png

Yes, I get the working controller 2.6.0, with working Z-Wave and rules, and mail send (javaxmail) from package OR OpenRemote_2.1.0.0617_x86.qpkg with a Java 8.

But not work webconsole. Open new topic: https://groups.google.com/forum/#!topic/openremotecommunity/2Wf3ywch9ms

They use different Modeler Builders and accounts cannot be synced. You can try migration service, there is a post about it, but looks like the server is down:
https://groups.google.com/forum/m/#!topic/openremotecommunity/E6OAw7zOGYQ

Hi.

Thanks, I already have a new account. And I got synced with the online designer.

How do I fix the time in the logs? https://groups.google.com/forum/#!topic/openremotecommunity/xxfyBP42-T0