Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 891196 Details for
Bug 1087504
JON fails to start autodetected EAP 5.3 (on Windows) with exception: incorrect command syntax, input line is too long
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Test class to reproduce issue
Main.java (text/x-java-source), 3.03 KB, created by
Thomas Segismont
on 2014-04-30 14:12:59 UTC
(
hide
)
Description:
Test class to reproduce issue
Filename:
MIME Type:
Creator:
Thomas Segismont
Created:
2014-04-30 14:12:59 UTC
Size:
3.03 KB
patch
obsolete
>package test; > >import java.io.*; >import java.util.concurrent.ExecutorService; >import java.util.concurrent.Executors; > >public class Main { > > public static void main(String[] args) throws Exception { > > ExecutorService executorService = Executors.newFixedThreadPool(3); > > String[] cmdline = new String[]{ > "C:\\Windows\\System32\\cmd.exe", > "/c", > "E:\\workspace\\eap5-jon-plugin-windows-test\\a28e18c8\\eap5unsecured\\jboss-eap-5.3\\jboss-as\\bin\\run.bat", > "-c", "default", "-b", "localhost"}; > String[] environment = new String[]{ > "JAVA_HOME=C:\\jdk1.7.0_55", > "JAVA=C:\\jdk1.7.0_55\\bin\\java", > "JAVAC_JAR=C:\\jdk1.7.0_55\\lib\\tools.jar", > "JBOSS_HOME=E:\\workspace\\eap5-jon-plugin-windows-test\\a28e18c8\\eap5unsecured\\jboss-eap-5.3\\jboss-as", > "JBOSS_LOG_DIR=E:\\workspace\\eap5-jon-plugin-windows-test\\a28e18c8\\eap5unsecured\\jboss-eap-5.3\\jboss-as\\server\\default\\log", > "OS=Windows_NT", > "PATH=C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0"}; >// String[] environment = new String[]{}; > File workingDir = new File( > "E:\\workspace\\eap5-jon-plugin-windows-test\\a28e18c8\\eap5unsecured\\jboss-eap-5.3\\jboss-as\\bin"); > > Process process = Runtime.getRuntime().exec(cmdline,environment, workingDir); > > final InputStream inputStream = process.getInputStream(); > final InputStream errorStream = process.getErrorStream(); > > executorService.submit(new Runnable() { > @Override > public void run() { > try (InputStreamReader inputStreamReader = new InputStreamReader(inputStream); > BufferedReader bufferedReader = new BufferedReader(inputStreamReader); > ) { > for (String line = bufferedReader.readLine(); line != null; line = bufferedReader.readLine()) { > System.out.println(line); > } > } catch (IOException e) { > e.printStackTrace(); > } > } > }); > > executorService.submit(new Runnable() { > @Override > public void run() { > try (InputStreamReader inputStreamReader = new InputStreamReader(errorStream); > BufferedReader bufferedReader = new BufferedReader(inputStreamReader); > ) { > for (String line = bufferedReader.readLine(); line != null; line = bufferedReader.readLine()) { > System.err.println(line); > } > } catch (IOException e) { > e.printStackTrace(); > } > } > }); > > int exitCode = process.waitFor(); > System.out.println("exitCode = " + exitCode); > > executorService.shutdownNow(); > } > >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1087504
: 891196