Test duration : 1.242s
Failed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingXML | ||
createNodes | 0.594s |
2022-08-09 22:45:08 |
java.lang.AssertionError:
2022-08-09 22:45:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML] 2022-08-09 22:45:08 | ------------------------------------ 2022-08-09 22:45:08 | on localhost executing action create-node with content type application/xml and payload: <data><node>node-55e94577-60ed-4e4d-9f6d-e9f9cac5886f</node><owner>admin@test-domain.com</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node 55e94577-60ed-4e4d-9f6d-e9f9cac5886f</title></pubsub></data> 2022-08-09 22:45:08 | from localhost for action create-node got result code 200 and payload <result><Note type="fixed"><value>Script execution error.</value></Note><Error message type="fixed"><value>javax.script.ScriptException: tigase.component.exceptions.RepositoryException: Retrieving node meta data error</value></Error message><Debug info type="text-multi"><value> javax.script.ScriptException: javax.script.ScriptException: tigase.component.exceptions.RepositoryException: Retrieving node meta data error at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:158) at tigase.server.script.Script.runCommand(Script.java:124) at tigase.server.BasicComponent.processScriptCommand(BasicComponent.java:903) at tigase.pubsub.PubSubComponent.processScriptCommand(PubSubComponent.java:199) at tigase.component.ComponenScriptCommandProcessor.processScriptCommand(ComponenScriptCommandProcessor.java:45) at tigase.component.modules.impl.AdHocCommandModule.processScriptAdHoc(AdHocCommandModule.java:143) at tigase.component.modules.impl.AdHocCommandModule.process(AdHocCommandModule.java:132) at tigase.component.modules.StanzaProcessor.execute(StanzaProcessor.java:219) at tigase.component.modules.StanzaProcessor.process(StanzaProcessor.java:206) at tigase.component.modules.StanzaProcessor.processPacket(StanzaProcessor.java:103) at tigase.component.AbstractKernelBasedComponent.processPacket(AbstractKernelBasedComponent.java:81) at tigase.pubsub.PubSubComponent.processPacket(PubSubComponent.java:191) at tigase.server.AbstractMessageReceiver$QueueListener.run(AbstractMessageReceiver.java:1398) Caused by: javax.script.ScriptException: tigase.component.exceptions.RepositoryException: Retrieving node meta data error at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:320) at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:155) ... 12 more Caused by: tigase.component.exceptions.RepositoryException: Retrieving node meta data error at tigase.pubsub.repository.cached.CachedPubSubRepository.getNode(CachedPubSubRepository.java:661) at tigase.pubsub.repository.cached.CachedPubSubRepository.getNodeConfig(CachedPubSubRepository.java:267) at tigase.admin.Script14.process(Script14.groovy:88) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:107) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:323) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1268) at groovy.lang.DelegatingMetaClass.invokeMethod(DelegatingMetaClass.java:226) at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:61) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:51) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:171) at tigase.admin.Script14.run(Script14.groovy:195) at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:317) ... 13 more Caused by: tigase.pubsub.utils.Cache$CacheException: Retrieving node meta data error at tigase.pubsub.repository.cached.CachedPubSubRepository.lambda$getNode$5(CachedPubSubRepository.java:652) at tigase.pubsub.utils.LRUCacheWithFuture.computeIfAbsent(LRUCacheWithFuture.java:58) at tigase.pubsub.repository.cached.CachedPubSubRepository.getNode(CachedPubSubRepository.java:648) ... 28 more Caused by: tigase.component.exceptions.RepositoryException: Retrieving node meta data error at tigase.pubsub.repository.PubSubDAOJDBC.getNodeMeta(PubSubDAOJDBC.java:716) at tigase.pubsub.repository.PubSubDAOJDBC.getNodeMeta(PubSubDAOJDBC.java:48) at jdk.internal.reflect.GeneratedMethodAccessor102.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at tigase.stats.StatisticsInvocationHandler.invoke(StatisticsInvocationHandler.java:75) at jdk.proxy2/jdk.proxy2.$Proxy39.getNodeMeta(Unknown Source) at tigase.pubsub.repository.PubSubDAOPool.getNodeMeta(PubSubDAOPool.java:282) at tigase.pubsub.repository.cached.CachedPubSubRepository.loadNode(CachedPubSubRepository.java:666) at tigase.pubsub.repository.cached.CachedPubSubRepository.lambda$getNode$5(CachedPubSubRepository.java:650) ... 30 more Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: The server failed to resume the transaction. Desc:3a0000007c. at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(SQLServerException.java:265) at com.microsoft.sqlserver.jdbc.SQLServerStatement.getNextResult(SQLServerStatement.java:1676) at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.doExecutePreparedStatement(SQLServerPreparedStatement.java:615) at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement$PrepStmtExecCmd.doExecute(SQLServerPreparedStatement.java:537) at com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:7730) at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:3786) at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeCommand(SQLServerStatement.java:268) at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeStatement(SQLServerStatement.java:242) at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.executeQuery(SQLServerPreparedStatement.java:456) at jdk.internal.reflect.GeneratedMethodAccessor7.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at tigase.db.jdbc.PreparedStatementInvocationHandler.invoke(PreparedStatementInvocationHandler.java:38) at jdk.proxy2/jdk.proxy2.$Proxy35.executeQuery(Unknown Source) at tigase.pubsub.repository.PubSubDAOJDBC.getNodeMeta(PubSubDAOJDBC.java:692) ... 39 more </value></Debug info></result>
org.testng.AssertJUnit.fail(AssertJUnit.java:65)
org.testng.AssertJUnit.assertTrue(AssertJUnit.java:23) org.testng.AssertJUnit.assertNotNull(AssertJUnit.java:347) org.testng.AssertJUnit.assertNotNull(AssertJUnit.java:337) tigase.tests.pubsub.TestRestApiUsingXML.executeHttpApiRequest(TestRestApiUsingXML.java:226) tigase.tests.pubsub.TestRestApiUsingXML.createNode(TestRestApiUsingXML.java:75) tigase.tests.pubsub.TestPubSubAbstract.createNodes(TestPubSubAbstract.java:68) java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.base/java.lang.reflect.Method.invoke(Method.java:568) org.testng.internal.invokers.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:135) org.testng.internal.invokers.TestInvoker.invokeMethod(TestInvoker.java:673) org.testng.internal.invokers.TestInvoker.invokeTestMethod(TestInvoker.java:220) org.testng.internal.invokers.MethodRunner.runInSequence(MethodRunner.java:50) org.testng.internal.invokers.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:945) org.testng.internal.invokers.TestInvoker.invokeTestMethods(TestInvoker.java:193) org.testng.internal.invokers.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146) org.testng.internal.invokers.TestMethodWorker.run(TestMethodWorker.java:128) java.base/java.util.ArrayList.forEach(ArrayList.java:1511) org.testng.TestRunner.privateRun(TestRunner.java:808) org.testng.TestRunner.run(TestRunner.java:603) org.testng.SuiteRunner.runTest(SuiteRunner.java:429) org.testng.SuiteRunner.runSequentially(SuiteRunner.java:423) org.testng.SuiteRunner.privateRun(SuiteRunner.java:383) org.testng.SuiteRunner.run(SuiteRunner.java:326) org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:95) org.testng.TestNG.runSuitesSequentially(TestNG.java:1249) org.testng.TestNG.runSuitesLocally(TestNG.java:1169) org.testng.TestNG.runSuites(TestNG.java:1092) org.testng.TestNG.run(TestNG.java:1060) org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:283) org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:75) org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:120) org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) |
Skipped Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingXML | ||
configureNodes | 0.000s |
Depends on method(s)
tigase.tests.pubsub.TestPubSubAbstract.createSubnodes
2022-08-09 22:45:08 |
2022-08-09 22:45:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML] 2022-08-09 22:45:08 | ------------------------------------ |
createSubnodes | 0.000s |
Depends on method(s)
tigase.tests.pubsub.TestPubSubAbstract.createNodes
2022-08-09 22:45:08 |
2022-08-09 22:45:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML] 2022-08-09 22:45:08 | ------------------------------------ |
deleteNodes | 0.001s | Depends on method(s) tigase.tests.pubsub.TestPubSubAbstract.deleteSubnodes |
deleteSubnodes | 0.000s |
Depends on method(s)
tigase.tests.pubsub.TestPubSubAbstract.unsubscribeNodes
2022-08-09 22:45:08 |
2022-08-09 22:45:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML] 2022-08-09 22:45:08 | ------------------------------------ |
publishItemsToNodes | 0.000s |
Depends on method(s)
tigase.tests.pubsub.TestPubSubAbstract.subscribeNodes
2022-08-09 22:45:08 |
2022-08-09 22:45:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML] 2022-08-09 22:45:08 | ------------------------------------ |
retractItemsFromNodes | 0.000s |
Depends on method(s)
tigase.tests.pubsub.TestPubSubAbstract.retrieveItemsFromNodes
2022-08-09 22:45:08 |
2022-08-09 22:45:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML] 2022-08-09 22:45:08 | ------------------------------------ |
retrieveItemsFromNodes | 0.000s |
Depends on method(s)
tigase.tests.pubsub.TestPubSubAbstract.publishItemsToNodes
2022-08-09 22:45:08 |
2022-08-09 22:45:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML] 2022-08-09 22:45:08 | ------------------------------------ |
retrieveUserSubscriptions | 0.000s |
Depends on method(s)
tigase.tests.pubsub.TestPubSubAbstract.publishItemsToNodes
2022-08-09 22:45:08 |
2022-08-09 22:45:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML] 2022-08-09 22:45:08 | ------------------------------------ |
retrieveUserSubscriptionsWithRegex | 0.000s |
Depends on method(s)
tigase.tests.pubsub.TestPubSubAbstract.publishItemsToNodes
2022-08-09 22:45:08 |
2022-08-09 22:45:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML] 2022-08-09 22:45:08 | ------------------------------------ |
subscribeNodes | 0.000s |
Depends on method(s)
tigase.tests.pubsub.TestPubSubAbstract.configureNodes
2022-08-09 22:45:08 |
2022-08-09 22:45:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML] 2022-08-09 22:45:08 | ------------------------------------ |
unsubscribeNodes | 0.000s |
Depends on method(s)
tigase.tests.pubsub.TestPubSubAbstract.retractItemsFromNodes
2022-08-09 22:45:08 |
2022-08-09 22:45:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML] 2022-08-09 22:45:08 | ------------------------------------ |