• yh
  • NEWBIE
  • 0 Points
  • Member since 2003

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 6
    Replies

Hi, Im just setting up the partner portal toolkit, I can access the login screen but as soon as I login I get rejected. The stack trace tells me that I am getting a null pointer exception during the soap call through Axis. I am using a straight deploy of the downloaded war file just to get it up and running and have not stepped through in the debugger as yet. Any thoughts before I dig through in case anyone encountered this when first deploying the war? thanks for the help.

ERROR SforceManager  - java.lang.NullPointerException
2142453 [http-8080-Processor25] DEBUG LoginAction  - EXCEPTION CAUGHT!
com.sforce.SForceException: ; nested exception is:
 java.lang.NullPointerException
 at com.sforce.SforceManager.login(Unknown Source)
 at com.sforce.SforceManager.(Unknown Source)
 at com.sforce.struts.action.LoginAction.execute(Unknown Source)
 at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
 at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
 at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
 at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
 at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
 at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
 at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
 at org.apache.axis.AxisFault.makeFault(AxisFault.java:129)
 at org.apache.axis.client.Call.invoke(Call.java:2251)
 at org.apache.axis.client.Call.invoke(Call.java:2171)
 at org.apache.axis.client.Call.invoke(Call.java:1691)
 at com.sforce.soap.partner.SoapBindingStub.login(Unknown Source)

 

  • May 07, 2005
  • Like
  • 0
I'm still using the XML RPC API and I would like to find out what encoding my server is configured for. I noticed in SOAP there is the concept of a describeGlobal. Does anyone know the equivalent in the XML RPC api? Does anyone even know how to get a copy of the documention for XML-RPC anymore? I can't seem to find it anywhere.
  • December 03, 2004
  • Like
  • 0
Are there any plans to end support for xmlrpc?  If so, when?
  • March 31, 2004
  • Like
  • 0

I wrote a small program to login and then do a sfdc.describe.  Everything works fine, and i can actually output the fields coming back.  However, when i move this code into a servlet( same exact code ) and the code is executed from a servlet, i get the following error:

org.apache.xmlrpc.XmlRpcException: user not valid

I also checked the error code and it is 1112 ( invalid login )

Why is it working when it's running as a standalone program but not working when i'm in a servlet?  Anyone else encounter this?

I'm using apache's XmlRpcClient class.

 

 

 

  • October 10, 2003
  • Like
  • 0

Hi, Im just setting up the partner portal toolkit, I can access the login screen but as soon as I login I get rejected. The stack trace tells me that I am getting a null pointer exception during the soap call through Axis. I am using a straight deploy of the downloaded war file just to get it up and running and have not stepped through in the debugger as yet. Any thoughts before I dig through in case anyone encountered this when first deploying the war? thanks for the help.

ERROR SforceManager  - java.lang.NullPointerException
2142453 [http-8080-Processor25] DEBUG LoginAction  - EXCEPTION CAUGHT!
com.sforce.SForceException: ; nested exception is:
 java.lang.NullPointerException
 at com.sforce.SforceManager.login(Unknown Source)
 at com.sforce.SforceManager.(Unknown Source)
 at com.sforce.struts.action.LoginAction.execute(Unknown Source)
 at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
 at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
 at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
 at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
 at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
 at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
 at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
 at org.apache.axis.AxisFault.makeFault(AxisFault.java:129)
 at org.apache.axis.client.Call.invoke(Call.java:2251)
 at org.apache.axis.client.Call.invoke(Call.java:2171)
 at org.apache.axis.client.Call.invoke(Call.java:1691)
 at com.sforce.soap.partner.SoapBindingStub.login(Unknown Source)

 

  • May 07, 2005
  • Like
  • 0
I'm still using the XML RPC API and I would like to find out what encoding my server is configured for. I noticed in SOAP there is the concept of a describeGlobal. Does anyone know the equivalent in the XML RPC api? Does anyone even know how to get a copy of the documention for XML-RPC anymore? I can't seem to find it anywhere.
  • December 03, 2004
  • Like
  • 0

Where can I download the sforce implementation of XMLRPC.

I tried using the apache implementation.  Logging in worked okay, but I don't see where to add the session-id as a cookie.  An example would be appreciated.

Aaron

 

  • July 04, 2003
  • Like
  • 0