johvargas / sfdc-wsc

Automatically exported from code.google.com/p/sfdc-wsc
0 stars 0 forks source link

SessionRenewer: invalid check of exception message #76

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hello,

It looks like SessionRenewer doesn't work. I did some debugging. There is a 
method to check session timeout.

private boolean isSessionTimedOutFault(SoapFaultException sfe) {
    return "INVALID_SESSION_ID".equals(sfe.getFaultCode().getLocalPart()) 
           && sfe.getMessage() != null 
           && (sfe.getMessage().contains("Session timed out") || sfe.getMessage().contains("Session not found"));
}

Actually sfe.getMessage() is null. Exception message is returned by 
sfe.getExceptionMessage() method.

Could you fix it?

Original issue reported on code.google.com by syashu...@five9.com on 25 Feb 2013 at 3:35

GoogleCodeExporter commented 8 years ago
Yes, I am sorry, that feature is effectively broken in release 23. 
Unfortunately I cannot make modifications to the code nor add new downloads.

If you rely on the SessionRenewer, please use the jars below.

Thanks

Jesper Udby

Original comment by jesperudby on 25 Feb 2013 at 5:18

Attachments: