Could be mostly because of two jline jars in class path. Atleast when error says - "Found class jline.Terminal, but interface was expected" - its usually two different jars.
LENS-531 updated spring shell version to 1.1.0-RELEASE which might be conflicting with classpath on docker setup. On Fri, Jun 26, 2015 at 3:41 PM, Varadharajan Mukundan <[email protected] > wrote: > Hi, > > I'm seeing that error as well when i execute lens-cli.sh script inside > the test docker container. Will try to debug it and update the group. > > On Fri, Jun 26, 2015 at 12:31 PM, Yash Sharma <[email protected]> wrote: > > I am seeing this error consistently. Just wanted to check if its a issue > > with local setup. > > > > I have seen this error earlier with other projects when hadoop had 0.9* > > version Jline in classpath and hive upgraded to newwr version of Jline. > > > > Will drill it more and update on list. > > > > Regards > > > > - Via mobile. Excuse brevity. > > On 26 Jun 2015 12:20 pm, "amareshwarisr ." <[email protected]> > wrote: > > > >> Hello Yash, > >> > >> Not seeing any issue with simple server and cli. Do you think the issue > is > >> with ml-dist? I'm saying that because the error you put has multiple > SLF4J > >> bindings in lens-ml-dist. > >> > >> Are you seeing it consistently? > >> > >> Thanks > >> Amareshwari > >> > >> On Thu, Jun 25, 2015 at 10:32 PM, Yash Sharma <[email protected]> > wrote: > >> > >> > Hitting JLine error recently.. Anyone else facing this ? > >> > > >> > > >> > yash@yash lens $./client/bin/lens-cli.sh > >> > SLF4J: Class path contains multiple SLF4J bindings. > >> > SLF4J: Found binding in > >> > > >> > > >> > [jar:file:/home/yash/work/git/incubator-lens/lens-ml-dist/target/apache-lens-2.3.0-beta-incubating-SNAPSHOT-ml/lib/slf4j-log4j12-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class] > >> > SLF4J: Found binding in > >> > > >> > > >> > [jar:file:/usr/local/lens/client/lib/slf4j-log4j12-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class] > >> > SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an > >> > explanation. > >> > SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory] > >> > [ERROR] Terminal initialization failed; falling back to unsupported > >> > java.lang.IncompatibleClassChangeError: Found class jline.Terminal, > but > >> > interface was expected > >> > at jline.TerminalFactory.create(TerminalFactory.java:101) > >> > at jline.TerminalFactory.get(TerminalFactory.java:159) > >> > at jline.console.ConsoleReader.<init>(ConsoleReader.java:227) > >> > at jline.console.ConsoleReader.<init>(ConsoleReader.java:219) > >> > at jline.console.ConsoleReader.<init>(ConsoleReader.java:207) > >> > at > >> > > >> > > >> > org.springframework.shell.core.JLineShell.createConsoleReader(JLineShell.java:250) > >> > at org.springframework.shell.core.JLineShell.run(JLineShell.java:112) > >> > at java.lang.Thread.run(Thread.java:745) > >> > > >> > Exception in thread "Spring Shell" > >> java.lang.IncompatibleClassChangeError: > >> > Found class jline.Terminal, but interface was expected > >> > at jline.console.ConsoleReader.<init>(ConsoleReader.java:228) > >> > at jline.console.ConsoleReader.<init>(ConsoleReader.java:219) > >> > at jline.console.ConsoleReader.<init>(ConsoleReader.java:207) > >> > at > >> > > >> > > >> > org.springframework.shell.core.JLineShell.createConsoleReader(JLineShell.java:250) > >> > at org.springframework.shell.core.JLineShell.run(JLineShell.java:112) > >> > at java.lang.Thread.run(Thread.java:745) > >> > > >> > > > > -- > Thanks, > M. Varadharajan > > ------------------------------------------------ > > "Experience is what you get when you didn't get what you wanted" > -By Prof. Randy Pausch in "The Last Lecture" > > My Journal :- http://varadharajan.in >
