You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Edell Nolan (JIRA)" <ji...@apache.org> on 2009/02/13 16:10:00 UTC

[jira] Created: (GSHELL-159) NegativeArraySizeException is thrown when using just the Shell Impementation when running tests.

NegativeArraySizeException is thrown when using just the Shell Impementation when running tests.
------------------------------------------------------------------------------------------------

                 Key: GSHELL-159
                 URL: https://issues.apache.org/jira/browse/GSHELL-159
             Project: GShell
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: Wisdom
    Affects Versions: 1.0-alpha-2
            Reporter: Edell Nolan
            Assignee: Jason Dillon


If just using the shell implementation when running tests - a real teminal may not be created
and as a result the teminalWidth results in a negative value. 

Example: Is using the servicemix kernel gshell itests

[localShell] ERROR org.apache.servicemix.kernel.gshell.core.LocalConsole - Exiti
ng shell due to caught exception java.lang.NegativeArraySizeException
java.lang.NegativeArraySizeException
at java.lang.AbstractStringBuilder.<init>(AbstractStringBuilder.java:44)
at java.lang.StringBuilder.<init>(StringBuilder.java:81)
at org.apache.geronimo.gshell.wisdom.shell.ShellImpl.repeat(ShellImpl.ja
va:265)
at org.apache.geronimo.gshell.wisdom.shell.ShellImpl.run(ShellImpl.java:
242)
at org.apache.servicemix.kernel.gshell.core.ShellWrapper.run(ShellWrappe
r.java:81)
at org.apache.servicemix.kernel.gshell.core.LocalConsole.run(LocalConsol
e.java:125)
at java.lang.Thread.run(Thread.java:595)



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (GSHELL-159) NegativeArraySizeException is thrown when using just the Shell Impementation when running tests.

Posted by "Edell Nolan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GSHELL-159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edell Nolan updated GSHELL-159:
-------------------------------

    Attachment: gshell-159.patch

> NegativeArraySizeException is thrown when using just the Shell Impementation when running tests.
> ------------------------------------------------------------------------------------------------
>
>                 Key: GSHELL-159
>                 URL: https://issues.apache.org/jira/browse/GSHELL-159
>             Project: GShell
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Wisdom
>    Affects Versions: 1.0-alpha-2
>            Reporter: Edell Nolan
>            Assignee: Jason Dillon
>         Attachments: gshell-159.patch
>
>
> If just using the shell implementation when running tests - a real teminal may not be created
> and as a result the teminalWidth results in a negative value. 
> Example: Is using the servicemix kernel gshell itests
> [localShell] ERROR org.apache.servicemix.kernel.gshell.core.LocalConsole - Exiti
> ng shell due to caught exception java.lang.NegativeArraySizeException
> java.lang.NegativeArraySizeException
> at java.lang.AbstractStringBuilder.<init>(AbstractStringBuilder.java:44)
> at java.lang.StringBuilder.<init>(StringBuilder.java:81)
> at org.apache.geronimo.gshell.wisdom.shell.ShellImpl.repeat(ShellImpl.ja
> va:265)
> at org.apache.geronimo.gshell.wisdom.shell.ShellImpl.run(ShellImpl.java:
> 242)
> at org.apache.servicemix.kernel.gshell.core.ShellWrapper.run(ShellWrappe
> r.java:81)
> at org.apache.servicemix.kernel.gshell.core.LocalConsole.run(LocalConsol
> e.java:125)
> at java.lang.Thread.run(Thread.java:595)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (GSHELL-159) NegativeArraySizeException is thrown when using just the Shell Impementation when running tests.

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GSHELL-159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet reassigned GSHELL-159:
--------------------------------------

    Assignee: Guillaume Nodet  (was: Jason Dillon)

> NegativeArraySizeException is thrown when using just the Shell Impementation when running tests.
> ------------------------------------------------------------------------------------------------
>
>                 Key: GSHELL-159
>                 URL: https://issues.apache.org/jira/browse/GSHELL-159
>             Project: GShell
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Wisdom
>    Affects Versions: 1.0-alpha-2
>            Reporter: Edell Nolan
>            Assignee: Guillaume Nodet
>         Attachments: gshell-159.patch
>
>
> If just using the shell implementation when running tests - a real teminal may not be created
> and as a result the teminalWidth results in a negative value. 
> Example: Is using the servicemix kernel gshell itests
> [localShell] ERROR org.apache.servicemix.kernel.gshell.core.LocalConsole - Exiti
> ng shell due to caught exception java.lang.NegativeArraySizeException
> java.lang.NegativeArraySizeException
> at java.lang.AbstractStringBuilder.<init>(AbstractStringBuilder.java:44)
> at java.lang.StringBuilder.<init>(StringBuilder.java:81)
> at org.apache.geronimo.gshell.wisdom.shell.ShellImpl.repeat(ShellImpl.ja
> va:265)
> at org.apache.geronimo.gshell.wisdom.shell.ShellImpl.run(ShellImpl.java:
> 242)
> at org.apache.servicemix.kernel.gshell.core.ShellWrapper.run(ShellWrappe
> r.java:81)
> at org.apache.servicemix.kernel.gshell.core.LocalConsole.run(LocalConsol
> e.java:125)
> at java.lang.Thread.run(Thread.java:595)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Reopened: (GSHELL-159) NegativeArraySizeException is thrown when using just the Shell Impementation when running tests.

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GSHELL-159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet reopened GSHELL-159:
------------------------------------


Needs more investigation

> NegativeArraySizeException is thrown when using just the Shell Impementation when running tests.
> ------------------------------------------------------------------------------------------------
>
>                 Key: GSHELL-159
>                 URL: https://issues.apache.org/jira/browse/GSHELL-159
>             Project: GShell
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Wisdom
>    Affects Versions: 1.0-alpha-2
>            Reporter: Edell Nolan
>            Assignee: Guillaume Nodet
>             Fix For: 1.0-alpha-2
>
>         Attachments: gshell-159.patch
>
>
> If just using the shell implementation when running tests - a real teminal may not be created
> and as a result the teminalWidth results in a negative value. 
> Example: Is using the servicemix kernel gshell itests
> [localShell] ERROR org.apache.servicemix.kernel.gshell.core.LocalConsole - Exiti
> ng shell due to caught exception java.lang.NegativeArraySizeException
> java.lang.NegativeArraySizeException
> at java.lang.AbstractStringBuilder.<init>(AbstractStringBuilder.java:44)
> at java.lang.StringBuilder.<init>(StringBuilder.java:81)
> at org.apache.geronimo.gshell.wisdom.shell.ShellImpl.repeat(ShellImpl.ja
> va:265)
> at org.apache.geronimo.gshell.wisdom.shell.ShellImpl.run(ShellImpl.java:
> 242)
> at org.apache.servicemix.kernel.gshell.core.ShellWrapper.run(ShellWrappe
> r.java:81)
> at org.apache.servicemix.kernel.gshell.core.LocalConsole.run(LocalConsol
> e.java:125)
> at java.lang.Thread.run(Thread.java:595)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GSHELL-159) NegativeArraySizeException is thrown when using just the Shell Impementation when running tests.

Posted by "Edell Nolan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GSHELL-159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12673260#action_12673260 ] 

Edell Nolan commented on GSHELL-159:
------------------------------------

I can consistently reproduce this on windows but it may happen on some unix platforms as well.

Patch attached.

> NegativeArraySizeException is thrown when using just the Shell Impementation when running tests.
> ------------------------------------------------------------------------------------------------
>
>                 Key: GSHELL-159
>                 URL: https://issues.apache.org/jira/browse/GSHELL-159
>             Project: GShell
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Wisdom
>    Affects Versions: 1.0-alpha-2
>            Reporter: Edell Nolan
>            Assignee: Jason Dillon
>         Attachments: gshell-159.patch
>
>
> If just using the shell implementation when running tests - a real teminal may not be created
> and as a result the teminalWidth results in a negative value. 
> Example: Is using the servicemix kernel gshell itests
> [localShell] ERROR org.apache.servicemix.kernel.gshell.core.LocalConsole - Exiti
> ng shell due to caught exception java.lang.NegativeArraySizeException
> java.lang.NegativeArraySizeException
> at java.lang.AbstractStringBuilder.<init>(AbstractStringBuilder.java:44)
> at java.lang.StringBuilder.<init>(StringBuilder.java:81)
> at org.apache.geronimo.gshell.wisdom.shell.ShellImpl.repeat(ShellImpl.ja
> va:265)
> at org.apache.geronimo.gshell.wisdom.shell.ShellImpl.run(ShellImpl.java:
> 242)
> at org.apache.servicemix.kernel.gshell.core.ShellWrapper.run(ShellWrappe
> r.java:81)
> at org.apache.servicemix.kernel.gshell.core.LocalConsole.run(LocalConsol
> e.java:125)
> at java.lang.Thread.run(Thread.java:595)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (GSHELL-159) NegativeArraySizeException is thrown when using just the Shell Impementation when running tests.

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GSHELL-159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet resolved GSHELL-159.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.0-alpha-2

Sending        gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/shell/ShellImpl.java
Transmitting file data .
Committed revision 744143.

> NegativeArraySizeException is thrown when using just the Shell Impementation when running tests.
> ------------------------------------------------------------------------------------------------
>
>                 Key: GSHELL-159
>                 URL: https://issues.apache.org/jira/browse/GSHELL-159
>             Project: GShell
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Wisdom
>    Affects Versions: 1.0-alpha-2
>            Reporter: Edell Nolan
>            Assignee: Guillaume Nodet
>             Fix For: 1.0-alpha-2
>
>         Attachments: gshell-159.patch
>
>
> If just using the shell implementation when running tests - a real teminal may not be created
> and as a result the teminalWidth results in a negative value. 
> Example: Is using the servicemix kernel gshell itests
> [localShell] ERROR org.apache.servicemix.kernel.gshell.core.LocalConsole - Exiti
> ng shell due to caught exception java.lang.NegativeArraySizeException
> java.lang.NegativeArraySizeException
> at java.lang.AbstractStringBuilder.<init>(AbstractStringBuilder.java:44)
> at java.lang.StringBuilder.<init>(StringBuilder.java:81)
> at org.apache.geronimo.gshell.wisdom.shell.ShellImpl.repeat(ShellImpl.ja
> va:265)
> at org.apache.geronimo.gshell.wisdom.shell.ShellImpl.run(ShellImpl.java:
> 242)
> at org.apache.servicemix.kernel.gshell.core.ShellWrapper.run(ShellWrappe
> r.java:81)
> at org.apache.servicemix.kernel.gshell.core.LocalConsole.run(LocalConsol
> e.java:125)
> at java.lang.Thread.run(Thread.java:595)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GSHELL-159) NegativeArraySizeException is thrown when using just the Shell Impementation when running tests.

Posted by "Jason Dillon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GSHELL-159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12673267#action_12673267 ] 

Jason Dillon commented on GSHELL-159:
-------------------------------------

This should have been fixed by the gshell-terminal module's jline terminal adapters.

> NegativeArraySizeException is thrown when using just the Shell Impementation when running tests.
> ------------------------------------------------------------------------------------------------
>
>                 Key: GSHELL-159
>                 URL: https://issues.apache.org/jira/browse/GSHELL-159
>             Project: GShell
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Wisdom
>    Affects Versions: 1.0-alpha-2
>            Reporter: Edell Nolan
>            Assignee: Jason Dillon
>         Attachments: gshell-159.patch
>
>
> If just using the shell implementation when running tests - a real teminal may not be created
> and as a result the teminalWidth results in a negative value. 
> Example: Is using the servicemix kernel gshell itests
> [localShell] ERROR org.apache.servicemix.kernel.gshell.core.LocalConsole - Exiti
> ng shell due to caught exception java.lang.NegativeArraySizeException
> java.lang.NegativeArraySizeException
> at java.lang.AbstractStringBuilder.<init>(AbstractStringBuilder.java:44)
> at java.lang.StringBuilder.<init>(StringBuilder.java:81)
> at org.apache.geronimo.gshell.wisdom.shell.ShellImpl.repeat(ShellImpl.ja
> va:265)
> at org.apache.geronimo.gshell.wisdom.shell.ShellImpl.run(ShellImpl.java:
> 242)
> at org.apache.servicemix.kernel.gshell.core.ShellWrapper.run(ShellWrappe
> r.java:81)
> at org.apache.servicemix.kernel.gshell.core.LocalConsole.run(LocalConsol
> e.java:125)
> at java.lang.Thread.run(Thread.java:595)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GSHELL-159) NegativeArraySizeException is thrown when using just the Shell Impementation when running tests.

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GSHELL-159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12673271#action_12673271 ] 

Guillaume Nodet commented on GSHELL-159:
----------------------------------------

Should the IO class use 

{code}
    public Terminal getTerminal() {
        return new AutoDetectedTerminal();
    }
{code}

instead of 

{code}
    public Terminal getTerminal() {
        return Terminal.getTerminal();
    }
{code}

> NegativeArraySizeException is thrown when using just the Shell Impementation when running tests.
> ------------------------------------------------------------------------------------------------
>
>                 Key: GSHELL-159
>                 URL: https://issues.apache.org/jira/browse/GSHELL-159
>             Project: GShell
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Wisdom
>    Affects Versions: 1.0-alpha-2
>            Reporter: Edell Nolan
>            Assignee: Guillaume Nodet
>             Fix For: 1.0-alpha-2
>
>         Attachments: gshell-159.patch
>
>
> If just using the shell implementation when running tests - a real teminal may not be created
> and as a result the teminalWidth results in a negative value. 
> Example: Is using the servicemix kernel gshell itests
> [localShell] ERROR org.apache.servicemix.kernel.gshell.core.LocalConsole - Exiti
> ng shell due to caught exception java.lang.NegativeArraySizeException
> java.lang.NegativeArraySizeException
> at java.lang.AbstractStringBuilder.<init>(AbstractStringBuilder.java:44)
> at java.lang.StringBuilder.<init>(StringBuilder.java:81)
> at org.apache.geronimo.gshell.wisdom.shell.ShellImpl.repeat(ShellImpl.ja
> va:265)
> at org.apache.geronimo.gshell.wisdom.shell.ShellImpl.run(ShellImpl.java:
> 242)
> at org.apache.servicemix.kernel.gshell.core.ShellWrapper.run(ShellWrappe
> r.java:81)
> at org.apache.servicemix.kernel.gshell.core.LocalConsole.run(LocalConsol
> e.java:125)
> at java.lang.Thread.run(Thread.java:595)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (GSHELL-159) NegativeArraySizeException is thrown when using just the Shell Impementation when running tests.

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GSHELL-159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet closed GSHELL-159.
----------------------------------

    Resolution: Won't Fix

Sending        gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/shell/ShellImpl.java
Transmitting file data .
Committed revision 744148.

Revert previous commit.

The problem comes from the fact that jline.terminal system property was not correctly initialized in servicemix.

> NegativeArraySizeException is thrown when using just the Shell Impementation when running tests.
> ------------------------------------------------------------------------------------------------
>
>                 Key: GSHELL-159
>                 URL: https://issues.apache.org/jira/browse/GSHELL-159
>             Project: GShell
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Wisdom
>    Affects Versions: 1.0-alpha-2
>            Reporter: Edell Nolan
>            Assignee: Guillaume Nodet
>             Fix For: 1.0-alpha-2
>
>         Attachments: gshell-159.patch
>
>
> If just using the shell implementation when running tests - a real teminal may not be created
> and as a result the teminalWidth results in a negative value. 
> Example: Is using the servicemix kernel gshell itests
> [localShell] ERROR org.apache.servicemix.kernel.gshell.core.LocalConsole - Exiti
> ng shell due to caught exception java.lang.NegativeArraySizeException
> java.lang.NegativeArraySizeException
> at java.lang.AbstractStringBuilder.<init>(AbstractStringBuilder.java:44)
> at java.lang.StringBuilder.<init>(StringBuilder.java:81)
> at org.apache.geronimo.gshell.wisdom.shell.ShellImpl.repeat(ShellImpl.ja
> va:265)
> at org.apache.geronimo.gshell.wisdom.shell.ShellImpl.run(ShellImpl.java:
> 242)
> at org.apache.servicemix.kernel.gshell.core.ShellWrapper.run(ShellWrappe
> r.java:81)
> at org.apache.servicemix.kernel.gshell.core.LocalConsole.run(LocalConsol
> e.java:125)
> at java.lang.Thread.run(Thread.java:595)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.