Hello Team,
We are implemeting the teneo teams connector in our environment.
We have followed the exact steps provided in below url.
We are using java 17 and latest maven version shown below.
$ java -version
java version “17.0.9” 2023-10-17 LTS
Java™ SE Runtime Environment (build 17.0.9+11-LTS-201)
Java HotSpot™ 64-Bit Server VM (build 17.0.9+11-LTS-201, mixed mode, sharing)
$ /data/apache-maven-3.9.6/bin/mvn -version
Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae)
Maven home: /data/apache-maven-3.9.6
Java version: 17.0.9, vendor: Oracle Corporation, runtime: /usr/lib/jvm/jdk-17-oracle-x64
Default locale: en_US, platform encoding: UTF-8
OS name: “linux”, version: “4.18.0-477.27.1.el8_8.x86_64”, arch: “amd64”, family: “unix”
We started the connector and further dropped the message from “test in webchat” , but on connectoer we are receiving below error.
java.lang.NoSuchMethodError: ‘void org.springframework.http.ResponseEntity.(org.springframework.http.HttpStatus)’
Request you to please help us to resolve the issue.
Thanks and Regards,
Akshay
Providing the entire stack trace capture in debug mode.
Dec 05, 2023 2:01:49 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring DispatcherServlet ‘dispatcherServlet’
[INFO ] 2023-12-05 14:01:49.700 [http-nio-8082-exec-6] DispatcherServlet - Initializing Servlet ‘dispatcherServlet’
[DEBUG] 2023-12-05 14:01:49.700 [http-nio-8082-exec-6] DispatcherServlet - Detected StandardServletMultipartResolver
[DEBUG] 2023-12-05 14:01:49.700 [http-nio-8082-exec-6] DispatcherServlet - Detected AcceptHeaderLocaleResolver
[DEBUG] 2023-12-05 14:01:49.700 [http-nio-8082-exec-6] DispatcherServlet - Detected FixedThemeResolver
[DEBUG] 2023-12-05 14:01:49.701 [http-nio-8082-exec-6] DispatcherServlet - Detected org.springframework.web.servlet.view.DefaultRequestToViewNameTranslator@654726f9
[DEBUG] 2023-12-05 14:01:49.702 [http-nio-8082-exec-6] DispatcherServlet - Detected org.springframework.web.servlet.support.SessionFlashMapManager@44869581
[DEBUG] 2023-12-05 14:01:49.702 [http-nio-8082-exec-6] DispatcherServlet - enableLoggingRequestDetails=‘false’: request parameters and headers will be masked to prevent unsafe logging of potentially sensitive data
[INFO ] 2023-12-05 14:01:49.702 [http-nio-8082-exec-6] DispatcherServlet - Completed initialization in 2 ms
[DEBUG] 2023-12-05 14:01:49.713 [http-nio-8082-exec-6] DispatcherServlet - POST “/api/messages”, parameters={}
[DEBUG] 2023-12-05 14:01:49.729 [http-nio-8082-exec-6] RequestMappingHandlerMapping - Mapped to com.microsoft.bot.integration.spring.BotController#incoming(Activity, String)
[DEBUG] 2023-12-05 14:01:49.890 [http-nio-8082-exec-6] RequestResponseBodyMethodProcessor - Read “application/json;charset=utf-8” to [com.microsoft.bot.schema.Activity@5aba87f0]
[DEBUG] 2023-12-05 14:01:49.953 [http-nio-8082-exec-6] WebAsyncManager - Started async request
[DEBUG] 2023-12-05 14:01:49.955 [http-nio-8082-exec-6] DispatcherServlet - Exiting but response remains open for further handling
[DEBUG] 2023-12-05 14:01:50.304 [Bot-0] WebAsyncManager - Async error, dispatch to /api/messages
[DEBUG] 2023-12-05 14:01:50.322 [http-nio-8082-exec-7] DispatcherServlet - “ASYNC” dispatch for POST “/api/messages”, parameters={}
[DEBUG] 2023-12-05 14:01:50.324 [http-nio-8082-exec-7] RequestMappingHandlerAdapter - Resume with async result [java.lang.NoSuchMethodError: 'void org.springframework.http.ResponseEntity.(org.springframewor (truncated)…]
[DEBUG] 2023-12-05 14:01:50.330 [http-nio-8082-exec-7] DispatcherServlet - Unresolved failure from “ASYNC” dispatch: jakarta.servlet.ServletException: Async processing failed: java.lang.NoSuchMethodError: ‘void org.springframework.http.ResponseEntity.(org.springframework.http.HttpStatus)’
Dec 05, 2023 2:01:50 PM org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet [dispatcherServlet] threw exception
java.lang.NoSuchMethodError: ‘void org.springframework.http.ResponseEntity.(org.springframework.http.HttpStatus)’
at com.microsoft.bot.integration.spring.BotController.lambda$incoming$0(BotController.java:101)
at java.base/java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:934)
at java.base/java.util.concurrent.CompletableFuture$UniHandle.tryFire(CompletableFuture.java:911)
at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1773)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)
Dec 05, 2023 2:01:50 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [dispatcherServlet] in context with path threw exception [Async processing failed: java.lang.NoSuchMethodError: ‘void org.springframework.http.ResponseEntity.(org.springframework.http.HttpStatus)’] with root cause
java.lang.NoSuchMethodError: ‘void org.springframework.http.ResponseEntity.(org.springframework.http.HttpStatus)’
at com.microsoft.bot.integration.spring.BotController.lambda$incoming$0(BotController.java:101)
at java.base/java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:934)
at java.base/java.util.concurrent.CompletableFuture$UniHandle.tryFire(CompletableFuture.java:911)
at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1773)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)
[DEBUG] 2023-12-05 14:01:50.332 [http-nio-8082-exec-7] DispatcherServlet - “ERROR” dispatch for POST “/error”, parameters={}
[DEBUG] 2023-12-05 14:01:50.333 [http-nio-8082-exec-7] RequestMappingHandlerMapping - Mapped to org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController#error(HttpServletRequest)
[DEBUG] 2023-12-05 14:01:50.346 [http-nio-8082-exec-7] HttpEntityMethodProcessor - Using ‘application/json’, given [/] and supported [application/json, application/*+json]
[DEBUG] 2023-12-05 14:01:50.349 [http-nio-8082-exec-7] HttpEntityMethodProcessor - Writing [{timestamp=Tue Dec 05 14:01:50 CET 2023, status=500, error=Internal Server Error, path=/api/messages (truncated)…]
[DEBUG] 2023-12-05 14:01:50.372 [http-nio-8082-exec-7] DispatcherServlet - Exiting from “ERROR” dispatch, status 500