ClassFormatError - Surefire?

时间:2010-12-22 00:30:12

标签: java deployment surefire maven-3 jalopy

当我尝试部署工件时,我得到了有测试的项目的ClassFormatError:

[INFO] --- maven-surefire-plugin:2.5:test (default-test) @ ssh-exec ---
[INFO] Concurrency config is {threadCount=10, parallel=methods, configurableParallelComputerPresent=false}
[INFO] Surefire report directory: /home/walterjwhite/storage/projects/software/active/stable/task/impl/ssh-exec/target/surefire-reports
org.apache.maven.surefire.booter.SurefireExecutionException: Incompatible magic value 4022320623 in class file test-classes/com/walterjwhite/task/impl/ssh/exec/RemoteCommandExecutorTest; nested exception is java.lang.ClassFormatError: Incompatible magic value 4022320623 in class file test-classes/com/walterjwhite/task/impl/ssh/exec/RemoteCommandExecutorTest
java.lang.ClassFormatError: Incompatible magic value 4022320623 in class file test-classes/com/walterjwhite/task/impl/ssh/exec/RemoteCommandExecutorTest

还有其他人遇到过这个问题吗?

谢谢,

沃尔特

1 个答案:

答案 0 :(得分:0)

有一些与不兼容的魔法值相关的链接 - 在这种情况下可能其中一个适用。

基本上,类文件在某种程度上是损坏的。

Link 1 Link 2