`

jboss-5.1.0.GA 有时出现的启动报错解决方案(java.lang.IllegalArgumentException: Wrong argumen)

    博客分类:
  • java
阅读更多

错误代码:(实例化名称为“AttachmentStore”出错,非法数据异常,预期参数是java.net.URI,实际上是java.io.File) 解决办法见最下方:

Starting up JBoss AS 5.1.0.GA fails with the following message: 
23:31:11,553 INFO [JMXKernel] Legacy JMX core initialized 
23:31:16,747 ERROR [AbstractKernelController] Error installing to Instantiated: name=AttachmentStore state=Described 
java.lang.IllegalArgumentException: Wrong arguments. new for target java.lang.reflect.Constructor expected=[java.net.URI] actual=[java.io.File] 
at org.jboss.reflect.plugins.introspection.ReflectionUtils.handleErrors(ReflectionUtils.java:395) 
at org.jboss.reflect.plugins.introspection.ReflectionUtils.newInstance(ReflectionUtils.java:153) 
at org.jboss.reflect.plugins.introspection.ReflectConstructorInfoImpl.newInstance(ReflectConstructorInfoImpl.java:106)
at org.jboss.joinpoint.plugins.BasicConstructorJoinPoint.dispatch(BasicConstructorJoinPoint.java:80) 
at org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.createTarget(AOPConstructorJoinpoint.java:282)
at org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.dispatch(AOPConstructorJoinpoint.java:103) 
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:241)
at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47) 
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:109)
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:70)
at org.jboss.kernel.plugins.dependency.InstantiateAction.installActionInternal(InstantiateAction.java:66) 
at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) 
at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) 
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.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.install(AbstractController.java:774) 
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540) 
at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:319) 
at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:297) 
at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:130) 
at org.jboss.kernel.plugins.deployment.BasicKernelDeployer.deploy(BasicKernelDeployer.java:76) 
at org.jboss.bootstrap.microcontainer.TempBasicXMLDeployer.deploy(TempBasicXMLDeployer.java:91) 
at org.jboss.bootstrap.microcontainer.TempBasicXMLDeployer.deploy(TempBasicXMLDeployer.java:161) 
at org.jboss.bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.java:138) 
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:450) 
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) 
Failed to boot JBoss: 
java.lang.IllegalStateException: Incompletely deployed: 

DEPLOYMENTS IN ERROR: 
  Deployment "AttachmentStore" is in error due to: java.lang.IllegalArgumentException: Wrong arguments. new for target java.lang.reflect.Constructor expected=[java.net.URI] actual=[java.io.File] 

DEPLOYMENTS MISSING DEPENDENCIES: 
  Deployment "ProfileService" is missing the following dependencies: 
    Dependency "jboss.kernel:service=KernelController" (should be in state "Installed", but is actually in state "**ERROR**") 
    Dependency "ProfileServiceDeployer" (should be in state "Installed", but is actually in state "Instantiated") 
  Deployment "ProfileServiceDeployer" is missing the following dependencies: 
    Dependency "AttachmentStore" (should be in state "Installed", but is actually in state "**ERROR**") 
  Deployment "ProfileServiceBootstrap" is missing the following dependencies: 
    Dependency "jboss.kernel:service=Kernel" (should be in state "Installed", but is actually in state "**ERROR**") 
    Dependency "ProfileService" (should be in state "Installed", but is actually in state "Instantiated") 
  Deployment "ProfileServicePersistenceDeployer" is missing the following dependencies: 
    Dependency "AttachmentStore" (should be in state "Installed", but is actually in state "**ERROR**") 

at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.internalValidate(AbstractKernelDeployer.java:278) 
at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(AbstractKernelDeployer.java:174) 
at org.jboss.bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.java:142) 
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:450) 
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) 
23:31:18,389 INFO [ServerImpl] Runtime shutdown hook called, forceHalt: true 
23:31:18,402 INFO [ServerImpl] Shutdown complete 
Shutdown complete 
Halting VM

 

 

 

解决办法:

在服务器部署目录下即:jboss目录/server/deploy/con/bootstrap/profile.xml

   

The profile.xml has this configuration for AttachmentStore: 

<bean name="AttachmentStore" class="org.jboss.system.server.profileservice.repository.AbstractAttachmentStore"> 
<constructor><parameter><inject bean="BootstrapProfileFactory" property="attachmentStoreRoot" /></parameter></constructor> 
.... 

However, there are multiple constructors available for org.jboss.system.server.profileservice.repository.AbstractAttachmentStore. MC randomly picks up one of the available constructors and this can lead to exceptions as noted in the referenced forum thread. 
AbstractAttachmentStore这个类有多个构造函数,MC随机取一个构造函数的话,会产生上面的异常,所以解决方法就是指定构造函数参数)!

The fix is to provide the parameter type for the constructor in the MC bean configuration (note the use of class="java,io.File" for the constructor parameter): 

<bean name="AttachmentStore" class="org.jboss.system.server.profileservice.repository.AbstractAttachmentStore"> 
<constructor><parameter class="java.io.File"><inject bean="BootstrapProfileFactory" property="attachmentStoreRoot" /></parameter></constructor> 

 

 

 

分享到:
评论

相关推荐

    jboss-5.1.0.GA 下载地址

    jboss-5.1.0.GA 下载地址

    jboss-5.1.0.GA-jdk6.part1.rar

    jboss-5.1.0.GA-jdk6的部分part1,另外还有part2(http://download.csdn.net/detail/shyaideguo/5160168)需要一起下载之后,再解压使用,该软件均从官方网站下载,请放心使用。

    jboss-5.1.0.GA.zip.7z2.part

    jboss-5.1.0.GA.zip.7z2.part

    jboss-5.1.0.GA-jdk6.part2.rar

    jboss-5.1.0.GA-jdk6的部分part2,另外还有part1需要一起下载之后,再解压使用,该软件均从官方网站下载,请放心使用。

    jboss-5.1.0.GA.part2.rar

    jboss-5.1.0.GA 版本的part2,另外还有part1。请一起下载之后再解压使用,jboss-5.1.0.GA 版本从jboss的官网下载,请各位放心使用。

    jboss-5.1.0.GA.part1.rar

    jboss-5.1.0.GA 版本的part1,另外还有part2(http://download.csdn.net/detail/shyaideguo/5160163)。请一起下载之后再解压使用,jboss-5.1.0.GA 版本从jboss的官网下载,请各位放心使用。

    jboss-4.2.3.GA_下的jboss-4.2.3.GA_下的

    jboss-4.2.3.GA_下的jboss-4.2.3.GA_下的jboss-4.2.3.GA_下的jboss-4.2.3.GA_下的jboss-4.2.3.GA_下的

    jboss-5.1.0.GA下载(共享份)

    单个只能60所以分了三块

    jboss-5.1.0.GA配置指南

    jboss-5.1.0.GA配置指南,E文的,不过很有用,希望对大家有帮助。

    jboss-5.1.0.GA.zip

    jboss是一个基于J2EE的开放源代码的应用服务器。 JBoss代码遵循LGPL许可,可以在任何商业应用中免费使用。JBoss是一个管理EJB的容器和服务器,支持EJB 1.1、EJB 2.0和EJB3的规范。但JBoss核心服务不包括支持servlet/...

    jboss-5.1.0.GA_02 第二部分

    jboss-5.1.0.GA, 因为太大了,我分了两部分上传,这是第二部分,我把里面的service目录的内容放到第二部分了,下载的时候 记得找我的上传目录找第一部分资源,然后把第二部分解压到第一部分的server目录 便可。...

    jboss-5.1.0.GA Getting_Started_Guide.pdf

    jboss-5.1.0.GA Getting_Started_Guide.pdf,英文的,不过很有用

    jboss-4.0.5.GA.zip

    jboss-4.0.5.GA.zip

    jboss-5.1.0.GA.zip.7z1.part

    jboss-5.1.0.GA.zip.7z1.part

    jboss-5.1.0.GA _01

    jboss-5.1.0.GA, 因为太大了,我分了两部分上传,这是第一部分,我把里面的service目录的内容放到第二部分了,下载的时候 记得我的上传目录找第二部分资源,然后解压到server目录 便可

    jboss-5.1.0.GA安装指导

    jboss-5.1.0.GA安装指导,E文的,不过还是很好的,希望大家支持。

    jboss-5.1.0.GA.part3

    jboss官网经常下载不了,可尝试下这个资源分三个压缩包,请分别下载解压

    jboss-threads-3.1.0.Final-API文档-中文版.zip

    赠送jar包:jboss-threads-3.1.0.Final.jar; 赠送原API文档:jboss-threads-3.1.0.Final-javadoc.jar; 赠送源代码:jboss-threads-3.1.0.Final-sources.jar; 赠送Maven依赖信息文件:jboss-threads-3.1.0.Final....

    jboss-4.2.2.GA.part2.

    共5个压缩包,全部下载才能够解压 jboss jboss4.2 jboss4.2.2 jboss-4.2.2 jboss-4.2.2.GA............

    jboss-logging.jar,jboss-common.jar

    java.lang.NoSuchMethodError: org.jboss.logging.Logger.getMessageLogger(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Object; 错误解决办法

Global site tag (gtag.js) - Google Analytics