You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by "Rupert Westenthaler (Created) (JIRA)" <ji...@apache.org> on 2012/04/03 13:18:24 UTC

[jira] [Created] (STANBOL-569) Integration Tests not working if executed in a {path} that requires escaping (e.g. includes a ' ')

Integration Tests not working if executed in a {path} that requires escaping (e.g. includes a ' ')
--------------------------------------------------------------------------------------------------

                 Key: STANBOL-569
                 URL: https://issues.apache.org/jira/browse/STANBOL-569
             Project: Stanbol
          Issue Type: Bug
          Components: Testing
            Reporter: Rupert Westenthaler
            Priority: Minor


The integration-tests use "org.apache.stanbol.commons.testing.jarexec.JarExecutor" to start the Stanbol Full launcher in an own JVM. This instance is than used to test the RESTful interface of Apache Stanbol

The JarExecutor uses Apache Commons Exec to build and execute the command required to start the Stanbol Full launcher. if the path to the JAR file contains an char that need to be escaped, than Commons Exec automatically quotes it. In principle this is perfectly OK however the "java" executable does not interpret quotation marks. Because of that is directly evaluates the parsed path including the quotes. This results in the following log messages

Unable to access jarfile "/Users/ale/Documents/text mining/stanbol/stanbol/stanbol/integration-tests/target/dependency/org.apache.stanbol.launchers.full-0.9.0-incubating-SNAPSHOT.jar"
867 [Thread-1] ERROR org.apache.stanbol.commons.testing.jarexec.JarExecutor - Process execution failed:org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
	at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377)
	at org.apache.commons.exec.DefaultExecutor.access$200(DefaultExecutor.java:46)
	at org.apache.commons.exec.DefaultExecutor$1.run(DefaultExecutor.java:188)

Note the "text mining" folder.

Workaround:
==========

Do not use paths that include spaces and/or quotes to checkout/compile/test Apache Stanbol.

More information can be found in this Mail: http://markmail.org/message/xbcseasols7ae2mc

--
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