You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to migrate from previous version to 2.0.0, I replaced all javax.websocket to jakarta.websocket and I'm hitting this NPE:
[java.lang.NullPointerException
at org.glassfish.tyrus.core.AnnotatedEndpoint.<init>(AnnotatedEndpoint.java:166)
at org.glassfish.tyrus.core.AnnotatedEndpoint.fromClass(AnnotatedEndpoint.java:117)
at org.glassfish.tyrus.core.TyrusWebSocketEngine.register(TyrusWebSocketEngine.java:647)
at org.glassfish.tyrus.container.grizzly.server.GrizzlyServerContainer$1.register(GrizzlyServerContainer.java:136)
at org.glassfish.tyrus.server.TyrusServerContainer.start(TyrusServerContainer.java:116)
at org.glassfish.tyrus.container.grizzly.server.GrizzlyServerContainer$1.start(GrizzlyServerContainer.java:200)
at org.glassfish.tyrus.server.Server.start(Server.java:205)
at com.github.cameltooling.lsp.internal.websocket.WebSocketRunner.runWebSocketServer(WebSocketRunner.java:43)
at com.github.cameltooling.lsp.internal.Runner.main(Runner.java:63)
at com.github.cameltooling.lsp.internal.RunnerWebSocketTest$2.run(RunnerWebSocketTest.java:128)
at java.base/java.lang.Thread.run(Thread.java:834)](url)
the NPE is cause because the creation fo the configuration endpoitnConfig is failing. There is an error because my ServerEndpoint was still using javax.* (but cannot change directly as it is inherited from another library)
SO there is a problem of configuration but it woudl be nice to avoid the NPE so that the ErrorCollector can deliver what the issue is.
apupier
changed the title
NPE in AnnotatedEndpoint with version 2.0.0
NPE in AnnotatedEndpoint with version 2.0.0 when no ServerEndpoint is configured
Dec 4, 2020
I tried to migrate from previous version to 2.0.0, I replaced all javax.websocket to jakarta.websocket and I'm hitting this NPE:
Here is the branch that I'm using https://github.com/apupier/camel-language-server/tree/tyrus.version-2.0.0-bugreport
Here is my ServerApplicationConfig class:
The text was updated successfully, but these errors were encountered: