[英]Payara 5.194 with Ubuntu16 and Java 8 failing with UnsupportedOperationException thrown from JLine
Given:鉴于:
A clean Ubuntu 16 with these versions of java and a clean Payara installed:一个干净的Ubuntu 16,安装了这些版本的 java 和一个干净的Payara:
jdk-8u241-linux-x64.tar.gz
payara-5.194.zip
When:什么时候:
./asadmin start-domain
Then: Yields this output:然后: 产生这个输出:
Exception in thread "main" java.io.IOError: java.lang.UnsupportedOperationException
at org.jline.utils.Curses.tputs(Curses.java:62)
at org.jline.utils.Curses.tputs(Curses.java:45)
at org.jline.keymap.KeyMap.key(KeyMap.java:243)
at org.jline.reader.impl.LineReaderImpl.key(LineReaderImpl.java:5784)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
at org.jline.reader.impl.LineReaderImpl.bindKeys(LineReaderImpl.java:5792)
at org.jline.reader.impl.LineReaderImpl.emacs(LineReaderImpl.java:5503)
at org.jline.reader.impl.LineReaderImpl.defaultKeyMaps(LineReaderImpl.java:5479)
at org.jline.reader.impl.LineReaderImpl.<init>(LineReaderImpl.java:277)
at org.jline.reader.LineReaderBuilder.build(LineReaderBuilder.java:115)
at com.sun.enterprise.admin.cli.CLICommand.buildLineReader(CLICommand.java:1445)
at com.sun.enterprise.admin.cli.CLICommand.prevalidate(CLICommand.java:941)
at com.sun.enterprise.admin.cli.CLICommand.execute(CLICommand.java:325)
at com.sun.enterprise.admin.cli.AdminMain.executeCommand(AdminMain.java:360)
at com.sun.enterprise.admin.cli.AdminMain.doMain(AdminMain.java:294)
at org.glassfish.admin.cli.AsadminMain.main(AsadminMain.java:56)
Caused by: java.lang.UnsupportedOperationException
at org.jline.utils.Curses.doTputs(Curses.java:78)
at org.jline.utils.Curses.tputs(Curses.java:60)
... 23 more
For the next few months we wont be able to upgrade Ubuntu yet:(在接下来的几个月里,我们将无法升级 Ubuntu:(
I think the latest version of jline is causing issues;我认为最新版本的 jline 引起了问题; does anyone have an idea how work around this?
有没有人知道如何解决这个问题?
The behaviour you are seeing is due to a bug in the JLine library.您看到的行为是由于 JLine 库中的错误造成的。
See here for reference: need support securtCRT terminal types - Linux and Fails with an UnsupportedOperationException by jline 3.10 and 3.11.0请参阅此处以获取参考:需要支持 securtCRT 终端类型 - Linux并且失败,jline 3.10 和 3.11.0 出现 UnsupportedOperationException
According to another issue reported against Apache Karaf ( KARAF-6341 ) it seems to be caused by the setting TERM=linux
.根据针对 Apache Karaf ( KARAF-6341 ) 报告的另一个问题,它似乎是由设置
TERM=linux
引起的。
So as a workaround you could issue the command因此,作为一种解决方法,您可以发出命令
export TERM=xterm
in a shell and start Payara from that shell.在 shell 中并从该 shell 启动 Payara。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.