This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Services and the fly likes calling method from stub class   :- Error obtaining parser from data source:Property cannot be null! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "calling method from stub class   :- Error obtaining parser from data source:Property cannot be null!" Watch "calling method from stub class   :- Error obtaining parser from data source:Property cannot be null!" New topic
Author

calling method from stub class :- Error obtaining parser from data source:Property cannot be null!

user test
Greenhorn

Joined: Dec 14, 2011
Posts: 1
Hi,

I have created stub classes using WSDL2Java : axis2-1.5.5-bin using this axis distribution.

But when I try to invoke method from stub I am getting following exception :


java.lang.RuntimeException: Error obtaining parser from data source:Property cannot be null!
at org.apache.axiom.om.impl.llom.OMSourcedElementImpl.getDirectReader(OMSourcedElementImpl.java:230)
at org.apache.axiom.om.impl.llom.OMSourcedElementImpl.forceExpand(OMSourcedElementImpl.java:254)
at org.apache.axiom.om.impl.llom.OMSourcedElementImpl.getChildren(OMSourcedElementImpl.java:859)
at org.apache.axis2.client.Stub.addHeader(Stub.java:213)
at org.apache.axis2.client.Stub.addHeader(Stub.java:229)
at com.oracle.xmlns.idm.identity.webservice.spmlservice.SPMLServiceStub.sPMLValidateUsernameRequest(SPMLServiceStub.java:3053)
at com.oracle.xmlns.idm.identity.webservice.spmlservice.ServiceClientTest.main(ServiceClientTest.java:33)

Any pointer would be a great help

Thanks
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: calling method from stub class :- Error obtaining parser from data source:Property cannot be null!
 
Similar Threads
Axis 2 : Creating Dynamic Client
WebService Client - Unexpected SubElement Exception
Axis2 asynchronous communication
Cannot find namespace
Null Pointer Exception in Stub