Home » Eclipse Projects » Eclipse Scout » Migration problems from Neon to Oxygen
Migration problems from Neon to Oxygen [message #1767269] |
Tue, 04 July 2017 11:53 |
Andreas Christ Messages: 32 Registered: April 2016 |
Member |
|
|
For our project I just changed the Scout version from "6.0.200.0" to the latest "7.0.0.008_Oxygen". Some tiny error occured due to AbstractPage's method update: from (old) initTable() to (new) createTable(). OK, that's easy.
But If we start our Scout app, we get some Exceptions:
2017-07-04 13:35:23,534 INFO [main] org.eclipse.jetty.util.log.initialized(Log.java:192) - Logging initialized @340ms to org.eclipse.jetty.util.log.Slf4jLog - MDC[]
2017-07-04 13:35:23,589 INFO [main] org.eclipse.scout.dev.jetty.JettyServer.createWebApp(JettyServer.java:154) - Starting Jetty with resourceBase=/home/a3798/git/CustomerCareScout/customercare.server.app.dev/src/main/webapp - MDC[]
2017-07-04 13:35:23,602 INFO [main] org.eclipse.jetty.server.Server.doStart(Server.java:372) - jetty-9.4.3.v20170317 - MDC[]
2017-07-04 13:35:23,667 INFO [main] org.eclipse.jetty.webapp.StandardDescriptorProcessor.visitServlet(StandardDescriptorProcessor.java:281) - NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet - MDC[]
2017-07-04 13:35:23,678 INFO [main] org.eclipse.jetty.server.session.doStart(DefaultSessionIdManager.java:360) - DefaultSessionIdManager workerName=node0 - MDC[]
2017-07-04 13:35:23,678 INFO [main] org.eclipse.jetty.server.session.doStart(DefaultSessionIdManager.java:365) - No SessionScavenger set, using defaults - MDC[]
2017-07-04 13:35:23,680 INFO [main] org.eclipse.jetty.server.session.startScavenging(HouseKeeper.java:146) - Scavenging every 660000ms - MDC[]
2017-07-04 13:35:23,690 INFO [Thread-9] org.eclipse.scout.rt.platform.config.PropertiesHelper.parse(PropertiesHelper.java:989) - Reading properties from file:/home/a3798/git/CustomerCareScout/customercare.server.app.dev/target/classes/config.properties using org.eclipse.scout.rt.platform.config.DefaultConfigFileLoader - MDC[]
2017-07-04 13:35:23,694 INFO [Thread-9] org.eclipse.scout.rt.platform.internal.PlatformImplementor.validateHeadless(PlatformImplementor.java:171) - Headless mode: scout.headless=true, java.awt.headless=true (automatically set by Scout), GraphicsEnvironment.isHeadless()=true - MDC[]
2017-07-04 13:35:23,849 INFO [Thread-9] org.eclipse.scout.rt.platform.inventory.ClassInventory.<clinit>(ClassInventory.java:40) - Building jandex class inventory with 2210 classes in 152.569016 ms using rebuild strategy ALWAYS - MDC[]
2017-07-04 13:35:24,013 INFO [Thread-9] com.sixt.leasing.core.service.client.ldap.endpoint.UserLoginService.<init>(UserLoginService.java:58) - User login service configuration loaded - MDC[]
2017-07-04 13:35:24,056 INFO [Thread-9] org.eclipse.scout.rt.platform.internal.PlatformImplementor.createBeanManager(PlatformImplementor.java:213) - Collecting 380 beans in 361.053594 ms - MDC[]
2017-07-04 13:35:24,091 INFO [Thread-9] org.eclipse.scout.rt.platform.internal.PlatformImplementor.createBeanManager(PlatformImplementor.java:218) - Registering 380 beans in 34.987372 ms - MDC[]
2017-07-04 13:35:24,093 INFO [Thread-9] org.eclipse.scout.rt.platform.job.internal.DevelopmentThreadNameDecorator.stateChanged(DevelopmentThreadNameDecorator.java:100) - +++ Development thread name decoration - MDC[]
2017-07-04 13:35:24,096 INFO [Thread-9] org.eclipse.scout.rt.platform.logger.LoggerPlatformListener.registerLoggerSupportBean(LoggerPlatformListener.java:105) - registered logger support [org.eclipse.scout.rt.platform.logger.LogbackLoggerSupport] - MDC[]
2017-07-04 13:35:24,099 INFO [Thread-9] org.eclipse.scout.rt.shared.services.common.code.CodeTypeRegistrator.stateChanged(CodeTypeRegistrator.java:32) - 1 code type classes registered. - MDC[]
2017-07-04 13:35:24,104 ERROR [Thread-9] org.eclipse.scout.rt.platform.internal.PlatformImplementor.validateConfiguration(PlatformImplementor.java:191) - Config property with key 'SwopSixtOfferService.password' does not exist or has an invalid value. - MDC[]
2017-07-04 13:35:24,104 ERROR [Thread-9] org.eclipse.scout.rt.platform.internal.PlatformImplementor.validateConfiguration(PlatformImplementor.java:191) - Config property with key 'OfferService.serviceUrl' does not exist or has an invalid value. - MDC[]
2017-07-04 13:35:24,104 ERROR [Thread-9] org.eclipse.scout.rt.platform.internal.PlatformImplementor.validateConfiguration(PlatformImplementor.java:191) - Config property with key 'ContractLifecycleService.serviceUrl' does not exist or has an invalid value. - MDC[]
2017-07-04 13:35:24,105 ERROR [Thread-9] org.eclipse.scout.rt.platform.internal.PlatformImplementor.validateConfiguration(PlatformImplementor.java:191) - Config property with key 'DocumentManagementService.serviceUrl' does not exist or has an invalid value. - MDC[]
2017-07-04 13:35:24,105 ERROR [Thread-9] org.eclipse.scout.rt.platform.internal.PlatformImplementor.validateConfiguration(PlatformImplementor.java:191) - Config property with key 'OfferService.username' does not exist or has an invalid value. - MDC[]
2017-07-04 13:35:24,105 ERROR [Thread-9] org.eclipse.scout.rt.platform.internal.PlatformImplementor.validateConfiguration(PlatformImplementor.java:191) - Config property with key 'com.sixt.leasing.scout.server.services.restclient.SxCodeService.servicePrefix' does not exist or has an invalid value. - MDC[]
2017-07-04 13:35:24,105 ERROR [Thread-9] org.eclipse.scout.rt.platform.internal.PlatformImplementor.validateConfiguration(PlatformImplementor.java:191) - Config property with key 'user.area' does not exist or has an invalid value. - MDC[]
2017-07-04 13:35:24,105 ERROR [Thread-9] org.eclipse.scout.rt.platform.internal.PlatformImplementor.validateConfiguration(PlatformImplementor.java:191) - Config property with key 'ContractProcessService.serviceUrl' does not exist or has an invalid value. - MDC[]
2017-07-04 13:35:24,106 ERROR [Thread-9] org.eclipse.scout.rt.platform.internal.PlatformImplementor.validateConfiguration(PlatformImplementor.java:191) - Config property with key 'ContractLifecycleService.password' does not exist or has an invalid value. - MDC[]
2017-07-04 13:35:24,106 ERROR [Thread-9] org.eclipse.scout.rt.platform.internal.PlatformImplementor.validateConfiguration(PlatformImplementor.java:191) - Config property with key 'ContractProcessService.username' does not exist or has an invalid value. - MDC[]
2017-07-04 13:35:24,106 ERROR [Thread-9] org.eclipse.scout.rt.platform.internal.PlatformImplementor.validateConfiguration(PlatformImplementor.java:191) - Config property with key 'DocumentManagementService.username' does not exist or has an invalid value. - MDC[]
2017-07-04 13:35:24,106 ERROR [Thread-9] org.eclipse.scout.rt.platform.internal.PlatformImplementor.validateConfiguration(PlatformImplementor.java:191) - Config property with key 'ContractProcessService.servicePrefix' does not exist or has an invalid value. - MDC[]
2017-07-04 13:35:24,106 ERROR [Thread-9] org.eclipse.scout.rt.platform.internal.PlatformImplementor.validateConfiguration(PlatformImplementor.java:191) - Config property with key 'ContractLifecycleService.servicePrefix' does not exist or has an invalid value. - MDC[]
2017-07-04 13:35:24,106 ERROR [Thread-9] org.eclipse.scout.rt.platform.internal.PlatformImplementor.validateConfiguration(PlatformImplementor.java:191) - Config property with key 'com.sixt.leasing.scout.server.services.restclient.OfferService.servicePrefix' does not exist or has an invalid value. - MDC[]
2017-07-04 13:35:24,106 ERROR [Thread-9] org.eclipse.scout.rt.platform.internal.PlatformImplementor.validateConfiguration(PlatformImplementor.java:191) - Config property with key 'ContractProcessService.password' does not exist or has an invalid value. - MDC[]
2017-07-04 13:35:24,106 ERROR [Thread-9] org.eclipse.scout.rt.platform.internal.PlatformImplementor.validateConfiguration(PlatformImplementor.java:191) - Config property with key 'com.sixt.leasing.scout.server.services.restclient.SxCodeService.serviceUrl' does not exist or has an invalid value. - MDC[]
2017-07-04 13:35:24,106 ERROR [Thread-9] org.eclipse.scout.rt.platform.internal.PlatformImplementor.validateConfiguration(PlatformImplementor.java:191) - Config property with key 'DocumentManagementService.password' does not exist or has an invalid value. - MDC[]
2017-07-04 13:35:24,106 ERROR [Thread-9] org.eclipse.scout.rt.platform.internal.PlatformImplementor.validateConfiguration(PlatformImplementor.java:191) - Config property with key 'DocumentManagementService.servicePrefix' does not exist or has an invalid value. - MDC[]
2017-07-04 13:35:24,106 ERROR [Thread-9] org.eclipse.scout.rt.platform.internal.PlatformImplementor.validateConfiguration(PlatformImplementor.java:191) - Config property with key 'OfferService.servicePrefix' does not exist or has an invalid value. - MDC[]
2017-07-04 13:35:24,106 ERROR [Thread-9] org.eclipse.scout.rt.platform.internal.PlatformImplementor.validateConfiguration(PlatformImplementor.java:191) - Config property with key 'OfferService.version' does not exist or has an invalid value. - MDC[]
2017-07-04 13:35:24,106 ERROR [Thread-9] org.eclipse.scout.rt.platform.internal.PlatformImplementor.validateConfiguration(PlatformImplementor.java:191) - Config property with key 'EligibilityService.password' does not exist or has an invalid value. - MDC[]
2017-07-04 13:35:24,106 ERROR [Thread-9] org.eclipse.scout.rt.platform.internal.PlatformImplementor.validateConfiguration(PlatformImplementor.java:191) - Config property with key 'SwopSixtOfferService.username' does not exist or has an invalid value. - MDC[]
2017-07-04 13:35:24,106 ERROR [Thread-9] org.eclipse.scout.rt.platform.internal.PlatformImplementor.validateConfiguration(PlatformImplementor.java:191) - Config property with key 'SwopSixtOfferService.servicePrefix' does not exist or has an invalid value. - MDC[]
2017-07-04 13:35:24,107 ERROR [Thread-9] org.eclipse.scout.rt.platform.internal.PlatformImplementor.validateConfiguration(PlatformImplementor.java:191) - Config property with key 'EligibilityService.servicePrefix' does not exist or has an invalid value. - MDC[]
2017-07-04 13:35:24,107 ERROR [Thread-9] org.eclipse.scout.rt.platform.internal.PlatformImplementor.validateConfiguration(PlatformImplementor.java:191) - Config property with key 'EligibilityService.username' does not exist or has an invalid value. - MDC[]
2017-07-04 13:35:24,107 ERROR [Thread-9] org.eclipse.scout.rt.platform.internal.PlatformImplementor.validateConfiguration(PlatformImplementor.java:191) - Config property with key 'OfferService.password' does not exist or has an invalid value. - MDC[]
2017-07-04 13:35:24,107 ERROR [Thread-9] org.eclipse.scout.rt.platform.internal.PlatformImplementor.validateConfiguration(PlatformImplementor.java:191) - Config property with key 'com.sixt.leasing.scout.server.services.restclient.OfferService.serviceUrl' does not exist or has an invalid value. - MDC[]
2017-07-04 13:35:24,107 ERROR [Thread-9] org.eclipse.scout.rt.platform.internal.PlatformImplementor.validateConfiguration(PlatformImplementor.java:191) - Config property with key 'EligibilityService.serviceUrl' does not exist or has an invalid value. - MDC[]
2017-07-04 13:35:24,107 ERROR [Thread-9] org.eclipse.scout.rt.platform.internal.PlatformImplementor.validateConfiguration(PlatformImplementor.java:191) - Config property with key 'ContractLifecycleService.username' does not exist or has an invalid value. - MDC[]
2017-07-04 13:35:24,107 ERROR [Thread-9] org.eclipse.scout.rt.platform.internal.PlatformImplementor.validateConfiguration(PlatformImplementor.java:191) - Config property with key 'SwopSixtOfferService.serviceUrl' does not exist or has an invalid value. - MDC[]
2017-07-04 13:35:24,108 ERROR [Thread-9] org.eclipse.scout.rt.platform.internal.PlatformImplementor.start(PlatformImplementor.java:143) - Error during platform startup - MDC[]
org.eclipse.scout.rt.platform.exception.PlatformException: Cannot start platform due to 30 invalid config properties: [SwopSixtOfferService.password, OfferService.serviceUrl, ContractLifecycleService.serviceUrl, DocumentManagementService.serviceUrl, OfferService.username, com.sixt.leasing.scout.server.services.restclient.SxCodeService.servicePrefix, user.area, ContractProcessService.serviceUrl, ContractLifecycleService.password, ContractProcessService.username, DocumentManagementService.username, ContractProcessService.servicePrefix, ContractLifecycleService.servicePrefix, com.sixt.leasing.scout.server.services.restclient.OfferService.servicePrefix, ContractProcessService.password, com.sixt.leasing.scout.server.services.restclient.SxCodeService.serviceUrl, DocumentManagementService.password, DocumentManagementService.servicePrefix, OfferService.servicePrefix, OfferService.version, EligibilityService.password, SwopSixtOfferService.username, SwopSixtOfferService.servicePrefix, EligibilityService.servicePrefix, EligibilityService.username, OfferService.password, com.sixt.leasing.scout.server.services.restclient.OfferService.serviceUrl, EligibilityService.serviceUrl, ContractLifecycleService.username, SwopSixtOfferService.serviceUrl]
at org.eclipse.scout.rt.platform.internal.PlatformImplementor.validateConfiguration(PlatformImplementor.java:195)
at org.eclipse.scout.rt.platform.internal.PlatformImplementor.start(PlatformImplementor.java:136)
at org.eclipse.scout.rt.platform.internal.PlatformStarter.run(PlatformStarter.java:29)
Exception in thread "Thread-9" org.eclipse.scout.rt.platform.exception.PlatformException: Cannot start platform due to 30 invalid config properties: [SwopSixtOfferService.password, OfferService.serviceUrl, ContractLifecycleService.serviceUrl, DocumentManagementService.serviceUrl, OfferService.username, com.sixt.leasing.scout.server.services.restclient.SxCodeService.servicePrefix, user.area, ContractProcessService.serviceUrl, ContractLifecycleService.password, ContractProcessService.username, DocumentManagementService.username, ContractProcessService.servicePrefix, ContractLifecycleService.servicePrefix, com.sixt.leasing.scout.server.services.restclient.OfferService.servicePrefix, ContractProcessService.password, com.sixt.leasing.scout.server.services.restclient.SxCodeService.serviceUrl, DocumentManagementService.password, DocumentManagementService.servicePrefix, OfferService.servicePrefix, OfferService.version, EligibilityService.password, SwopSixtOfferService.username, SwopSixtOfferService.servicePrefix, EligibilityService.servicePrefix, EligibilityService.username, OfferService.password, com.sixt.leasing.scout.server.services.restclient.OfferService.serviceUrl, EligibilityService.serviceUrl, ContractLifecycleService.username, SwopSixtOfferService.serviceUrl]
at org.eclipse.scout.rt.platform.internal.PlatformImplementor.validateConfiguration(PlatformImplementor.java:195)
at org.eclipse.scout.rt.platform.internal.PlatformImplementor.start(PlatformImplementor.java:136)
at org.eclipse.scout.rt.platform.internal.PlatformStarter.run(PlatformStarter.java:29)
2017-07-04 13:35:24,109 WARN [main] org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:549) - Failed startup of context o.e.s.d.j.P_WebAppContext@1445d7f{/,file:///home/a3798/git/CustomerCareScout/customercare.server.app.dev/src/main/webapp/,UNAVAILABLE} - MDC[]
org.eclipse.scout.rt.platform.exception.PlatformException: The platform is in an invalid state.
at org.eclipse.scout.rt.platform.internal.PlatformImplementor.throwOnPlatformInvalid(PlatformImplementor.java:93)
at org.eclipse.scout.rt.platform.internal.PlatformImplementor.awaitPlatformStarted(PlatformImplementor.java:83)
at org.eclipse.scout.rt.server.commons.WebappEventListener.contextInitialized(WebappEventListener.java:43)
at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:876)
at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:532)
at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:839)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:344)
at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1480)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1442)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:799)
at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:261)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:540)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131)
at org.eclipse.jetty.server.Server.start(Server.java:452)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:105)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)
at org.eclipse.jetty.server.Server.doStart(Server.java:419)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.scout.dev.jetty.JettyServer.start(JettyServer.java:95)
at org.eclipse.scout.dev.jetty.JettyServer.main(JettyServer.java:56)
2017-07-04 13:35:24,118 INFO [main] org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:280) - Started ServerConnector@2aa3cd93{HTTP/1.1,[http/1.1]}{0.0.0.0:8080} - MDC[]
Exception in thread "main" org.eclipse.scout.rt.platform.exception.PlatformException: The platform is in an invalid state.
at org.eclipse.scout.rt.platform.internal.PlatformImplementor.throwOnPlatformInvalid(PlatformImplementor.java:93)
at org.eclipse.scout.rt.platform.internal.PlatformImplementor.awaitPlatformStarted(PlatformImplementor.java:83)
at org.eclipse.scout.rt.server.commons.WebappEventListener.contextInitialized(WebappEventListener.java:43)
at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:876)
at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:532)
at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:839)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:344)
at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1480)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1442)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:799)
at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:261)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:540)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131)
at org.eclipse.jetty.server.Server.start(Server.java:452)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:105)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)
at org.eclipse.jetty.server.Server.doStart(Server.java:419)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.scout.dev.jetty.JettyServer.start(JettyServer.java:95)
at org.eclipse.scout.dev.jetty.JettyServer.main(JettyServer.java:56)
Cannot read properties? That's not true. We debugged the code and all properties (keys and values) are properly read. But this Exception said, "Config property with key 'XXXX.key' does not exist or has an invalid value." Well.... What let the program come to that conclusion?
The migration guide doesn't help us, sorry. Do you have an idea?
|
|
|
Re: Migration problems from Neon to Oxygen [message #1767272 is a reply to message #1767269] |
Tue, 04 July 2017 12:03 |
Matthias Otterbach Messages: 60 Registered: August 2015 Location: Munich |
Member |
|
|
A new validation for configuration properties has been introduced with the new version of Scout.
You are writing you are debugging the code, do you have the possibility to step into the method org.eclipse.scout.rt.platform.internal.PlatformImplementor.isConfigEntryValid(List<IConfigurationValidator>, Entry<String, String>) for some of the properties reported as invalid? In this method you could check if there are validators for the configuration property (all beans implementing IConfigurationValidator), there should be at least one, and step into the isValid method to check why these properties are reported as invalid.
- How are the config properties implemented? I suppose they are subclasses of AbstractStringConfigProperty (at least some of them) just providing a getKey and getDefaultValue method?
- Where are the properties defined? In the config.properties of your project?
[Updated on: Tue, 04 July 2017 12:09] Report message to a moderator
|
|
| |
Re: Migration problems from Neon to Oxygen [message #1767281 is a reply to message #1767275] |
Tue, 04 July 2017 12:38 |
Andreas Christ Messages: 32 Registered: April 2016 |
Member |
|
|
All of our properties are of type "AbstractStringConfigProperty". I think, a validation if a key or value is a String is trivial. Or do I have to implement a validation class for each of our properties? What is the "new" validation concept, do you have some information? What is the difference to our old Neon validation?
----
UPDATE: thank you for chapter 2.4, I'm going to read it now.
[Updated on: Tue, 04 July 2017 12:41] Report message to a moderator
|
|
| | | | | | | |
Re: Migration problems from Neon to Oxygen [message #1767299 is a reply to message #1767296] |
Tue, 04 July 2017 14:02 |
Arthur van Dorp Messages: 48 Registered: October 2015 |
Member |
|
|
PropertiesHelper.IMPORT_KEY is always import, yes, it's a constant. :) The problem is that the variable property is null. My initial suspicion was that the Bean manager doesn't find you IConfigProperty instances. Could you have a look at the m_configProperties-Map and what kind of properties it contains? You said there are 102, but are they "yours"?
[Edit] Missed Matthias post. That's a good approach, ensuring that the Bean manager can find your beans/properties.
[Updated on: Tue, 04 July 2017 14:04] Report message to a moderator
|
|
| | | | |
Goto Forum:
Current Time: Wed Feb 05 07:42:18 GMT 2025
Powered by FUDForum. Page generated in 0.05254 seconds
|