Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » Eclipse Scout - HelloScout error(Initialitzation / Server doesn't start!)
Eclipse Scout - HelloScout error [message #1841380] Thu, 13 May 2021 17:25 Go to next message
Mike Majewski is currently offline Mike MajewskiFriend
Messages: 1
Registered: May 2021
Junior Member
Hello everyone

It's my first time posting in this forum,.. I checked a few answers already but couldn't find the proper solution to it.

I am stuck with the "hello scout" introduction tutorial. My hello scout doesn't event start properly, after generating it and 'running' it.

Here's the error:

Quote:
2021-05-13 19:16:42,620 INFO [main] org.eclipse.scout.rt.platform.config.ConfigPropertyProvider.parse(ConfigPropertyProvider.java:116) - Reading properties from file:/Users/mike/eclipse-workspace/helloscout/helloscout.ui.html.app.dev/target/classes/config.properties using org.eclipse.scout.rt.platform.config.DefaultConfigFileLoader - MDC[]
2021-05-13 19:16:42,687 INFO [main] org.eclipse.jetty.util.log.initialized(Log.java:169) - Logging initialized @791ms to org.eclipse.jetty.util.log.Slf4jLog - MDC[]
2021-05-13 19:16:42,772 INFO [main] org.eclipse.scout.dev.jetty.JettyServer.createWebApp(JettyServer.java:212) - Starting Jetty with resourceBase=/Users/mike/eclipse-workspace/helloscout/helloscout.ui.html.app.dev/src/main/webapp - MDC[]
2021-05-13 19:16:42,805 INFO [scout-platform-starter] org.eclipse.scout.rt.platform.internal.PlatformImplementor.validateHeadless(PlatformImplementor.java:175) - Headless mode: scout.headless=true, java.awt.headless=true (automatically set by Scout), GraphicsEnvironment.isHeadless()=true - MDC[]
2021-05-13 19:16:42,811 INFO [scout-platform-starter] org.eclipse.scout.rt.platform.inventory.ClassInventory.<clinit>(ClassInventory.java:38) - Building jandex class inventory using rebuild strategy IF_MODIFIED... - MDC[]
2021-05-13 19:16:42,863 INFO [ForkJoinPool.commonPool-worker-3] org.eclipse.scout.rt.platform.inventory.internal.JandexInventoryBuilder.scanFolder(JandexInventoryBuilder.java:181) - Rebuild index 'file:/Users/mike/eclipse-workspace/helloscout/helloscout.client/target/classes/META-INF/jandex.idx'. Scanning location... - MDC[]
2021-05-13 19:16:42,867 INFO [ForkJoinPool.commonPool-worker-5] org.eclipse.scout.rt.platform.inventory.internal.JandexInventoryBuilder.scanFolder(JandexInventoryBuilder.java:181) - Rebuild index 'file:/Users/mike/eclipse-workspace/helloscout/helloscout.ui.html/target/classes/META-INF/jandex.idx'. Scanning location... - MDC[]
2021-05-13 19:16:43,156 INFO [scout-platform-starter] org.eclipse.scout.rt.platform.inventory.ClassInventory.<clinit>(ClassInventory.java:44) - Finished building jandex class inventory in 348.962417 ms. Total class count: 3970 - MDC[]
2021-05-13 19:16:43,452 INFO [scout-platform-starter] org.eclipse.scout.rt.platform.internal.PlatformImplementor.createBeanManager(PlatformImplementor.java:222) - Collected 333 beans in 292.896083 ms - MDC[]
2021-05-13 19:16:43,589 INFO [scout-platform-starter] org.eclipse.scout.rt.platform.internal.PlatformImplementor.createBeanManager(PlatformImplementor.java:227) - Registered 333 beans in 137.447417 ms - MDC[]
2021-05-13 19:16:43,601 INFO [scout-platform-starter] org.eclipse.scout.rt.platform.job.internal.DevelopmentThreadNameDecorator.stateChanged(DevelopmentThreadNameDecorator.java:88) - +++ Development thread name decoration - MDC[]
2021-05-13 19:16:43,607 INFO [scout-platform-starter] org.eclipse.scout.rt.platform.logger.LoggerPlatformListener.registerLoggerSupportBean(LoggerPlatformListener.java:105) - Registered logger support org.eclipse.scout.rt.platform.logger.LogbackLoggerSupport - MDC[]
2021-05-13 19:16:43,624 INFO [scout-platform-starter] org.eclipse.scout.rt.shared.services.common.code.CodeTypeRegistrator.stateChanged(CodeTypeRegistrator.java:42) - 1 code type classes registered. - MDC[]
2021-05-13 19:16:43,646 INFO [scout-platform-starter] org.eclipse.scout.rt.shared.servicetunnel.RegisterTunnelToServerPlatformListener.registerTunnelToServerProxies(RegisterTunnelToServerPlatformListener.java:68) - Tunnel to server proxies registered. - MDC[]
2021-05-13 19:16:43,667 ERROR [scout-platform-starter] org.eclipse.scout.rt.platform.config.ConfigPropertyValidator.isValid(ConfigPropertyValidator.java:73) - Failed parsing value of config property with key='scout.auth.privateKey'. Configured value='TODO_use_org.eclipse.scout.rt.platform.security.SecurityUtility.main(String[])'. - MDC[]
org.eclipse.scout.rt.platform.exception.PlatformException: Illegal base64 character 5f
at org.eclipse.scout.rt.platform.config.AbstractConfigProperty.read(AbstractConfigProperty.java:81)
at org.eclipse.scout.rt.platform.config.AbstractConfigProperty.lambda$0(AbstractConfigProperty.java:51)
at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708)
at org.eclipse.scout.rt.platform.config.AbstractConfigProperty.getValue(AbstractConfigProperty.java:51)
at org.eclipse.scout.rt.platform.config.AbstractConfigProperty.getValue(AbstractConfigProperty.java:89)
at org.eclipse.scout.rt.platform.config.ConfigPropertyValidator.isValid(ConfigPropertyValidator.java:69)
at org.eclipse.scout.rt.platform.internal.PlatformImplementor.isConfigEntryValid(PlatformImplementor.java:205)
at org.eclipse.scout.rt.platform.internal.PlatformImplementor.validateConfiguration(PlatformImplementor.java:193)
at org.eclipse.scout.rt.platform.internal.PlatformImplementor.start(PlatformImplementor.java:140)
at org.eclipse.scout.rt.platform.internal.PlatformStarter.run(PlatformStarter.java:30)
Caused by: java.lang.IllegalArgumentException: Illegal base64 character 5f
at java.base/java.util.Base64$Decoder.decode0(Base64.java:791)
at java.base/java.util.Base64$Decoder.decode(Base64.java:567)
at java.base/java.util.Base64$Decoder.decode(Base64.java:590)
at org.eclipse.scout.rt.platform.util.Base64Utility.decode(Base64Utility.java:88)
at org.eclipse.scout.rt.platform.util.Base64Utility.decode(Base64Utility.java:61)
at org.eclipse.scout.rt.platform.config.AbstractBinaryConfigProperty.parse(AbstractBinaryConfigProperty.java:21)
at org.eclipse.scout.rt.platform.config.AbstractBinaryConfigProperty.parse(AbstractBinaryConfigProperty.java:1)
at org.eclipse.scout.rt.platform.config.AbstractConfigProperty.read(AbstractConfigProperty.java:74)
... 9 common frames omitted
2021-05-13 19:16:43,668 ERROR [scout-platform-starter] org.eclipse.scout.rt.platform.internal.PlatformImplementor.validateConfiguration(PlatformImplementor.java:195) - Config property with key 'scout.auth.privateKey' does not exist or has an invalid value. - MDC[]
2021-05-13 19:16:43,669 ERROR [scout-platform-starter] org.eclipse.scout.rt.platform.internal.PlatformImplementor.start(PlatformImplementor.java:147) - Error during platform startup - MDC[]
org.eclipse.scout.rt.platform.exception.PlatformException: Cannot start platform due to 1 invalid config properties: [scout.auth.privateKey]
at org.eclipse.scout.rt.platform.internal.PlatformImplementor.validateConfiguration(PlatformImplementor.java:199)
at org.eclipse.scout.rt.platform.internal.PlatformImplementor.start(PlatformImplementor.java:140)
at org.eclipse.scout.rt.platform.internal.PlatformStarter.run(PlatformStarter.java:30)
Exception in thread "scout-platform-starter" 2021-05-13 19:16:43,670 ERROR [main] org.eclipse.scout.dev.jetty.JettyServer.start(JettyServer.java:85) - Fatal: Unable to start application - 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:97)
at org.eclipse.scout.rt.platform.internal.PlatformImplementor.getBeanManager(PlatformImplementor.java:76)
at org.eclipse.scout.rt.platform.BEANS.opt(BEANS.java:56)
at org.eclipse.scout.rt.platform.BEANS.get(BEANS.java:42)
at org.eclipse.scout.rt.platform.config.CONFIG.getPropertyValue(CONFIG.java:53)
at org.eclipse.scout.rt.platform.config.CONFIG.getPropertyValue(CONFIG.java:37)
at org.eclipse.scout.dev.jetty.JettyServer.startInternal(JettyServer.java:122)
at org.eclipse.scout.dev.jetty.JettyServer.start(JettyServer.java:82)
at org.eclipse.scout.dev.jetty.JettyServer.main(JettyServer.java:77)
org.eclipse.scout.rt.platform.exception.PlatformException: Cannot start platform due to 1 invalid config properties: [scout.auth.privateKey]
at org.eclipse.scout.rt.platform.internal.PlatformImplementor.validateConfiguration(PlatformImplementor.java:199)
at org.eclipse.scout.rt.platform.internal.PlatformImplementor.start(PlatformImplementor.java:140)
at org.eclipse.scout.rt.platform.internal.PlatformStarter.run(PlatformStarter.java:30)
2021-05-13 19:16:43,671 INFO [main] org.eclipse.scout.dev.jetty.JettyServer.shutdown(JettyServer.java:158) - Shutting down application... - MDC[]
2021-05-13 19:16:43,672 INFO [main] org.eclipse.scout.dev.jetty.JettyServer.shutdown(JettyServer.java:161) - Shutdown complete - MDC[]
Exception in thread "main" org.eclipse.scout.rt.platform.exception.PlatformException: Fatal: Unable to start application
at org.eclipse.scout.dev.jetty.JettyServer.start(JettyServer.java:87)
at org.eclipse.scout.dev.jetty.JettyServer.main(JettyServer.java:77)
Caused by: 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:97)
at org.eclipse.scout.rt.platform.internal.PlatformImplementor.getBeanManager(PlatformImplementor.java:76)
at org.eclipse.scout.rt.platform.BEANS.opt(BEANS.java:56)
at org.eclipse.scout.rt.platform.BEANS.get(BEANS.java:42)
at org.eclipse.scout.rt.platform.config.CONFIG.getPropertyValue(CONFIG.java:53)
at org.eclipse.scout.rt.platform.config.CONFIG.getPropertyValue(CONFIG.java:37)
at org.eclipse.scout.dev.jetty.JettyServer.startInternal(JettyServer.java:122)
at org.eclipse.scout.dev.jetty.JettyServer.start(JettyServer.java:82)
... 1 more

Re: Eclipse Scout - HelloScout error [message #1841394 is a reply to message #1841380] Fri, 14 May 2021 07:47 Go to previous messageGo to next message
Claudio Guglielmo is currently offline Claudio GuglielmoFriend
Messages: 256
Registered: March 2010
Senior Member
Hi Mike,

welcome to the forum!

Your stacktrace says that the config property with key 'scout.auth.privateKey'does not exist or has an invalid value.

The property is defined in /Users/mike/eclipse-workspace/helloscout/helloscout.ui.html.app.dev/target/classes/config.properties.

Have you changed that value? When creating a new Scout project using the eclipse wizard the property is automatically generated. Maybe create a new project and compare the property with your existing one.
Please note that if you want to use the value from the newly created project, you have to adjust the public key too (scout.auth.publicKey), which is in the config.properties of the server (helloscout1.server.app.dev).
Re: Eclipse Scout - HelloScout error [message #1842910 is a reply to message #1841394] Tue, 06 July 2021 06:06 Go to previous messageGo to next message
Tom H is currently offline Tom HFriend
Messages: 139
Registered: July 2009
Senior Member
Those values, (scout.auth.privateKey and scout.auth.publicKey) are not updated for me by the installation, I've tested it a couple of times.

values are...
scout.auth.privateKey=TODO_use_org.eclipse.scout.rt.platform.security.SecurityUtility.main(String[])

and /helloscout.server.app.dev/src/main/resources/config.properties
scout.auth.publicKey=TODO_use_org.eclipse.scout.rt.platform.security.SecurityUtility.main(String[])




Edit: so it would seem to be related to this:
https://www.eclipse.org/forums/index.php/t/1080131/

[Updated on: Tue, 06 July 2021 06:46]

Report message to a moderator

Re: Eclipse Scout - HelloScout error [message #1842911 is a reply to message #1842910] Tue, 06 July 2021 06:21 Go to previous messageGo to next message
Andre Wegmueller is currently offline Andre WegmuellerFriend
Messages: 204
Registered: September 2012
Location: Baden-Dättwil, Switzerla...
Senior Member
Hi Tom

As Claudio said:

Quote:
Your stacktrace says that the config property with key 'scout.auth.privateKey'does not exist or has an invalid value.


Your property exists, but the value there is not valid, because you see the "TODO" which has been automatically generated by the archetype. _You_ have to do something to solve that TODO.
Namely start the SecurityUtility Java program to generate a valid public/private key pair which is unique for you.

For that, simply run the main() of the org.eclipse.scout.rt.platform.security.SecurityUtility class, by command line or in your IDE. It will output the two keys required for the config in the console output.
Something like this:

base64 encoded key pair:
  private key: MD4CAQAwEAYHKoZIzj0CAQYFK4EEAAoEJzAlAgEBBCByRQXu6SweGVzPHqgTaGcUz4B/v/pX8f4KB8kASx7tbQ==
  public key:  MFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAEtRVgRUz3SjO8kGeeH7XLX1/Nt7pebFFLFyK9h2mZFaogWVWw2iLxarCdxEZxQ/4etw6eLlSBoaBEtKVlXr+fjQ==


Check the property reference for more details about the two properties:
https://eclipsescout.github.io/11.0/technical-guide.html#sec-app.configProperties


Eclipse Scout Homepage | Documentation | GitHub
Re: Eclipse Scout - HelloScout error [message #1842913 is a reply to message #1842911] Tue, 06 July 2021 07:24 Go to previous messageGo to next message
Tom H is currently offline Tom HFriend
Messages: 139
Registered: July 2009
Senior Member
Thanks, I got 2 keys generated, and I get further.

Next error is
Caused by: java.security.SignatureException: Curve not supported: secp256k1 (1.3.132.0.10)
	at jdk.crypto.ec/sun.security.ec.ECDSASignature.engineSign(ECDSASignature.java:486)
	at java.base/java.security.Signature$Delegate.engineSign(Signature.java:1424)
	at java.base/java.security.Signature.sign(Signature.java:713)
	at org.eclipse.scout.rt.platform.security.SunSecurityProvider.createSignature(SunSecurityProvider.java:282)
	... 30 common frames omitted


Which is a bit odd, because secp256k1 seems to have been disabled for java 16, so I tried switching to oracle-jdk 11, which doesn't match the generated projects compliance level of 16.
Re: Eclipse Scout - HelloScout error [message #1842914 is a reply to message #1842913] Tue, 06 July 2021 07:46 Go to previous messageGo to next message
Tom H is currently offline Tom HFriend
Messages: 139
Registered: July 2009
Senior Member
Ah, ok so it seems the example helloscout project works when imported and run as oracle-jdk-11
Re: Eclipse Scout - HelloScout error [message #1842921 is a reply to message #1842914] Tue, 06 July 2021 10:09 Go to previous message
Andre Wegmueller is currently offline Andre WegmuellerFriend
Messages: 204
Registered: September 2012
Location: Baden-Dättwil, Switzerla...
Senior Member
Hi Tom

Thanks for analyzing that issue. It seems this never showed up here, because we use a version 11 VM.
We had issues in the past with the security providers and different JREs and this seems to be a similar case.

I'll check if we can make this work with newer VMs. At least we can document which VMs are supported for the Hello World.

In the meantime I hope you can continue with the oracle-jdk-11 (or probably any other VM with version 11, or less than 16).

Cheers,
André



Eclipse Scout Homepage | Documentation | GitHub
Previous Topic:Created Sessions Scout 11
Next Topic:Viewing/rendering PDF file
Goto Forum:
  


Current Time: Thu Mar 28 15:11:32 GMT 2024

Powered by FUDForum. Page generated in 0.02613 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top