Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How do I avoid my JIRA SOAP Session from expiring/session time out?

Divya Arun September 27, 2011

Hello,

I have created a JIRA SOAP client which works fine. It connects with my JIRA instance, creates, updates, gets data as required. After 30 minutes, the session times out and my SOAP client object is of no use.

I have printed the data to check if JIRASOAPService object and Authentication token is available after 30 minutes and it is available.

JiraSoapService jiraSoapService = jiraSoapServiceLocator.getJirasoapserviceV2("jira url");
String token = getJiraSoapService().login(userName, password);

Both the objects exist and has same value after 30 minutes but it throws an exception

AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode: 
 faultString: com.atlassian.jira.rpc.exception.RemoteAuthenticationException: User not authenticated yet, or session timed out.
 faultActor: 
 faultNode: 
 faultDetail: 
	{}com.atlassian.jira.rpc.exception.RemoteAuthenticationException:null
	{http://xml.apache.org/axis/}hostname:test.domain.com

Now, I clearly know that the session has timed out.

Could we set the session expire time for a specific user account? If not, how do we handle this situation? I need the same SOAPService object to work for a very long time.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Jiří Wetter October 19, 2012
TAGS
AUG Leaders

Atlassian Community Events