我們正在從 hibernate 5(從 v3)和 spring boot 1.5 升級我們的技術堆棧,特別是當我們對 hibernate 和 jibx 編組使用相同的域對象時面臨 hibernate 和 jibx 編組問題。def compileJibx() { ant { taskdef(name: 'bind', classname: 'org.jibx.binding.ant.CompileTask', classpath: configurations.jibx.asPath) bind(binding: "${projectDir}/src/main/resources/jibx-binding.xml", verbose: 'false') { classpath { pathelement(path: "${projectDir}/build/classes/main") } }}}此 jibx 編譯任務在compileJava 步驟之后執行。使用以下依賴項 jibx group: 'org.apache.bcel', name: 'bcel', version:'6.0' jibx group: 'org.jibx', name: 'jibx-run', version:'1.1.5' jibx group: 'org.jibx', name: 'jibx-extras', version:'1.1.5' jibx group: 'org.jibx', name: 'jibx-bind', version:'1.1.5' jibx group: 'xmlpull', name: 'xmlpull', version:'1.1.4' jibx group: 'xpp3', name: 'xpp3', version:'1.1.4c' jibx group: 'org.hibernate.javax.persistence', name: 'hibernate-jpa-2.1-api', version:'1.0.2.Final' jibx group: 'javax.xml.bind', name: 'jaxb-api', version:'2.2.11'在 gradle 構建之后,我看到 jibx 類已在 jar 文件中正確構建。但是當我啟動應用程序時,jibx 編組由于以下錯誤而失敗。[2019-09-18 10:30:40.537] [BDSPUSD00000582] [ERROR] [com.abc.UnhandledExceptionHandler] [{Correlation-ID=skdfhjwe39850jkhfsd}] - Unhandled exceptionorg.springframework.web.util.NestedServletException: Handler dispatch failed; nested exception is java.lang.VerifyError: Expecting a stackmap frame at branch target 26Exception Details: Location: com/abc/jibx/domain/JibxDomain.JiBX_ABC_marshal_6_0(Lorg/jibx/runtime/impl/MarshallingContext;)V @19: ifnonnull Reason: Expected stackmap frame at this location. Bytecode: 0x0000000: 2b2a b600 462b 2b06 1248 b600 4c57 2ab6 0x0000010: 0050 59c7 0007 57a7 0007 2bb6 0056 0612 ...我的編譯或構建步驟有問題嗎?有人可以提供一些與下面的堆棧配合良好的工作示例嗎?
添加回答
舉報
0/150
提交
取消