Bug 1149971 - standalone.bat script does not parse JAVA_OPTS containing '|' symbol properly
Summary: standalone.bat script does not parse JAVA_OPTS containing '|' symbol properly
Keywords:
Status: CLOSED DUPLICATE of bug 1145185
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Scripts and Commands
Version: 6.1.1
Hardware: All
OS: Windows
medium
medium
Target Milestone: ---
: EAP 6.4.0
Assignee: Jay SenSharma
QA Contact: Petr Kremensky
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-07 04:50 UTC by Jay SenSharma
Modified: 2015-07-20 00:59 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-10-07 04:53:50 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker WFCORE-99 0 Major Resolved standalone.bat script does not parse JAVA_OPTS containing '|' symbol properly 2017-07-28 09:35:22 UTC

Description Jay SenSharma 2014-10-07 04:50:49 UTC
Description of problem:
=======================
*Scenario -1*
- With the following line of JAVA_OPTS in "standalone.bat.conf" file 
{code}
set "JAVA_OPTS=%JAVA_OPTS% -Dhttp.nonProxyHosts=localhost|127.0.0.1|10.10.10.*"
{code}


Error while starting jboss-eap
{code}
C:\jboss-eap-6.1.1\bin>standalone.bat
Calling "C:\jboss-eap-6.1.1\bin\standalone.conf.bat"
Setting JAVA property to "C:\JDKs\jdk1.7.0_67\bin\java"
'127.0.0.1' is not recognized as an internal or external command,
operable program or batch file.
{code}


*Scenario -2*
- In Windows  "^" sign is the escape character so we tried altering the JAVA_OPTS as following in the "standalone.bat.conf" file:

{code}
set "JAVA_OPTS=%JAVA_OPTS% -Dhttp.nonProxyHosts=localhost^|127.0.0.1^|10.10.10.*"
{code}

Now jboss-eap server starts but still we see the following messages in windows console:
{code}
C:\jboss-eap-6.1.1\bin>standalone.bat
Calling "C:\jboss-eap-6.1.1\bin\standalone.conf.bat"
Setting JAVA property to "C:\JDKs\jdk1.7.0_67\bin\java"
'127.0.0.1' is not recognized as an internal or external command,
operable program or batch file.
'127.0.0.1' is not recognized as an internal or external command,
operable program or batch file.
'127.0.0.1' is not recognized as an internal or external command,
operable program or batch file.
'127.0.0.1' is not recognized as an internal or external command,
operable program or batch file.
'127.0.0.1' is not recognized as an internal or external command,
operable program or batch file.
'127.0.0.1' is not recognized as an internal or external command,
operable program or batch file.
'127.0.0.1' is not recognized as an internal or external command,
operable program or batch file.
'127.0.0.1' is not recognized as an internal or external command,
operable program or batch file.
'127.0.0.1' is not recognized as an internal or external command,
operable program or batch file.
'127.0.0.1' is not recognized as an internal or external command,
operable program or batch file.
'127.0.0.1' is not recognized as an internal or external command,
operable program or batch file.
'127.0.0.1' is not recognized as an internal or external command,
operable program or batch file.
'127.0.0.1' is not recognized as an internal or external command,
operable program or batch file.
'127.0.0.1' is not recognized as an internal or external command,
operable program or batch file.
'127.0.0.1' is not recognized as an internal or external command,
operable program or batch file.
'127.0.0.1' is not recognized as an internal or external command,
operable program or batch file.
'127.0.0.1' is not recognized as an internal or external command,
operable program or batch file.
'127.0.0.1' is not recognized as an internal or external command,
operable program or batch file.
'127.0.0.1' is not recognized as an internal or external command,
operable program or batch file.
'127.0.0.1' is not recognized as an internal or external command,
operable program or batch file.
'127.0.0.1' is not recognized as an internal or external command,
operable program or batch file.
'127.0.0.1' is not recognized as an internal or external command,
operable program or batch file.
'127.0.0.1' is not recognized as an internal or external command,
operable program or batch file.
'127.0.0.1' is not recognized as an internal or external command,
operable program or batch file.
{code}


Version-Release number of selected component (if applicable):
How reproducible:
=================
Steps to Reproduce:
1.  Edit the "jboss-eap-6.1.1\bin\standalone.conf.bat" by adding the following line of entry in it:
{code}
set "JAVA_OPTS=%JAVA_OPTS% -Dhttp.nonProxyHosts=localhost|127.0.0.1|10.10.10.*"
{code}

OR

{code}
set "JAVA_OPTS=%JAVA_OPTS% -Dhttp.nonProxyHosts=localhost^|127.0.0.1^|10.10.10.*"
{code}

2. Restart jboss-eap and notice the error messages in the Windows Console.


Actual results:
===============
- Unexpected messaes like following appears during eap start:

'127.0.0.1' is not recognized as an internal or external command,
operable program or batch file.


Expected results:
===============
- EAP should have started cleanly without the mentioned messages.


Additional info:
===============
- Issue is specific to Windows Environment.

Comment 1 Jay SenSharma 2014-10-07 04:53:50 UTC

*** This bug has been marked as a duplicate of bug 1145185 ***

Comment 2 JBoss JIRA Server 2014-11-07 14:03:41 UTC
Tomaz Cerar <tomaz.cerar> updated the status of jira WFCORE-99 to Resolved


Note You need to log in before you can comment on or make changes to this bug.