Projects tigase _server tigase-http-api Issues #77
Could not initialize HTTP server for port 8081 (#77)
Closed
wojciech.kapcia@tigase.net opened 6 years ago

Exception while creating http server:

2019-02-20 22:17:41.837 [main]             SSLContextContainer.getSSLContext()     SEVERE:   Can not initialize SSLContext for domain: default, protocol: TLS
java.lang.NullPointerException
        at java.util.concurrent.ConcurrentSkipListMap.doRemove(ConcurrentSkipListMap.java:957)
        at java.util.concurrent.ConcurrentSkipListMap.remove(ConcurrentSkipListMap.java:1595)
        at tigase.io.SSLContextContainer.invalidateContextHolder(SSLContextContainer.java:272)
        at tigase.io.SSLContextContainer.validateDomainCertificate(SSLContextContainer.java:327)
        at tigase.io.SSLContextContainer.getSSLContext(SSLContextContainer.java:247)
        at tigase.io.SSLContextContainer.getSSLContext(SSLContextContainer.java:225)
        at tigase.io.SSLContextContainerAbstract.getSSLContext(SSLContextContainerAbstract.java:142)
        at tigase.http.java.JavaStandaloneHttpServer.createServer(JavaStandaloneHttpServer.java:97)
        at tigase.http.java.JavaStandaloneHttpServer$PortConfigBean.initialize(JavaStandaloneHttpServer.java:311)
        at tigase.kernel.core.Kernel.initBean(Kernel.java:136)
        at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:1267)
        at tigase.kernel.core.Kernel.injectDependency(Kernel.java:875)
        at tigase.kernel.core.Kernel$DelayedDependenciesInjection.inject(Kernel.java:1547)
        at tigase.kernel.core.Kernel.finishDependecyDelayedInjection(Kernel.java:573)
        at tigase.kernel.core.Kernel.initBean(Kernel.java:128)
        at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:1267)
        at tigase.kernel.core.Kernel.injectDependency(Kernel.java:875)
        at tigase.kernel.core.Kernel$DelayedDependenciesInjection.inject(Kernel.java:1547)
        at tigase.kernel.core.Kernel.finishDependecyDelayedInjection(Kernel.java:573)
        at tigase.kernel.core.Kernel.initBean(Kernel.java:128)
        at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:1267)
        at tigase.kernel.core.Kernel.initBean(Kernel.java:131)
        at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:1267)
        at tigase.kernel.core.Kernel.initBean(Kernel.java:131)
        at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:1267)
        at tigase.kernel.core.Kernel.initBean(Kernel.java:131)
        at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:1267)
        at tigase.kernel.core.Kernel.injectDependency(Kernel.java:875)
        at tigase.kernel.core.Kernel$DelayedDependenciesInjection.inject(Kernel.java:1547)
        at tigase.kernel.core.Kernel.finishDependecyDelayedInjection(Kernel.java:573)
        at tigase.kernel.core.Kernel.initBean(Kernel.java:128)
        at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:1267)
        at tigase.kernel.core.Kernel.injectIfRequired(Kernel.java:1042)
        at tigase.kernel.core.Kernel.getInstance(Kernel.java:308)
        at tigase.server.Bootstrap.start(Bootstrap.java:326)
        at tigase.server.XMPPServer.start(XMPPServer.java:184)
        at tigase.server.XMPPServer.main(XMPPServer.java:138)
2019-02-20 22:17:41.838 [main]             Kernel.injectDependencies()             WARNING:


=====================
Could not initialize bean 8081 (class: class tigase.http.java.JavaStandaloneHttpServer$PortConfigBean), skipping injection of this bean
RootCause:
   -> java.lang.NullPointerException: null SSLContext
      [com.sun.net.httpserver.HttpsConfigurator.<init>(HttpsConfigurator.java:82)]
=====================



2019-02-20 22:17:41.845 [main]             Kernel.injectDependencies()             WARNING:


=====================
Could not initialize bean 8081 (class: class tigase.http.java.JavaStandaloneHttpServer$PortConfigBean), skipping injection of this bean
RootCause:
   -> java.lang.RuntimeException: Could not initialize HTTP server for port 8081
      [tigase.http.java.JavaStandaloneHttpServer$PortConfigBean.initialize(JavaStandaloneHttpServer.java:316)]
=====================

Though server seems to be listening on this port:

java    1256 tigase  450u  IPv6  15299      0t0  TCP *:8081 (LISTEN)
Andrzej Wójcik (Tigase) commented 6 years ago

This should be already fixed as it is the same issue as with SSL connections on port 5223.

issue 1 of 1
Type
Bug
Priority
Normal
Assignee
RedmineID
8638
Version
tigase-server-8.0.0
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/tigase-http-api#77
Please wait...
Page is in error, reload to recover