Hi,

Which cxf version you're using?
Freeman
On 2011-5-19, at 上午10:55, vsv001 wrote:

Thank you.
I realised my mistake after i posted here. I am trying to integrate cxf
with our project.




java.lang.NullPointerException
        at
org .apache.cxf.jaxb.JAXBDataBinding.createContext(JAXBDataBinding.java: 559)
        at
org .apache .cxf .jaxb .JAXBDataBinding.createJAXBContextAndSchemas(JAXBDataBinding.java:497) at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java: 324)
        at
org .apache .cxf .service .factory .AbstractServiceFactoryBean .initializeDataBindings(AbstractServiceFactoryBean.java:86)
        at
org .apache .cxf .service .factory .ReflectionServiceFactoryBean .buildServiceFromClass(ReflectionServiceFactoryBean.java:442)
        at
org .apache .cxf .jaxws .support .JaxWsServiceFactoryBean .buildServiceFromClass(JaxWsServiceFactoryBean.java:680)
        at
org .apache .cxf .service .factory .ReflectionServiceFactoryBean .initializeServiceModel(ReflectionServiceFactoryBean.java:505)
        at
org .apache .cxf .service .factory .ReflectionServiceFactoryBean .create(ReflectionServiceFactoryBean.java:242)
        at
org .apache .cxf .jaxws .support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java: 202)
        at
org .apache .cxf .frontend .AbstractWSDLBasedEndpointFactory .createEndpoint(AbstractWSDLBasedEndpointFactory.java:101)
        at
org .apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java: 90)
        at
org .apache .cxf .frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java: 144)
        at
org .apache .cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean.java: 133)
        at org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:464)
        at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:331)
        at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:318)
        at javax.xml.ws.Service.getPort(Unknown Source)
        at SampleApplication.SampleApp.setupEndpoints(SampleApp.java:1140)
        at SampleApplication.SampleApp.signOnWithToken(SampleApp.java:177)
        at SampleApplication.main.main(main.java:35)



I get this error after the same piece of code. Any pointers for fixing it
would be great. I appreciate your help.

Thank You

--
View this message in context: 
http://cxf.547215.n5.nabble.com/Error-Can-not-do-a-getPort-on-a-port-added-via-addPort-tp4404350p4408599.html
Sent from the cxf-user mailing list archive at Nabble.com.

---------------------------------------------
Freeman Fang

FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
Connect at CamelOne May 24-26
The Open Source Integration Conference








Reply via email to