Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Error in accessing a web service  RSS feed

 
Jitesh Sinha
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am trying to access a SOAP web service.I am getting this error -

java.lang.NullPointerException
at com.sun.xml.internal.ws.model.wsdl.WSDLBoundOperationImpl.getReqPaylo
adName(WSDLBoundOperationImpl.java:330)
at com.sun.xml.internal.ws.model.wsdl.WSDLBoundPortTypeImpl.freezePayloa
dMap(WSDLBoundPortTypeImpl.java:224)
at com.sun.xml.internal.ws.model.wsdl.WSDLBoundPortTypeImpl.freeze(WSDLB
oundPortTypeImpl.java:210)
at com.sun.xml.internal.ws.model.wsdl.WSDLModelImpl.freeze(WSDLModelImpl
.java:230)
at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWS
DLParser.java:136)
at com.sun.xml.internal.ws.client.WSServiceDelegate.parseWSDL(WSServiceD
elegate.java:254)
at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(WSServiceDele
gate.java:217)
at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(WSServiceDele
gate.java:165)
at com.sun.xml.internal.ws.spi.ProviderImpl.createServiceDelegate(Provid
erImpl.java:93)
at javax.xml.ws.Service.<init>(Service.java:56)
at chinaweb.client.WcmServiceService.<init>(WcmServiceService.java:46)
at paws.WCMPublisher.initService(Unknown Source)
at paws.TSPPublisher.WCMPublisher.<init>(Unknown Source)
at paws.TSPPublisher.WCMPublisherThread.<init>(Unknown Source)
at paws.TSPPublisher.Initializer.main(Unknown Source)

WcmServiceService is the main web service class.At the time of initializing this class,I get this error in logs.
Any idea how to resolve this?

Thanks
-Jitesh
 
Jitesh Sinha
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anybody please tell me possible root cause of this error?
 
Bosun Bello
Ranch Hand
Posts: 1512
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Something is missing/null. You may have to step through the code if possible to see what the issue is.
 
Jitesh Sinha
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well,it is a web service written by someone else that we use.
Looking at the stack trace it seems WSDLBoundOperationImpl.getReqPayloadName is expecting something that is not there.I need to know what it is.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!