简体   繁体   English

org.apache.cxf.interceptor.Fault:无法初始化类net.sf.cglib.proxy.Enhancer

[英]org.apache.cxf.interceptor.Fault: Could not initialize class net.sf.cglib.proxy.Enhancer

I am, via SOAPUI, converting a handful of fields into a java object, then using this information to call a webservice for a save functionality. 我通过SOAPUI将少数字段转换为Java对象,然后使用此信息来调用Web服务以实现保存功能。 The conversion from SOAPUI to java object seems to work fine. 从SOAPUI到Java对象的转换似乎工作正常。 I can view the object in my debugger and it looks precisely similar to my JUNIT. 我可以在调试器中查看该对象,它看起来与JUNIT完全相似。 Still might be problematic. 仍然可能有问题。

In addition, i'm able to hit this service directly and save via JUNIT with no problems. 另外,我可以直接使用此服务,并且可以通过JUNIT毫无问题地保存。 The problems only arise after the XML is parsed into a java object AND the service is called (It seems to parse fine, once again) via SOAPUI (integration). 仅在将XML解析为java对象并通过SOAPUI(集成)调用该服务(似乎再次解析得很好)之后,才会出现问题。

This is obviously some sort of parsing issue with XML -- > java pojo and/or a library issue. 这显然是XML的某种解析问题-> java pojo和/或库问题。

Any Idea? 任何想法? My compile time libs, seemingly associated, are as follows: 我的看似相关的编译时库如下:

  1. asm - 4.0 is compiled (overwriting 5.0.4 due to dependency) asm-已编译4.0(由于相关性而覆盖5.0.4)
  2. cglib 2.2 cglib 2.2
  3. cglib-nodep 3.2.2 cglib-nodep 3.2.2

    ERROR: BUSINESS_EVENT REQUEST_ID= ELAPSED_TIME="17" END="2017-11-10 07:49:39,051" ENV_DESCRIPTOR="a" ENVIRONMENT="N/A" EXCEPTIONCLASS="java.lang.NoClassDefFoundError" EXECUTION_ID="" ROUTING_INTENTION="production" SERVER_IP="****" SESSION_ID="429b6099-98a6-4bae-8cdb-5ba295e9b223" START="2017-11-10 07:49:39,034" SUCCESS="false" THREAD_ID="tomcat-http--7" TRANS_ID="*******" USER_ID="anonymous" TRACE= "java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer at com.thoughtworks.xstream.converters.reflection.CGLIBEnhancedConverter.canConvert(CGLIBEnhancedConverter.java:67) at com.thoughtworks.xstream.core.DefaultConverterLookup.lookupConverterForType(DefaultConverterLookup.java:60) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:63) 错误:BUSINESS_EVENT REQUEST_ID = ELAPSED_TIME =“ 17” END =“ 2017-11-10 07:49:39,051” ENV_DESCRIPTOR =“ a” ENVIRONMENT =“ N / A” EXCEPTIONCLASS =“ java.lang.NoClassDefFoundError” EXECUTION_ID =“” ROUTING_INTENTION =“ production” SERVER_IP =“ ****” SESSION_ID =“ 429b6099-98a6-4bae-8cdb-5ba295e9b223” START =“ 2017-11-10 07:49:39,034” SUCCESS =“ false” THREAD_ID =“ tomcat-http --7“ TRANS_ID =” *******“ USER_ID =” anonymous“ TRACE = ” java.lang.NoClassDefFoundError:无法在com.thoughtworks.xstream.converters上初始化类net.sf.cglib.proxy.Enhancer。 .reflection.CGLIBEnhancedConverter.canConvert(CGLIBEnhancedConverter.java:67)位于com.thoughtworks.xstream.core.DefaultConverterLookup.lookupConverterForType(DefaultConverterLookup.java:60)位于com.thoughtworks.xstream.core.TreeMarshaller.68。 )在com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:63)

<-- company specific stack trace packages --> <-公司特定的堆栈跟踪程序包->

Adding the following dependency seemed to magically fix everything. 添加以下依赖关系似乎可以神奇地修复所有问题。 I left all of my old libs intact 我保留了所有旧库

<dependency>
        <groupId>com.thoughtworks.xstream</groupId>
        <artifactId>xstream</artifactId>
        <version>1.4.9</version>
    </dependency>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法初始化类net.sf.cglib.proxy.Enhancer - Could not initialize class net.sf.cglib.proxy.Enhancer Apache Wicket - java.lang.NoClassDefFoundError:无法初始化 class net.sf.cglib.proxy.Enhancer - Apache Wicket - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer java.lang.NoClassDefFoundError:部署到 Google App Engine 时无法初始化类 net.sf.cglib.proxy.Enhancer - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer when deploying to Google App Engine Xstream XML到对象vonversion java.lang.NoClassDefFoundError:无法初始化类net.sf.cglib.proxy.Enhancer - Xstream XML to object vonversion java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer CXF 2.7.7 org.apache.cxf.interceptor.Fault:意外元素 - CXF 2.7.7 org.apache.cxf.interceptor.Fault: Unexpected element org.apache.cxf.interceptor.Fault:编组错误:null - org.apache.cxf.interceptor.Fault: Marshalling Error: null org.apache.cxf.interceptor.Fault:无法发送消息。 引起:java.io.IOException: IOException invoking Service: Authentication failure - org.apache.cxf.interceptor.Fault: Could not send Message. Caused by: java.io.IOException: IOException invoking Service: Authentication failure 获取异常org.apache.cxf.interceptor.Fault:org / apache / camel / CamelContext - Getting exception org.apache.cxf.interceptor.Fault: org/apache/camel/CamelContext CXF:org.apache.cxf.interceptor.Fault:调用时arguments的编号错误 - CXF : org.apache.cxf.interceptor.Fault: wrong number of arguments while invoking org.apache.cxf.interceptor.Fault:[警告] org.eclipse.jetty.io.EofException:超时 - org.apache.cxf.interceptor.Fault: [warning] org.eclipse.jetty.io.EofException: timeout
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM