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

nuxeoctl.bat fails to find nuxeo.conf

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.4
    • Fix Version/s: 5.4.1
    • Component/s: Dev Tools

      Description

      C:\Documents and Settings\julien carsique>C:\nuxeo-dm-5.4.1-tomcat\bin\nuxeoctl.bat
      Found in path : C:\WINDOWS\system32\java.exe
      Using JAVA = C:\WINDOWS\system32\java.exe
      The system cannot find the file specified.
      Found NUXEO_CONF = Migration Status
      Launcher command: "C:\WINDOWS\system32\java.exe" -Dlauncher.java.opts="-Xms512m -Xmx1024m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dfile.encoding=UTF-8" -Dnuxeo.home="C:\nuxeo-dm-5.4.1-tomcat" -Dnuxeo.conf="Migration Status" -jar "C:\nuxeo-dm-5.4.1-tomcat\bin\nuxeo-launcher.jar" gui
      Nuxeo home: C:\nuxeo-dm-5.4.1-tomcat
      Nuxeo configuration: Migration Status
      Missing Migration Status
      Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
      at org.nuxeo.launcher.NuxeoLauncher.getURL(NuxeoLauncher.java:1064)
      at org.nuxeo.launcher.gui.NuxeoFrame.buildSummaryPanel(NuxeoFrame.java:317)
      at org.nuxeo.launcher.gui.NuxeoFrame.buildTabbedPanel(NuxeoFrame.java:340)
      at org.nuxeo.launcher.gui.NuxeoFrame.<init>(NuxeoFrame.java:185)
      at org.nuxeo.launcher.gui.NuxeoLauncherGUI$1.run(NuxeoLauncherGUI.java:73)
      at java.awt.event.InvocationEvent.dispatch(Unknown Source)
      at java.awt.EventQueue.dispatchEvent(Unknown Source)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.run(Unknown Source)

      That issue happens with a ZIP distribution on a windows on which the exe installer was never used: there's no Nuxeo entry in the registry, neither a ProductName.txt file in NUXEO_HOME. In such an environment, NUXEO_CONF gets a crazy value from:
      set /p PRODNAME=<"%NUXEO_HOME%\bin\ProductName.txt"
      for /F "skip=2 tokens=2*" %%A in ('REG QUERY "HKEY_LOCAL_MACHINE\Software%PRODNAME%" /v ConfigFile 2^>nul') do set NUXEO_CONF=%%B
      if not "%NUXEO_CONF%" == "" goto FOUND_NUXEO_CONF
      for /F "skip=2 tokens=2*" %%A in ('REG QUERY "HKEY_LOCAL_MACHINE\Software\Wow6432Node%PRODNAME%" /v ConfigFile 2^>nul') do set NUXEO_CONF=%%B
      if not "%NUXEO_CONF%" == "" goto FOUND_NUXEO_CONF

        Attachments

          Activity

            People

            • Assignee:
              jcarsique Julien Carsique
              Reporter:
              jcarsique Julien Carsique
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: