jdk8 1.版本问题UT005090: Unexpected failure: java.lang.NoClassDefFoundError: Could not initialize class

在运行Wildfly时遇到了一个错误,具体表现为Undertow请求失败,错误代码UT005071,原因是尝试访问一个无效的文件路径,导致了FileNotFoundException。此问题通过将JDK环境变量切换到1.8.0_141版本得到了解决。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

21:32:39,398 ERROR [io.undertow.request] (External Management Request Threads -- 1) UT005071: Undertow request failed HttpServerExchange{ GET /management}: java.io.IOError: java.io.FileNotFoundException: Invalid file path
        at org.xnio.channels.Channels$4.run(Channels.java:1103)
        at org.xnio.channels.Channels$4.run(Channels.java:1093)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.xnio.channels.Channels.<clinit>(Channels.java:1093)
        at io.undertow.io.UndertowOutputStream.write(UndertowOutputStream.java:231)
        at io.undertow.io.BlockingSenderImpl.writeBuffer(BlockingSenderImpl.java:245)
        at io.undertow.io.BlockingSenderImpl.writeBuffer(BlockingSenderImpl.java:238)
        at io.undertow.io.BlockingSenderImpl.send(BlockingSenderImpl.java:75)
        at io.undertow.io.BlockingSenderImpl.send(BlockingSenderImpl.java:107)
        at org.jboss.as.domain.http.server.DomainUtil.writeResponse(DomainUtil.java:89)
        at org.jboss.as.domain.http.server.DomainApiHandler$1.doSendResponse(DomainApiHandler.java:177)
        at org.jboss.as.domain.http.server.ResponseCallback.sendResponse(ResponseCallback.java:32)
        at org.jboss.as.domain.http.server.DomainApiHandler.handleRequest(DomainApiHandler.java:232)
        at io.undertow.server.handlers.encoding.EncodingHandler.handleRequest(EncodingHandler.java:72)
        at org.jboss.as.domain.http.server.DomainApiCheckHandler.handleRequest(DomainApiCheckHandler.java:91)
        at org.jboss.as.domain.http.server.security.ElytronIdentityHandler.lambda$handleRequest$0(ElytronIdentityHandler.java:62)
        at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:328)
        at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:285)
        at org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:254)
        at org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:225)
        at org.jboss.as.domain.http.server.security.ElytronIdentityHandler.handleRequest(ElytronIdentityHandler.java:61)
        at io.undertow.server.handlers.BlockingHandler.handleRequest(BlockingHandler.java:56)
        at io.undertow.server.Connectors.executeRootHandler(Connectors.java:387)
        at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:841)
        at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
        at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
        at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
        at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1348)
        at java.lang.Thread.run(Thread.java:750)
        at org.jboss.threads.JBossThread.run(JBossThread.java:513)
Caused by: java.io.FileNotFoundException: Invalid file path
        at java.io.FileOutputStream.<init>(FileOutputStream.java:206)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:101)
        at org.xnio.channels.Channels$4.run(Channels.java:1098)
        ... 29 more

21:32:39,408 ERROR [io.undertow.request.io] (External Management Request Threads -- 1) UT005090: Unexpected failure: java.lang.NoClassDefFoundError: Could not initialize class org.xnio.channels.Channels
        at io.undertow.io.UndertowOutputStream.close(UndertowOutputStream.java:348)
        at io.undertow.server.HttpServerExchange$DefaultBlockingHttpExchange.close(HttpServerExchange.java:2008)
        at io.undertow.server.HttpServerExchange.endExchange(HttpServerExchange.java:1689)
        at io.undertow.server.Connectors.executeRootHandler(Connectors.java:427)
        at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:841)
        at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
        at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
        at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
        at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1348)
        at java.lang.Thread.run(Thread.java:750)
        at org.jboss.threads.JBossThread.run(JBossThread.java:513)

在运行wildfly时出现的问题,环境变量jdk换成1.8.0_141解决问题

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值