gpt4 book ai didi

jakarta-ee - "Exception while loading the app"没有堆栈跟踪

转载 作者:行者123 更新时间:2023-12-03 16:44:35 24 4
gpt4 key购买 nike

我正在将我的应用程序从 GlassFish 3.0.1 迁移到 GlassFish 3.1.1。部署失败,并显示以下错误消息:

SEVERE: Exception while loading the app
SEVERE: Exception while shutting down application container
SEVERE: Exception while shutting down application container : java.lang.NullPointerException
SEVERE: java.lang.RuntimeException: Error occurred during deployment: Exception while shutting down application container : java.lang.NullPointerException. Please see server.log for more details.

没有堆栈跟踪。我将根日志记录级别打开为 FINEST,第一条 SEVERE 消息出现在 Weld 消息之后:
//...
FINE: WELD-000105 Enabled interceptor types for Manager
Enabled alternatives: [] []
Registered contexts: [interface javax.enterprise.context.SessionScoped, interface javax.enterprise.context.RequestScoped, interface javax.inject.Singleton, interface javax.enterprise.context.Dependent, interface javax.enterprise.context.ApplicationScoped, interface javax.enterprise.context.ConversationScoped]
Registered beans: 0
Specialized beans: 0
: []

在几条这样的消息之前(针对几个不同的类):
FINE: PWC4451: File cannot be read /opt/sun/glassfish-3.1.1/glassfish/domains/domain1/applications/QmsWeb/WEB-INF/classes/org/jboss/seam/transaction/SeamTransaction.class
FINE: PWC4451: File cannot be read /opt/sun/glassfish-3.1.1/glassfish/domains/domain1/applications/QmsWeb/WEB-INF/classes/org/jboss/seam/transaction/SeamTransaction.class
FINE: PWC4451: File cannot be read /opt/sun/glassfish-3.1.1/glassfish/domains/domain1/applications/QmsWeb/WEB-INF/classes/net/sf/ehcache/config/TerracottaConfiguration$ValueMode.class
//...

什么可能导致此错误?这些 PWC4451 消息是否表明某些库没有被加载?

最佳答案

这是由于 @ViewScoped bean 没有实现 Serializable。显然,我们使用的旧版本 Weld 并没有发现钝化作用域 bean 不可序列化这一点令人反感,但由于这个原因,这个版本无声无息地失败了。哦,好吧,希望这可以节省一些时间。

关于jakarta-ee - "Exception while loading the app"没有堆栈跟踪,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7195243/

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