Projects tigase _server server-core Issues #834
Kernel IllegalStateException: STARTED (#834)
wojciech.kapcia@tigase.net opened 7 years ago
Due Date
2017-06-01
2017-06-01 17:16:19.523 [main]             Kernel.getInstance()                    SEVERE:   Exception getting instance
java.lang.IllegalStateException: STARTED
        at org.eclipse.jetty.server.handler.HandlerWrapper.setHandler(HandlerWrapper.java:85)
        at tigase.http.jetty.JettyStandaloneHttpServer.initialize(JettyStandaloneHttpServer.java:113)
        at tigase.kernel.core.Kernel.initBean(Kernel.java:156)
        at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:580)
        at tigase.kernel.core.Kernel.initBean(Kernel.java:151)
        at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:580)
        at tigase.kernel.core.Kernel.injectDependency(Kernel.java:768)
        at tigase.kernel.core.Kernel$DelayedDependenciesInjection.inject(Kernel.java:1365)
        at tigase.kernel.core.Kernel.finishDependecyDelayedInjection(Kernel.java:1029)
        at tigase.kernel.core.Kernel.initBean(Kernel.java:147)
        at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:580)
        at tigase.kernel.core.Kernel.initBean(Kernel.java:151)
        at tigase.kernel.core.Kernel.getInstance(Kernel.java:386)
        at tigase.server.Bootstrap.start(Bootstrap.java:129)
        at tigase.server.XMPPServer.start(XMPPServer.java:142)
        at tigase.server.XMPPServer.main(XMPPServer.java:123)




  =============================================================================
  ERROR! Terminating the server process.
  Problem initializing the server: tigase.kernel.KernelException: java.lang.IllegalStateException: STARTED
  Please fix the problem and start the server again.
  =============================================================================



init.properties

wojciech.kapcia@tigase.net commented 7 years ago

It seems this is more of an issue of HTTP-APi component and/or attempt to use jetty.

Andrzej Wójcik (Tigase) commented 7 years ago

It occurs that same bean was initialized more than one time as there was a circular dependency. I've modified the kernel to make sure it will initialize bean only once.

issue 1 of 1
Type
Bug
Priority
Normal
Assignee
RedmineID
5609
Version
tigase-server-8.0.0
Spent time
7h 30m
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/server-core#834
Please wait...
Page is in error, reload to recover