• jdeng
  • NEWBIE
  • 0 Points
  • Member since 2007

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 7
    Replies
another strange error that never seen before: unable to obtain exclusive access to this record during upsert operation.  This happens after we bulk upsert records, then bulk upsert again to the same record id(using same external IDs).   Does this mean the salesforce database has exclusive lock to the record still? 
  • May 17, 2008
  • Like
  • 0
This proxy server prompt for username/password, I'm having issue with https tunnel through this proxy server
and I set the system properties using the following code:
 
Security.addProvider(new com.ibm.jsse.IBMJSSEProvider()); 
System.getProperties().put("https.proxySet","true");
 System.getProperties().put("https.proxyHost", proxyHost);
 System.getProperties().put("https.proxyPort", proxyPort);
 System.getProperties().put("https.proxyUserName", proxyUserName);
 System.getProperties().put("https.proxyPassWord", proxyPassWord);
...............
..............
properties.put("java.protocol.handler.pkgs", "com.ibm.net.ssl.internal.www2.protocol");
 
I'm using axis 1.4 with commons-httpclients-3.1
 
anyone has any idea?
 
  • May 14, 2008
  • Like
  • 0
I'm using IBM 1.4.2 java and Axis 1.4
I'm running the same code on multiple platforms, however, two of the platforms giving me this error during login(solaris 9 and HP Itanium)

javax.xml.rpc.JAXRPCException: unknown protocol: https

at org.apache.axis.client.Stub._setProperty

It seems the error occurs during this call

SforceService service = new SforceService();

service.setSoapEndpointAddress(aProductionUrl);

binding = (SoapBindingStub)service.getSoap();  // error seems occur here

binding.setTimeout((bindingTimeOut*2));

 

private class SforceService extends SforceServiceLocator

{

 

public Call createCall() throws ServiceException

{

Call call = null;

try{

call = super.createCall();

call.setProperty(HTTPConstants.MC_ACCEPT_GZIP,Boolean.TRUE);

call.setProperty(HTTPConstants.MC_GZIP_REQUEST,Boolean.TRUE);

}catch (Exception ex){

ex.printStackTrace();};

return call;

}

 

Anyone has any suggestions? thanks

  • January 24, 2008
  • Like
  • 0
One of our end users is behind proxy server, and he can login to https://www.salesforce.com/api/u/9.0 using my application.  however, when he issues a query, my application returns the below error: 
 
nested exception is:

        java.net.SocketException: Connection timed out:could be due to invalid address

 

 

I set up my proxy settings using System.setproperties("http.proxyHost", proxyServerName);

System.setproperties("http.proxyPort", proxyportnumber);

I'm suspecting the issue is at queryresult or querymore, since his data is larger than 2000 records.  Is there anything else that I need to setup for binding behind proxy?(or webservice calls in general behind proxy server?)

and my application is using axis 1.4, commons-http-client3.1 and API 9.0

 

  • November 27, 2007
  • Like
  • 0
This proxy server prompt for username/password, I'm having issue with https tunnel through this proxy server
and I set the system properties using the following code:
 
Security.addProvider(new com.ibm.jsse.IBMJSSEProvider()); 
System.getProperties().put("https.proxySet","true");
 System.getProperties().put("https.proxyHost", proxyHost);
 System.getProperties().put("https.proxyPort", proxyPort);
 System.getProperties().put("https.proxyUserName", proxyUserName);
 System.getProperties().put("https.proxyPassWord", proxyPassWord);
...............
..............
properties.put("java.protocol.handler.pkgs", "com.ibm.net.ssl.internal.www2.protocol");
 
I'm using axis 1.4 with commons-httpclients-3.1
 
anyone has any idea?
 
  • May 14, 2008
  • Like
  • 0
Hi, All
 
We created 2 simple java application which triggered by windows task manager at different time to access SF.
one is triggered every 30 min and one is 1 hrs.
 
But sometime Java throws a error message, not all the time.
-------------------------------------------------------------------

2008/05/14 10:00:09 [ERROR] BatchSFToDayBreak - main((String[]) <INVALID_SESSION_ID: Invalid Session ID found in SessionHeader: Session timed out>AxisFault
 faultCode: {urn:fault.enterprise.soap.sforce.com}INVALID_SESSION_ID
 faultSubcode:
 faultString: INVALID_SESSION_ID: Invalid Session ID found in SessionHeader: Session timed out
 faultActor:
 faultNode:
 faultDetail:
 {urn:fault.enterprise.soap.sforce.com}UnexpectedErrorFault:<ns1:exceptionCode>INVALID_SESSION_ID</ns1:exceptionCode><ns1:exceptionMessage>Invalid Session ID found in SessionHeader: Session timed out</ns1:exceptionMessage>

-------------------------------------------------------------------
 My java application will login again every time when triggered, and java program only run abt 1 mins. why the session will timeout? do I need to update my stub?

Thanks

 
Hi all,
I am new to salesforce.
I have a basic Question.How can we port j2ee application to Saleforce Paas Env.
I currently have a application which I want to port to salesforce.
 
Also if my system talks with lot legancy system how can i do that!
I'm using IBM 1.4.2 java and Axis 1.4
I'm running the same code on multiple platforms, however, two of the platforms giving me this error during login(solaris 9 and HP Itanium)

javax.xml.rpc.JAXRPCException: unknown protocol: https

at org.apache.axis.client.Stub._setProperty

It seems the error occurs during this call

SforceService service = new SforceService();

service.setSoapEndpointAddress(aProductionUrl);

binding = (SoapBindingStub)service.getSoap();  // error seems occur here

binding.setTimeout((bindingTimeOut*2));

 

private class SforceService extends SforceServiceLocator

{

 

public Call createCall() throws ServiceException

{

Call call = null;

try{

call = super.createCall();

call.setProperty(HTTPConstants.MC_ACCEPT_GZIP,Boolean.TRUE);

call.setProperty(HTTPConstants.MC_GZIP_REQUEST,Boolean.TRUE);

}catch (Exception ex){

ex.printStackTrace();};

return call;

}

 

Anyone has any suggestions? thanks

  • January 24, 2008
  • Like
  • 0
Hi,

it is possible to have a Ant build.xml file ?
I try to programm one, but they are failures. I don't undersand why. It 's will be very helpfull if a person send me a build file.

Thx

Magda
  • January 23, 2008
  • Like
  • 0
One of our end users is behind proxy server, and he can login to https://www.salesforce.com/api/u/9.0 using my application.  however, when he issues a query, my application returns the below error: 
 
nested exception is:

        java.net.SocketException: Connection timed out:could be due to invalid address

 

 

I set up my proxy settings using System.setproperties("http.proxyHost", proxyServerName);

System.setproperties("http.proxyPort", proxyportnumber);

I'm suspecting the issue is at queryresult or querymore, since his data is larger than 2000 records.  Is there anything else that I need to setup for binding behind proxy?(or webservice calls in general behind proxy server?)

and my application is using axis 1.4, commons-http-client3.1 and API 9.0

 

  • November 27, 2007
  • Like
  • 0