【问题标题】:NPE when running arquillian against remote Wildfly-8.0.0对远程 Wildfly-8.0.0 运行 arquillian 时的 NPE
【发布时间】:2014-11-12 20:24:30
【问题描述】:

昨天,当我试图将我的集成测试从 embedded GF 4 移动到 remote Wildfly 8 时,我对每次针对远程 Wildfly 运行的 arquillian 测试都感到奇怪 NullPointerException 8个实例。相同的集成测试在嵌入式 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)

我的测试用例非常简单(单类部署),不需要在这里发布。
使用的组件:

  • Arquillian 1.1.5.Final
  • Wildfly 8.0.0.Final
  • 日食月神

无论以何种方式启动我的测试用例(从 Eclipse IDE 并使用mvn integration-test),结果都是一样的。

我已经迷失了一整天,但设法找到了解决方案。

【问题讨论】:

    标签: java eclipse wildfly jboss-arquillian


    【解决方案1】:

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

    wildfly-8.0.0.Final\bin\standalone.bat
    

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

    希望它对某人有所帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-05-07
      • 2023-03-14
      • 1970-01-01
      • 2016-03-17
      • 1970-01-01
      • 2014-08-28
      • 1970-01-01
      • 2016-09-27
      相关资源
      最近更新 更多