The library doesn't work properly with Tomcat server
@kalkeea y travaille déjà.
Depuis le 14/1/2026.
Évaluation
Cette issue n'a pas encore été évaluée.
Description
HybridConnectionListener throws exceptions when using it on a tomcat:
19-Jul-2019 13:48:07.248 SEVERE [autoshutdown-pool-1-thread-3] com.microsoft.azure.relay.RelayLogger.throwingException ClientWebSocket(TrackingId:de9dd33c-7433-49c0-978d-07e191f35798_G16_G10, Address:sb://statelink-relay.servicebus.windows.net) is throwing an Exception:
javax.websocket.DeploymentException: Cannot use POJO class [com.microsoft.azure.relay.ClientWebSocket] as it is not annotated with @ClientEndpoint
at org.apache.tomcat.websocket.WsWebSocketContainer.connectToServer(WsWebSocketContainer.java:124)
at com.microsoft.azure.relay.ClientWebSocket.lambda$connectAsync$0(ClientWebSocket.java:121)
at com.microsoft.azure.relay.CompletableFutureUtil.lambda$futureToCompletableFuture$1(CompletableFutureUtil.java:62)
at com.microsoft.azure.relay.AutoShutdownScheduledExecutor.lambda$submit$0(AutoShutdownScheduledExecutor.java:60)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
19-Jul-2019 13:48:07.250 SEVERE [autoshutdown-pool-1-thread-3] com.microsoft.azure.relay.RelayLogger.throwingException HybridConnectionListener(TrackingId:92aa61bb-a431-4230-aa5f-a56bf29d0960, Address:sb://statelink-relay.servicebus.windows.net) is throwing an Exception:
java.util.concurrent.CompletionException: java.lang.RuntimeException: javax.websocket.DeploymentException: Cannot use POJO class [com.microsoft.azure.relay.ClientWebSocket] as it is not annotated with @ClientEndpoint
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:292)
at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:308)
at java.util.concurrent.CompletableFuture.uniRun(CompletableFuture.java:700)
at java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:687)
at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474)
at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:1977)
at com.microsoft.azure.relay.CompletableFutureUtil.lambda$futureToCompletableFuture$1(CompletableFutureUtil.java:68)
at com.microsoft.azure.relay.AutoShutdownScheduledExecutor.lambda$submit$0(AutoShutdownScheduledExecutor.java:60)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException: javax.websocket.DeploymentException: Cannot use POJO class [com.microsoft.azure.relay.ClientWebSocket] as it is not annotated with @ClientEndpoint
at com.microsoft.azure.relay.RelayLogger.throwingException(RelayLogger.java:77)
at com.microsoft.azure.relay.RelayLogger.throwingException(RelayLogger.java:53)
at com.microsoft.azure.relay.ClientWebSocket.lambda$connectAsync$0(ClientWebSocket.java:127)
at com.microsoft.azure.relay.CompletableFutureUtil.lambda$futureToCompletableFuture$1(CompletableFutureUtil.java:62)
... 8 more
If I add an annotation, receives other ClassNotFoundException and ClassCastException. I'd like to be able to use this library on any server not only jetty
- Langage dominant
- Java
- Étoiles
- 9
- Forks
- 15
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de Azure/azure-relay-java
-
Difficulté 4/5 3-5 jours Accessibilité débutants 30/100
Azure/azure-relay-java#113 ·
-
0.0.4 Release throws java.lang.NoSuchMethodError: java.nio.ByteBuffer.flip() on Java 8 RuntimePeut-être à nouveau libre @kalkeea l’a pris il y a 317 jours, et aucune pull request n’est ouverte. Ouverte
Azure/azure-relay-java#87 · 1 personne assignée ·
-
Channel Read spinning on 0 bytes, consuming 100% CPUPeut-être à nouveau libre @kalkeea l’a pris il y a 317 jours, et aucune pull request n’est ouverte. Ouverte
Azure/azure-relay-java#84 · 1 personne assignée ·
-
Mistakes in exception handling HybridConnectionListenerPeut-être à nouveau libre @kalkeea l’a pris il y a 317 jours, et aucune pull request n’est ouverte. OuverteRelay
Azure/azure-relay-java#71 · 2 commentaires · 2 personnes assignées ·
-
Connection timeout with running with jetty 9.4.28.v20200408Peut-être à nouveau libre @kalkeea l’a pris il y a 317 jours, et aucune pull request n’est ouverte. OuverteRelay
Azure/azure-relay-java#70 · 2 commentaires · 2 personnes assignées ·
Toutes les issues de Azure/azure-relay-java
Issues similaires
-
documentation good first issue help wanted
Difficulté 1/5 Moins d'une heure Accessibilité débutants 90/100
-
Attachment upload accepts a file part with no file chosen and stores an empty comp_attachmentOuvertebug
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
eclipse-sw360/sw360#4849 ·
Les mainteneurs répondent en général sous 2 jours
-
[Bug]: Skip cross-field checkpointing validation rules when checkpointing is disabledPeut-être pris @hutiefang76 l’a pris aujourd’hui. Ouverteaccepted bug good first issue java
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Sekelenao/Flinkboot#473 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
help wanted priority: low Review effort [1-5]: 2 status: needs-triage type: tests
Difficulté 1/5 1-3 heures Accessibilité débutants 86/100
carlos-emr/carlos#6433 · 1 commentaire · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
Les mainteneurs répondent en général sous 2 jours