You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Guangyu Cui (Created) (JIRA)" <ji...@apache.org> on 2012/01/10 09:50:38 UTC
[jira] [Created] (KARAF-1143) Karaf (Config Mbean) can not
recognize the features when Karaf installation path containing blank space
Karaf (Config Mbean) can not recognize the features when Karaf installation path containing blank space
-------------------------------------------------------------------------------------------------------
Key: KARAF-1143
URL: https://issues.apache.org/jira/browse/KARAF-1143
Project: Karaf
Issue Type: Bug
Components: karaf-core
Affects Versions: 2.2.5, 2.2.4
Environment: Windows 7 platform
Reporter: Guangyu Cui
Install Karaf into a directory with blank space in windows platform, such as: D:\manual test\apache-karaf-2.2.5, then start Karaf console by typing bin/karaf.bat.
After Karaf start, run some scripts using the following command: source scripts/configureC0.sh, Karaf thrown an exception:
"Error executing command: D:\manual%20test\apache-karaf-2.2.5\etc\org.apache.karaf.management.cfg (System can not Found the specified path)"
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (KARAF-1143) Karaf (Config Mbean) can not
recognize the features when Karaf installation path containing blank space
Posted by "Jean-Baptiste Onofré (Commented JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KARAF-1143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13227233#comment-13227233 ]
Jean-Baptiste Onofré commented on KARAF-1143:
---------------------------------------------
I tested on Ubuntu and Fedora without problem.
Karaf is installed in a patch containing space and braces. I don't have error performing the script and the etc file is correctly updated.
I will reproduce it on a Windows VM.
> Karaf (Config Mbean) can not recognize the features when Karaf installation path containing blank space
> -------------------------------------------------------------------------------------------------------
>
> Key: KARAF-1143
> URL: https://issues.apache.org/jira/browse/KARAF-1143
> Project: Karaf
> Issue Type: Bug
> Components: karaf-core
> Affects Versions: 2.2.4, 2.2.5
> Environment: Windows 7 platform
> Reporter: Guangyu Cui
> Assignee: Jean-Baptiste Onofré
> Fix For: 2.2.6, 3.0.0
>
>
> Install Karaf into a directory with blank space in windows platform, such as: D:\manual test\apache-karaf-2.2.5, then start Karaf console by typing bin/karaf.bat.
> After Karaf start, run some scripts using the following command: source scripts/configureC0.sh, Karaf thrown an exception:
> "Error executing command: D:\manual%20test\apache-karaf-2.2.5\etc\org.apache.karaf.management.cfg (System can not Found the specified path)"
> Note: The content of scripts file: D:\manual test\apache-karaf-2.2.5\scripts\configureC0.sh:
> echo "################################ START #############################################"
> echo "JMX Management configuration (etc/org.apache.karaf.management.cfg)"
> config:edit --force org.apache.karaf.management
> echo "rmiRegistryPort = 1100"
> config:propset rmiRegistryPort 1100
> echo "rmiServerPort = 44445"
> config:propset rmiServerPort 44445
> config:update
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (KARAF-1143) Karaf (Config Mbean) can not
recognize the features when Karaf installation path containing blank space
Posted by "Jean-Baptiste Onofré (Resolved JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KARAF-1143?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jean-Baptiste Onofré resolved KARAF-1143.
-----------------------------------------
Resolution: Fixed
> Karaf (Config Mbean) can not recognize the features when Karaf installation path containing blank space
> -------------------------------------------------------------------------------------------------------
>
> Key: KARAF-1143
> URL: https://issues.apache.org/jira/browse/KARAF-1143
> Project: Karaf
> Issue Type: Bug
> Components: karaf-core
> Affects Versions: 2.2.4, 2.2.5
> Environment: Windows 7 platform
> Reporter: Guangyu Cui
> Assignee: Jean-Baptiste Onofré
> Fix For: 2.2.6, 3.0.0
>
>
> Install Karaf into a directory with blank space in windows platform, such as: D:\manual test\apache-karaf-2.2.5, then start Karaf console by typing bin/karaf.bat.
> After Karaf start, run some scripts using the following command: source scripts/configureC0.sh, Karaf thrown an exception:
> "Error executing command: D:\manual%20test\apache-karaf-2.2.5\etc\org.apache.karaf.management.cfg (System can not Found the specified path)"
> Note: The content of scripts file: D:\manual test\apache-karaf-2.2.5\scripts\configureC0.sh:
> echo "################################ START #############################################"
> echo "JMX Management configuration (etc/org.apache.karaf.management.cfg)"
> config:edit --force org.apache.karaf.management
> echo "rmiRegistryPort = 1100"
> config:propset rmiRegistryPort 1100
> echo "rmiServerPort = 44445"
> config:propset rmiServerPort 44445
> config:update
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (KARAF-1143) Karaf (Config Mbean) can not
recognize the features when Karaf installation path containing blank space
Posted by "Guangyu Cui (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KARAF-1143?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Guangyu Cui updated KARAF-1143:
-------------------------------
Description:
Install Karaf into a directory with blank space in windows platform, such as: D:\manual test\apache-karaf-2.2.5, then start Karaf console by typing bin/karaf.bat.
After Karaf start, run some scripts using the following command: source scripts/configureC0.sh, Karaf thrown an exception:
"Error executing command: D:\manual%20test\apache-karaf-2.2.5\etc\org.apache.karaf.management.cfg (System can not Found the specified path)"
Note: The content of scripts file: D:\manual test\apache-karaf-2.2.5\scripts\configureC0.sh:
echo "################################ START #############################################"
echo "JMX Management configuration (etc/org.apache.karaf.management.cfg)"
config:edit --force org.apache.karaf.management
echo "rmiRegistryPort = 1100"
config:propset rmiRegistryPort 1100
echo "rmiServerPort = 44445"
config:propset rmiServerPort 44445
config:update
was:
Install Karaf into a directory with blank space in windows platform, such as: D:\manual test\apache-karaf-2.2.5, then start Karaf console by typing bin/karaf.bat.
After Karaf start, run some scripts using the following command: source scripts/configureC0.sh, Karaf thrown an exception:
"Error executing command: D:\manual%20test\apache-karaf-2.2.5\etc\org.apache.karaf.management.cfg (System can not Found the specified path)"
> Karaf (Config Mbean) can not recognize the features when Karaf installation path containing blank space
> -------------------------------------------------------------------------------------------------------
>
> Key: KARAF-1143
> URL: https://issues.apache.org/jira/browse/KARAF-1143
> Project: Karaf
> Issue Type: Bug
> Components: karaf-core
> Affects Versions: 2.2.4, 2.2.5
> Environment: Windows 7 platform
> Reporter: Guangyu Cui
>
> Install Karaf into a directory with blank space in windows platform, such as: D:\manual test\apache-karaf-2.2.5, then start Karaf console by typing bin/karaf.bat.
> After Karaf start, run some scripts using the following command: source scripts/configureC0.sh, Karaf thrown an exception:
> "Error executing command: D:\manual%20test\apache-karaf-2.2.5\etc\org.apache.karaf.management.cfg (System can not Found the specified path)"
> Note: The content of scripts file: D:\manual test\apache-karaf-2.2.5\scripts\configureC0.sh:
> echo "################################ START #############################################"
> echo "JMX Management configuration (etc/org.apache.karaf.management.cfg)"
> config:edit --force org.apache.karaf.management
> echo "rmiRegistryPort = 1100"
> config:propset rmiRegistryPort 1100
> echo "rmiServerPort = 44445"
> config:propset rmiServerPort 44445
> config:update
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (KARAF-1143) Karaf (Config Mbean) can not
recognize the features when Karaf installation path containing blank space
Posted by "Jean-Baptiste Onofré (Commented JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KARAF-1143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13230265#comment-13230265 ]
Jean-Baptiste Onofré commented on KARAF-1143:
---------------------------------------------
I replace the "old" string handling by an URL/URI handling. Like this, special "characters" (like space) are handled.
Test in progress, I will commit soon.
> Karaf (Config Mbean) can not recognize the features when Karaf installation path containing blank space
> -------------------------------------------------------------------------------------------------------
>
> Key: KARAF-1143
> URL: https://issues.apache.org/jira/browse/KARAF-1143
> Project: Karaf
> Issue Type: Bug
> Components: karaf-core
> Affects Versions: 2.2.4, 2.2.5
> Environment: Windows 7 platform
> Reporter: Guangyu Cui
> Assignee: Jean-Baptiste Onofré
> Fix For: 2.2.6, 3.0.0
>
>
> Install Karaf into a directory with blank space in windows platform, such as: D:\manual test\apache-karaf-2.2.5, then start Karaf console by typing bin/karaf.bat.
> After Karaf start, run some scripts using the following command: source scripts/configureC0.sh, Karaf thrown an exception:
> "Error executing command: D:\manual%20test\apache-karaf-2.2.5\etc\org.apache.karaf.management.cfg (System can not Found the specified path)"
> Note: The content of scripts file: D:\manual test\apache-karaf-2.2.5\scripts\configureC0.sh:
> echo "################################ START #############################################"
> echo "JMX Management configuration (etc/org.apache.karaf.management.cfg)"
> config:edit --force org.apache.karaf.management
> echo "rmiRegistryPort = 1100"
> config:propset rmiRegistryPort 1100
> echo "rmiServerPort = 44445"
> config:propset rmiServerPort 44445
> config:update
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (KARAF-1143) Karaf (Config Mbean) can not
recognize the features when Karaf installation path containing blank space
Posted by "Jean-Baptiste Onofré (Commented JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KARAF-1143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13230225#comment-13230225 ]
Jean-Baptiste Onofré commented on KARAF-1143:
---------------------------------------------
It's the same behavior for the ConfigMBean (as it uses the same code as the ConfigCommandSupport).
> Karaf (Config Mbean) can not recognize the features when Karaf installation path containing blank space
> -------------------------------------------------------------------------------------------------------
>
> Key: KARAF-1143
> URL: https://issues.apache.org/jira/browse/KARAF-1143
> Project: Karaf
> Issue Type: Bug
> Components: karaf-core
> Affects Versions: 2.2.4, 2.2.5
> Environment: Windows 7 platform
> Reporter: Guangyu Cui
> Assignee: Jean-Baptiste Onofré
> Fix For: 2.2.6, 3.0.0
>
>
> Install Karaf into a directory with blank space in windows platform, such as: D:\manual test\apache-karaf-2.2.5, then start Karaf console by typing bin/karaf.bat.
> After Karaf start, run some scripts using the following command: source scripts/configureC0.sh, Karaf thrown an exception:
> "Error executing command: D:\manual%20test\apache-karaf-2.2.5\etc\org.apache.karaf.management.cfg (System can not Found the specified path)"
> Note: The content of scripts file: D:\manual test\apache-karaf-2.2.5\scripts\configureC0.sh:
> echo "################################ START #############################################"
> echo "JMX Management configuration (etc/org.apache.karaf.management.cfg)"
> config:edit --force org.apache.karaf.management
> echo "rmiRegistryPort = 1100"
> config:propset rmiRegistryPort 1100
> echo "rmiServerPort = 44445"
> config:propset rmiServerPort 44445
> config:update
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (KARAF-1143) Karaf (Config Mbean) can not
recognize the features when Karaf installation path containing blank space
Posted by "Jean-Baptiste Onofré (Commented JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KARAF-1143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13230168#comment-13230168 ]
Jean-Baptiste Onofré commented on KARAF-1143:
---------------------------------------------
I confirm it fails on a Windows VM on:
at java.io.FileOutputStream.open
at org.apache.karaf.util.Properties.save(Properties.java:111)
at org.apache.karaf.util.Properties.save(Properties.java:107)
at ConfigCommandSupport.persistConfiguration(ConfigCommandSupport.java:179)
> Karaf (Config Mbean) can not recognize the features when Karaf installation path containing blank space
> -------------------------------------------------------------------------------------------------------
>
> Key: KARAF-1143
> URL: https://issues.apache.org/jira/browse/KARAF-1143
> Project: Karaf
> Issue Type: Bug
> Components: karaf-core
> Affects Versions: 2.2.4, 2.2.5
> Environment: Windows 7 platform
> Reporter: Guangyu Cui
> Assignee: Jean-Baptiste Onofré
> Fix For: 2.2.6, 3.0.0
>
>
> Install Karaf into a directory with blank space in windows platform, such as: D:\manual test\apache-karaf-2.2.5, then start Karaf console by typing bin/karaf.bat.
> After Karaf start, run some scripts using the following command: source scripts/configureC0.sh, Karaf thrown an exception:
> "Error executing command: D:\manual%20test\apache-karaf-2.2.5\etc\org.apache.karaf.management.cfg (System can not Found the specified path)"
> Note: The content of scripts file: D:\manual test\apache-karaf-2.2.5\scripts\configureC0.sh:
> echo "################################ START #############################################"
> echo "JMX Management configuration (etc/org.apache.karaf.management.cfg)"
> config:edit --force org.apache.karaf.management
> echo "rmiRegistryPort = 1100"
> config:propset rmiRegistryPort 1100
> echo "rmiServerPort = 44445"
> config:propset rmiServerPort 44445
> config:update
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (KARAF-1143) Karaf (Config Mbean) can not
recognize the features when Karaf installation path containing blank space
Posted by "Jean-Baptiste Onofré (Assigned JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KARAF-1143?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jean-Baptiste Onofré reassigned KARAF-1143:
-------------------------------------------
Assignee: Jean-Baptiste Onofré
> Karaf (Config Mbean) can not recognize the features when Karaf installation path containing blank space
> -------------------------------------------------------------------------------------------------------
>
> Key: KARAF-1143
> URL: https://issues.apache.org/jira/browse/KARAF-1143
> Project: Karaf
> Issue Type: Bug
> Components: karaf-core
> Affects Versions: 2.2.4, 2.2.5
> Environment: Windows 7 platform
> Reporter: Guangyu Cui
> Assignee: Jean-Baptiste Onofré
>
> Install Karaf into a directory with blank space in windows platform, such as: D:\manual test\apache-karaf-2.2.5, then start Karaf console by typing bin/karaf.bat.
> After Karaf start, run some scripts using the following command: source scripts/configureC0.sh, Karaf thrown an exception:
> "Error executing command: D:\manual%20test\apache-karaf-2.2.5\etc\org.apache.karaf.management.cfg (System can not Found the specified path)"
> Note: The content of scripts file: D:\manual test\apache-karaf-2.2.5\scripts\configureC0.sh:
> echo "################################ START #############################################"
> echo "JMX Management configuration (etc/org.apache.karaf.management.cfg)"
> config:edit --force org.apache.karaf.management
> echo "rmiRegistryPort = 1100"
> config:propset rmiRegistryPort 1100
> echo "rmiServerPort = 44445"
> config:propset rmiServerPort 44445
> config:update
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Work started] (KARAF-1143) Karaf (Config Mbean) can not
recognize the features when Karaf installation path containing blank space
Posted by "Jean-Baptiste Onofré (Work started JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KARAF-1143?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on KARAF-1143 started by Jean-Baptiste Onofré.
> Karaf (Config Mbean) can not recognize the features when Karaf installation path containing blank space
> -------------------------------------------------------------------------------------------------------
>
> Key: KARAF-1143
> URL: https://issues.apache.org/jira/browse/KARAF-1143
> Project: Karaf
> Issue Type: Bug
> Components: karaf-core
> Affects Versions: 2.2.4, 2.2.5
> Environment: Windows 7 platform
> Reporter: Guangyu Cui
> Assignee: Jean-Baptiste Onofré
> Fix For: 2.2.6, 3.0.0
>
>
> Install Karaf into a directory with blank space in windows platform, such as: D:\manual test\apache-karaf-2.2.5, then start Karaf console by typing bin/karaf.bat.
> After Karaf start, run some scripts using the following command: source scripts/configureC0.sh, Karaf thrown an exception:
> "Error executing command: D:\manual%20test\apache-karaf-2.2.5\etc\org.apache.karaf.management.cfg (System can not Found the specified path)"
> Note: The content of scripts file: D:\manual test\apache-karaf-2.2.5\scripts\configureC0.sh:
> echo "################################ START #############################################"
> echo "JMX Management configuration (etc/org.apache.karaf.management.cfg)"
> config:edit --force org.apache.karaf.management
> echo "rmiRegistryPort = 1100"
> config:propset rmiRegistryPort 1100
> echo "rmiServerPort = 44445"
> config:propset rmiServerPort 44445
> config:update
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (KARAF-1143) Karaf (Config Mbean) can not
recognize the features when Karaf installation path containing blank space
Posted by "Jean-Baptiste Onofré (Updated JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KARAF-1143?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jean-Baptiste Onofré updated KARAF-1143:
----------------------------------------
Fix Version/s: 3.0.0
2.2.6
> Karaf (Config Mbean) can not recognize the features when Karaf installation path containing blank space
> -------------------------------------------------------------------------------------------------------
>
> Key: KARAF-1143
> URL: https://issues.apache.org/jira/browse/KARAF-1143
> Project: Karaf
> Issue Type: Bug
> Components: karaf-core
> Affects Versions: 2.2.4, 2.2.5
> Environment: Windows 7 platform
> Reporter: Guangyu Cui
> Assignee: Jean-Baptiste Onofré
> Fix For: 2.2.6, 3.0.0
>
>
> Install Karaf into a directory with blank space in windows platform, such as: D:\manual test\apache-karaf-2.2.5, then start Karaf console by typing bin/karaf.bat.
> After Karaf start, run some scripts using the following command: source scripts/configureC0.sh, Karaf thrown an exception:
> "Error executing command: D:\manual%20test\apache-karaf-2.2.5\etc\org.apache.karaf.management.cfg (System can not Found the specified path)"
> Note: The content of scripts file: D:\manual test\apache-karaf-2.2.5\scripts\configureC0.sh:
> echo "################################ START #############################################"
> echo "JMX Management configuration (etc/org.apache.karaf.management.cfg)"
> config:edit --force org.apache.karaf.management
> echo "rmiRegistryPort = 1100"
> config:propset rmiRegistryPort 1100
> echo "rmiServerPort = 44445"
> config:propset rmiServerPort 44445
> config:update
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Closed] (KARAF-1143) Karaf (Config Mbean) can not recognize
the features when Karaf installation path containing blank space
Posted by "Jamie goodyear (Closed) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KARAF-1143?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jamie goodyear closed KARAF-1143.
---------------------------------
> Karaf (Config Mbean) can not recognize the features when Karaf installation path containing blank space
> -------------------------------------------------------------------------------------------------------
>
> Key: KARAF-1143
> URL: https://issues.apache.org/jira/browse/KARAF-1143
> Project: Karaf
> Issue Type: Bug
> Components: karaf-core
> Affects Versions: 2.2.4, 2.2.5
> Environment: Windows 7 platform
> Reporter: Guangyu Cui
> Assignee: Jean-Baptiste Onofré
> Fix For: 2.2.6, 3.0.0
>
>
> Install Karaf into a directory with blank space in windows platform, such as: D:\manual test\apache-karaf-2.2.5, then start Karaf console by typing bin/karaf.bat.
> After Karaf start, run some scripts using the following command: source scripts/configureC0.sh, Karaf thrown an exception:
> "Error executing command: D:\manual%20test\apache-karaf-2.2.5\etc\org.apache.karaf.management.cfg (System can not Found the specified path)"
> Note: The content of scripts file: D:\manual test\apache-karaf-2.2.5\scripts\configureC0.sh:
> echo "################################ START #############################################"
> echo "JMX Management configuration (etc/org.apache.karaf.management.cfg)"
> config:edit --force org.apache.karaf.management
> echo "rmiRegistryPort = 1100"
> config:propset rmiRegistryPort 1100
> echo "rmiServerPort = 44445"
> config:propset rmiServerPort 44445
> config:update
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira