You need to sign in to do that
Don't have an account?
INVALID_SESSION_ID Error throws by Java application
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
Thanks a lot, jdeng
In SF side, user setup 30 mins for the session timeout. And for JAVA program, we didn't setup time out for binding before. I don't know what is the default setup for binding timeout. maybe 1 min. Anyway, I add one line code below (time out as 3 mins). Maybe it works.
binding = (SoapBindingStub) new SforceServiceLocator().getSoap();
binding.setTimeout(180000);
lr = binding.login(userName, pwd);
even setup to 5 mins for binding timeout in Java code, we are still facing this error sometime. if just run java program right away, then no error. does somebody know any solutions for this. or this is the bug of salesforce :-(
Thanks, werewolf
I just won't get it why the session got timeout or got killed. Our java program is very simple. it runs every 30 mins to login SF to receive some data then save to another database. everytime it will login again, create new session and session ID.
Anyway. I changed the windows task manager to trigger java program every 15 mins, then no INVALID_SESSION_ID error. this issue doesn't bother us anymore but I still wish somebody could tell me the reason :-)