All TTS-NG tests are failing - most likely due to problem starting server (#55)
Closed
wojciech.kapcia@tigase.net opened 3 years ago

There was an issue with creating nightly builds for a couple of weeks. Afterwards TTS-NG tests are failing with jaxmpp's "Connection refused (Connection refused)" which would indicate issue with starting the server.

07:30:31
  INFO: [scid=2 thread=1] Opening connection to localhost/127.0.0.1:5222
07:30:31
  tigase.jaxmpp.core.client.exceptions.JaxmppException: java.net.ConnectException: Connection refused (Connection refused)
07:30:31
    at tigase.jaxmpp.j2se.connectors.socket.SocketConnector.start(SocketConnector.java:486)
07:30:31
    at tigase.jaxmpp.core.client.connector.ConnectorWrapper.start(ConnectorWrapper.java:96)
07:30:31
    at tigase.jaxmpp.j2se.Jaxmpp.login(Jaxmpp.java:315)
07:30:31
    at tigase.jaxmpp.j2se.Jaxmpp.login(Jaxmpp.java:246)
07:30:31
    at tigase.tests.utils.AccountsManager.registerAccount(AccountsManager.java:192)
07:30:31
    at tigase.tests.utils.AccountBuilder.build(AccountBuilder.java:123)
07:30:31
    at tigase.tests.AbstractTest.ensureAdminAccountExists(AbstractTest.java:474)
07:30:31
    at tigase.tests.AbstractTest.setupSuite(AbstractTest.java:779)
07:30:31
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
07:30:31
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
07:30:31
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
07:30:31
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
07:30:31
    at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
07:30:31
    at org.testng.internal.MethodInvocationHelper.invokeMethodConsideringTimeout(MethodInvocationHelper.java:61)
07:30:31
    at org.testng.internal.ConfigInvoker.invokeConfigurationMethod(ConfigInvoker.java:366)
07:30:31
    at org.testng.internal.ConfigInvoker.invokeConfigurations(ConfigInvoker.java:320)
07:30:31
    at org.testng.SuiteRunner.privateRun(SuiteRunner.java:327)
07:30:31
    at org.testng.SuiteRunner.run(SuiteRunner.java:286)
07:30:31
    at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
07:30:31
    at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
07:30:31
    at org.testng.TestNG.runSuitesSequentially(TestNG.java:1218)
07:30:31
    at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
07:30:31
    at org.testng.TestNG.runSuites(TestNG.java:1069)
07:30:31
    at org.testng.TestNG.run(TestNG.java:1037)
07:30:31
    at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:283)
07:30:31
    at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:75)
07:30:31
    at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:120)
07:30:31
    at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
07:30:31
    at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
07:30:31
    at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
07:30:31
    at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)
07:30:31
  Caused by: java.net.ConnectException: Connection refused (Connection refused)
07:30:31
    at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
07:30:31
    at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)
07:30:31
    at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)
07:30:31
    at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224)
07:30:31
    at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403)
07:30:31
    at java.base/java.net.Socket.connect(Socket.java:609)
07:30:31
    at java.base/java.net.Socket.connect(Socket.java:558)
07:30:31
    at tigase.jaxmpp.j2se.connectors.socket.SocketConnector.createSocket(SocketConnector.java:932)
07:30:31
    at tigase.jaxmpp.j2se.connectors.socket.SocketConnector.start(SocketConnector.java:388)
07:30:31
    ... 30 more
wojciech.kapcia@tigase.net commented 3 years ago

It's caused by this exceptions and bumped groovy dependency from #http-110

[2021-04-22 22:25:38:872] [SEVERE  ] [                  main ] ThreadExceptionHandler.uncaughtException(): Uncaught thread: "main" exception
java.lang.AbstractMethodError: Receiver class tigase.http.modules.rest.RestExtServlet does not define or inherit an implementation of the resolved method 'abstract java.lang.Object getProperty(java.lang.String)' of interface groovy.lang.GroovyObject.
        at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:309)
        at tigase.http.modules.rest.RestExtServlet.loadHandlers(RestExtServlet.groovy:49)
        at tigase.http.modules.rest.RestExtServlet$loadHandlers.callCurrent(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:51)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:156)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:168)
        at tigase.http.modules.rest.RestServlet.init(RestServlet.groovy:65)
        at javax.servlet.GenericServlet.init(GenericServlet.java:244)
        at tigase.http.java.RequestHandler.registerServlet(RequestHandler.java:204)
        at tigase.http.java.RequestHandler.<init>(RequestHandler.java:78)
        at tigase.http.java.JavaStandaloneHttpServer.deploy(JavaStandaloneHttpServer.java:118)
        at tigase.http.java.JavaStandaloneHttpServer.lambda$0(JavaStandaloneHttpServer.java:72)
        at java.base/java.lang.Iterable.forEach(Iterable.java:75)
        at tigase.http.java.JavaStandaloneHttpServer.deploy(JavaStandaloneHttpServer.java:72)
        at tigase.http.modules.rest.RestModule.start(RestModule.java:182)
        at tigase.http.AbstractHttpModule.initialize(AbstractHttpModule.java:72)
        at tigase.http.modules.AbstractBareModule.initialize(AbstractBareModule.java:189)
        at tigase.http.modules.rest.RestModule.initialize(RestModule.java:253)
wojciech.kapcia@tigase.net commented 3 years ago

In the end we had two options:

  1. go back to previous, tested version of groovy
  2. go ahead with #server-1108

In the end I quickly tested bumping groovy version to 3.0.x and, with some quick fixes to http-api, everything seems to be working fine. Let's see for the tests run to verify.

wojciech.kapcia@tigase.net commented 3 years ago

Seems to be fixed with #server-1108.

issue 1 of 1
Type
Bug
Priority
Normal
Assignee
Version
tigase-server-8.2.0
Issue Votes (0)
Watchers (0)
Reference
tigase/tigase-tts-ng#55
Please wait...
Page is in error, reload to recover