nuxeoctl.bat fails to find nuxeo.conf
-------------------------------------

                 Key: NXP-6583
                 URL: https://jira.nuxeo.com/browse/NXP-6583
             Project: Nuxeo Enterprise Platform
          Issue Type: Bug
          Components: Installers / Admin tools
    Affects Versions: 5.4
            Reporter: Julien Carsique
            Assignee: Julien Carsique
             Fix For: 5.4.1


    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


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.nuxeo.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to