首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >ClassFormatError - Surefire?

ClassFormatError - Surefire?
EN

Stack Overflow用户
提问于 2010-12-22 08:30:12
回答 1查看 984关注 0票数 0

当我尝试部署工件时,我得到了一个包含测试的项目的ClassFormatError:

代码语言:javascript
复制
[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

还有没有人遇到过这个问题?

谢谢,

沃尔特

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2010-12-22 10:33:28

这里有几个与不兼容的魔术值相关的链接--其中一个可能适用于本例。

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

Link 1 Link 2

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/4505220

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档