Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-30425

stream.sh workCat fails when Work cannot be loaded without runtime

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.10, 2021.3
    • Fix Version/s: 10.10-HF67, 2021.28
    • Component/s: Streams

      Description

      Some Work (or custom work) contains objects like Principal that requires a runtime to be initialized, this raises an exception on the stream.sh preventing to use the tool to investigate what kind of work in the queue:

      ./bin/stream.sh workCat -k -l default --codec avro
      ....
      default-04:+194,ListenerWork,org.nuxeo.ecm.core.event.impl.AsyncEventExecutor.ListenerWork,notificationListener,ListenerWork(Listener notificationListener [documentCreated/2fdd139f-5908-4369-9300-fa97dc2a7353]. Progress(?%. ?/0). null)
      default-04:+195,FulltextExtractorWork,org.nuxeo.ecm.core.storage.FulltextExtractorWork,fulltextExtractor,FulltextExtractorWork(2fdd139f-5908-4369-9300-fa97dc2a7353. . Progress(?%. ?/0). null)
      
      Exception in thread "main" java.lang.IllegalStateException: Runtime not initialized
      	at org.nuxeo.runtime.api.Framework.checkRuntimeInitialized(Framework.java:553)
      	at org.nuxeo.runtime.api.Framework.getService(Framework.java:239)
      	at org.nuxeo.ecm.platform.usermanager.NuxeoPrincipalImpl$TransferableClone$DataTransferObject.readResolve(NuxeoPrincipalImpl.java:480)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:1274)
      	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2196)
      	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1667)
      	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2405)
      	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2329)
      	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2187)
      	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1667)
      	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2405)
      	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2329)
      	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2187)
      	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1667)
      	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:503)
      	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:461)
      	at java.util.ArrayList.readObject(ArrayList.java:799)
      	at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1184)
      	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2296)
      	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2187)
      	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1667)
      	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2405)
      	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2329)
      	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2187)
      	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1667)
      	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2405)
      	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2329)
      	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2187)
      	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1667)
      	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2405)
      	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2329)
      	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2187)
      	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1667)
      	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:503)
      	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:461)
      	at org.nuxeo.lib.stream.tools.command.WorkCatCommand.deserialize(WorkCatCommand.java:106)
      	at org.nuxeo.lib.stream.tools.command.WorkCatCommand.workStat(WorkCatCommand.java:94)
      	at org.nuxeo.lib.stream.tools.command.WorkCatCommand.run(WorkCatCommand.java:78)
      	at org.nuxeo.lib.stream.tools.Main.runWithArgs(Main.java:87)
      	at org.nuxeo.lib.stream.tools.Main.run(Main.java:77)
      	at org.nuxeo.lib.stream.tools.Main.main(Main.java:64)
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: