function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
firefoxfirefox 

problem while logging in : NullPointerException

 

Hi all, 

 

Code used to login : 

 

-created stub by passing endpointurl

-set HTTPConstants properties/options for stub, after creation

- called stub.login by passing (Login, null, CallOptions (did set client Id)).   [passed null for LoginScopeHeader]

- got NullPointerException

 

Exception origin: 



SforceServiceStub.java :  _messageContext.getTransportOut().getSender().cleanup(_messageContext);    

 

 

Details: partner.wsdl, Axis2.

 

Any idea?

 

firefoxfirefox

Update

 

 It's the _messageContext.getTransportOut() that's returning the null.

 

How to rectify?