Build -> Core -> Content(Problem within the maven-plugin) - Build Failed facing same issue with other builds. as well #116
Replies: 2 comments 6 replies
-
@AmiableAnil @Jayaprakash8887 |
Beta Was this translation helpful? Give feedback.
6 replies
-
@daveanvit Locking this conversation due to inactivity. Kindly raise a separate thread for any further conversation. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
System Configuration Details:
KP, DP, DB, Yarn, Jenkins, Other-Services: Ubuntu 18.04 LTS, 4vCPU, 16GB RAM, 250 GB HDD
Github Release Tag: release-4.6.0_RC2
Jenkins Logs:
`Started by user Administrator
Checking out git https://github.com/project-sunbird/knowledge-platform.git into /var/lib/jenkins/workspace/Build/Core/Content@script to read Jenkinsfile
No credentials specified
pwd
[Pipeline] echo
Environment will be : build
[Pipeline] sh
git log -1
commit 1cf2c8524807be9b29a5787b696c00b1f59a26bc
Author: Anil Gupta [email protected]
Date: Thu Dec 30 17:37:21 2021 +0530
Issue #SB-28190 merge: Merge pull request #776 from Jayaprakash8887/release-4.6.0
Issue #SB-28190 fix: config param name update
[Pipeline] sh
cd /var/lib/jenkins/workspace/Build/Core/Content
[Pipeline] sh
mvn clean install
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Sunbird Knowledge Platform [pom]
[INFO] platform-core [pom]
[INFO] platform-common [jar]
[INFO] Platform Telemetry [jar]
[INFO] actor-core [jar]
[INFO] schema-validator [jar]
[INFO] platform-cache [jar]
[INFO] cassandra-connector [jar]
[INFO] kafka-client [jar]
[INFO] ontology-engine [pom]
[INFO] graph-common [jar]
[INFO] graph-dac-api [jar]
[INFO] graph-core_2.11 [jar]
[INFO] parseq [jar]
[INFO] graph-engine_2.11 [jar]
[INFO] platform-modules [pom]
[INFO] url-manager [jar]
[INFO] mimetype-manager [jar]
[INFO] import-manager [jar]
[INFO] content-api [pom]
[INFO] hierarchy-manager [jar]
[INFO] content-actors [jar]
[INFO] collection-csv-actors [jar]
[INFO] content-service [play2]
[INFO] assessment-api [pom]
[INFO] qs-hierarchy-manager [jar]
[INFO] assessment-actors [jar]
[INFO] assessment-service [play2]
[INFO] taxonomy-api [pom]
[INFO] taxonomy-actors [jar]
[INFO] taxonomy-service [play2]
[INFO] search-api [pom]
[INFO] search-core [jar]
[INFO] search-actors [jar]
[INFO] search-service [play2]
[INFO]
[INFO] -------------------< org.sunbird:knowledge-platform >-------------------
[INFO] Building Sunbird Knowledge Platform 1.0-SNAPSHOT [1/35]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ knowledge-platform ---
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ knowledge-platform ---
[INFO] Installing /var/lib/jenkins/workspace/Build/Core/Content/pom.xml to /var/lib/jenkins/.m2/repository/org/sunbird/knowledge-platform/1.0-SNAPSHOT/knowledge-platform-1.0-SNAPSHOT.pom
[INFO]
[INFO] ---------------------< org.sunbird:platform-core >----------------------
[INFO] Building platform-core 1.0-SNAPSHOT [2/35]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ platform-core ---
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ platform-core ---
[INFO] Installing /var/lib/jenkins/workspace/Build/Core/Content/platform-core/pom.xml to /var/lib/jenkins/.m2/repository/org/sunbird/platform-core/1.0-SNAPSHOT/platform-core-1.0-SNAPSHOT.pom
[INFO]
[INFO] --------------------< org.sunbird:platform-common >---------------------
[INFO] Building platform-common 1.0-SNAPSHOT [3/35]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ platform-common ---
[INFO]
[INFO] --- jacoco-maven-plugin:0.8.5:prepare-agent (default-prepare-agent) @ platform-common ---
[INFO] argLine set to -javaagent:/var/lib/jenkins/.m2/repository/org/jacoco/org.jacoco.agent/0.8.5/org.jacoco.agent-0.8.5-runtime.jar=destfile=/var/lib/jenkins/workspace/Build/Core/Content/platform-core/platform-common/target/jacoco.exec
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ platform-common ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /var/lib/jenkins/workspace/Build/Core/Content/platform-core/platform-common/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ platform-common ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 18 source files to /var/lib/jenkins/workspace/Build/Core/Content/platform-core/platform-common/target/classes
[INFO] /var/lib/jenkins/workspace/Build/Core/Content/platform-core/platform-common/src/main/java/org/sunbird/common/dto/ResponseHandler.java: Some input files use unchecked or unsafe operations.
[INFO] /var/lib/jenkins/workspace/Build/Core/Content/platform-core/platform-common/src/main/java/org/sunbird/common/dto/ResponseHandler.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ platform-common ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /var/lib/jenkins/workspace/Build/Core/Content/platform-core/platform-common/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ platform-common ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 11 source files to /var/lib/jenkins/workspace/Build/Core/Content/platform-core/platform-common/target/test-classes
[INFO] /var/lib/jenkins/workspace/Build/Core/Content/platform-core/platform-common/src/test/java/org/sunbird/common/HttpUtilTest.java: Some input files use unchecked or unsafe operations.
[INFO] /var/lib/jenkins/workspace/Build/Core/Content/platform-core/platform-common/src/test/java/org/sunbird/common/HttpUtilTest.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ platform-common ---
[INFO] Surefire report directory: /var/lib/jenkins/workspace/Build/Core/Content/platform-core/platform-common/target/surefire-reports
T E S T S
Running org.sunbird.common.DateUtilsTest
2022-09-01T09:25:00.138+0530
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.249 sec
Running org.sunbird.common.HttpUtilTest
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.mockito.cglib.core.ReflectUtils$2 (file:/var/lib/jenkins/.m2/repository/org/mockito/mockito-core/1.10.19/mockito-core-1.10.19.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of org.mockito.cglib.core.ReflectUtils$2
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.6 sec
Running org.sunbird.common.dto.ResponseHandlerTest
Exception occurred - class :org.sunbird.common.exception.ClientException with message :Metadata mimeType should be one of: [application/vnd.ekstep.content-collection]
Exception occurred - class :org.sunbird.common.exception.ClientException with message :Metadata mimeType should be one of: [application/vnd.ekstep.content-collection]
Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.116 sec
Running org.sunbird.common.exception.ResourceNotFoundExceptionTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 sec
Running org.sunbird.common.exception.ClientExceptionTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 sec
Running org.sunbird.common.exception.ServerExceptionTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec
Running org.sunbird.common.exception.MiddlewareExceptionTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec
Running org.sunbird.common.JsonUtilsTest
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.033 sec
Running org.sunbird.common.PlatformTest
Tests run: 17, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.096 sec
Running org.sunbird.common.SlugTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.033 sec
Results :
Tests run: 86, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- jacoco-maven-plugin:0.8.5:report (default-report) @ platform-common ---
[INFO] Loading execution data file /var/lib/jenkins/workspace/Build/Core/Content/platform-core/platform-common/target/jacoco.exec
[INFO] Analyzed bundle 'platform-common' with 21 classes
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ platform-common ---
[INFO] Building jar: /var/lib/jenkins/workspace/Build/Core/Content/platform-core/platform-common/target/platform-common-1.0-SNAPSHOT.jar
[INFO]
[INFO] --- jacoco-maven-plugin:0.8.5:report-aggregate (report-aggregate) @ platform-common ---
[INFO] Loading execution data file /var/lib/jenkins/workspace/Build/Core/Content/platform-core/platform-common/target/jacoco.exec
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ platform-common ---
[INFO] Installing /var/lib/jenkins/workspace/Build/Core/Content/platform-core/platform-common/target/platform-common-1.0-SNAPSHOT.jar to /var/lib/jenkins/.m2/repository/org/sunbird/platform-common/1.0-SNAPSHOT/platform-common-1.0-SNAPSHOT.jar
[INFO] Installing /var/lib/jenkins/workspace/Build/Core/Content/platform-core/platform-common/pom.xml to /var/lib/jenkins/.m2/repository/org/sunbird/platform-common/1.0-SNAPSHOT/platform-common-1.0-SNAPSHOT.pom
[INFO]
[INFO] -------------------< org.sunbird:platform-telemetry >-------------------
[INFO] Building Platform Telemetry 1.0-SNAPSHOT [4/35]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ platform-telemetry ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ platform-telemetry ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /var/lib/jenkins/workspace/Build/Core/Content/platform-core/platform-telemetry/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ platform-telemetry ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 17 source files to /var/lib/jenkins/workspace/Build/Core/Content/platform-core/platform-telemetry/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ platform-telemetry ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /var/lib/jenkins/workspace/Build/Core/Content/platform-core/platform-telemetry/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ platform-telemetry ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 5 source files to /var/lib/jenkins/workspace/Build/Core/Content/platform-core/platform-telemetry/target/test-classes
[INFO] /var/lib/jenkins/workspace/Build/Core/Content/platform-core/platform-telemetry/src/test/java/org/sunbird/telemetry/logger/TestTelemetryManager.java: Some input files use unchecked or unsafe operations.
[INFO] /var/lib/jenkins/workspace/Build/Core/Content/platform-core/platform-telemetry/src/test/java/org/sunbird/telemetry/logger/TestTelemetryManager.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ platform-telemetry ---
[INFO] Surefire report directory: /var/lib/jenkins/workspace/Build/Core/Content/platform-core/platform-telemetry/target/surefire-reports
T E S T S
Running org.sunbird.telemetry.logger.TestTelemetryManager
09:25:06.288 [main] INFO DefaultPlatformLogger - {"eid":"LOG","ets":1662004506208,"ver":"3.0","mid":"LP.1662004506208.86a4a98f-37de-4afd-b540-52fa3dd1faa0","actor":{"id":"org.sunbird.learning.platform","type":"User"},"context":{"channel":"in.ekstep","pdata":{"id":"dev.ekstep.learning.platform","pid":"","ver":"1.0"},"env":"system"},"edata":{"level":"INFO","type":"system","message":"message"},"syncts":1662004506208}
09:25:06.294 [main] INFO DefaultPlatformLogger - {"eid":"AUDIT","ets":1662004506291,"ver":"3.0","mid":"LP.1662004506291.753dc97e-b4bc-47c3-8108-4a6e6ab9db87","actor":{"id":"org.sunbird.learning.platform","type":"User"},"context":{"channel":"in.ekstep","pdata":{"id":"dev.ekstep.learning.platform","pid":"","ver":"1.0"},"env":"system"},"object":{"id":"id","type":"type"},"edata":{"state":"state","prevstate":"prevState","props":[]},"syncts":1662004506291}
09:25:06.299 [main] ERROR DefaultPlatformLogger - {"eid":"ERROR","ets":1662004506298,"ver":"3.0","mid":"LP.1662004506298.62bb98aa-d4b2-403a-a554-6eb4ae6e59ec","actor":{"id":"org.sunbird.learning.platform","type":"User"},"context":{"channel":"in.ekstep","pdata":{"id":"dev.ekstep.learning.platform","pid":"","ver":"1.0"},"env":"system"},"edata":{"err":"500","stacktrace":"500: message\n\tat org.sunbird.telemetry.logger.TestTelemetryManager.testError(TestTelemetryManager.java:19)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:566)\n\tat org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)\n\tat org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)\n\tat org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)\n\tat org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)\n\tat org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)\n\tat org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)\n\tat org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)\n\tat org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)\n\tat org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)\n\tat org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)\n\tat org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)\n\tat org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)\n\tat org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)\n\tat org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)\n\tat org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)\n\tat org.junit.runners.ParentRunner.run(ParentRunner.java:413)\n\tat org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)\n\tat org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)\n\tat org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:566)\n\tat org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)\n\tat org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)\n\tat org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)\n\tat org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)\n\tat org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)\n","errtype":"system"},"syncts":1662004506298}
com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class java.lang.Object and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) (through reference chain: org.sunbird.telemetry.dto.Telemetry["edata"]->java.util.HashMap["filters"])
at com.fasterxml.jackson.databind.exc.InvalidDefinitionException.from(InvalidDefinitionException.java:77)
at com.fasterxml.jackson.databind.SerializerProvider.reportBadDefinition(SerializerProvider.java:1191)
at com.fasterxml.jackson.databind.DatabindContext.reportBadDefinition(DatabindContext.java:313)
at com.fasterxml.jackson.databind.ser.impl.UnknownSerializer.failForEmpty(UnknownSerializer.java:71)
at com.fasterxml.jackson.databind.ser.impl.UnknownSerializer.serialize(UnknownSerializer.java:33)
at com.fasterxml.jackson.databind.ser.std.MapSerializer.serializeFields(MapSerializer.java:722)
at com.fasterxml.jackson.databind.ser.std.MapSerializer.serialize(MapSerializer.java:643)
at com.fasterxml.jackson.databind.ser.std.MapSerializer.serialize(MapSerializer.java:33)
at com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:727)
at com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:719)
at com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:155)
at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider._serialize(DefaultSerializerProvider.java:480)
at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.serializeValue(DefaultSerializerProvider.java:319)
at com.fasterxml.jackson.databind.ObjectMapper._configAndWriteValue(ObjectMapper.java:3905)
at com.fasterxml.jackson.databind.ObjectMapper.writeValueAsString(ObjectMapper.java:3219)
at org.sunbird.telemetry.TelemetryGenerator.getTelemetry(TelemetryGenerator.java:268)
at org.sunbird.telemetry.TelemetryGenerator.search(TelemetryGenerator.java:170)
at org.sunbird.telemetry.logger.TelemetryManager.search(TelemetryManager.java:200)
at org.sunbird.telemetry.logger.TestTelemetryManager.testSearchWithContextData(TestTelemetryManager.java:49)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
09:25:06.316 [main] INFO TelemetryEventLogger -
09:25:06.318 [main] INFO TelemetryEventLogger - {"eid":"LOG","ets":1662004506317,"ver":"3.0","mid":"LP.1662004506317.daf22253-da34-4905-9543-147bc8696574","actor":{"id":"org.sunbird.learning.platform","type":"User"},"context":{"channel":"in.ekstep","pdata":{"id":"dev.ekstep.learning.platform","pid":"","ver":"1.0"},"env":"system"},"edata":{"level":"INFO","type":"payload","message":"message"},"syncts":1662004506317}
com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class java.lang.Object and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) (through reference chain: org.sunbird.telemetry.dto.Telemetry["edata"]->java.util.HashMap["filters"])
at com.fasterxml.jackson.databind.exc.InvalidDefinitionException.from(InvalidDefinitionException.java:77)
at com.fasterxml.jackson.databind.SerializerProvider.reportBadDefinition(SerializerProvider.java:1191)
at com.fasterxml.jackson.databind.DatabindContext.reportBadDefinition(DatabindContext.java:313)
at com.fasterxml.jackson.databind.ser.impl.UnknownSerializer.failForEmpty(UnknownSerializer.java:71)
at com.fasterxml.jackson.databind.ser.impl.UnknownSerializer.serialize(UnknownSerializer.java:33)
at com.fasterxml.jackson.databind.ser.std.MapSerializer.serializeFields(MapSerializer.java:722)
at com.fasterxml.jackson.databind.ser.std.MapSerializer.serialize(MapSerializer.java:643)
at com.fasterxml.jackson.databind.ser.std.MapSerializer.serialize(MapSerializer.java:33)
at com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:727)
at com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:719)
at com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:155)
at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider._serialize(DefaultSerializerProvider.java:480)
at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.serializeValue(DefaultSerializerProvider.java:319)
at com.fasterxml.jackson.databind.ObjectMapper._configAndWriteValue(ObjectMapper.java:3905)
at com.fasterxml.jackson.databind.ObjectMapper.writeValueAsString(ObjectMapper.java:3219)
at org.sunbird.telemetry.TelemetryGenerator.getTelemetry(TelemetryGenerator.java:268)
at org.sunbird.telemetry.TelemetryGenerator.search(TelemetryGenerator.java:170)
at org.sunbird.telemetry.logger.TelemetryManager.search(TelemetryManager.java:200)
at org.sunbird.telemetry.logger.TestTelemetryManager.testSearch(TestTelemetryManager.java:36)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
09:25:06.333 [main] INFO TelemetryEventLogger -
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.518 sec
Running org.sunbird.telemetry.util.TestLogAsyncGraphEvent
09:25:06.339 [main] INFO GraphEventLogger - {"message":"test"}
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running org.sunbird.telemetry.util.TestTelemetryAccessEventUtil
09:25:06.382 [main] INFO TelemetryEventLogger - {"eid":"LOG","ets":1662004506381,"ver":"3.0","mid":"LP.1662004506381.8da891f7-0c51-4fd1-9e04-b010fc86463c","actor":{"id":"testcid","type":"User"},"context":{"channel":"in.ekstep","pdata":{"id":"app-id","pid":"","ver":"1.0"},"env":"content","sid":"testsid","did":"testdid"},"edata":{"level":"INFO","type":"api_access","message":"","params":[{"duration":65383751580},{"protocol":"http"},{"size":307},{"method":"POST"},{"rid":"test"},{"uip":"0:0:0:0:0:0:0:1"},{"url":"/content/v3/create"},{"status":500},{"req":"{}"}]},"syncts":1662004506381}
09:25:06.384 [main] INFO TelemetryEventLogger - {"eid":"LOG","ets":1662004506384,"ver":"3.0","mid":"LP.1662004506384.f416f7c3-e955-411d-a878-6c3b4dab2b50","actor":{"id":"testcid","type":"User"},"context":{"channel":"in.ekstep","pdata":{"id":"app-id","pid":"","ver":"1.0"},"env":"categoryinstance","sid":"testsid","did":"testdid"},"edata":{"level":"INFO","type":"api_access","message":"","params":[{"duration":65383751584},{"protocol":"http"},{"size":307},{"method":"POST"},{"rid":"ekstep.learning.categoryinstance.read"},{"uip":"0:0:0:0:0:0:0:1"},{"url":"/content/v3/create"},{"status":500},{"req":"{}"}]},"syncts":1662004506384}
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.04 sec
Running org.sunbird.telemetry.util.TestLogTelemetryEventUtil
09:25:06.391 [main] INFO TelemetryEventLogger - {"eid":"BE_CONTENT_SEARCH","ets":1662004506388,"mid":"LP.1662004506387.44e2ac05-3540-4575-83e3-71af96bef869","ver":"2.0","channel":"","pdata":{"ver":"1.0","pid":"testdid","id":"org.sunbird.search.platform"},"edata":{"eks":{"size":0,"query":"","correlationid":"","filters":{},"sort":{}}}}
09:25:06.447 [main] ERROR DefaultPlatformLogger - {"eid":"ERROR","ets":1662004506447,"ver":"3.0","mid":"LP.1662004506447.3c5d1542-2626-496c-8b24-aaafc9ed17a2","actor":{"id":"org.sunbird.learning.platform","type":"User"},"context":{"channel":"in.ekstep","pdata":{"id":"dev.ekstep.learning.platform","pid":"","ver":"1.0"},"env":"system"},"edata":{"err":"SERVER_ERROR","stacktrace":"com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class java.lang.Object and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) (through reference chain: org.sunbird.telemetry.dto.TelemetryBEEvent["edata"]->java.util.HashMap["eks"]->java.util.HashMap["filters"])\n\tat com.fasterxml.jackson.databind.exc.InvalidDefinitionException.from(InvalidDefinitionException.java:77)\n\tat com.fasterxml.jackson.databind.SerializerProvider.reportBadDefinition(SerializerProvider.java:1191)\n\tat com.fasterxml.jackson.databind.DatabindContext.reportBadDefinition(DatabindContext.java:313)\n\tat com.fasterxml.jackson.databind.ser.impl.UnknownSerializer.failForEmpty(UnknownSerializer.java:71)\n\tat com.fasterxml.jackson.databind.ser.impl.UnknownSerializer.serialize(UnknownSerializer.java:33)\n\tat com.fasterxml.jackson.databind.ser.std.MapSerializer.serializeFields(MapSerializer.java:722)\n\tat com.fasterxml.jackson.databind.ser.std.MapSerializer.serialize(MapSerializer.java:643)\n\tat com.fasterxml.jackson.databind.ser.std.MapSerializer.serialize(MapSerializer.java:33)\n\tat com.fasterxml.jackson.databind.ser.std.MapSerializer.serializeFields(MapSerializer.java:722)\n\tat com.fasterxml.jackson.databind.ser.std.MapSerializer.serialize(MapSerializer.java:643)\n\tat com.fasterxml.jackson.databind.ser.std.MapSerializer.serialize(MapSerializer.java:33)\n\tat com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:727)\n\tat com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:719)\n\tat com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:155)\n\tat com.fasterxml.jackson.databind.ser.DefaultSerializerProvider._serialize(DefaultSerializerProvider.java:480)\n\tat com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.serializeValue(DefaultSerializerProvider.java:319)\n\tat com.fasterxml.jackson.databind.ObjectMapper._configAndWriteValue(ObjectMapper.java:3905)\n\tat com.fasterxml.jackson.databind.ObjectMapper.writeValueAsString(ObjectMapper.java:3219)\n\tat org.sunbird.telemetry.util.LogTelemetryEventUtil.logContentSearchEvent(LogTelemetryEventUtil.java:66)\n\tat org.sunbird.telemetry.util.TestLogTelemetryEventUtil.testLogContentSearchEventWithEmptyValue(TestLogTelemetryEventUtil.java:51)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:566)\n\tat org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)\n\tat org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)\n\tat org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)\n\tat org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)\n\tat org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)\n\tat org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)\n\tat org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)\n\tat org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)\n\tat org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)\n\tat org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)\n\tat org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)\n\tat org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)\n\tat org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)\n\tat org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)\n\tat org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)\n\tat org.junit.runners.ParentRunner.run(ParentRunner.java:413)\n\tat org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)\n\tat org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)\n\tat org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:566)\n\tat org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)\n\tat org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)\n\tat org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)\n\tat org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)\n\tat org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)\n","errtype":"system"},"syncts":1662004506447}
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.063 sec
Running org.sunbird.telemetry.TelemetryGeneratorTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.019 sec
Results :
Tests run: 21, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ platform-telemetry ---
[INFO] Building jar: /var/lib/jenkins/workspace/Build/Core/Content/platform-core/platform-telemetry/target/platform-telemetry-1.0-SNAPSHOT.jar
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ platform-telemetry ---
[INFO] Installing /var/lib/jenkins/workspace/Build/Core/Content/platform-core/platform-telemetry/target/platform-telemetry-1.0-SNAPSHOT.jar to /var/lib/jenkins/.m2/repository/org/sunbird/platform-telemetry/1.0-SNAPSHOT/platform-telemetry-1.0-SNAPSHOT.jar
[INFO] Installing /var/lib/jenkins/workspace/Build/Core/Content/platform-core/platform-telemetry/pom.xml to /var/lib/jenkins/.m2/repository/org/sunbird/platform-telemetry/1.0-SNAPSHOT/platform-telemetry-1.0-SNAPSHOT.pom
[INFO]
[INFO] -----------------------< org.sunbird:actor-core >-----------------------
[INFO] Building actor-core 1.0-SNAPSHOT [5/35]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ actor-core ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ actor-core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /var/lib/jenkins/workspace/Build/Core/Content/platform-core/actor-core/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ actor-core ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to /var/lib/jenkins/workspace/Build/Core/Content/platform-core/actor-core/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ actor-core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /var/lib/jenkins/workspace/Build/Core/Content/platform-core/actor-core/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ actor-core ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:3.0.0-M4:test (default-test) @ actor-core ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ actor-core ---
[INFO] Building jar: /var/lib/jenkins/workspace/Build/Core/Content/platform-core/actor-core/target/actor-core-1.0-SNAPSHOT.jar
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ actor-core ---
[INFO] Installing /var/lib/jenkins/workspace/Build/Core/Content/platform-core/actor-core/target/actor-core-1.0-SNAPSHOT.jar to /var/lib/jenkins/.m2/repository/org/sunbird/actor-core/1.0-SNAPSHOT/actor-core-1.0-SNAPSHOT.jar
[INFO] Installing /var/lib/jenkins/workspace/Build/Core/Content/platform-core/actor-core/pom.xml to /var/lib/jenkins/.m2/repository/org/sunbird/actor-core/1.0-SNAPSHOT/actor-core-1.0-SNAPSHOT.pom
[INFO]
[INFO] --------------------< org.sunbird:schema-validator >--------------------
[INFO] Building schema-validator 1.0-SNAPSHOT [6/35]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ schema-validator ---
[INFO]
[INFO] --- jacoco-maven-plugin:0.8.5:prepare-agent (default-prepare-agent) @ schema-validator ---
[INFO] argLine set to -javaagent:/var/lib/jenkins/.m2/repository/org/jacoco/org.jacoco.agent/0.8.5/org.jacoco.agent-0.8.5-runtime.jar=destfile=/var/lib/jenkins/workspace/Build/Core/Content/platform-core/schema-validator/target/jacoco.exec
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ schema-validator ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ schema-validator ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 9 source files to /var/lib/jenkins/workspace/Build/Core/Content/platform-core/schema-validator/target/classes
[INFO] /var/lib/jenkins/workspace/Build/Core/Content/platform-core/schema-validator/src/main/java/org/sunbird/schema/impl/BaseSchemaValidator.java: Some input files use unchecked or unsafe operations.
[INFO] /var/lib/jenkins/workspace/Build/Core/Content/platform-core/schema-validator/src/main/java/org/sunbird/schema/impl/BaseSchemaValidator.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ schema-validator ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ schema-validator ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 2 source files to /var/lib/jenkins/workspace/Build/Core/Content/platform-core/schema-validator/target/test-classes
[INFO] /var/lib/jenkins/workspace/Build/Core/Content/platform-core/schema-validator/src/test/java/org/sunbird/schema/impl/TestBaseSchemaValidator.java: /var/lib/jenkins/workspace/Build/Core/Content/platform-core/schema-validator/src/test/java/org/sunbird/schema/impl/TestBaseSchemaValidator.java uses unchecked or unsafe operations.
[INFO] /var/lib/jenkins/workspace/Build/Core/Content/platform-core/schema-validator/src/test/java/org/sunbird/schema/impl/TestBaseSchemaValidator.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ schema-validator ---
[INFO] Surefire report directory: /var/lib/jenkins/workspace/Build/Core/Content/platform-core/schema-validator/target/surefire-reports
T E S T S
Running org.sunbird.schema.impl.TestBaseSchemaValidator
Schema path: ../../schemas//content/1.0/schema.json
Config path: ../../schemas//content/1.0/config.json
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.06 sec
Running org.sunbird.schema.TestSchemaValidatorFactory
Schema path: ../../schemas//category/1.0/schema.json
Config path: ../../schemas//category/1.0/config.json
Schema path: ../../schemas/schema.json
Schema path: ../../schemas//content/2.0/schema.json
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.028 sec
Results :
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- jacoco-maven-plugin:0.8.5:report (default-report) @ schema-validator ---
[INFO] Loading execution data file /var/lib/jenkins/workspace/Build/Core/Content/platform-core/schema-validator/target/jacoco.exec
[INFO] Analyzed bundle 'schema-validator' with 8 classes
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ schema-validator ---
[INFO] Building jar: /var/lib/jenkins/workspace/Build/Core/Content/platform-core/schema-validator/target/schema-validator-1.0-SNAPSHOT.jar
[INFO]
[INFO] --- jacoco-maven-plugin:0.8.5:report-aggregate (report-aggregate) @ schema-validator ---
[INFO] Loading execution data file /var/lib/jenkins/workspace/Build/Core/Content/platform-core/schema-validator/target/jacoco.exec
[INFO] Loading execution data file /var/lib/jenkins/workspace/Build/Core/Content/platform-core/platform-common/target/jacoco.exec
[INFO] Analyzed bundle 'platform-common' with 21 classes
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ schema-validator ---
[INFO] Installing /var/lib/jenkins/workspace/Build/Core/Content/platform-core/schema-validator/target/schema-validator-1.0-SNAPSHOT.jar to /var/lib/jenkins/.m2/repository/org/sunbird/schema-validator/1.0-SNAPSHOT/schema-validator-1.0-SNAPSHOT.jar
[INFO] Installing /var/lib/jenkins/workspace/Build/Core/Content/platform-core/schema-validator/pom.xml to /var/lib/jenkins/.m2/repository/org/sunbird/schema-validator/1.0-SNAPSHOT/schema-validator-1.0-SNAPSHOT.pom
[INFO]
[INFO] ---------------------< org.sunbird:platform-cache >---------------------
[INFO] Building platform-cache 1.0-SNAPSHOT [7/35]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ platform-cache ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ platform-cache ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /var/lib/jenkins/workspace/Build/Core/Content/platform-core/platform-cache/src/main/resources
[INFO]
[INFO] --- scala-maven-plugin:4.4.0:add-source (scala-compile-first) @ platform-cache ---
[INFO]
[INFO] --- scala-maven-plugin:4.4.0:compile (scala-compile-first) @ platform-cache ---
[INFO] Using incremental compilation using Mixed compile order
[INFO] Compiler bridge file: /var/lib/jenkins/.sbt/1.0/zinc/org.scala-sbt/org.scala-sbt-compiler-bridge_2.11-1.3.5-bin_2.11.12__55.0-1.3.5_20200330T000931.jar
[INFO] Compiling 2 Scala sources to /var/lib/jenkins/workspace/Build/Core/Content/platform-core/platform-cache/target/classes ...
[INFO] Done compiling.
[INFO] compile in 6.4 s
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ platform-cache ---
[INFO] Changes detected - recompiling the module!
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ platform-cache ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /var/lib/jenkins/workspace/Build/Core/Content/platform-core/platform-cache/src/test/resources
[INFO]
[INFO] --- scala-maven-plugin:4.4.0:testCompile (scala-test-compile) @ platform-cache ---
[INFO] Using incremental compilation using Mixed compile order
[INFO] Compiler bridge file: /var/lib/jenkins/.sbt/1.0/zinc/org.scala-sbt/org.scala-sbt-compiler-bridge_2.11-1.3.5-bin_2.11.12__55.0-1.3.5_20200330T000931.jar
[INFO] Compiling 1 Scala source to /var/lib/jenkins/workspace/Build/Core/Content/platform-core/platform-cache/target/test-classes ...
[WARNING] : there were two deprecation warnings; re-run with -deprecation for details
[WARNING] one warning found
[INFO] Done compiling.
[INFO] compile in 6.5 s
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ platform-cache ---
[INFO] Changes detected - recompiling the module!
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ platform-cache ---
[INFO] Surefire report directory: /var/lib/jenkins/workspace/Build/Core/Content/platform-core/platform-cache/target/surefire-reports
T E S T S
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- scalatest-maven-plugin:2.0.0:test (test) @ platform-cache ---
Discovery starting.
Discovery completed in 203 milliseconds.
Run starting. Expected test count is: 16
RedisCacheTest:
set without ttl
redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
at redis.clients.util.Pool.getResource(Pool.java:50)
at redis.clients.jedis.JedisPool.getResource(JedisPool.java:88)
at org.sunbird.cache.util.RedisConnector$class.getConnection(RedisConnector.scala:23)
at org.sunbird.cache.impl.RedisCache$.getConnection(RedisCache.scala:13)
at org.sunbird.cache.impl.RedisCache$.set(RedisCache.scala:25)
at org.sunbird.cache.impl.RedisCacheTest$$anonfun$1.apply(RedisCacheTest.scala:18)
at org.sunbird.cache.impl.RedisCacheTest$$anonfun$1.apply(RedisCacheTest.scala:17)
at org.scalatest.flatspec.AsyncFlatSpecLike$class.transformToOutcomeParam$1(AsyncFlatSpecLike.scala:138)
at org.scalatest.flatspec.AsyncFlatSpecLike$$anonfun$org$scalatest$flatspec$AsyncFlatSpecLike$$registerTestToRun$2.apply(AsyncFlatSpecLike.scala:144)
at org.scalatest.flatspec.AsyncFlatSpecLike$$anonfun$org$scalatest$flatspec$AsyncFlatSpecLike$$registerTestToRun$2.apply(AsyncFlatSpecLike.scala:144)
...
Cause: redis.clients.jedis.exceptions.JedisConnectionException: java.net.ConnectException: Connection refused (Connection refused)
at redis.clients.jedis.Connection.connect(Connection.java:148)
at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:75)
at redis.clients.jedis.BinaryJedis.connect(BinaryJedis.java:1572)
at redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:69)
at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:819)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:429)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:360)
at redis.clients.util.Pool.getResource(Pool.java:48)
at redis.clients.jedis.JedisPool.getResource(JedisPool.java:88)
at org.sunbird.cache.util.RedisConnector$class.getConnection(RedisConnector.scala:23)
...
Cause: java.net.ConnectException: Connection refused (Connection refused)
at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:412)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:255)
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:237)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.base/java.net.Socket.connect(Socket.java:609)
at redis.clients.jedis.Connection.connect(Connection.java:142)
at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:75)
at redis.clients.jedis.BinaryJedis.connect(BinaryJedis.java:1572)
at redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:69)
...
set with ttl
redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
at redis.clients.util.Pool.getResource(Pool.java:50)
at redis.clients.jedis.JedisPool.getResource(JedisPool.java:88)
at org.sunbird.cache.util.RedisConnector$class.getConnection(RedisConnector.scala:23)
at org.sunbird.cache.impl.RedisCache$.getConnection(RedisCache.scala:13)
at org.sunbird.cache.impl.RedisCache$.set(RedisCache.scala:25)
at org.sunbird.cache.impl.RedisCacheTest$$anonfun$2.apply(RedisCacheTest.scala:26)
at org.sunbird.cache.impl.RedisCacheTest$$anonfun$2.apply(RedisCacheTest.scala:25)
at org.scalatest.flatspec.AsyncFlatSpecLike$class.transformToOutcomeParam$1(AsyncFlatSpecLike.scala:138)
at org.scalatest.flatspec.AsyncFlatSpecLike$$anonfun$org$scalatest$flatspec$AsyncFlatSpecLike$$registerTestToRun$2.apply(AsyncFlatSpecLike.scala:144)
at org.scalatest.flatspec.AsyncFlatSpecLike$$anonfun$org$scalatest$flatspec$AsyncFlatSpecLike$$registerTestToRun$2.apply(AsyncFlatSpecLike.scala:144)
...
Cause: redis.clients.jedis.exceptions.JedisConnectionException: java.net.ConnectException: Connection refused (Connection refused)
at redis.clients.jedis.Connection.connect(Connection.java:148)
at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:75)
at redis.clients.jedis.BinaryJedis.connect(BinaryJedis.java:1572)
at redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:69)
at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:819)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:429)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:360)
at redis.clients.util.Pool.getResource(Pool.java:48)
at redis.clients.jedis.JedisPool.getResource(JedisPool.java:88)
at org.sunbird.cache.util.RedisConnector$class.getConnection(RedisConnector.scala:23)
...
Cause: java.net.ConnectException: Connection refused (Connection refused)
at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:412)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:255)
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:237)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.base/java.net.Socket.connect(Socket.java:609)
at redis.clients.jedis.Connection.connect(Connection.java:142)
at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:75)
at redis.clients.jedis.BinaryJedis.connect(BinaryJedis.java:1572)
at redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:69)
...
get with valid key
redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
at redis.clients.util.Pool.getResource(Pool.java:50)
at redis.clients.jedis.JedisPool.getResource(JedisPool.java:88)
at org.sunbird.cache.util.RedisConnector$class.getConnection(RedisConnector.scala:23)
at org.sunbird.cache.impl.RedisCache$.getConnection(RedisCache.scala:13)
at org.sunbird.cache.impl.RedisCache$.set(RedisCache.scala:25)
at org.sunbird.cache.impl.RedisCacheTest$$anonfun$3.apply(RedisCacheTest.scala:35)
at org.sunbird.cache.impl.RedisCacheTest$$anonfun$3.apply(RedisCacheTest.scala:34)
at org.scalatest.flatspec.AsyncFlatSpecLike$class.transformToOutcomeParam$1(AsyncFlatSpecLike.scala:138)
at org.scalatest.flatspec.AsyncFlatSpecLike$$anonfun$org$scalatest$flatspec$AsyncFlatSpecLike$$registerTestToRun$2.apply(AsyncFlatSpecLike.scala:144)
at org.scalatest.flatspec.AsyncFlatSpecLike$$anonfun$org$scalatest$flatspec$AsyncFlatSpecLike$$registerTestToRun$2.apply(AsyncFlatSpecLike.scala:144)
...
Cause: redis.clients.jedis.exceptions.JedisConnectionException: java.net.ConnectException: Connection refused (Connection refused)
at redis.clients.jedis.Connection.connect(Connection.java:148)
at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:75)
at redis.clients.jedis.BinaryJedis.connect(BinaryJedis.java:1572)
at redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:69)
at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:819)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:429)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:360)
at redis.clients.util.Pool.getResource(Pool.java:48)
at redis.clients.jedis.JedisPool.getResource(JedisPool.java:88)
at org.sunbird.cache.util.RedisConnector$class.getConnection(RedisConnector.scala:23)
...
Cause: java.net.ConnectException: Connection refused (Connection refused)
at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:412)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:255)
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:237)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.base/java.net.Socket.connect(Socket.java:609)
at redis.clients.jedis.Connection.connect(Connection.java:142)
at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:75)
at redis.clients.jedis.BinaryJedis.connect(BinaryJedis.java:1572)
at redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:69)
...
saveList
redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
at redis.clients.util.Pool.getResource(Pool.java:50)
at redis.clients.jedis.JedisPool.getResource(JedisPool.java:88)
at org.sunbird.cache.util.RedisConnector$class.getConnection(RedisConnector.scala:23)
at org.sunbird.cache.impl.RedisCache$.getConnection(RedisCache.scala:13)
at org.sunbird.cache.impl.RedisCache$.saveList(RedisCache.scala:118)
at org.sunbird.cache.impl.RedisCacheTest$$anonfun$4.apply(RedisCacheTest.scala:43)
at org.sunbird.cache.impl.RedisCacheTest$$anonfun$4.apply(RedisCacheTest.scala:41)
at org.scalatest.flatspec.AsyncFlatSpecLike$class.transformToOutcomeParam$1(AsyncFlatSpecLike.scala:138)
at org.scalatest.flatspec.AsyncFlatSpecLike$$anonfun$org$scalatest$flatspec$AsyncFlatSpecLike$$registerTestToRun$2.apply(AsyncFlatSpecLike.scala:144)
at org.scalatest.flatspec.AsyncFlatSpecLike$$anonfun$org$scalatest$flatspec$AsyncFlatSpecLike$$registerTestToRun$2.apply(AsyncFlatSpecLike.scala:144)
...
Cause: redis.clients.jedis.exceptions.JedisConnectionException: java.net.ConnectException: Connection refused (Connection refused)
at redis.clients.jedis.Connection.connect(Connection.java:148)
at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:75)
at redis.clients.jedis.BinaryJedis.connect(BinaryJedis.java:1572)
at redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:69)
at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:819)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:429)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:360)
at redis.clients.util.Pool.getResource(Pool.java:48)
at redis.clients.jedis.JedisPool.getResource(JedisPool.java:88)
at org.sunbird.cache.util.RedisConnector$class.getConnection(RedisConnector.scala:23)
...
Cause: java.net.ConnectException: Connection refused (Connection refused)
at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:412)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:255)
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:237)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.base/java.net.Socket.connect(Socket.java:609)
at redis.clients.jedis.Connection.connect(Connection.java:142)
at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:75)
at redis.clients.jedis.BinaryJedis.connect(BinaryJedis.java:1572)
at redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:69)
...
getList with wrong type key
redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
at redis.clients.util.Pool.getResource(Pool.java:50)
at redis.clients.jedis.JedisPool.getResource(JedisPool.java:88)
at org.sunbird.cache.util.RedisConnector$class.getConnection(RedisConnector.scala:23)
at org.sunbird.cache.impl.RedisCache$.getConnection(RedisCache.scala:13)
at org.sunbird.cache.impl.RedisCache$.set(RedisCache.scala:25)
at org.sunbird.cache.impl.RedisCacheTest$$anonfun$5.apply(RedisCacheTest.scala:49)
at org.sunbird.cache.impl.RedisCacheTest$$anonfun$5.apply(RedisCacheTest.scala:48)
at org.scalatest.flatspec.AsyncFlatSpecLike$class.transformToOutcomeParam$1(AsyncFlatSpecLike.scala:138)
at org.scalatest.flatspec.AsyncFlatSpecLike$$anonfun$org$scalatest$flatspec$AsyncFlatSpecLike$$registerTestToRun$2.apply(AsyncFlatSpecLike.scala:144)
at org.scalatest.flatspec.AsyncFlatSpecLike$$anonfun$org$scalatest$flatspec$AsyncFlatSpecLike$$registerTestToRun$2.apply(AsyncFlatSpecLike.scala:144)
...
Cause: redis.clients.jedis.exceptions.JedisConnectionException: java.net.ConnectException: Connection refused (Connection refused)
at redis.clients.jedis.Connection.connect(Connection.java:148)
at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:75)
at redis.clients.jedis.BinaryJedis.connect(BinaryJedis.java:1572)
at redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:69)
at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:819)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:429)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:360)
at redis.clients.util.Pool.getResource(Pool.java:48)
at redis.clients.jedis.JedisPool.getResource(JedisPool.java:88)
at org.sunbird.cache.util.RedisConnector$class.getConnection(RedisConnector.scala:23)
...
Cause: java.net.ConnectException: Connection refused (Connection refused)
at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:412)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:255)
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:237)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.base/java.net.Socket.connect(Socket.java:609)
at redis.clients.jedis.Connection.connect(Connection.java:142)
at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:75)
at redis.clients.jedis.BinaryJedis.connect(BinaryJedis.java:1572)
at redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:69)
...
get with wrong type key
redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
at redis.clients.util.Pool.getResource(Pool.java:50)
at redis.clients.jedis.JedisPool.getResource(JedisPool.java:88)
at org.sunbird.cache.util.RedisConnector$class.getConnection(RedisConnector.scala:23)
at org.sunbird.cache.impl.RedisCache$.getConnection(RedisCache.scala:13)
at org.sunbird.cache.impl.RedisCache$.saveList(RedisCache.scala:118)
at org.sunbird.cache.impl.RedisCacheTest$$anonfun$7.apply(RedisCacheTest.scala:58)
at org.sunbird.cache.impl.RedisCacheTest$$anonfun$7.apply(RedisCacheTest.scala:56)
at org.scalatest.flatspec.AsyncFlatSpecLike$class.transformToOutcomeParam$1(AsyncFlatSpecLike.scala:138)
at org.scalatest.flatspec.AsyncFlatSpecLike$$anonfun$org$scalatest$flatspec$AsyncFlatSpecLike$$registerTestToRun$2.apply(AsyncFlatSpecLike.scala:144)
at org.scalatest.flatspec.AsyncFlatSpecLike$$anonfun$org$scalatest$flatspec$AsyncFlatSpecLike$$registerTestToRun$2.apply(AsyncFlatSpecLike.scala:144)
...
Cause: redis.clients.jedis.exceptions.JedisConnectionException: java.net.ConnectException: Connection refused (Connection refused)
at redis.clients.jedis.Connection.connect(Connection.java:148)
at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:75)
at redis.clients.jedis.BinaryJedis.connect(BinaryJedis.java:1572)
at redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:69)
at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:819)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:429)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:360)
at redis.clients.util.Pool.getResource(Pool.java:48)
at redis.clients.jedis.JedisPool.getResource(JedisPool.java:88)
at org.sunbird.cache.util.RedisConnector$class.getConnection(RedisConnector.scala:23)
...
Cause: java.net.ConnectException: Connection refused (Connection refused)
at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:412)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:255)
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:237)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.base/java.net.Socket.connect(Socket.java:609)
at redis.clients.jedis.Connection.connect(Connection.java:142)
at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:75)
at redis.clients.jedis.BinaryJedis.connect(BinaryJedis.java:1572)
at redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:69)
...
delete with key
redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
at redis.clients.util.Pool.getResource(Pool.java:50)
at redis.clients.jedis.JedisPool.getResource(JedisPool.java:88)
at org.sunbird.cache.util.RedisConnector$class.getConnection(RedisConnector.scala:23)
at org.sunbird.cache.impl.RedisCache$.getConnection(RedisCache.scala:13)
at org.sunbird.cache.impl.RedisCache$.set(RedisCache.scala:25)
at org.sunbird.cache.impl.RedisCacheTest$$anonfun$9.apply(RedisCacheTest.scala:66)
at org.sunbird.cache.impl.RedisCacheTest$$anonfun$9.apply(RedisCacheTest.scala:65)
at org.scalatest.flatspec.AsyncFlatSpecLike$class.transformToOutcomeParam$1(AsyncFlatSpecLike.scala:138)
at org.scalatest.flatspec.AsyncFlatSpecLike$$anonfun$org$scalatest$flatspec$AsyncFlatSpecLike$$registerTestToRun$2.apply(AsyncFlatSpecLike.scala:144)
at org.scalatest.flatspec.AsyncFlatSpecLike$$anonfun$org$scalatest$flatspec$AsyncFlatSpecLike$$registerTestToRun$2.apply(AsyncFlatSpecLike.scala:144)
...
Cause: redis.clients.jedis.exceptions.JedisConnectionException: java.net.ConnectException: Connection refused (Connection refused)
at redis.clients.jedis.Connection.connect(Connection.java:148)
at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:75)
at redis.clients.jedis.BinaryJedis.connect(BinaryJedis.java:1572)
at redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:69)
at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:819)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:429)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:360)
at redis.clients.util.Pool.getResource(Pool.java:48)
at redis.clients.jedis.JedisPool.getResource(JedisPool.java:88)
at org.sunbird.cache.util.RedisConnector$class.getConnection(RedisConnector.scala:23)
...
Cause: java.net.ConnectException: Connection refused (Connection refused)
at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:412)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:255)
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:237)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.base/java.net.Socket.connect(Socket.java:609)
at redis.clients.jedis.Connection.connect(Connection.java:142)
at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:75)
at redis.clients.jedis.BinaryJedis.connect(BinaryJedis.java:1572)
at redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:69)
...
deleteByPattern
redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
at redis.clients.util.Pool.getResource(Pool.java:50)
at redis.clients.jedis.JedisPool.getResource(JedisPool.java:88)
at org.sunbird.cache.util.RedisConnector$class.getConnection(RedisConnector.scala:23)
at org.sunbird.cache.impl.RedisCache$.getConnection(RedisCache.scala:13)
at org.sunbird.cache.impl.RedisCache$.set(RedisCache.scala:25)
at org.sunbird.cache.impl.RedisCacheTest$$anonfun$10.apply(RedisCacheTest.scala:76)
at org.sunbird.cache.impl.RedisCacheTest$$anonfun$10.apply(RedisCacheTest.scala:75)
at org.scalatest.flatspec.AsyncFlatSpecLike$class.transformToOutcomeParam$1(AsyncFlatSpecLike.scala:138)
at org.scalatest.flatspec.AsyncFlatSpecLike$$anonfun$org$scalatest$flatspec$AsyncFlatSpecLike$$registerTestToRun$2.apply(AsyncFlatSpecLike.scala:144)
at org.scalatest.flatspec.AsyncFlatSpecLike$$anonfun$org$scalatest$flatspec$AsyncFlatSpecLike$$registerTestToRun$2.apply(AsyncFlatSpecLike.scala:144)
...
Cause: redis.clients.jedis.exceptions.JedisConnectionException: java.net.ConnectException: Connection refused (Connection refused)
at redis.clients.jedis.Connection.connect(Connection.java:148)
at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:75)
at redis.clients.jedis.BinaryJedis.connect(BinaryJedis.java:1572)
at redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:69)
at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:819)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:429)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:360)
at redis.clients.util.Pool.getResource(Pool.java:48)
at redis.clients.jedis.JedisPool.getResource(JedisPool.java:88)
at org.sunbird.cache.util.RedisConnector$class.getConnection(RedisConnector.scala:23)
...
Cause: java.net.ConnectException: Connection refused (Connection refused)
at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:412)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:255)
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:237)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.base/java.net.Socket.connect(Socket.java:609)
at redis.clients.jedis.Connection.connect(Connection.java:142)
at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:75)
at redis.clients.jedis.BinaryJedis.connect(BinaryJedis.java:1572)
at redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:69)
...
incrementAndGet
redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
at redis.clients.util.Pool.getResource(Pool.java:50)
at redis.clients.jedis.JedisPool.getResource(JedisPool.java:88)
at org.sunbird.cache.util.RedisConnector$class.getConnection(RedisConnector.scala:23)
at org.sunbird.cache.impl.RedisCache$.getConnection(RedisCache.scala:13)
at org.sunbird.cache.impl.RedisCache$.set(RedisCache.scala:25)
at org.sunbird.cache.impl.RedisCacheTest$$anonfun$11.apply(RedisCacheTest.scala:86)
at org.sunbird.cache.impl.RedisCacheTest$$anonfun$11.apply(RedisCacheTest.scala:85)
at org.scalatest.flatspec.AsyncFlatSpecLike$class.transformToOutcomeParam$1(AsyncFlatSpecLike.scala:138)
at org.scalatest.flatspec.AsyncFlatSpecLike$$anonfun$org$scalatest$flatspec$AsyncFlatSpecLike$$registerTestToRun$2.apply(AsyncFlatSpecLike.scala:144)
at org.scalatest.flatspec.AsyncFlatSpecLike$$anonfun$org$scalatest$flatspec$AsyncFlatSpecLike$$registerTestToRun$2.apply(AsyncFlatSpecLike.scala:144)
...
Cause: redis.clients.jedis.exceptions.JedisConnectionException: java.net.ConnectException: Connection refused (Connection refused)
at redis.clients.jedis.Connection.connect(Connection.java:148)
at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:75)
at redis.clients.jedis.BinaryJedis.connect(BinaryJedis.java:1572)
at redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:69)
at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:819)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:429)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:360)
at redis.clients.util.Pool.getResource(Pool.java:48)
at redis.clients.jedis.JedisPool.getResource(JedisPool.java:88)
at org.sunbird.cache.util.RedisConnector$class.getConnection(RedisConnector.scala:23)
...
Cause: java.net.ConnectException: Connection refused (Connection refused)
at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:412)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:255)
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:237)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.base/java.net.Socket.connect(Socket.java:609)
at redis.clients.jedis.Connection.connect(Connection.java:142)
at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:75)
at redis.clients.jedis.BinaryJedis.connect(BinaryJedis.java:1572)
at redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:69)
...
removeFromList
redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
at redis.clients.util.Pool.getResource(Pool.java:50)
at redis.clients.jedis.JedisPool.getResource(JedisPool.java:88)
at org.sunbird.cache.util.RedisConnector$class.getConnection(RedisConnector.scala:23)
at org.sunbird.cache.impl.RedisCache$.getConnection(RedisCache.scala:13)
at org.sunbird.cache.impl.RedisCache$.saveList(RedisCache.scala:118)
at org.sunbird.cache.impl.RedisCacheTest$$anonfun$12.apply(RedisCacheTest.scala:97)
at org.sunbird.cache.impl.RedisCacheTest$$anonfun$12.apply(RedisCacheTest.scala:95)
at org.scalatest.flatspec.AsyncFlatSpecLike$class.transformToOutcomeParam$1(AsyncFlatSpecLike.scala:138)
at org.scalatest.flatspec.AsyncFlatSpecLike$$anonfun$org$scalatest$flatspec$AsyncFlatSpecLike$$registerTestToRun$2.apply(AsyncFlatSpecLike.scala:144)
at org.scalatest.flatspec.AsyncFlatSpecLike$$anonfun$org$scalatest$flatspec$AsyncFlatSpecLike$$registerTestToRun$2.apply(AsyncFlatSpecLike.scala:144)
...
Cause: redis.clients.jedis.exceptions.JedisConnectionException: java.net.ConnectException: Connection refused (Connection refused)
at redis.clients.jedis.Connection.connect(Connection.java:148)
at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:75)
at redis.clients.jedis.BinaryJedis.connect(BinaryJedis.java:1572)
at redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:69)
at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:819)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:429)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:360)
at redis.clients.util.Pool.getResource(Pool.java:48)
at redis.clients.jedis.JedisPool.getResource(JedisPool.java:88)
at org.sunbird.cache.util.RedisConnector$class.getConnection(RedisConnector.scala:23)
...
Cause: java.net.ConnectException: Connection refused (Connection refused)
at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:412)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:255)
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:237)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.base/java.net.Socket.connect(Socket.java:609)
at redis.clients.jedis.Connection.connect(Connection.java:142)
at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:75)
at redis.clients.jedis.BinaryJedis.connect(BinaryJedis.java:1572)
at redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:69)
...
addToList
redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
at redis.clients.util.Pool.getResource(Pool.java:50)
at redis.clients.jedis.JedisPool.getResource(JedisPool.java:88)
at org.sunbird.cache.util.RedisConnector$class.getConnection(RedisConnector.scala:23)
at org.sunbird.cache.impl.RedisCache$.getConnection(RedisCache.scala:13)
at org.sunbird.cache.impl.RedisCache$.saveList(RedisCache.scala:118)
at org.sunbird.cache.impl.RedisCacheTest$$anonfun$13.apply(RedisCacheTest.scala:106)
at org.sunbird.cache.impl.RedisCacheTest$$anonfun$13.apply(RedisCacheTest.scala:104)
at org.scalatest.flatspec.AsyncFlatSpecLike$class.transformToOutcomeParam$1(AsyncFlatSpecLike.scala:138)
at org.scalatest.flatspec.AsyncFlatSpecLike$$anonfun$org$scalatest$flatspec$AsyncFlatSpecLike$$registerTestToRun$2.apply(AsyncFlatSpecLike.scala:144)
at org.scalatest.flatspec.AsyncFlatSpecLike$$anonfun$org$scalatest$flatspec$AsyncFlatSpecLike$$registerTestToRun$2.apply(AsyncFlatSpecLike.scala:144)
...
Cause: redis.clients.jedis.exceptions.JedisConnectionException: java.net.ConnectException: Connection refused (Connection refused)
at redis.clients.jedis.Connection.connect(Connection.java:148)
at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:75)
at redis.clients.jedis.BinaryJedis.connect(BinaryJedis.java:1572)
at redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:69)
at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:819)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:429)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:360)
at redis.clients.util.Pool.getResource(Pool.java:48)
at redis.clients.jedis.JedisPool.getResource(JedisPool.java:88)
at org.sunbird.cache.util.RedisConnector$class.getConnection(RedisConnector.scala:23)
...
Cause: java.net.ConnectException: Connection refused (Connection refused)
at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:412)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:255)
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:237)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.base/java.net.Socket.connect(Socket.java:609)
at redis.clients.jedis.Connection.connect(Connection.java:142)
at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:75)
at redis.clients.jedis.BinaryJedis.connect(BinaryJedis.java:1572)
at redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:69)
...
saveList with ttl
redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
at redis.clients.util.Pool.getResource(Pool.java:50)
at redis.clients.jedis.JedisPool.getResource(JedisPool.java:88)
at org.sunbird.cache.util.RedisConnector$class.getConnection(RedisConnector.scala:23)
at org.sunbird.cache.impl.RedisCache$.getConnection(RedisCache.scala:13)
at org.sunbird.cache.impl.RedisCache$.saveList(RedisCache.scala:118)
at org.sunbird.cache.impl.RedisCacheTest$$anonfun$14.apply(RedisCacheTest.scala:117)
at org.sunbird.cache.impl.RedisCacheTest$$anonfun$14.apply(RedisCacheTest.scala:115)
at org.scalatest.flatspec.AsyncFlatSpecLike$class.transformToOutcomeParam$1(AsyncFlatSpecLike.scala:138)
at org.scalatest.flatspec.AsyncFlatSpecLike$$anonfun$org$scalatest$flatspec$AsyncFlatSpecLike$$registerTestToRun$2.apply(AsyncFlatSpecLike.scala:144)
at org.scalatest.flatspec.AsyncFlatSpecLike$$anonfun$org$scalatest$flatspec$AsyncFlatSpecLike$$registerTestToRun$2.apply(AsyncFlatSpecLike.scala:144)
...
Cause: redis.clients.jedis.exceptions.JedisConnectionException: java.net.ConnectException: Connection refused (Connection refused)
at redis.clients.jedis.Connection.connect(Connection.java:148)
at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:75)
at redis.clients.jedis.BinaryJedis.connect(BinaryJedis.java:1572)
at redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:69)
at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:819)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:429)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:360)
at redis.clients.util.Pool.getResource(Pool.java:48)
at redis.clients.jedis.JedisPool.getResource(JedisPool.java:88)
at org.sunbird.cache.util.RedisConnector$class.getConnection(RedisConnector.scala:23)
...
Cause: java.net.ConnectException: Connection refused (Connection refused)
at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:412)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:255)
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:237)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.base/java.net.Socket.connect(Socket.java:609)
at redis.clients.jedis.Connection.connect(Connection.java:142)
at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:75)
at redis.clients.jedis.BinaryJedis.connect(BinaryJedis.java:1572)
at redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:69)
...
getAsync with key not having data in cache
redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
at redis.clients.util.Pool.getResource(Pool.java:50)
at redis.clients.jedis.JedisPool.getResource(JedisPool.java:88)
at org.sunbird.cache.util.RedisConnector$class.getConnection(RedisConnector.scala:23)
at org.sunbird.cache.impl.RedisCache$.getConnection(RedisCache.scala:13)
at org.sunbird.cache.impl.RedisCache$.getAsync(RedisCache.scala:73)
at org.sunbird.cache.impl.RedisCacheTest$$anonfun$15.apply(RedisCacheTest.scala:126)
at org.sunbird.cache.impl.RedisCacheTest$$anonfun$15.apply(RedisCacheTest.scala:125)
at org.scalatest.flatspec.AsyncFlatSpecLike$class.transformToOutcomeParam$1(AsyncFlatSpecLike.scala:138)
at org.scalatest.flatspec.AsyncFlatSpecLike$$anonfun$org$scalatest$flatspec$AsyncFlatSpecLike$$registerTestToRun$2.apply(AsyncFlatSpecLike.scala:144)
at org.scalatest.flatspec.AsyncFlatSpecLike$$anonfun$org$scalatest$flatspec$AsyncFlatSpecLike$$registerTestToRun$2.apply(AsyncFlatSpecLike.scala:144)
...
Cause: redis.clients.jedis.exceptions.JedisConnectionException: java.net.ConnectException: Connection refused (Connection refused)
at redis.clients.jedis.Connection.connect(Connection.java:148)
at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:75)
at redis.clients.jedis.BinaryJedis.connect(BinaryJedis.java:1572)
at redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:69)
at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:819)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:429)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:360)
at redis.clients.util.Pool.getResource(Pool.java:48)
at redis.clients.jedis.JedisPool.getResource(JedisPool.java:88)
at org.sunbird.cache.util.RedisConnector$class.getConnection(RedisConnector.scala:23)
...
Cause: java.net.ConnectException: Connection refused (Connection refused)
at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:412)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:255)
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:237)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.base/java.net.Socket.connect(Socket.java:609)
at redis.clients.jedis.Connection.connect(Connection.java:142)
at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:75)
at redis.clients.jedis.BinaryJedis.connect(BinaryJedis.java:1572)
at redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:69)
...
getAsync with key having data in cache
redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
at redis.clients.util.Pool.getResource(Pool.java:50)
at redis.clients.jedis.JedisPool.getResource(JedisPool.java:88)
at org.sunbird.cache.util.RedisConnector$class.getConnection(RedisConnector.scala:23)
at org.sunbird.cache.impl.RedisCache$.getConnection(RedisCache.scala:13)
at org.sunbird.cache.impl.RedisCache$.set(RedisCache.scala:25)
at org.sunbird.cache.impl.RedisCacheTest$$anonfun$17.apply(RedisCacheTest.scala:135)
at org.sunbird.cache.impl.RedisCacheTest$$anonfun$17.apply(RedisCacheTest.scala:134)
at org.scalatest.flatspec.AsyncFlatSpecLike$class.transformToOutcomeParam$1(AsyncFlatSpecLike.scala:138)
at org.scalatest.flatspec.AsyncFlatSpecLike$$anonfun$org$scalatest$flatspec$AsyncFlatSpecLike$$registerTestToRun$2.apply(AsyncFlatSpecLike.scala:144)
at org.scalatest.flatspec.AsyncFlatSpecLike$$anonfun$org$scalatest$flatspec$AsyncFlatSpecLike$$registerTestToRun$2.apply(AsyncFlatSpecLike.scala:144)
...
Cause: redis.clients.jedis.exceptions.JedisConnectionException: java.net.ConnectException: Connection refused (Connection refused)
at redis.clients.jedis.Connection.connect(Connection.java:148)
at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:75)
at redis.clients.jedis.BinaryJedis.connect(BinaryJedis.java:1572)
at redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:69)
at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:819)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:429)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:360)
at redis.clients.util.Pool.getResource(Pool.java:48)
at redis.clients.jedis.JedisPool.getResource(JedisPool.java:88)
at org.sunbird.cache.util.RedisConnector$class.getConnection(RedisConnector.scala:23)
...
Cause: java.net.ConnectException: Connection refused (Connection refused)
at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:412)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:255)
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:237)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.base/java.net.Socket.connect(Socket.java:609)
at redis.clients.jedis.Connection.connect(Connection.java:142)
at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:75)
at redis.clients.jedis.BinaryJedis.connect(BinaryJedis.java:1572)
at redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:69)
...
getListAsync with key not having data in cache
redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
at redis.clients.util.Pool.getResource(Pool.java:50)
at redis.clients.jedis.JedisPool.getResource(JedisPool.java:88)
at org.sunbird.cache.util.RedisConnector$class.getConnection(RedisConnector.scala:23)
at org.sunbird.cache.impl.RedisCache$.getConnection(RedisCache.scala:13)
at org.sunbird.cache.impl.RedisCache$.getListAsync(RedisCache.scala:176)
at org.sunbird.cache.impl.RedisCacheTest$$anonfun$19.apply(RedisCacheTest.scala:146)
at org.sunbird.cache.impl.RedisCacheTest$$anonfun$19.apply(RedisCacheTest.scala:144)
at org.scalatest.flatspec.AsyncFlatSpecLike$class.transformToOutcomeParam$1(AsyncFlatSpecLike.scala:138)
at org.scalatest.flatspec.AsyncFlatSpecLike$$anonfun$org$scalatest$flatspec$AsyncFlatSpecLike$$registerTestToRun$2.apply(AsyncFlatSpecLike.scala:144)
at org.scalatest.flatspec.AsyncFlatSpecLike$$anonfun$org$scalatest$flatspec$AsyncFlatSpecLike$$registerTestToRun$2.apply(AsyncFlatSpecLike.scala:144)
...
Cause: redis.clients.jedis.exceptions.JedisConnectionException: java.net.ConnectException: Connection refused (Connection refused)
at redis.clients.jedis.Connection.connect(Connection.java:148)
at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:75)
at redis.clients.jedis.BinaryJedis.connect(BinaryJedis.java:1572)
at redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:69)
at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:819)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:429)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:360)
at redis.clients.util.Pool.getResource(Pool.java:48)
at redis.clients.jedis.JedisPool.getResource(JedisPool.java:88)
at org.sunbird.cache.util.RedisConnector$class.getConnection(RedisConnector.scala:23)
...
Cause: java.net.ConnectException: Connection refused (Connection refused)
at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:412)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:255)
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:237)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.base/java.net.Socket.connect(Socket.java:609)
at redis.clients.jedis.Connection.connect(Connection.java:142)
at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:75)
at redis.clients.jedis.BinaryJedis.connect(BinaryJedis.java:1572)
at redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:69)
...
getListAsync with key having data in cache
redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
at redis.clients.util.Pool.getResource(Pool.java:50)
at redis.clients.jedis.JedisPool.getResource(JedisPool.java:88)
at org.sunbird.cache.util.RedisConnector$class.getConnection(RedisConnector.scala:23)
at org.sunbird.cache.impl.RedisCache$.getConnection(RedisCache.scala:13)
at org.sunbird.cache.impl.RedisCache$.saveList(RedisCache.scala:118)
at org.sunbird.cache.impl.RedisCacheTest$$anonfun$21.apply(RedisCacheTest.scala:158)
at org.sunbird.cache.impl.RedisCacheTest$$anonfun$21.apply(RedisCacheTest.scala:155)
at org.scalatest.flatspec.AsyncFlatSpecLike$class.transformToOutcomeParam$1(AsyncFlatSpecLike.scala:138)
at org.scalatest.flatspec.AsyncFlatSpecLike$$anonfun$org$scalatest$flatspec$AsyncFlatSpecLike$$registerTestToRun$2.apply(AsyncFlatSpecLike.scala:144)
at org.scalatest.flatspec.AsyncFlatSpecLike$$anonfun$org$scalatest$flatspec$AsyncFlatSpecLike$$registerTestToRun$2.apply(AsyncFlatSpecLike.scala:144)
...
Cause: redis.clients.jedis.exceptions.JedisConnectionException: java.net.ConnectException: Connection refused (Connection refused)
at redis.clients.jedis.Connection.connect(Connection.java:148)
at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:75)
at redis.clients.jedis.BinaryJedis.connect(BinaryJedis.java:1572)
at redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:69)
at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:819)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:429)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:360)
at redis.clients.util.Pool.getResource(Pool.java:48)
at redis.clients.jedis.JedisPool.getResource(JedisPool.java:88)
at org.sunbird.cache.util.RedisConnector$class.getConnection(RedisConnector.scala:23)
...
Cause: java.net.ConnectException: Connection refused (Connection refused)
at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:412)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:255)
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:237)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.base/java.net.Socket.connect(Socket.java:609)
at redis.clients.jedis.Connection.connect(Connection.java:142)
at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:75)
at redis.clients.jedis.BinaryJedis.connect(BinaryJedis.java:1572)
at redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:69)
...
SUITE ABORTED - RedisCacheTest: Could not get a resource from the pool
redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
at redis.clients.util.Pool.getResource(Pool.java:50)
at redis.clients.jedis.JedisPool.getResource(JedisPool.java:88)
at org.sunbird.cache.util.RedisConnector$class.getConnection(RedisConnector.scala:23)
at org.sunbird.cache.impl.RedisCache$.getConnection(RedisCache.scala:13)
at org.sunbird.cache.impl.RedisCache$.deleteByPattern(RedisCache.scala:232)
at org.sunbird.cache.impl.RedisCacheTest.afterAll(RedisCacheTest.scala:14)
at org.scalatest.BeforeAndAfterAll$$anonfun$1.apply$mcV$sp(BeforeAndAfterAll.scala:225)
at org.scalatest.Status$$anonfun$withAfterEffect$1.apply(Status.scala:377)
at org.scalatest.Status$$anonfun$withAfterEffect$1.apply(Status.scala:373)
at org.scalatest.CompositeStatus.whenCompleted(Status.scala:962)
...
Cause: redis.clients.jedis.exceptions.JedisConnectionException: java.net.ConnectException: Connection refused (Connection refused)
at redis.clients.jedis.Connection.connect(Connection.java:148)
at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:75)
at redis.clients.jedis.BinaryJedis.connect(BinaryJedis.java:1572)
at redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:69)
at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:819)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:429)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:360)
at redis.clients.util.Pool.getResource(Pool.java:48)
at redis.clients.jedis.JedisPool.getResource(JedisPool.java:88)
at org.sunbird.cache.util.RedisConnector$class.getConnection(RedisConnector.scala:23)
...
Cause: java.net.ConnectException: Connection refused (Connection refused)
at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:412)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:255)
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:237)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.base/java.net.Socket.connect(Socket.java:609)
at redis.clients.jedis.Connection.connect(Connection.java:142)
at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:75)
at redis.clients.jedis.BinaryJedis.connect(BinaryJedis.java:1572)
at redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:69)
...
Run completed in 748 milliseconds.
Total number of tests run: 16
Suites: completed 1, aborted 1
Tests: succeeded 0, failed 16, canceled 0, ignored 0, pending 0
*** 1 SUITE ABORTED ***
*** 16 TESTS FAILED ***
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Sunbird Knowledge Platform 1.0-SNAPSHOT:
[INFO]
[INFO] Sunbird Knowledge Platform ......................... SUCCESS [ 0.198 s]
[INFO] platform-core ...................................... SUCCESS [ 0.007 s]
[INFO] platform-common .................................... SUCCESS [ 8.806 s]
[INFO] Platform Telemetry ................................. SUCCESS [ 1.632 s]
[INFO] actor-core ......................................... SUCCESS [ 0.483 s]
[INFO] schema-validator ................................... SUCCESS [ 3.531 s]
[INFO] platform-cache ..................................... FAILURE [ 14.854 s]
[INFO] cassandra-connector ................................ SKIPPED
[INFO] kafka-client ....................................... SKIPPED
[INFO] ontology-engine .................................... SKIPPED
[INFO] graph-common ....................................... SKIPPED
[INFO] graph-dac-api ...................................... SKIPPED
[INFO] graph-core_2.11 .................................... SKIPPED
[INFO] parseq ............................................. SKIPPED
[INFO] graph-engine_2.11 .................................. SKIPPED
[INFO] platform-modules ................................... SKIPPED
[INFO] url-manager ........................................ SKIPPED
[INFO] mimetype-manager ................................... SKIPPED
[INFO] import-manager ..................................... SKIPPED
[INFO] content-api ........................................ SKIPPED
[INFO] hierarchy-manager .................................. SKIPPED
[INFO] content-actors ..................................... SKIPPED
[INFO] collection-csv-actors .............................. SKIPPED
[INFO] content-service .................................... SKIPPED
[INFO] assessment-api ..................................... SKIPPED
[INFO] qs-hierarchy-manager ............................... SKIPPED
[INFO] assessment-actors .................................. SKIPPED
[INFO] assessment-service ................................. SKIPPED
[INFO] taxonomy-api ....................................... SKIPPED
[INFO] taxonomy-actors .................................... SKIPPED
[INFO] taxonomy-service ................................... SKIPPED
[INFO] search-api ......................................... SKIPPED
[INFO] search-core ........................................ SKIPPED
[INFO] search-actors ...................................... SKIPPED
[INFO] search-service ..................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 30.317 s
[INFO] Finished at: 2022-09-01T09:25:25+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.scalatest:scalatest-maven-plugin:2.0.0:test (test) on project platform-cache: There are test failures -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :platform-cache
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // ansiColor
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: script returned exit code 1
Finished: FAILURE`
Beta Was this translation helpful? Give feedback.
All reactions