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

Fix error at server startup when using MongoDB on Windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 9.2-SNAPSHOT
    • Fix Version/s: 9.2
    • Component/s: Core MongoDB

      Description

      When trying to start a 9.2-SNAPSHOT server on Windows using MongoDB and Redis, I get this error and the server doesn't start:

      Found NUXEO_CONF = C:\nuxeo-server-tomcat-9.2-SNAPSHOT\bin\nuxeo.conf
      Found JAVA_HOME = C:\Program Files\Java\jdk1.8.0_91
      Using JAVA = C:\Program Files\Java\jdk1.8.0_91\bin\java.exe
              1 fichier(s) copiƩ(s).
      C:\nuxeo-server-tomcat-9.2-SNAPSHOT>"C:\Program Files\Java\jdk1.8.0_91\bin\java.exe"  "-Xbootclasspath/a:C:\Program Files\Java\jdk1.8.0_91\lib\tools.jar" -Dlauncher.java.opts=" -Xms512m -Xmx1024m  -Dfile.encoding=UTF-8 -Dmail.mime.decodeparameters=true  -Dnet.sf.ehcache.skipUpdateCheck=true  -Djava.util.Arrays.useLegacyMergeSort=true  -Xloggc:${nuxeo.log.dir}/gc.log -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps" -Dnuxeo.home="C:\nuxeo-server-tomcat-9.2-SNAPSHOT" -Dnuxeo.conf="C:\nuxeo-server-tomcat-9.2-SNAPSHOT\bin\nuxeo.conf" -Dnuxeo.log.dir="C:\nuxeo-server-tomcat-9.2-SNAPSHOT\log" -Dlog.id="-26062017_15553757" -jar "C:\Users\nuxeo\AppData\Local\Temp\nuxeo-launcher-13342.jar" start
      Detected Tomcat server.
      Nuxeo home:          C:\nuxeo-server-tomcat-9.2-SNAPSHOT
      Nuxeo configuration: C:\nuxeo-server-tomcat-9.2-SNAPSHOT\bin\nuxeo.conf
      Include template: C:\nuxeo-server-tomcat-9.2-SNAPSHOT\templates\common-base
      Include template: C:\nuxeo-server-tomcat-9.2-SNAPSHOT\templates\common
      Include template: C:\nuxeo-server-tomcat-9.2-SNAPSHOT\templates\default
      Include template: C:\nuxeo-server-tomcat-9.2-SNAPSHOT\templates\sql
      Include template: C:\nuxeo-server-tomcat-9.2-SNAPSHOT\templates\mongodb
      No current configuration, generating files...
      Configuration files generated.
      Exception in thread "NuxeoLauncherGUITask-7" java.lang.StringIndexOutOfBoundsException: String index out of range: -1
              at java.lang.String.substring(String.java:1967)
              at org.nuxeo.launcher.config.BackingServiceConfigurator.getJarsFromClasspathEntry(BackingServiceConfigurator.java:229)
              at org.nuxeo.launcher.config.BackingServiceConfigurator.getClassLoaderForTemplate(BackingServiceConfigurator.java:190)
              at org.nuxeo.launcher.config.BackingServiceConfigurator.getCheckers(BackingServiceConfigurator.java:141)
              at org.nuxeo.launcher.config.BackingServiceConfigurator.verifyInstallation(BackingServiceConfigurator.java:94)
              at org.nuxeo.launcher.config.ConfigurationGenerator.verifyInstallation(ConfigurationGenerator.java:1267)
              at org.nuxeo.launcher.NuxeoLauncher.doStart(NuxeoLauncher.java:2083)
              at org.nuxeo.launcher.NuxeoLauncher.doStartAndWait(NuxeoLauncher.java:1954)
              at org.nuxeo.launcher.NuxeoLauncher.doStartAndWait(NuxeoLauncher.java:1913)
              at org.nuxeo.launcher.gui.NuxeoLauncherGUI$5.run(NuxeoLauncherGUI.java:272)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
              at java.lang.Thread.run(Thread.java:745)
      Include template: C:\nuxeo-server-tomcat-9.2-SNAPSHOT\templates\common-base
      Include template: C:\nuxeo-server-tomcat-9.2-SNAPSHOT\templates\common
      Include template: C:\nuxeo-server-tomcat-9.2-SNAPSHOT\templates\default
      Include template: C:\nuxeo-server-tomcat-9.2-SNAPSHOT\templates\sql
      Include template: C:\nuxeo-server-tomcat-9.2-SNAPSHOT\templates\mongodb
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 3 hours
                3h