ruanwenjun opened a new issue #451:
URL: https://github.com/apache/incubator-eventmesh/issues/451
Currently, when we initialize the `EventMeshHTTPServer` it will throw an
exception
```java
2021-07-21 19:53:36,923 WARN [eventMesh-http-server]
http(SSLContextFactory.java:65) - sslContext init failed
java.nio.file.NoSuchFileException: eventmesh-runtime/conf/sChat2.jks
at
sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
~[?:1.8.0_275]
at
sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
~[?:1.8.0_275]
at
sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
~[?:1.8.0_275]
at
sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
~[?:1.8.0_275]
at java.nio.file.Files.newByteChannel(Files.java:361) ~[?:1.8.0_275]
at java.nio.file.Files.newByteChannel(Files.java:407) ~[?:1.8.0_275]
at
java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:384)
~[?:1.8.0_275]
at java.nio.file.Files.newInputStream(Files.java:152) ~[?:1.8.0_275]
at
org.apache.eventmesh.runtime.boot.SSLContextFactory.getSslContext(SSLContextFactory.java:58)
~[eventmesh-runtime-1.2.0-SNAPSHOT.jar:1.2.0-SNAPSHOT]
at
org.apache.eventmesh.runtime.boot.AbstractHTTPServer.lambda$start$0(AbstractHTTPServer.java:159)
~[eventmesh-runtime-1.2.0-SNAPSHOT.jar:1.2.0-SNAPSHOT]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_275]
```
This caused by we delete the old `sChat2.jks` file, now if user don't set
`ssl.server.cer` in env, or they don't add a `sChat2.jks` file to `confPath`,
the exception will occur. It is maybe better to add a switch to control whether
open SSL.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]