Jboss 5启动报IO异常的解决方法

本文记录了启动JBoss遇到的一个诡异的IO异常错误,并提供了解决方案,即通过结束WindowsIndexService进程或使用Unlocker工具解锁被锁定的文件夹。
今天启动jboss报了个诡异的IO异常
错误代码:
[quote]
2010-10-29 11:30:25,512 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Start: name=jboss:service=NamingProviderURLWriter state=Create mode=Manual requiredState=Installed
java.io.IOException: 拒绝访问。
at java.io.WinNTFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(File.java:883)
at org.jboss.naming.NamingProviderURLWriter.start(NamingProviderURLWriter.java:117)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:140)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
at $Proxy38.start(Unknown Source)
at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
at org.jboss.system.ServiceController.start(ServiceController.java:460)
at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
at org.jboss.Main.boot(Main.java:221)
at org.jboss.Main$1.run(Main.java:556)
at java.lang.Thread.run(Thread.java:619)
[/quote]
google了一下,说是jboss 5的bug,在jboss 6中已经解决了,报该异常的原因是文件夹被cidaemon.exe(Windows Index Service)锁住了
只要结束Windows Index Service或者用unlocker([url="http://ccollomb.free.fr/unlocker/"]点此下载[/url])解锁,重启jboss即可
D:\APPS\Develop\Java\LibericalJDK\JDK17\bin\java.exe -Dmaven.multiModuleProjectDirectory=D:\APPS\Develop\Projects\IdeaProjects\cube.api -Djansi.passthrough=true -Dmaven.home=D:\APPS\Develop\Maven\Maven\apache-maven-3.9.4 -Dclassworlds.conf=D:\APPS\Develop\Maven\Maven\apache-maven-3.9.4\bin\m2.conf "-javaagent:D:\APPS\Develop\IDE\Idea2024\IntelliJ IDEA 2024.1\lib\idea_rt.jar=58371:D:\APPS\Develop\IDE\Idea2024\IntelliJ IDEA 2024.1\bin" -Dfile.encoding=UTF-8 -classpath D:\APPS\Develop\Maven\Maven\apache-maven-3.9.4\boot\plexus-classworlds-2.7.0.jar;D:\APPS\Develop\Maven\Maven\apache-maven-3.9.4\boot\plexus-classworlds.license org.codehaus.classworlds.Launcher -Didea.version=2024.1 -s D:\APPS\Develop\Maven\Maven\apache-maven-3.9.4\conf\settings.xml -Dmaven.repo.local=D:\APPS\Develop\Maven\Maven\repository -DskipTests=true quarkus:dev [INFO] Scanning for projects... [INFO] [INFO] ---------------------------< cube:cube.api >---------------------------- [INFO] Building cube.api 1.0.0-SNAPSHOT [INFO] from pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- quarkus:3.22.3:dev (default-cli) @ cube.api --- [INFO] Invoking resources:3.3.1:resources (default-resources) @ cube.api [INFO] Copying 2 resources from src\main\resources to target\classes [INFO] Invoking quarkus:3.22.3:generate-code (default) @ cube.api [INFO] Invoking compiler:3.14.0:compile (default-compile) @ cube.api [INFO] Nothing to compile - all classes are up to date. [INFO] Invoking resources:3.3.1:testResources (default-testResources) @ cube.api [INFO] skip non existing resourceDirectory D:\APPS\Develop\Projects\IdeaProjects\cube.api\src\test\resources [INFO] Invoking quarkus:3.22.3:generate-code-tests (default) @ cube.api [INFO] Invoking compiler:3.14.0:testCompile (default-testCompile) @ cube.api [INFO] Nothing to compile - all classes are up to date. Listening for transport dt_socket at address: 5005 Press [e] to edit command line args (currently ''), [h] for more options> Tests paused Press [e] to edit command line args (currently ''), [r] to resume testing, [h] for more options> Press [e] to edit command line args (currently ''), [r] to resume testing, [h] for more options> Press [e] to edit command line args (currently ''), [r] to resume testing, [o] Toggle test output, [h] for more options> 2025-09-13 14:49:20,066 WARN [io.qua.hib.orm.dep.HibernateOrmProcessor] (build-74) Could not find a suitable persistence unit for model classes: - cube.panels.infrastructure.po.ApplicationPO - cube.panels.infrastructure.views.ApplicationView - io.quarkus.hibernate.orm.panache.PanacheEntity - io.quarkus.hibernate.orm.panache.PanacheEntityBase 2025-09-13 14:49:20,067 WARN [io.qua.hib.orm.dep.HibernateOrmProcessor] (build-74) Could not find any entities affected to the persistence unit '<default>'. 2025-09-13 14:49:20,098 INFO [io.qua.dep.dev.IsolatedDevModeMain] (main) Attempting to start live reload endpoint to recover from previous Quarkus startup failure 2025-09-13 14:49:20,506 ERROR [io.qua.dep.dev.IsolatedDevModeMain] (main) Failed to start quarkus: java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors [error]: Build step io.quarkus.spring.data.deployment.SpringDataJPAProcessor#build threw an exception: java.lang.NullPointerException: Cannot invoke "org.jboss.jandex.ClassInfo.interfaceNames()" because "repositoryToImplement" is null at io.quarkus.spring.data.deployment.generate.GenerationUtil.extendedSpringDataRepos(GenerationUtil.java:30) at io.quarkus.spring.data.deployment.generate.GenerationUtil.extendedSpringDataRepos(GenerationUtil.java:34) at io.quarkus.spring.data.deployment.generate.SpringDataRepositoryCreator.extractIdAndEntityTypes(SpringDataRepositoryCreator.java:140) at io.quarkus.spring.data.deployment.generate.SpringDataRepositoryCreator.implementCrudRepository(SpringDataRepositoryCreator.java:58) at io.quarkus.spring.data.deployment.SpringDataJPAProcessor.implementCrudRepositories(SpringDataJPAProcessor.java:269) at io.quarkus.spring.data.deployment.SpringDataJPAProcessor.build(SpringDataJPAProcessor.java:134) at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:732) at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:856) at io.quarkus.builder.BuildContext.run(BuildContext.java:255) at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18) at org.jboss.threads.EnhancedQueueExecutor$Task.doRunWith(EnhancedQueueExecutor.java:2675) at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2654) at org.jboss.threads.EnhancedQueueExecutor.runThreadBody(EnhancedQueueExecutor.java:1627) at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1594) at java.base/java.lang.Thread.run(Thread.java:840) at org.jboss.threads.JBossThread.run(JBossThread.java:499) at io.quarkus.runner.bootstrap.AugmentActionImpl.runAugment(AugmentActionImpl.java:372) at io.quarkus.runner.bootstrap.AugmentActionImpl.createInitialRuntimeApplication(AugmentActionImpl.java:289) at io.quarkus.runner.bootstrap.AugmentActionImpl.createInitialRuntimeApplication(AugmentActionImpl.java:61) at io.quarkus.deployment.dev.IsolatedDevModeMain.firstStart(IsolatedDevModeMain.java:89) at io.quarkus.deployment.dev.IsolatedDevModeMain.accept(IsolatedDevModeMain.java:432) at io.quarkus.deployment.dev.IsolatedDevModeMain.accept(IsolatedDevModeMain.java:55) at io.quarkus.bootstrap.app.CuratedApplication.runInCl(CuratedApplication.java:143) at io.quarkus.bootstrap.app.CuratedApplication.runInAugmentClassLoader(CuratedApplication.java:98) at io.quarkus.deployment.dev.DevModeMain.start(DevModeMain.java:107) at io.quarkus.deployment.dev.DevModeMain.main(DevModeMain.java:70) Caused by: io.quarkus.builder.BuildException: Build failure: Build failed due to errors [error]: Build step io.quarkus.spring.data.deployment.SpringDataJPAProcessor#build threw an exception: java.lang.NullPointerException: Cannot invoke "org.jboss.jandex.ClassInfo.interfaceNames()" because "repositoryToImplement" is null at io.quarkus.spring.data.deployment.generate.GenerationUtil.extendedSpringDataRepos(GenerationUtil.java:30) at io.quarkus.spring.data.deployment.generate.GenerationUtil.extendedSpringDataRepos(GenerationUtil.java:34) at io.quarkus.spring.data.deployment.generate.SpringDataRepositoryCreator.extractIdAndEntityTypes(SpringDataRepositoryCreator.java:140) at io.quarkus.spring.data.deployment.generate.SpringDataRepositoryCreator.implementCrudRepository(SpringDataRepositoryCreator.java:58) at io.quarkus.spring.data.deployment.SpringDataJPAProcessor.implementCrudRepositories(SpringDataJPAProcessor.java:269) at io.quarkus.spring.data.deployment.SpringDataJPAProcessor.build(SpringDataJPAProcessor.java:134) at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:732) at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:856) at io.quarkus.builder.BuildContext.run(BuildContext.java:255) at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18) at org.jboss.threads.EnhancedQueueExecutor$Task.doRunWith(EnhancedQueueExecutor.java:2675) at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2654) at org.jboss.threads.EnhancedQueueExecutor.runThreadBody(EnhancedQueueExecutor.java:1627) at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1594) at java.base/java.lang.Thread.run(Thread.java:840) at org.jboss.threads.JBossThread.run(JBossThread.java:499) at io.quarkus.builder.Execution.run(Execution.java:122) at io.quarkus.builder.BuildExecutionBuilder.execute(BuildExecutionBuilder.java:78) at io.quarkus.deployment.QuarkusAugmentor.run(QuarkusAugmentor.java:161) at io.quarkus.runner.bootstrap.AugmentActionImpl.runAugment(AugmentActionImpl.java:368) ... 9 more Caused by: java.lang.NullPointerException: Cannot invoke "org.jboss.jandex.ClassInfo.interfaceNames()" because "repositoryToImplement" is null at io.quarkus.spring.data.deployment.generate.GenerationUtil.extendedSpringDataRepos(GenerationUtil.java:30) at io.quarkus.spring.data.deployment.generate.GenerationUtil.extendedSpringDataRepos(GenerationUtil.java:34) at io.quarkus.spring.data.deployment.generate.SpringDataRepositoryCreator.extractIdAndEntityTypes(SpringDataRepositoryCreator.java:140) at io.quarkus.spring.data.deployment.generate.SpringDataRepositoryCreator.implementCrudRepository(SpringDataRepositoryCreator.java:58) at io.quarkus.spring.data.deployment.SpringDataJPAProcessor.implementCrudRepositories(SpringDataJPAProcessor.java:269) at io.quarkus.spring.data.deployment.SpringDataJPAProcessor.build(SpringDataJPAProcessor.java:134) at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:732) at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:856) at io.quarkus.builder.BuildContext.run(BuildContext.java:255) at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18) at org.jboss.threads.EnhancedQueueExecutor$Task.doRunWith(EnhancedQueueExecutor.java:2675) at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2654) at org.jboss.threads.EnhancedQueueExecutor.runThreadBody(EnhancedQueueExecutor.java:1627) at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1594) at java.base/java.lang.Thread.run(Thread.java:840) at org.jboss.threads.JBossThread.run(JBossThread.java:499)
最新发布
09-14
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值