On Wednesday, May 18, 2011 10:55:33 PM vsv001 wrote:
> Thank you.
>   I realised my mistake after i posted here. I am trying to integrate cxf
> with our project.
> 

Can you double check that you have a jaxb-impl jar on the classpath and are 
not trying to use the JAXB impl built into the JDK?

I definitely see an issue at that line in the code that is causing the "real" 
exception to be lost. I'll get that fixed.

Dan


> 
> 
> 
> java.lang.NullPointerException
>       at
> org.apache.cxf.jaxb.JAXBDataBinding.createContext(JAXBDataBinding.java:559)
>       at
> org.apache.cxf.jaxb.JAXBDataBinding.createJAXBContextAndSchemas(JAXBDataBin
> ding.java:497) at
> org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:324)
> at
> org.apache.cxf.service.factory.AbstractServiceFactoryBean.initializeDataBin
> dings(AbstractServiceFactoryBean.java:86) at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFro
> mClass(ReflectionServiceFactoryBean.java:442) at
> org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(
> JaxWsServiceFactoryBean.java:680) at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServi
> ceModel(ReflectionServiceFactoryBean.java:505) at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(Reflecti
> onServiceFactoryBean.java:242) at
> org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFac
> toryBean.java:202) at
> org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(Abs
> tractWSDLBasedEndpointFactory.java:101) at
> org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:90)
>       at
> org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBea
> n.java:144) at
> org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean.jav
> a: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.

-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog
Talend - http://www.talend.com

Reply via email to