karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lars Kiesow (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-5526) [ERROR] Failed to construct terminal; falling back to unsupported
Date Tue, 05 Dec 2017 23:40:00 GMT

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

Lars Kiesow commented on KARAF-5526:
------------------------------------

The stack trace I get is:

```
[ERROR] Failed to construct terminal; falling back to unsupported                        
                                                                                         
                               
java.lang.NumberFormatException: For input string: "0x100"                               
                                                                                         
                               
        at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) 
                                                                                         
                               
        at java.lang.Integer.parseInt(Integer.java:580)                                  
                                                                                         
                               
        at java.lang.Integer.valueOf(Integer.java:766)                                   
                                                                                         
                               
        at jline.internal.InfoCmp.parseInfoCmp(InfoCmp.java:59)                          
                                                                                         
                               
        at jline.UnixTerminal.parseInfoCmp(UnixTerminal.java:242)                        
                                                                                         
                               
        at jline.UnixTerminal.<init>(UnixTerminal.java:65)                         
                                                                                         
                                     
        at jline.UnixTerminal.<init>(UnixTerminal.java:50)                         
                                                                                         
                                     
        at jline.NoInterruptUnixTerminal.<init>(NoInterruptUnixTerminal.java:24)   
                                                                                         
                                     
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)         
                                                                                         
                               
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
                                                                                         
                 
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
                                                                                         
         
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)               
               
        at java.lang.Class.newInstance(Class.java:442)
        at jline.TerminalFactory.getFlavor(TerminalFactory.java:211)
        at jline.TerminalFactory.create(TerminalFactory.java:102)
        at jline.TerminalFactory.create(TerminalFactory.java:51)
        at org.apache.karaf.shell.impl.console.TerminalFactory.init(TerminalFactory.java:37)
        at org.apache.karaf.shell.impl.console.TerminalFactory.getTerminal(TerminalFactory.java:30)
        at org.apache.karaf.shell.impl.console.osgi.LocalConsoleManager.start(LocalConsoleManager.java:61)
        at org.apache.karaf.shell.impl.console.osgi.Activator.start(Activator.java:112)
        at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:697)
        at org.apache.felix.framework.Felix.activateBundle(Felix.java:2238)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:2144)
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998)
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984)
        at org.apache.karaf.features.internal.service.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:1287)
        at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:860)
        at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1176)
        at org.apache.karaf.features.internal.service.FeaturesServiceImpl$1.call(FeaturesServiceImpl.java:1074)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)

```

> [ERROR] Failed to construct terminal; falling back to unsupported
> -----------------------------------------------------------------
>
>                 Key: KARAF-5526
>                 URL: https://issues.apache.org/jira/browse/KARAF-5526
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 4.0.9
>         Environment: % mvn -version
> Apache Maven 3.5.0 (Red Hat 3.5.0-6)
> Maven home: /usr/share/maven
> Java version: 1.8.0_151, vendor: Oracle Corporation
> Java home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.151-1.b12.fc27.x86_64/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "4.13.16-302.fc27.x86_64", arch: "amd64", family: "unix"
> % java -version
> openjdk version "1.8.0_151"
> OpenJDK Runtime Environment (build 1.8.0_151-b12)
> OpenJDK 64-Bit Server VM (build 25.151-b12, mixed mode)
> % cat /etc/redhat-release
> Fedora release 27 (Twenty Seven)
> % env|grep TERM
> COLORTERM=truecolor
> TERM=screen-256color
>            Reporter: Lars Kiesow
>
> Upgrading to Fedora 27 which comes with a newer Java and Maven version, I found that
the Karaf shell was not working properly anymore. For once, I got a stack trace right after
starting the application and then the shell history does not work and Ctrl+C which previously
would stop commands like `log:tail`, now terminates the application.
> A workaround I could find in this answer on StackOverflow:
>   https://stackoverflow.com/a/44361749/2352895
> …setting the `TERM` variable to `xterm-color` did help. Though previously, it worked
just fine with the set `screen-256color`



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message