Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-129450

Server-Sent Event register call fails due to JAX-RS Whiteboard version upgrade

    Details

    • Type: Bug
    • Status: Verified
    • Resolution: Unresolved
    • Affects Version/s: 7.2.10 DXP FP9, 7.2.X, 7.3.X, Master
    • Fix Version/s: None
    • Component/s: Core Infrastructure
    • Labels:
    • Fix Priority:
      1

      Description

      7.2.x / master

      Steps to reproduce:

      1. Startup
      2. Deploy it.open.reply.sse-1.0.0.jar
      3. Create a directory called "test-app" under Tomcat/webapps
      4. Move the attached index.html to Tomcat/webapps/test-app
      5. Open http://localhost:8080/test-app
      6. F12 > Check the console logs

       

      Expected behavior:

      • Browser console: No error msgs printed.
      • Server logs:
      2021-03-19 10:35:53.252 INFO  [http-nio-8080-exec-4][SseApplication:66] It works!
      

       

      Actual behavior:

      • Browser console:
      GET http://localhost:8080/o/greetings/register 500
      EventSource failed.
      
      • Server logs:
      2021-03-19 10:49:57.343 WARN  [http-nio-8080-exec-6][PhaseInterceptorChain:107] Interceptor for {http://application.sse.reply.open.it/}SseApplication has thrown exception, unwinding now
      java.lang.IllegalArgumentException: Illegal status value : -1
      	at org.apache.cxf.jaxrs.impl.ResponseBuilderImpl.validateStatusCode(ResponseBuilderImpl.java:95)
      	at org.apache.cxf.jaxrs.impl.ResponseBuilderImpl.status(ResponseBuilderImpl.java:79)
      	at javax.ws.rs.core.Response.status(Response.java:118)
      
      ...
      2021-03-19 10:49:57.409 WARN  [http-nio-8080-exec-6][SseEventSinkImpl:107] Failed to close the AsyncContext cleanly: Calling [asyncComplete()] is not valid for a request with Async state [MUST_COMPLETE]
      

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            nikoletta.buza Nikoletta Buza
            Participants of an Issue:
            Recent user:
            Liferay JIRA Bot
            Engineering Assignee:
            Nikoletta Buza
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Days since last comment:
              6 weeks, 5 days ago

                Packages

                Version Package