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

caught exception in dispatchImpl #257

Open
GZ315200 opened this issue Nov 16, 2018 · 0 comments
Open

caught exception in dispatchImpl #257

GZ315200 opened this issue Nov 16, 2018 · 0 comments

Comments

@GZ315200
Copy link

GZ315200 commented Nov 16, 2018

Hi
I got this exception in following when I use sendMessageToUser method. the detail of exception message is in the following

java.lang.ClassCastException: com.ullink.slack.simpleslackapi.replies.SlackReplyImpl cannot be cast to com.ullink.slack.simpleslackapi.replies.SlackChannelReply
at com.ullink.slack.simpleslackapi.impl.SlackWebSocketSessionImpl.getIMChannelForUser(SlackWebSocketSessionImpl.java:168)
at com.ullink.slack.simpleslackapi.impl.SlackWebSocketSessionImpl.sendMessageToUser(SlackWebSocketSessionImpl.java:140)
at handler.ReplyMessage$.replayToWithAttachment(ReplyMessage.scala:13)
at handler.SlackMessageSession$.trigger(SlackMessageSession.scala:25)
at handler.SlackBot.$anonfun$listen$1(SlackBot.scala:25)
at com.ullink.slack.simpleslackapi.impl.SlackWebSocketSessionImpl$EventDispatcher.dispatchImpl(SlackWebSocketSessionImpl.java:246)
at com.ullink.slack.simpleslackapi.impl.SlackWebSocketSessionImpl$EventDispatcher.dispatch(SlackWebSocketSessionImpl.java:203)
at com.ullink.slack.simpleslackapi.impl.SlackWebSocketSessionImpl.onMessage(SlackWebSocketSessionImpl.java:1074)
at com.ullink.slack.simpleslackapi.impl.SlackWebSocketSessionImpl.onMessage(SlackWebSocketSessionImpl.java:57)
at org.glassfish.tyrus.core.TyrusSession.notifyMessageHandlers(TyrusSession.java:576)

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

No branches or pull requests

1 participant