• salesforce_developer1
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
Hi,
I'm relatively new to SalesForce so bear with me if this seems very stupid.:mansad:

I am trying to run the Sample java code with SalesForce web service. I get a NullPointerException when i try to log in. I have a developers account whose login/password combination i am using.

The following statement executes fine.
Code:
binding = (SoapBindingStub)new SforceServiceLocator().getSoap();

However when i try to login using this binding i get the exception at this line
Code:
binding.login(userName, password);
Here userName and password are my developer account's user name and password in String.
The stack trace hints that the initial error is occuring at com.sforce.soap.enterprise.SoapBindingStub.login(SoapBindingStub.java:1781)

Any idea what should I do to resolve this?


  • June 07, 2006
  • Like
  • 0