Travelport / travelport-uapi-tutorial

The travelport-uapi-tutorial is a Java project for Universal API that will help you connect and code a standard workflow including Air and Hotel.
45 stars 34 forks source link

java.lang.NoSuchFieldError: QUALIFIED Error #335

Open baviskarchetan opened 7 years ago

baviskarchetan commented 7 years ago

I am receiving the below error while connection (PingReq)

java.lang.RuntimeException: java.lang.NoSuchFieldError: QUALIFIED at com.vtech.tdpms.blackbox.vendorapi.galileouapi.helper.PortWrapper.init(PortWrapper.java:225) at com.vtech.tdpms.blackbox.vendorapi.galileouapi.helper.PortWrapper.showXML(PortWrapper.java:142) at com.vtech.tdpms.blackbox.vendorapi.galileouapi.GalileouapiAirServiceImpl.checkConnection(GalileouapiAirServiceImpl.java:335) at com.vtech.tdpms.blackbox.vendorapi.galileouapi.GalileouapiAirServiceImpl.doSearch(GalileouapiAirServiceImpl.java:80) at com.vtech.appxtension.tdpms.blackbox.productimpl.helper.air.WrapAirApiStarter.startSearch(WrapAirApiStarter.java:77) at com.vtech.tdpms.blackbox.productimpl.helper.air.AirApiStarter.run(AirApiStarter.java:58) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NoSuchFieldError: QUALIFIED at org.apache.cxf.service.model.SchemaInfo.setSchema(SchemaInfo.java:146) at org.apache.cxf.wsdl11.SchemaUtil.extractSchema(SchemaUtil.java:143) at org.apache.cxf.wsdl11.SchemaUtil.getSchemas(SchemaUtil.java:81) at org.apache.cxf.wsdl11.SchemaUtil.getSchemas(SchemaUtil.java:65) at org.apache.cxf.wsdl11.SchemaUtil.getSchemas(SchemaUtil.java:60) at org.apache.cxf.wsdl11.WSDLServiceBuilder.getSchemas(WSDLServiceBuilder.java:372) at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:339) at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:203) at org.apache.cxf.wsdl11.WSDLServiceFactory.create(WSDLServiceFactory.java:175) at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:428) at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:548) at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:265) at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:215) at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:102) at org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:91) at org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:157) at org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean.java:142) at org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:478) at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:345) at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:336) at javax.xml.ws.Service.getPort(Service.java:119) at com.vtech.tdpms.blackbox.vendorapi.galileouapi.com.travelport.service.system_v32_0.SystemService.getSystemPingPort(SystemService.java:77) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.vtech.tdpms.blackbox.vendorapi.galileouapi.helper.PortWrapper.init(PortWrapper.java:188)

vivekjyotipramanik commented 7 years ago

Hi baviskarchetan,

Could you please confirm the Endpoint URL you are using. Also, Please try your credentials in demosite if you can login over there. Please let us know how it goes. Thanks.

baviskarchetan commented 7 years ago

Hi, Please find below endpoint URL and User Id, I am using. https://apac.universal-api.pp.travelport.com/B2BGateway/connect/uAPI/ USER ID: Universal API/uAPI8931078193-41fe5ac8

Also I have tried with my Credentials on Demo site, I am getting search results there.

vivekjyotipramanik commented 7 years ago

Hi baviskarchetan,

Could you please use the endpoint as https://apac.universal-api.pp.travelport.com/B2BGateway/connect/uAPI/SystemService. Please let me know how it goes. Thanks.