You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Christian Schneider (JIRA)" <ji...@apache.org> on 2017/08/04 09:13:00 UTC
[jira] [Commented] (KARAF-5144) java.lang.RuntimeException: Command
name evaluates to null: $.jline.terminal
[ https://issues.apache.org/jira/browse/KARAF-5144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16114155#comment-16114155 ]
Christian Schneider commented on KARAF-5144:
--------------------------------------------
Can you provide exact steps to reproduce this? Also your system might be important.
Normally $.jline.terminal does not resolve to null.
I think this is where the exception is caused:
max_colors = ($.jline.terminal getNumericCapability max_colors)
I think we can solve this in two ways. Either we make sure .jline.terminal is never null or we check for null in the script.
> java.lang.RuntimeException: Command name evaluates to null: $.jline.terminal
> ----------------------------------------------------------------------------
>
> Key: KARAF-5144
> URL: https://issues.apache.org/jira/browse/KARAF-5144
> Project: Karaf
> Issue Type: Bug
> Components: karaf-shell
> Affects Versions: 4.1.1
> Reporter: Roland Hauser
> Assignee: Jean-Baptiste Onofré
> Fix For: 4.2.0, 4.1.2
>
>
> Method executeScript on class org.apache.karaf.shell.ssh.ShellCommand throws (and catches) this exception, when property karaf.shell.init.script in system.properties is set to "karaf.shell.init.script = etc/shell.init.script" to avoid KARAF-5143. This means that currently no command can be executed which is specified in the shell init-script, which makes it impossible for us to deploy our application on Karaf 4.1.1.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)