2017-07-12 2 views
0

Eclipse NeonとEclipse OxygenでArquillianテストを実行すると、JUnitまたはTestNGでWildfly 10を使用して例外が発生します。Arquillian Testを実行中に例外が発生しましたが、新しいEclipseワークスペースでそれを修正しました

Exception in thread "Remoting "management-client" task-5" java.lang.NoSuchMethodError: org.jboss.as.protocol.mgmt.ManagementRequestContext.executeAsync(Lorg/jboss/as/protocol/mgmt/ManagementRequestContext$AsyncTask;)Z 
at org.jboss.as.controller.client.impl.AbstractModelControllerClient$ReadAttachmentInputStreamRequestHandler.handleRequest(AbstractModelControllerClient.java:211) 
at org.jboss.as.protocol.mgmt.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:255) 
at org.jboss.as.protocol.mgmt.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:237) 
at org.jboss.as.protocol.mgmt.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:124) 
at org.jboss.as.protocol.mgmt.ManagementChannelReceiver$1.handleMessage(ManagementChannelReceiver.java:56) 
at org.jboss.as.protocol.mgmt.ManagementChannelReceiver.handleMessage(ManagementChannelReceiver.java:84) 
at org.jboss.remoting3.remote.RemoteConnectionChannel$5.run(RemoteConnectionChannel.java:463) 
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 
at java.lang.Thread.run(Thread.java:748) 

私のpom.xmlでの変更バージョンを試してみましたが、私はテストは新鮮なEclipseワークスペースでいくつかの時間のために実行しますので、問題があるとは思いません。しばらくすると、テストが再びクラッシュし、それを修正することはできませんが、別の新しいEclipseワークスペースを作成し、同じコードを私のgitリポジトリからインポートすることはできません。私はEclipseの環境設定を何度も設定する必要があるので、これは厄介な状況です。

+0

WildFly Arquillianのどのバージョンをお使いですか? –

+0

私はorg.wildflyと協力しています\t wildfly-arquillian-container-managed 8.2.1.Finalとorg.jboss.arquillian arquillian-bom 1.1.13.Finalです。私は今、Oxygenで歪んだNeonワークスペースを開始しました。これはそのワークスペースの問題を解決しました。私は、この問題がEclipseやWildflyやMavenとEclipseの統合に関連していると感じています。コマンドラインでmvnを使ってテストを開始しても、私はこの問題を抱えていませんでした。多分、クリーンなパラメータを使って日食を開始すると助けになるかもしれませんが、私はこれまでこの仮説をテストできませんでした。 – MacNord

+0

ああ。 FWIW WildFly 10で 'org.wildfly.arquillian:wildfly-arquillian-container-managed:2.0.1.Final'を使うことをお勧めします。 –

答えて

0

私はこのエラーが再び発生していない

<dependency> 
    <groupId>org.wildfly.arquillian</groupId> 
    <artifactId>wildfly-arquillian-container-managed</artifactId> 
    <version>2.0.1.Final</version>   
    <scope>test</scope> 
</dependency> 

代わりの

<dependency> 
    <groupId>org.wildfly</groupId> 
    <artifactId>wildfly-arquillian-container-managed</artifactId> 
    <version>8.2.1.Final</version> 
    <scope>test</scope> 
</dependency> 

を使用しているため。

関連する問題