You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Sean McNealy (JIRA)" <ji...@apache.org> on 2009/06/17 00:06:07 UTC
[jira] Created: (GERONIMO-4690) On Windows, offline deployer throws
IllegalArgumentException when not attached to a console
On Windows, offline deployer throws IllegalArgumentException when not attached to a console
-------------------------------------------------------------------------------------------
Key: GERONIMO-4690
URL: https://issues.apache.org/jira/browse/GERONIMO-4690
Project: Geronimo
Issue Type: Bug
Security Level: public (Regular issues)
Components: deployment
Affects Versions: 2.1.4
Environment: Windows
Reporter: Sean McNealy
On Windows, offline deployer throws IllegalArgumentException when not attached to a console.
The underlying JLine implementation for Windows has a bug where it will return a width of one (1) when there is no console.
By not attached to a console, I mean the output is piped to a program, piped to a file, or the process running the deployer is forked from the main process.
The exception is thrown from within geronimo-deploy-tool\src\main\java\org\apache\geronimo\deployment\cli\DeployUtils.java
Note that both reformat and println methods are effected by this problem.
Solutions include:
Expecting width=1 and doing the same thing as width=0 that works for *nix systems.
Having DeployUtils methods just output strings that aren't reformatted when width < 10.
Fixing JLine. I've already files bug 2807391 with their sourceforge project. If that bug is resolved including a new JLine would resolve this bug.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (GERONIMO-4690) On Windows, offline deployer throws
IllegalArgumentException when not attached to a console
Posted by "Jack Cai (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GERONIMO-4690?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jack Cai updated GERONIMO-4690:
-------------------------------
Attachment: GERONIMO-4690.patch
Solution 1 looks simple and quick to do. Created a patch according to this.
Fixing JLine would be the best solution ultimately.
> On Windows, offline deployer throws IllegalArgumentException when not attached to a console
> -------------------------------------------------------------------------------------------
>
> Key: GERONIMO-4690
> URL: https://issues.apache.org/jira/browse/GERONIMO-4690
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: deployment
> Affects Versions: 2.1.4
> Environment: Windows
> Reporter: Sean McNealy
> Attachments: GERONIMO-4690.patch
>
>
> On Windows, offline deployer throws IllegalArgumentException when not attached to a console.
> The underlying JLine implementation for Windows has a bug where it will return a width of one (1) when there is no console.
> By not attached to a console, I mean the output is piped to a program, piped to a file, or the process running the deployer is forked from the main process.
> The exception is thrown from within geronimo-deploy-tool\src\main\java\org\apache\geronimo\deployment\cli\DeployUtils.java
> Note that both reformat and println methods are effected by this problem.
> Solutions include:
> Expecting width=1 and doing the same thing as width=0 that works for *nix systems.
> Having DeployUtils methods just output strings that aren't reformatted when width < 10.
> Fixing JLine. I've already files bug 2807391 with their sourceforge project. If that bug is resolved including a new JLine would resolve this bug.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.