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

Fix generation of paths in dev.bundles file in multiple bundles environment

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 9.10
    • Fix Version/s: 9.10-HF02, 10.1
    • Component/s: Runtime
    • Release Notes Summary:
      Nuxeo CLI works with multiple bundles environment
    • Backlog priority:
      500
    • Sprint:
      nxcore 10.1.4
    • Story Points:
      2

      Description

      Running nuxeo hotreload after having configured 2 bundles for hotreload, it generates a dev.bundles file like

      bundle:/opt/nuxeo-server-9.10-tomcat-sdk/nxserver/dev-bundles/hotreload-bundle-1516842407094.jarbundle:/opt/nuxeo-server-9.10-tomcat-sdk/nxserver/dev-bundles/hotreload-bundle-1516842407193.jar## GENERATOR-NUXEO STUFF - DO NOT EDIT
      bundle:/opt/projects/workflow_code/workflow-code-core/target/classes
      bundle:/opt/projects/workflow_code/workflow-code-api/target/classes
      ## GENERATOR-NUXEO STUFF - END
      

      And then this error is thrown server side :

      Caused by: java.io.FileNotFoundException: /opt/nuxeo-server-9.10-tomcat-sdk/nxserver/dev-bundles/hotreload-bundle-1516842407094.jarbundle:/opt/nuxeo-server-9.10-tomcat-sdk/nxserver/dev-bundles/hotreload-bundle-1516842407193.jar## GENERATOR-NUXEO STUFF - DO NOT EDIT (No such file or directory)
      	at java.util.zip.ZipFile.open(Native Method)
      	at java.util.zip.ZipFile.<init>(ZipFile.java:225)
      	at java.util.zip.ZipFile.<init>(ZipFile.java:155)
      	at java.util.jar.JarFile.<init>(JarFile.java:166)
      	at java.util.jar.JarFile.<init>(JarFile.java:130)
      	at org.nuxeo.osgi.JarBundleFile.<init>(JarBundleFile.java:57)
      	at org.nuxeo.osgi.OSGiBundleContext.installBundle(OSGiBundleContext.java:134)
      	... 14 more
      

      Some new lines are missing

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours
                4h