[neon] Exception when setting scout.server.url from System-Property instead of config.properties [message #1726486] |
Mon, 14 March 2016 09:42 |
Urs Beeli Messages: 573 Registered: October 2012 Location: Bern, Switzerland |
Senior Member |
|
|
The ConfigProperty mechanism seems to support definition of values through the following sources (in this order):
- System-Property
- config.properties file in WAR project
- Environment variables
When we define scout.server.url in the config.property file of the ui-server-war project, the server starts up without error.
However, if we define the scout.server.url using a System Property, the server throws two exception during start up (see below). The server still starts and runs and we can access the HTML GUI from our browser.
We don't at first glance see where these exceptions come from and why they would only appear when setting the server url from system properties but not the config.properties file.
The following exception appears twice in our console log:
2016-03-14 10:36:24,210 ERROR scout-thread-3 Dispatching client notification o.e.s.r.s.notification.NotificationHandlerRegistry - Handler 'org.eclipse.scout.rt.client.cache.CacheClientNotificationHandler@a05851' notification with notification 'InvalidateCacheNotification [cacheId=org.eclipse.scout.rt.shared.services.common.security.AbstractAccessControlService, filter=org.eclipse.scout.rt.shared.cache.KeyCacheEntryFilter@4e060d]' failed. [system @ ]
org.eclipse.scout.rt.platform.util.Assertions$AssertionException: Assertion error: No transaction found on current calling context to register transactional client notification Adress={ClientNotificationAddress@4ee[sessions=[], userIds=[], notifyAllSessions=false, notifyAllNodes=true]}, notification=InvalidateCacheNotification [cacheId=org.eclipse.scout.rt.shared.services.common.security.AbstractAccessControlService, filter=org.eclipse.scout.rt.shared.cache.KeyCacheEntryFilter@4e060d]
at org.eclipse.scout.rt.platform.util.Assertions.fail(Assertions.java:581) ~[org.eclipse.scout.rt.platform-5.2.0.M5.jar:5.2.0.M5]
at org.eclipse.scout.rt.platform.util.Assertions.assertNotNull(Assertions.java:87) ~[org.eclipse.scout.rt.platform-5.2.0.M5.jar:5.2.0.M5]
at org.eclipse.scout.rt.server.clientnotification.ClientNotificationRegistry.putTransactional(ClientNotificationRegistry.java:387) ~[org.eclipse.scout.rt.server-5.2.0.M5.jar:5.2.0.M5]
at org.eclipse.scout.rt.server.clientnotification.ClientNotificationRegistry.putTransactional(ClientNotificationRegistry.java:383) ~[org.eclipse.scout.rt.server-5.2.0.M5.jar:5.2.0.M5]
at org.eclipse.scout.rt.server.clientnotification.ClientNotificationRegistry.putTransactionalForAllNodes(ClientNotificationRegistry.java:375) ~[org.eclipse.scout.rt.server-5.2.0.M5.jar:5.2.0.M5]
at org.eclipse.scout.rt.server.cache.ClientNotificationServerCacheWrapper.invalidate(ClientNotificationServerCacheWrapper.java:39) ~[org.eclipse.scout.rt.server-5.2.0.M5.jar:5.2.0.M5]
at org.eclipse.scout.rt.shared.cache.CacheNotificationHandler.handleNotificationImpl(CacheNotificationHandler.java:41) ~[org.eclipse.scout.rt.shared-5.2.0.M5.jar:5.2.0.M5]
at org.eclipse.scout.rt.shared.cache.CacheNotificationHandler.handleNotification(CacheNotificationHandler.java:33) ~[org.eclipse.scout.rt.shared-5.2.0.M5.jar:5.2.0.M5]
at org.eclipse.scout.rt.shared.cache.CacheNotificationHandler.handleNotification(CacheNotificationHandler.java:1) ~[org.eclipse.scout.rt.shared-5.2.0.M5.jar:5.2.0.M5]
at org.eclipse.scout.rt.client.cache.CacheClientNotificationHandler.handleNotification(CacheClientNotificationHandler.java:38) ~[org.eclipse.scout.rt.client-5.2.0.M5.jar:5.2.0.M5]
at org.eclipse.scout.rt.client.cache.CacheClientNotificationHandler.handleNotification(CacheClientNotificationHandler.java:1) ~[org.eclipse.scout.rt.client-5.2.0.M5.jar:5.2.0.M5]
at org.eclipse.scout.rt.shared.notification.NotificationHandlerRegistry.notifyHandlers(NotificationHandlerRegistry.java:47) ~[org.eclipse.scout.rt.shared-5.2.0.M5.jar:5.2.0.M5]
at org.eclipse.scout.rt.client.clientnotification.ClientNotificationDispatcher.dispatchSync(ClientNotificationDispatcher.java:187) [org.eclipse.scout.rt.client-5.2.0.M5.jar:5.2.0.M5]
at org.eclipse.scout.rt.client.clientnotification.ClientNotificationDispatcher$1.run(ClientNotificationDispatcher.java:112) [org.eclipse.scout.rt.client-5.2.0.M5.jar:5.2.0.M5]
at org.eclipse.scout.rt.platform.util.concurrent.Callables$1.call(Callables.java:37) [org.eclipse.scout.rt.platform-5.2.0.M5.jar:5.2.0.M5]
at org.eclipse.scout.rt.platform.util.concurrent.Callables$1.call(Callables.java:1) [org.eclipse.scout.rt.platform-5.2.0.M5.jar:5.2.0.M5]
at org.eclipse.scout.rt.platform.chain.callable.CallableChain$Chain.continueChain(CallableChain.java:186) [org.eclipse.scout.rt.platform-5.2.0.M5.jar:5.2.0.M5]
at org.eclipse.scout.rt.platform.job.internal.ExceptionProcessor.intercept(ExceptionProcessor.java:41) [org.eclipse.scout.rt.platform-5.2.0.M5.jar:5.2.0.M5]
at org.eclipse.scout.rt.platform.chain.callable.CallableChain$Chain.continueChain(CallableChain.java:181) [org.eclipse.scout.rt.platform-5.2.0.M5.jar:5.2.0.M5]
at org.eclipse.scout.rt.platform.context.RunContextRunner$1.call(RunContextRunner.java:42) [org.eclipse.scout.rt.platform-5.2.0.M5.jar:5.2.0.M5]
at org.eclipse.scout.rt.platform.chain.callable.CallableChain$Chain.continueChain(CallableChain.java:186) [org.eclipse.scout.rt.platform-5.2.0.M5.jar:5.2.0.M5]
at org.eclipse.scout.rt.platform.chain.callable.CallableChain.call(CallableChain.java:135) [org.eclipse.scout.rt.platform-5.2.0.M5.jar:5.2.0.M5]
at org.eclipse.scout.rt.platform.context.RunContext.call(RunContext.java:120) [org.eclipse.scout.rt.platform-5.2.0.M5.jar:5.2.0.M5]
at org.eclipse.scout.rt.platform.context.RunContextRunner.intercept(RunContextRunner.java:38) [org.eclipse.scout.rt.platform-5.2.0.M5.jar:5.2.0.M5]
at org.eclipse.scout.rt.platform.chain.callable.CallableChain$Chain.continueChain(CallableChain.java:181) [org.eclipse.scout.rt.platform-5.2.0.M5.jar:5.2.0.M5]
at org.eclipse.scout.rt.platform.chain.callable.CallableChain.call(CallableChain.java:135) [org.eclipse.scout.rt.platform-5.2.0.M5.jar:5.2.0.M5]
at org.eclipse.scout.rt.platform.job.internal.JobFutureTask$1.call(JobFutureTask.java:95) [org.eclipse.scout.rt.platform-5.2.0.M5.jar:5.2.0.M5]
at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_67]
at org.eclipse.scout.rt.platform.job.internal.JobFutureTask.run(JobFutureTask.java:152) [org.eclipse.scout.rt.platform-5.2.0.M5.jar:5.2.0.M5]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_67]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_67]
at java.lang.Thread.run(Thread.java:745) [na:1.7.0_67]
at org.eclipse.scout.rt.platform.job.internal.NamedThreadFactory$1.run(NamedThreadFactory.java:54) [org.eclipse.scout.rt.platform-5.2.0.M5.jar:5.2.0.M5]
[Updated on: Mon, 14 March 2016 09:42] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.02768 seconds