Bug 1145185 - [GSS](6.4.z) standalone.bat script does not parse JAVA_OPTS containing '|' symbol properly
Summary: [GSS](6.4.z) standalone.bat script does not parse JAVA_OPTS containing '|' sy...
Keywords:
Status: CLOSED WORKSFORME
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: Radovan STANCEL
QA Contact: Marek Kopecky
Russell Dickenson
URL:
Whiteboard:
: 1149971 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-22 13:51 UTC by Jay SenSharma
Modified: 2018-12-06 18:03 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-08-07 09:14:06 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker JBEAP-12442 0 Major Closed [GSS](7.0.z) standalone.bat script does not parse JAVA_OPTS containing '|' symbol properly 2017-12-13 07:13:37 UTC
Red Hat Issue Tracker JBEAP-12448 0 Major Pull Request Sent [GSS](7.1.z) standalone.bat script does not parse JAVA_OPTS containing '|' symbol properly 2017-12-13 07:13:37 UTC
Red Hat Issue Tracker WFCORE-3127 0 Major Pull Request Sent standalone.bat script does not parse JAVA_OPTS containing '|' symbol properly 2017-12-13 07:13:37 UTC
Red Hat Issue Tracker WFCORE-99 0 Major Resolved standalone.bat script does not parse JAVA_OPTS containing '|' symbol properly 2017-12-13 07:13:37 UTC

Description Jay SenSharma 2014-09-22 13:51:21 UTC
Description of problem:
======================
Scenario-1)
============ With the following line of JAVA_OPTS in "standalone.bat.conf" file

set "JAVA_OPTS=%JAVA_OPTS% -Dhttp.nonProxyHosts=localhost|127.0.0.1|10.10.10.*"

{code}
Error while starting EAP 6.1.1
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:

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

Now EAP 6.1.1 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.
{code}



Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
===================
1. Edit the "C:\jboss-eap-6.1.1\bin\standalone.conf.bat" by adding the following line of entry in it:

   set "JAVA_OPTS=%JAVA_OPTS% -Dhttp.nonProxyHosts=localhost|127.0.0.1|10.10.10.*"

OR

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

2  Restart WildFly and notice the error messages in the Windows Console.



Actual results:
================
Error occurs while starting EAP6 as following:
{code}
'127.0.0.1' is not recognized as an internal or external command,
operable program or batch file.
{code}


Expected results:
================
- EAP6 should have started cleanly without those messages.


Additional info:
================
- Issue occurs on Windows OS using standalone.bat script.

Comment 2 Jay SenSharma 2014-10-07 04:53:50 UTC
*** Bug 1149971 has been marked as a duplicate of this bug. ***

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

Comment 8 Radovan STANCEL 2017-07-31 15:37:38 UTC
PR: https://github.com/jbossas/jboss-eap/pull/3043


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