gpt4 book ai didi

java.lang.NoClassDefFoundError : Could not initialize class sun. text.normalizer.NormalizerImpl

转载 作者:行者123 更新时间:2023-12-02 02:32:48 28 4
gpt4 key购买 nike

我在使用 oracle jdk 1.8.0_221(64 位)运行的 wildfly 13 服务器上遇到以下错误。 NormalizerImpl 是 rt.jar 中的一个类,应该始终可用。所以这不是普通的 ClassNotFound。

> 2019-07-25 13:56:38,914 ERROR [io.undertow.request] (default task-20)
> UT005023: Exception handling request to
> /myServletPath:
> java.lang.NoClassDefFoundError: Could not initialize class
> sun.text.normalizer.NormalizerImpl at
> java.text.RBTableBuilder.build(RBTableBuilder.java:107) at
> java.text.RBCollationTables.<init>(RBCollationTables.java:83) at
> java.text.RuleBasedCollator.<init>(RuleBasedCollator.java:300) at
> java.text.RuleBasedCollator.<init>(RuleBasedCollator.java:281) at
> sun.util.locale.provider.CollatorProviderImpl.getInstance(CollatorProviderImpl.java:106)
> at java.text.Collator.getInstance(Collator.java:242)

或类似的

java.lang.NoClassDefFoundError: Could not initialize class sun.text.normalizer.NormalizerImpl
at sun.text.normalizer.NormalizerBase.isNormalized(NormalizerBase.java:1671)
at sun.text.normalizer.NormalizerBase.isNormalized(NormalizerBase.java:1652)
at java.text.Normalizer.isNormalized(Normalizer.java:177)

我用谷歌搜索了它,但没有找到太多,奇怪的是没有找到任何关于SO的信息;-)

最佳答案

我只是提示found

(1)

The error happens when the JVM jar file resources.jar can not be opened causing a failure during initialization of class sun.text.normalizer.NormalizerImpl and thus raises a java.lang.NoClassDefFoundError. The problem is most probably an incorrect permission on the JVM directories for the connected user. It can be solved by giving read access to group and others: drwxr-xr-x.

(2) 或者他们重新启动了...

关于java.lang.NoClassDefFoundError : Could not initialize class sun. text.normalizer.NormalizerImpl,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57220531/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com