Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

slack-api-client 1.x is not compatible with tyrus-standalone-client 2.x

未关闭
#720 1 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
java
领域
api, backend

调研方向

使用 slack-api-client 1.7.0 和 tyrus-standalone-client 2.0.0 重现该故障,然后检查第 170 行附近的 SocketModeClientTyrusImpl.java 以及依赖声明。将正常工作的 Tyrus 1.17 配置与较新版本进行比较;当 Socket Mode 能够使用较新的客户端成功启动且不破坏受支持的配置时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

dependencies enhancement project:slack-api-client

When I use in my project:

tyrus-standalone-client  2.0.0
slack-api-client 1.7.0

i receive:


***************************
APPLICATION FAILED TO START
***************************

Description:

An attempt was made to call a method that does not exist. The attempt was made from the following location:

    com.slack.api.socket_mode.impl.SocketModeClientTyrusImpl.connect(SocketModeClientTyrusImpl.java:170)

The following method did not exist:

    'javax.websocket.Session org.glassfish.tyrus.client.ClientManager.connectToServer(java.lang.Object, java.net.URI)'

The method's class, org.glassfish.tyrus.client.ClientManager, is available from the following locations:

    jar:file:/home/tomaszlos/.gradle/caches/modules-2/files-2.1/org.glassfish.tyrus.bundles/tyrus-standalone-client/2.0.0/87902cd5c919b93cffa063fb0212366165aa74ed/tyrus-standalone-client-2.0.0.jar!/org/glassfish/tyrus/client/ClientManager.class

The class hierarchy was loaded from the following locations:

    org.glassfish.tyrus.client.ClientManager: file:/home/tomaszlos/.gradle/caches/modules-2/files-2.1/org.glassfish.tyrus.bundles/tyrus-standalone-client/2.0.0/87902cd5c919b93cffa063fb0212366165aa74ed/tyrus-standalone-client-2.0.0.jar
    org.glassfish.tyrus.core.BaseContainer: file:/home/tomaszlos/.gradle/caches/modules-2/files-2.1/org.glassfish.tyrus.bundles/tyrus-standalone-client/2.0.0/87902cd5c919b93cffa063fb0212366165aa74ed/tyrus-standalone-client-2.0.0.jar
    org.glassfish.tyrus.core.ExecutorServiceProvider: file:/home/tomaszlos/.gradle/caches/modules-2/files-2.1/org.glassfish.tyrus.bundles/tyrus-standalone-client/2.0.0/87902cd5c919b93cffa063fb0212366165aa74ed/tyrus-standalone-client-2.0.0.jar


Action:

Correct the classpath of your application so that it contains a single, compatible version of org.glassfish.tyrus.client.ClientManager

But When I change tyrus-standalone-client to 1.17 all works fine.

Java Runtime version

openjdk version "11.0.10" 2021-01-19

OS info

20.04.1-Ubuntu

Expected result:

the slack API lib should handle newer versions of tyrus-standalone-client.

主要语言
Java
星标
602
派生
232
平均合并
5 天 6 小时
30 天内合并 PR
5

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

slackapi/java-slack-sdk 的其他 Issue

查看 slackapi/java-slack-sdk 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。