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

'nuxeoctl connect-report' fails when executed in a docker container or a VM (VirtualBox)

    XMLWordPrintable

    Details

      Description

      Command nuxeoctl connect-report executed in a docker containter running nuxeo:8.10 image, it fails:

      nuxeo@9360535c16de:/opt/nuxeo/server/bin$ ./nuxeoctl connect-report
      Detected Tomcat server.
      Nuxeo home:          /opt/nuxeo/server
      Nuxeo configuration: /opt/nuxeo/server/bin/nuxeo.conf
      Include template: /opt/nuxeo/server/templates/common-base
      Include template: /opt/nuxeo/server/templates/common
      Include template: /opt/nuxeo/server/templates/default
      Include template: /opt/nuxeo/server/templates/postgresql
      Include template: /opt/nuxeo/server/custom-templates/vdutat-sandbox-810
      Include template: /opt/nuxeo/server/custom-templates/login-portal-sso
      Include template: /opt/nuxeo/server/templates/drive
      Dumping connect report in /opt/nuxeo/server/tmp/nuxeo-connect-tools-report.json.gz
      Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/attach/VirtualMachine
      	at org.nuxeo.connect.tools.report.client.ReportConnector$Discovery$1.<init>(ReportConnector.java:109)
      	at org.nuxeo.connect.tools.report.client.ReportConnector$Discovery.iterator(ReportConnector.java:107)
      	at org.nuxeo.connect.tools.report.client.ReportConnector.connect(ReportConnector.java:253)
      	at org.nuxeo.connect.tools.report.client.ReportConnector.feed(ReportConnector.java:87)
      	at org.nuxeo.launcher.NuxeoLauncher.dumpConnectReport(NuxeoLauncher.java:3036)
      	at org.nuxeo.launcher.NuxeoLauncher.launch(NuxeoLauncher.java:1276)
      	at org.nuxeo.launcher.NuxeoLauncher.main(NuxeoLauncher.java:1103)
      	Suppressed: javax.json.stream.JsonGenerationException: Generating incomplete JSON
      		at org.glassfish.json.JsonGeneratorImpl.close(JsonGeneratorImpl.java:509)
      		at org.glassfish.json.JsonPrettyGeneratorImpl.close(JsonPrettyGeneratorImpl.java:53)
      		at org.nuxeo.launcher.NuxeoLauncher.dumpConnectReport(NuxeoLauncher.java:3038)
      		... 2 more
      Caused by: java.lang.ClassNotFoundException: com.sun.tools.attach.VirtualMachine
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      	... 7 more
      

      In a Nuxeo 8.10 VM launched by VirtualBox, it fails too:

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours
                  2h