cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maxim Solodovnik <solomax...@gmail.com>
Subject Re: UnsupportedOperationException after upgrading to 3.1.0
Date Thu, 14 May 2015 08:18:29 GMT
Anyone, please?

java version "1.7.0_76"
Java(TM) SE Runtime Environment (build 1.7.0_76-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.76-b04, mixed mode)

Maybe XML is wrong for 3.1.0?

<bean id="userWebService"
class="org.apache.openmeetings.webservice.UserWebService" />
<jaxrs:server id="server" address="/">
<jaxrs:serviceBeans>
<ref bean="userWebService"/>
</jaxrs:serviceBeans>
</jaxrs:server>
<jaxws:endpoint id="userServiceWS" address="/UserService"
implementor="#userWebService"
endpointName="UserServiceEndpoint"
serviceName="UserService"
/>



On Wed, May 13, 2015 at 11:40 AM, Maxim Solodovnik <solomax666@gmail.com>
wrote:

> Hello All,
>
> Recently I have upgraded to CXF 3.1.0, unfortunately I got weird error on
> endpoint creation:
>
> Caused by: javax.xml.ws.WebServiceException:
> java.lang.UnsupportedOperationException
> at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:375)
> ~[cxf-rt-frontend-jaxws-3.1.0.jar:3.1.0]
> at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:255)
> ~[cxf-rt-frontend-jaxws-3.1.0.jar:3.1.0]
> at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:543)
> ~[cxf-rt-frontend-jaxws-3.1.0.jar:3.1.0]
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ~[na:1.7.0_76]
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> ~[na:1.7.0_76]
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> ~[na:1.7.0_76]
> at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_76]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1682)
> ~[spring-beans-4.0.8.RELEASE.jar:4.0.8.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1621)
> ~[spring-beans-4.0.8.RELEASE.jar:4.0.8.RELEASE]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1550)
> ~[spring-beans-4.0.8.RELEASE.jar:4.0.8.RELEASE]
> ... 40 common frames omitted
> Caused by: java.lang.UnsupportedOperationException: null
> at java.util.AbstractMap.put(AbstractMap.java:203) ~[na:1.7.0_76]
> at
> org.apache.cxf.jaxb.JAXBContextInitializer.addClass(JAXBContextInitializer.java:310)
> ~[cxf-rt-databinding-jaxb-3.1.0.jar:3.1.0]
> at
> org.apache.cxf.jaxb.JAXBContextInitializer.addType(JAXBContextInitializer.java:233)
> ~[cxf-rt-databinding-jaxb-3.1.0.jar:3.1.0]
> at
> org.apache.cxf.jaxb.JAXBContextInitializer.addType(JAXBContextInitializer.java:223)
> ~[cxf-rt-databinding-jaxb-3.1.0.jar:3.1.0]
> at
> org.apache.cxf.jaxb.JAXBContextInitializer.walkReferences(JAXBContextInitializer.java:383)
> ~[cxf-rt-databinding-jaxb-3.1.0.jar:3.1.0]
> at
> org.apache.cxf.jaxb.JAXBContextInitializer.addClass(JAXBContextInitializer.java:347)
> ~[cxf-rt-databinding-jaxb-3.1.0.jar:3.1.0]
> at
> org.apache.cxf.jaxb.JAXBContextInitializer.begin(JAXBContextInitializer.java:184)
> ~[cxf-rt-databinding-jaxb-3.1.0.jar:3.1.0]
> at
> org.apache.cxf.service.ServiceModelVisitor.visitOperation(ServiceModelVisitor.java:97)
> ~[cxf-core-3.1.0.jar:3.1.0]
> at
> org.apache.cxf.service.ServiceModelVisitor.walk(ServiceModelVisitor.java:74)
> ~[cxf-core-3.1.0.jar:3.1.0]
> at
> org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:315)
> ~[cxf-rt-databinding-jaxb-3.1.0.jar:3.1.0]
> at
> org.apache.cxf.service.factory.AbstractServiceFactoryBean.initializeDataBindings(AbstractServiceFactoryBean.java:86)
> ~[cxf-core-3.1.0.jar:3.1.0]
> at
> org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:467)
> ~[cxf-rt-wsdl-3.1.0.jar:3.1.0]
> at
> org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:696)
> ~[cxf-rt-frontend-jaxws-3.1.0.jar:3.1.0]
> at
> org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:527)
> ~[cxf-rt-wsdl-3.1.0.jar:3.1.0]
> at
> org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:261)
> ~[cxf-rt-wsdl-3.1.0.jar:3.1.0]
> at
> org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:199)
> ~[cxf-rt-frontend-jaxws-3.1.0.jar:3.1.0]
> at
> org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:102)
> ~[cxf-rt-frontend-simple-3.1.0.jar:3.1.0]
> at
> org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:168)
> ~[cxf-rt-frontend-simple-3.1.0.jar:3.1.0]
> at
> org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:211)
> ~[cxf-rt-frontend-jaxws-3.1.0.jar:3.1.0]
> at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:460)
> ~[cxf-rt-frontend-jaxws-3.1.0.jar:3.1.0]
> at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:338)
> ~[cxf-rt-frontend-jaxws-3.1.0.jar:3.1.0]
> ... 49 common frames omitted
>
>
> maybe someone can help me to understand what is wrong? (Everything works
> as expected with version 3.0.1)
>
> Thanks in advance for any help!
>
>
> --
> WBR
> Maxim aka solomax
>



-- 
WBR
Maxim aka solomax

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message