相关疑难解决方法(0)

获取java.lang.VerifyError的原因

我正在调查以下内容 java.lang.VerifyError

java.lang.VerifyError: (class: be/post/ehr/wfm/application/serviceorganization/report/DisplayReportServlet, method: getMonthData signature: (IILjava/util/Collection;Ljava/util/Collection;Ljava/util/HashMap;Ljava/util/Collection;Ljava/util/Locale;Lorg/apache/struts/util/MessageRe˜̴Mt̴MÚw€mçw€mp:”MŒŒ
                at java.lang.Class.getDeclaredConstructors0(Native Method)
                at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
                at java.lang.Class.getConstructor0(Class.java:2671)
Run Code Online (Sandbox Code Playgroud)

它在启动部署servlet的jboss服务器时发生.它是用jdk-1.5.0_11编译的,我试图用jdk-1.5.0_15重新编译它而没有成功.这是编译运行正常但在部署时,会发生java.lang.VerifyError.

当我更改方法名称并得到以下错误:

java.lang.VerifyError: (class: be/post/ehr/wfm/application/serviceorganization/report/DisplayReportServlet, method: getMD signature: (IILjava/util/Collection;Lj    ava/util/Collection;Ljava/util/HashMap;Ljava/util/Collection;Ljava/util/Locale;Lorg/apache/struts/util/MessageResources?á?ÿ?àN|?ÿ?àN?Üw?Çm?ºw?ÇmX#?ûM|X?öM
            at java.lang.Class.getDeclaredConstructors0(Native Method)
            at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357
            at java.lang.Class.getConstructor0(Class.java:2671)
            at java.lang.Class.newInstance0(Class.java:321)
            at java.lang.Class.newInstance(Class.java:303)
Run Code Online (Sandbox Code Playgroud)

您可以看到显示更多的方法签名.

实际的方法签名是

  private PgasePdfTable getMonthData(int month, int year, Collection dayTypes,
                          Collection calendarDays,
                          HashMap bcSpecialDays,
                          Collection activityPeriods,
                          Locale locale, MessageResources resources) throws   Exception {
Run Code Online (Sandbox Code Playgroud)

我已经尝试过用它来查看它,javap并给出了应该的方法签名.

当我的其他同事检查代码,编译并部署它们时,它们会遇到同样的问题.当构建服务器获取代码并将其部署在开发或测试环境(HPUX)上时,会发生同样的错误.此外,运行Ubuntu的自动测试机在服务器启动期间显示相同的错误.

应用程序的其余部分运行正常,只有一个servlet出现故障.任何想看的地方都会有所帮助.

java deployment exception verifyerror

188
推荐指数
7
解决办法
28万
查看次数

尝试构建要在Wildfly中部署的Spring Boot

我可以创建一个简单的Hello World,但是有趣的是,如果我使用Spring Boot 1.5.10.RELEASE或2.0。我有一个例外。1.2.7开始正常。

这是2.0.0版本中的serve.log。似乎始于无法从最终课程继承?版本是否不匹配?httpPutFormContentFilter类有东西吗?

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2018-03-09 10:24:35,514 ERROR [org.springframework.boot.SpringApplication] (MSC service thread 1-12) Application run failed: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'httpPutFormContentFilter' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.web.servlet.filter.OrderedHttpPutFormContentFilter]: Factory method 'httpPutFormContentFilter' threw exception; nested exception is java.lang.VerifyError: Cannot inherit from final class …
Run Code Online (Sandbox Code Playgroud)

wildfly spring-boot

2
推荐指数
1
解决办法
1909
查看次数

从JBoss 7 EAP中排除提供的jackson版本

我试图使用更新版本的Jackson作为JBoss 7 EAP提供.为了解决我的问题,我创建了一个jboss-deployment-structure.xml文件,该文件包含在我的war部署中.

<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2">
    <deployment>
        <exclusions>
            <!--<module name="com.fasterxml.jackson.core.jackson-core" slot="main" />-->
            <!--<module name="com.fasterxml.jackson.core.jackson-annotations" slot="main" />-->
            <module name="com.fasterxml.jackson.core.jackson-databind" slot="main" />
        </exclusions>
    </deployment>
</jboss-deployment-structure>
Run Code Online (Sandbox Code Playgroud)

但似乎JBoss使用交付的模块而不是提供的依赖项.

来自本地模块加载器的模块"com.fasterxml.jackson.core.jackson -databind:main"的ModuleClassLoader @ 134593bf(finder:local module finder @ 4bb4de6a(roots:...\jboss-eap-7.0\modules,...\JBoss的-EAP-7.0 \模块\ SYSTEM \层\基))

我发现了一个类似的问题JBoss 7 Classloader - 排除模块实现,但它没有帮助我.

我错过了什么?

jboss war jboss-eap-7

1
推荐指数
2
解决办法
3612
查看次数