ClassFormatError - Surefire?

1k views Asked by At

When I attempt to deploy artifacts, I get a ClassFormatError for my projects that do have tests:

[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

Has anyone else come across this problem?

Thanks,

Walter

1

There are 1 answers

4
Raghuram On BEST ANSWER

There are a couple of links related to incompatible magic value - perhaps one of them applies in this case.

Essentially the class file is corrupt in some way.

Link 1 Link 2