Uploaded image for project: 'Creative Pro by Nuxeo'
  1. Creative Pro by Nuxeo
  2. NBM-790

Fix Lambda response serialization for Kafka

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.4.5
    • Component/s: Platform

      Description

      The lambda response forwarded by the SegmentIOListener cannot be serialized to be sent to Kafka.

      We need to replace codehaus by another library that is working correctly.

      Ticket: NXP-25023

      Logs:

      {"@timestamp":"2018-07-17T22:14:21.996Z","source_host":"nuxeo-front-40-gj94s","file":"StreamWorkManager.java","method":"schedule","level":"DEBUG","line_number":"140","thread_name":"http-nio-0.0.0.0-8080-exec-3","@version":1,"logger_name":"org.nuxeo.ecm.core.work.StreamWorkManager","message":"Scheduling: workId: 425506318506620.52623260, category: segmentIOEventListener, queue: default, scheduling: ENQUEUE, afterCommit: true, work: ListenerWork(Listener segmentIOEventListener [afterLambdaPictureResponse], Progress(?%, ?\/0), null)","class":"org.nuxeo.ecm.core.work.StreamWorkManager","mdc":{"tx":"69000000047544d4944"}}
      {"@timestamp":"2018-07-17T22:14:21.996Z","source_host":"nuxeo-front-40-gj94s","file":"StreamWorkManager.java","method":"scheduleAfterCommit","level":"DEBUG","line_number":"566","thread_name":"http-nio-0.0.0.0-8080-exec-3","@version":1,"logger_name":"org.nuxeo.ecm.core.work.StreamWorkManager","message":"Scheduled immediately: 425506318506620.52623260","class":"org.nuxeo.ecm.core.work.StreamWorkManager","mdc":{"tx":"69000000047544d4944"}}
      {"exception":{"stacktrace":"java.lang.RuntimeException: java.io.NotSerializableException: org.codehaus.jettison.json.JSONObject$Null\n\tat org.nuxeo.ecm.core.work.WorkComputation.serialize(WorkComputation.java:164)\n\tat org.nuxeo.ecm.core.work.StreamWorkManager.schedule(StreamWorkManager.java:171)\n\tat org.nuxeo.ecm.core.work.WorkManagerImpl.schedule(WorkManagerImpl.java:727)\n\tat org.nuxeo.ecm.core.event.impl.AsyncEventExecutor.scheduleListeners(AsyncEventExecutor.java:126)\n\tat org.nuxeo.ecm.core.event.impl.AsyncEventExecutor.run(AsyncEventExecutor.java:93)\n\tat org.nuxeo.ecm.core.event.impl.Even
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vpasquier Vladimir Pasquier
                Reporter:
                vpasquier Vladimir Pasquier
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: