我需要一个 Java API 来开发 ICQ 和 Yahoo 客户端

发布于 2024-12-28 00:29:29 字数 866 浏览 1 评论 0原文

我目前想用 Java 实现我自己的 Yahoo 和 ICQ 客户端。 我在 SOF 中搜索并找到了 openymsg 和 joscarlib。 但我有问题: 1. openymsg 可以工作,但登录时出现警告:

Jan 21, 2012 10:41:05 PM org.openymsg.network.Session removeSessionListener
WARNING: SessionListener not found to be removed.
java.lang.Throwable
    at org.openymsg.network.Session.removeSessionListener(Session.java:270)
    at org.openymsg.network.Session.resetData(Session.java:3688)
    at org.openymsg.network.Session.login(Session.java:337)
    at org.openymsg.network.Session.login(Session.java:292)
    at imTypes.Yahoo.startListen(Yahoo.java:47)
    at imServer.Main.main(Main.java:20)

但我确实在登录上方添加了 SessionListener :yahooSession.addSessionListener(this); (当然这个类扩展了SessionAdapter)。

以及如何禁用日志记录?

  1. joscarLib 似乎不起作用或者我的代码是错误的。请验证 joscardLib 是否仍然有效,我将尝试修复它。如果它不起作用,请建议我另一个库。

非常感谢

I currently want to implement my own Yahoo and ICQ client in Java.
I did search in SOF and found openymsg and joscarlib.
But I have problems:
1. openymsg works, but there are Warning while login :

Jan 21, 2012 10:41:05 PM org.openymsg.network.Session removeSessionListener
WARNING: SessionListener not found to be removed.
java.lang.Throwable
    at org.openymsg.network.Session.removeSessionListener(Session.java:270)
    at org.openymsg.network.Session.resetData(Session.java:3688)
    at org.openymsg.network.Session.login(Session.java:337)
    at org.openymsg.network.Session.login(Session.java:292)
    at imTypes.Yahoo.startListen(Yahoo.java:47)
    at imServer.Main.main(Main.java:20)

But I did add SessionListener above the login : yahooSession.addSessionListener(this); ( this class extends SessionAdapter ofcourse).

And How to disable Logging ?

  1. joscarLib seem doen't work OR I my code is wrong. Please verify that joscardLib still works and I will try to fix it. If it doesn't work, Please suggest me another Lib.

Thank you very much

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

╄→承喏 2025-01-04 00:29:29

我发现:

I have found:

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文