我正在使用 spring 2.5.6 和在 spring 4.2.3 上运行的 web 服务的迁移项目中工作。Release 由于 Xml 处理器由于与客户端的某些机密性而无法更改,因此我试图从处理器发送请求对象并使用 web 服务获取响应对象. 我会说到点子上。是否可以对请求和响应使用不同的版本/依赖项。来自 2.5.6 的请求和来自 4.2.3.release 的响应。我尝试了一些无法正常工作的线程
错误跟踪:
xception in thread "main" java.lang.NoSuchMethodError: org.springframework.util.ClassUtils.isCglibProxyClass(Ljava/lang/Class;)Z
at org.apache.cxf.common.util.SpringAopClassHelper.getRealClassInternal(SpringAopClassHelper.java:86)
at org.apache.cxf.common.util.ClassHelper.getRealClass(ClassHelper.java:85)
at org.apache.cxf.jaxrs.provider.ProviderFactory.setCommonProviders(ProviderFactory.java:479)
at org.apache.cxf.jaxrs.client.ClientProviderFactory.setProviders(ClientProviderFactory.java:74)
at org.apache.cxf.jaxrs.provider.ProviderFactory.initFactory(ProviderFactory.java:129)
at org.apache.cxf.jaxrs.client.ClientProviderFactory.createInstance(ClientProviderFactory.java:55)
at org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean.initClient(JAXRSClientFactoryBean.java:377)
at org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean.createWithValues(JAXRSClientFactoryBean.java:321)
at org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean.create(JAXRSClientFactoryBean.java:264)
at org.apache.cxf.jaxrs.client.JAXRSClientFactory.create(JAXRSClientFactory.java:86)
at org.apache.cxf.jaxrs.client.JAXRSClientFactory.create(JAXRSClientFactory.java:72)
at org.apache.cxf.jaxrs.client.JAXRSClientFactory.create(JAXRSClientFactory.java:49)
at com.cpglogistics.isa.ws.rest.client.OrderWSClient.getOrderBySAPOrderNO(OrderWSClient.java:50)