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 have filed an issue on Glassfish, eclipse-ee4j/glassfish#25323 but no one responded to it. I am not sure if it is an issue of the spec implementer.
Environment Details
GlassFish Version (and build number): 8.0.0-M9
JDK version: 21
OS: Windows 10 Pro 64bit
Database: Built-in derby and Docker/Postgres
Problem Description
In my cargo tracker fork, I tried to add an SSE broadcast endpoint to HTTP client to track the cargo event.
When using constructor inject, I have tried both EJB @Singleton and CDI @Singletone/@applicationScoped, but all do not work. But Replace the constructor injection with field injection, and it worked.
It failed due to the NullPionterException from this.sseBroadcaster and this.sse in the further methods(eg. register) being called when registering the SSE client connection.
Problem Reproducer
git clone https://github.com/hantsy/cargotracker
switch to ee11 branch.
Run test mvn clean verify -P"arq-glassfish-managed" -D"it.test=RealtimeCargoTrackingSseServiceTest"
I have filed an issue on Glassfish, eclipse-ee4j/glassfish#25323 but no one responded to it. I am not sure if it is an issue of the spec implementer.
Environment Details
Problem Description
In my cargo tracker fork, I tried to add an SSE broadcast endpoint to HTTP client to track the cargo event.
When using constructor inject, I have tried both EJB
@Singleton
and CDI@Singletone
/@applicationScoped
, but all do not work. But Replace the constructor injection with field injection, and it worked.It failed due to the
NullPionterException
fromthis.sseBroadcaster
andthis.sse
in the further methods(eg.register
) being called when registering the SSE client connection.Problem Reproducer
git clone https://github.com/hantsy/cargotracker
ee11
branch.mvn clean verify -P"arq-glassfish-managed" -D"it.test=RealtimeCargoTrackingSseServiceTest"
docker compose up postgres
mvn clean package cargo:run -P"glassfish"
curl http://localhost:8080/cargo-tracker/rest/tracking
My SSE class is similar to the broadcaster example in the Jersey docs, https://eclipse-ee4j.github.io/jersey.github.io/documentation/latest/sse.html and I remember this pattern worked in before projects.
The text was updated successfully, but these errors were encountered: