[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
WebSockets: ClassCastException on JBoss  XML
Forum Index -> Development
Author Message
abender

Power User

Joined: 04/02/2010 16:32:13
Messages: 28
Offline

Hi Björn,

running our application on JBoss Server the server logs a ClassCastException whenever a new client starts. There seems to be no negative side effects in the application.

2021-10-27 09:08:05,910 MESZ ERROR [io.undertow.websockets.jsr.request] (default task-1) UT026001: Unable to instantiate endpoint: java.lang.ClassCastException: org.eclnt.jsfserver.polling.websocket.WebSocketPollingEndPoint cannot be cast to javax.websocket.Endpoint

JBoss contains websocket API 1.1.

Setting <blockerinfo active="false"/> in system.xml makes the exception disapear.

Is there a better solution?

Regards
Axel
 Filename jboss_server.log [Disk] Download
 Description
 Filesize 5 Kbytes
 Downloaded:  21 time(s)


Axel Bender, DXC Technology
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5112
Offline

Hi,

uuuh: we are using annotation based endpoint implementation. Please check e.g. https://www.baeldung.com/java-websockets for difference between annotation-based and extension-based implementation. It is part of JEE7 (see: https://docs.oracle.com/javaee/7/tutorial/websocket004.htm).

...is your JBoss such old!?? ;-)
Anyway: switching off by system.xml is the right way to avoid problems with our own usage of WebSockets.

Kind regards! Björn


Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team