java.lang.LinkageError: loader constraint violation: when resolving interface method "org.eclipse.jetty.server.Connector.getByteBufferPool()Lorg/eclipse/jetty/io/ByteBufferPool;" the class loader (instance of org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) of the current class, org/eclipse/jetty/websocket/server/WebSocketServerFactory, and the class loader (instance of org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) for the method's defining class, org/eclipse/jetty/server/Connector, have different Class objects for the type org/eclipse/jetty/io/ByteBufferPool used in the signature

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

Solutions on the web

via GitHub by harshild
, 1 year ago
$BundleClassLoaderJava5) of the current class, org/eclipse/jetty/websocket/server/WebSocketServerFactory, and the class loader (instance of org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) for the method's defining class, org/eclipse/jetty/server/Connector, have different Class objects for the type org/eclipse/jetty/io/ByteBufferPool used in the signature
java.lang.LinkageError: loader constraint violation: when resolving interface method "org.eclipse.jetty.server.Connector.getByteBufferPool()Lorg/eclipse/jetty/io/ByteBufferPool;" the class loader (instance of org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) of the current class, org/eclipse/jetty/websocket/server/WebSocketServerFactory, and the class loader (instance of org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) for the method's defining class, org/eclipse/jetty/server/Connector, have different Class objects for the type org/eclipse/jetty/io/ByteBufferPool used in the signature
at org.eclipse.jetty.websocket.server.WebSocketServerFactory.upgrade(WebSocketServerFactory.java:516)
at org.eclipse.jetty.websocket.server.WebSocketServerFactory.acceptWebSocket(WebSocketServerFactory.java:185)
at org.atmosphere.container.Jetty9AsyncSupportWithWebSocket$1.acceptWebSocket(Jetty9AsyncSupportWithWebSocket.java:146)
at org.atmosphere.container.Jetty9AsyncSupportWithWebSocket.service(Jetty9AsyncSupportWithWebSocket.java:175)

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.

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