Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-20510

org.jboss.tools.jmx.local.ProcessInformationStore doesn't handle spaces in the java.home path

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • 4.3.0.CR1
    • 4.3.0.Beta2
    • jmx
    • Hide

      Run eclipse in command line mode so you can see the error output (eclipsec), right-click on a JBoss server, observe the above stack trace.

      Show
      Run eclipse in command line mode so you can see the error output (eclipsec), right-click on a JBoss server, observe the above stack trace.

    Description

      org.jboss.tools.jmx.local.ProcessInformationStore.loadProcessStore:97 should either use the Runtime.getRuntime().exec(String[]) method to deal with Java installation locations containing spaces.

      In my case the java.home system property points to "C:\Program Files\Java\jdk1.8.0_51", which I think would be pretty normal on Windows.

      java.io.IOException: Cannot run program "C:\Program": CreateProcess error=2, The system cannot find the file specified
              at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
              at java.lang.Runtime.exec(Runtime.java:620)
              at java.lang.Runtime.exec(Runtime.java:450)
              at java.lang.Runtime.exec(Runtime.java:347)
              at org.jboss.tools.jmx.local.ProcessInformationStore.loadProcessStore(ProcessInformationStore.java:97)
              at org.jboss.tools.jmx.local.ProcessInformationStore.refreshProcessInformationStore(ProcessInformationStore.java:64)
              at org.jboss.tools.jmx.local.ProcessInformationStore$1.run(ProcessInformationStore.java:135)
              at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
      Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
              at java.lang.ProcessImpl.create(Native Method)
              at java.lang.ProcessImpl.<init>(ProcessImpl.java:386)
              at java.lang.ProcessImpl.start(ProcessImpl.java:137)
              at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
              ... 7 more
      

      I'm note sure what the impact is - I don't necessarily notice anything not working.

      Attachments

        Issue Links

          Activity

            People

              rob.stryker Rob Stryker (Inactive)
              daniel_atallah Daniel Atallah (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: