java.lang.IncompatibleClassChangeError: Found class org.java_websocket.WebSocket, but interface was expected

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via GitHub by max-mc2labs
, 1 year ago
Found class org.java_websocket.WebSocket, but interface was expected
java.lang.IncompatibleClassChangeError: Found class org.java_websocket.WebSocket, but interface was expected
at undefined.AutobahnServerTest.onMessage(AutobahnServerTest.java:48)
at org.java_websocket.server.WebSocketServer.onWebsocketMessage(WebSocketServer.java:457)
at org.java_websocket.WebSocketImpl.deliverMessage(WebSocketImpl.java:561)
at org.java_websocket.WebSocketImpl.decodeFrames(WebSocketImpl.java:328)
at org.java_websocket.WebSocketImpl.decode(WebSocketImpl.java:149)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.