karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kleber Ayala (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-6171) batch command line mode does not work
Date Thu, 07 Mar 2019 23:19:00 GMT

    [ https://issues.apache.org/jira/browse/KARAF-6171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16787306#comment-16787306
] 

Kleber Ayala commented on KARAF-6171:
-------------------------------------

This error also affects docker images using client command to install features,
 we have docker images on production deployed with a jenkins pipeline.

The problem is on *org.apache.karaf.client.Main*, there is a new section of code that 
 creates a new thread and only works for not Batch mode.

 

{code:title=org.apache.karaf.client.Main|borderStyle=solid}
 new Thread() {
                        public void run() {
                            while (true) {
                                try {
                                    int a = System.in.read();
                                    if (a == -1){                
                        
                                      channel.close(true);                      
                  
                                       break;                              
     
                                      }
                                    Thread.sleep(1000);
                                } catch (Exception e){              
                      
                                   //ignore                                

                             }
                            }
                        }
                    }.start();
{code}

> batch command line mode does not work
> -------------------------------------
>
>                 Key: KARAF-6171
>                 URL: https://issues.apache.org/jira/browse/KARAF-6171
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 4.2.2, 4.2.3
>            Reporter: Michal Hlavac
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>             Fix For: 4.3.0, 4.2.4
>
>
> for example 
> {code:java}
> echo "config:list" | bin/client -b{code}
> does not do anything, no error nor configuration list output



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message