Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

长连接模式下ProtoBuf版本依赖问题 #148

Closed
MagakiReimu opened this issue Oct 16, 2024 · 0 comments · May be fixed by #150
Closed

长连接模式下ProtoBuf版本依赖问题 #148

MagakiReimu opened this issue Oct 16, 2024 · 0 comments · May be fixed by #150

Comments

@MagakiReimu
Copy link
Contributor

目前由于项目本身需要使用ProtoBuf,且版本较高

<dependency>
   <groupId>com.google.protobuf</groupId>
   <artifactId>protobuf-java</artifactId>
   <version>4.28.0</version>
</dependency>

报错日志

Exception in thread "pool-1-thread-2" java.lang.NoSuchMethodError: 'void com.lark.oapi.ws.pb.Pbbp2$Frame.makeExtensionsImmutable()'
	at com.lark.oapi.ws.pb.Pbbp2$Frame.<init>(Pbbp2.java:1306)
	at com.lark.oapi.ws.pb.Pbbp2$Frame.<init>(Pbbp2.java:1159)
	at com.lark.oapi.ws.pb.Pbbp2$Frame$1.parsePartialFrom(Pbbp2.java:1180)
	at com.lark.oapi.ws.pb.Pbbp2$Frame$1.parsePartialFrom(Pbbp2.java:1174)
	at com.google.protobuf.AbstractParser.parsePartialFrom(AbstractParser.java:135)
	at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:168)
	at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:180)
	at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:185)
	at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:25)
	at com.lark.oapi.ws.pb.Pbbp2$Frame.parseFrom(Pbbp2.java:1343)
	at com.lark.oapi.ws.Client.handleMessage(Client.java:238)
	at com.lark.oapi.ws.Listener.lambda$onMessage$0(Listener.java:38)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant