You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by ge <gh...@ge.com> on 2013/02/13 00:30:10 UTC

java.lang.VerifyError with CXF version 2.7.2. Works fine with CXF v2.5.2.

Hello,
We are running into an interesting byte code verification error when using
CXF v2.7.2, to consume a SOAP based web service. The same code works
perfectly fine with CXF v2.5.2. We've also tried intermediate versions such
as 2.6.4, but no luck. The web service itself is pretty standard. We use CXF
2.7.2 to generate the stubs and use the stubs to send the SOAP request. We
couldn't notice any difference in the generated stubs between CXF v2.5.2 and
CXF v2.7.2. Here is a snippet of the stack trace we are seeing:

java.lang.VerifyError: (class:
org/apache/cxf/jaxws/support/JaxWsEndpointImpl, method: extractWsdlEprs
signature: (Lorg/apache/cxf/service/model/EndpointInfo;)V) Incompatible
argument to function
at
org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.createEndpoint(JaxWsServiceFactoryBean.java:238)[144:org.apache.cxf.bundle-minimal:2.7.2]
at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.createEndpoints(ReflectionServiceFactoryBean.java:336)[144:org.apache.cxf.bundle-minimal:2.7.2]
at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:268)[144:org.apache.cxf.bundle-minimal:2.7.2]
at
org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:205)[144:org.apache.cxf.bundle-minimal:2.7.2]
at
org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:101)[144:org.apache.cxf.bundle-minimal:2.7.2]
at
org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:90)[144:org.apache.cxf.bundle-minimal:2.7.2]
at
org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:156)[144:org.apache.cxf.bundle-minimal:2.7.2]
at
org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean.java:156)[144:org.apache.cxf.bundle-minimal:2.7.2]
at
org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:465)[144:org.apache.cxf.bundle-minimal:2.7.2]
at
org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:332)[144:org.apache.cxf.bundle-minimal:2.7.2]
at
org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:319)[144:org.apache.cxf.bundle-minimal:2.7.2]
at
javax.xml.ws.Service.getPort(Service.java:40)[140:org.apache.servicemix.specs.jaxws-api-2.1:1.9.0]

We've also looked at JaxWsEndPointImpl and EndPointInfo classes but couldn't
quite see any changes that might cause this issue. Any help would be greatly
appreciated.

Thanks




--
View this message in context: http://cxf.547215.n5.nabble.com/java-lang-VerifyError-with-CXF-version-2-7-2-Works-fine-with-CXF-v2-5-2-tp5723069.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: java.lang.VerifyError with CXF version 2.7.2. Works fine with CXF v2.5.2.

Posted by Daniel Kulp <dk...@apache.org>.
On Feb 12, 2013, at 6:30 PM, ge <gh...@ge.com> wrote:

> Hello,
> We are running into an interesting byte code verification error when using
> CXF v2.7.2, to consume a SOAP based web service. The same code works
> perfectly fine with CXF v2.5.2. We've also tried intermediate versions such
> as 2.6.4, but no luck. The web service itself is pretty standard. We use CXF
> 2.7.2 to generate the stubs and use the stubs to send the SOAP request. We
> couldn't notice any difference in the generated stubs between CXF v2.5.2 and
> CXF v2.7.2. Here is a snippet of the stack trace we are seeing:

It looks like there may be multiple versions of CXF in the container or something and some imports are getting mixed up.

In anycase, with 2.7.2, I would NOT recommend using the org.apache.cxf.bundle-minimal thing and instead use the individual bundles.    There is a lot of functionality that won't work with the minimal bundle that will work with the individual bundles.  Plus, using the individual bundles that you need, you can get a set that is even "more minimal".

Dan



> 
> java.lang.VerifyError: (class:
> org/apache/cxf/jaxws/support/JaxWsEndpointImpl, method: extractWsdlEprs
> signature: (Lorg/apache/cxf/service/model/EndpointInfo;)V) Incompatible
> argument to function
> at
> org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.createEndpoint(JaxWsServiceFactoryBean.java:238)[144:org.apache.cxf.bundle-minimal:2.7.2]
> at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.createEndpoints(ReflectionServiceFactoryBean.java:336)[144:org.apache.cxf.bundle-minimal:2.7.2]
> at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:268)[144:org.apache.cxf.bundle-minimal:2.7.2]
> at
> org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:205)[144:org.apache.cxf.bundle-minimal:2.7.2]
> at
> org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:101)[144:org.apache.cxf.bundle-minimal:2.7.2]
> at
> org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:90)[144:org.apache.cxf.bundle-minimal:2.7.2]
> at
> org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:156)[144:org.apache.cxf.bundle-minimal:2.7.2]
> at
> org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean.java:156)[144:org.apache.cxf.bundle-minimal:2.7.2]
> at
> org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:465)[144:org.apache.cxf.bundle-minimal:2.7.2]
> at
> org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:332)[144:org.apache.cxf.bundle-minimal:2.7.2]
> at
> org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:319)[144:org.apache.cxf.bundle-minimal:2.7.2]
> at
> javax.xml.ws.Service.getPort(Service.java:40)[140:org.apache.servicemix.specs.jaxws-api-2.1:1.9.0]
> 
> We've also looked at JaxWsEndPointImpl and EndPointInfo classes but couldn't
> quite see any changes that might cause this issue. Any help would be greatly
> appreciated.
> 
> Thanks
> 
> 
> 
> 
> --
> View this message in context: http://cxf.547215.n5.nabble.com/java-lang-VerifyError-with-CXF-version-2-7-2-Works-fine-with-CXF-v2-5-2-tp5723069.html
> Sent from the cxf-user mailing list archive at Nabble.com.

-- 
Daniel Kulp
dkulp@apache.org - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com