Jboss Fuse UnsupportedEncodingException iso88591

时间:2017-08-17 17:57:16

标签: apache-karaf jbossfuse

我无法访问我的jboss fuse 6.3管理控制台,我一直收到以下消息:

unable to start shell because iso88591

在data / log / fuse.log中显示以下堆栈

java.io.UnsupportedEncodingException: iso88591
        at sun.nio.cs.StreamEncoder.forOutputStreamWriter(StreamEncoder.java:61)[:1.8.0_131]
        at java.io.OutputStreamWriter.<init>(OutputStreamWriter.java:100)[:1.8.0_131]
        at jline.console.ConsoleReader.<init>(ConsoleReader.java:231)
        at org.apache.karaf.shell.console.jline.Console.<init>(Console.java:111)
        at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$1.runConsole(ShellFactoryImpl.java:138)[156:org.apache.karaf.shell.ssh:2.4.0.redhat-630187]
        at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$1$1.run(ShellFactoryImpl.java:126)
        at java.security.AccessController.doPrivileged(Native Method)[:1.8.0_131]
        at org.apache.karaf.jaas.modules.JaasHelper.doAs(JaasHelper.java:47)[25:org.apache.karaf.jaas.modules:2.4.0.redhat-630187]
        at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$1.run(ShellFactoryImpl.java:124)[156:org.apache.karaf.shell.ssh:2.4.0.redhat-630187]

1 个答案:

答案 0 :(得分:1)

编码必须为LC_CTYPE=en_US.UTF-8。您可以通过执行locale命令找到LC_TYPE。如果未设置LC_CTYPE env_US.UTF-8,您可以在bash_profile中更新。我也在solaris中面临同样的问题。在我的情况LC_CTYPE="en_US.UTF-8"然后,我更新了 LC_CTYPE=en_US.UTF-8现在工作正常。