Java 对远程Wildfly-8.0.0运行arquillian时的NPE

Java 对远程Wildfly-8.0.0运行arquillian时的NPE,java,eclipse,wildfly,jboss-arquillian,Java,Eclipse,Wildfly,Jboss Arquillian,昨天,当我试图将集成测试从嵌入式GF 4移动到远程Wildfly 8时,我对远程Wildfly 8实例运行的每个arquillian测试都感到奇怪。同样的集成测试在嵌入式Glassfish 4.0上运行良好 org.jboss.arquillian.container.spi.client.container.DeploymentException: Cannot deploy: test.war at org.jboss.as.arquillian.container.ArchiveD

昨天,当我试图将集成测试从嵌入式GF 4移动到远程Wildfly 8时,我对远程Wildfly 8实例运行的每个arquillian测试都感到奇怪。同样的集成测试在嵌入式Glassfish 4.0上运行良好

org.jboss.arquillian.container.spi.client.container.DeploymentException: Cannot deploy: test.war
    at org.jboss.as.arquillian.container.ArchiveDeployer.deployInternal(ArchiveDeployer.java:83)
    at org.jboss.as.arquillian.container.ArchiveDeployer.deployInternal(ArchiveDeployer.java:64)
    at org.jboss.as.arquillian.container.ArchiveDeployer.deploy(ArchiveDeployer.java:46)
    ...
Caused by: java.lang.Exception: {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"test.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"test.war\".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment \"test.war\"
    Caused by: java.lang.NullPointerException"}}
    at org.jboss.as.controller.client.helpers.standalone.impl.ServerDeploymentPlanResultFuture.getActionResult(ServerDeploymentPlanResultFuture.java:134)
    at org.jboss.as.controller.client.helpers.standalone.impl.ServerDeploymentPlanResultFuture.getResultFromNode(ServerDeploymentPlanResultFuture.java:123)
我的测试用例非常简单(使用单个类部署),不需要在这里发布。
使用的组件:

  • 阿奎利安1.1.5.1决赛
  • Wildfly 8.0.0.0决赛
  • 月蚀
无论以何种方式启动我的测试用例(从EclipseIDE和
mvn集成测试),结果都是一样的


我浪费了整整一天的时间,但还是找到了解决方案。

最后,我通过从命令行(而不是从Eclipse IDE)启动同一台服务器来修复上述错误:

突然,问题消失了。现在,我的集成测试在远程Wildfly上运行良好。
我还注意到原始问题不再出现在
wildfly 8.1.0

希望它能帮助别人

wildfly-8.0.0.Final\bin\standalone.bat